Skip to content

Commit

Permalink
selene: Enable FBEv2
Browse files Browse the repository at this point in the history
Signed-off-by: Saikrishna1504 <[email protected]>
  • Loading branch information
Saikrishna1504 authored and hasan6034 committed Oct 29, 2024
1 parent cd117f6 commit 7569d06
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ BOARD_XIAOMI_DYNAMIC_PARTITIONS_SIZE := 9122611200
# Platform
TARGET_BOARD_PLATFORM := mt6768

# Properties
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop

# Recovery
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true
Expand Down
4 changes: 4 additions & 0 deletions recovery/root/init.recovery.mt6768.rc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ on property:twrp.all.users.decrypted=true
stop keymaster-4-1
stop gatekeeper-1-0

on early-fs
write /proc/bootprof "INIT:early-fs"
start vold

on boot
start boot-hal-1-2
start health-hal-2-1
Expand Down
2 changes: 1 addition & 1 deletion recovery/root/system/etc/recovery.fstab
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ product /product ext4 ro wait,slotselect,logical

/dev/block/platform/bootdevice/by-name/md_udc /metadata ext4 noatime,nosuid,nodev,discard,data=journal,commit=1 wait,check,formattable,first_stage_mount
/dev/block/platform/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,noflush_merge,reserve_root=134217,resgid=1065,inlinecrypt,checkpoint_merge,fsync_mode=nobarrier wait,check,formattable,latemount,reservedsize=128m,checkpoint=fs,fileencryption=aes-256-xts:aes-256-cts:v2+emmc_optimized,keydirectory=/metadata/vold/metadata_encryption,fsverity
/dev/block/platform/bootdevice/by-name/misc /misc emmc defaults defaults
/dev/block/platform/bootdevice/by-name/misc /misc emmc defaults defaults
1 change: 0 additions & 1 deletion system.prop
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ ro.hardware=mt6768
ro.mtk_tee_gp_support=1
ro.mtk_microtrust_tee_support=1
fbe.metadata.wrappedkey=true
ro.crypto.volume.filenames_mode=aes-256-cts
ro.hardware.kmsetkey=beanpod
ro.hardware.gatekeeper=beanpod
6 changes: 6 additions & 0 deletions vendor.prop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Crypto
ro.crypto.allow_encrypt_override=true
ro.crypto.dm_default_key.options_format.version=2
ro.crypto.volume.metadata.method=dm-default-key
ro.crypto.volume.filenames_mode=aes-256-cts
ro.crypto.volume.options=::v2

0 comments on commit 7569d06

Please sign in to comment.