diff --git a/BoardConfig.mk b/BoardConfig.mk index acddb9b5..5f742817 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -56,6 +56,7 @@ TARGET_NO_KERNEL := false TARGET_NO_RECOVERY := true BOARD_USES_RECOVERY_AS_BOOT := true BOARD_BUILD_SYSTEM_ROOT_IMAGE := true +BOARD_USES_METADATA_PARTITION := true # Partitions (listed in the file) to be wiped under recovery. TARGET_RECOVERY_WIPE := device/google/wahoo/recovery.wipe @@ -85,7 +86,7 @@ TARGET_COPY_OUT_VENDOR := vendor # Install odex files into the other system image BOARD_USES_SYSTEM_OTHER_ODEX := true -BOARD_ROOT_EXTRA_FOLDERS := persist firmware +BOARD_ROOT_EXTRA_FOLDERS := persist firmware metadata BOARD_SEPOLICY_DIRS += device/google/wahoo/sepolicy/vendor BOARD_PLAT_PUBLIC_SEPOLICY_DIR := device/google/wahoo/sepolicy/public diff --git a/fstab.hardware b/fstab.hardware index f6b7940e..7c6e57fd 100644 --- a/fstab.hardware +++ b/fstab.hardware @@ -2,7 +2,8 @@ # /dev/block/platform/soc/1da4000.ufshc/by-name/system / ext4 ro,barrier=1 wait,slotselect,avb -/dev/block/platform/soc/1da4000.ufshc/by-name/userdata /data ext4 errors=panic,noatime,nosuid,nodev,barrier=1,noauto_da_alloc latemount,wait,check,formattable,fileencryption=ice:aes-256-heh,eraseblk=16777216,logicalblk=4096,quota,reservedsize=128M +/dev/block/platform/soc/1da4000.ufshc/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard wait,formattable +/dev/block/platform/soc/1da4000.ufshc/by-name/userdata /data ext4 errors=panic,noatime,nosuid,nodev,barrier=1,noauto_da_alloc latemount,wait,check,formattable,fileencryption=ice:aes-256-heh,eraseblk=16777216,logicalblk=4096,quota,reservedsize=128M,checkpoint=block /dev/block/platform/soc/1da4000.ufshc/by-name/misc /misc emmc defaults defaults /dev/block/platform/soc/1da4000.ufshc/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait,slotselect /devices/soc/a800000.ssusb/a800000.dwc3* auto vfat defaults voldmanaged=usb:auto diff --git a/sepolicy/public/init.te b/sepolicy/public/init.te new file mode 100644 index 00000000..e93b2e89 --- /dev/null +++ b/sepolicy/public/init.te @@ -0,0 +1 @@ +allow init vold_data_file:dir { relabelfrom }; diff --git a/sepolicy/public/ueventd.te b/sepolicy/public/ueventd.te new file mode 100644 index 00000000..985c8ec4 --- /dev/null +++ b/sepolicy/public/ueventd.te @@ -0,0 +1 @@ +allow ueventd metadata_file:dir search;