diff --git a/conf/Android.bp b/conf/Android.bp index 1b554886..e9e50ecf 100644 --- a/conf/Android.bp +++ b/conf/Android.bp @@ -37,16 +37,25 @@ genrule { name: "gen_fstab.zuma-hw-encrypt", srcs: ["fstab.zuma.in"], out: ["fstab.zuma"], - cmd: "sed -e s/@fileencryption@/::inlinecrypt_optimized+wrappedkey_v0/" + + cmd: "sed -e s/@fileencryption@/fileencryption=::inlinecrypt_optimized+wrappedkey_v0/" + " -e s/@inlinecrypt@/inlinecrypt/ " + - " -e s/@metadata_encryption@/:wrappedkey_v0/ $(in) > $(out)", + " -e s/@metadata_encryption@/metadata_encryption=:wrappedkey_v0/ $(in) > $(out)", } genrule { name: "gen_fstab.zuma-sw-encrypt", srcs: ["fstab.zuma.in"], out: ["fstab.zuma"], - cmd: "sed -e s/@fileencryption@/aes-256-xts/" + + cmd: "sed -e s/@fileencryption@/fileencryption=aes-256-xts/" + + " -e s/@inlinecrypt@// " + + " -e s/@metadata_encryption@/metadata_encryption=/ $(in) > $(out)", +} + +genrule { + name: "gen_fstab.zuma-no-encrypt", + srcs: ["fstab.zuma.in"], + out: ["fstab.zuma"], + cmd: "sed -e s/@fileencryption@//" + " -e s/@inlinecrypt@// " + " -e s/@metadata_encryption@// $(in) > $(out)", } @@ -55,9 +64,9 @@ genrule { name: "gen_fstab.zuma-fips", srcs: ["fstab.zuma.in"], out: ["fstab.zuma-fips"], - cmd: "sed -e s/@fileencryption@/aes-256-xts/" + + cmd: "sed -e s/@fileencryption@/fileencryption=aes-256-xts/" + " -e s/@inlinecrypt@/inlinecrypt/ " + - " -e s/@metadata_encryption@/aes-256-xts/ $(in) > $(out)", + " -e s/@metadata_encryption@/metadata_encryption=aes-256-xts/ $(in) > $(out)", } prebuilt_etc { diff --git a/conf/fstab.zuma.in b/conf/fstab.zuma.in index f49484ce..51607a41 100644 --- a/conf/fstab.zuma.in +++ b/conf/fstab.zuma.in @@ -20,6 +20,6 @@ vendor_dlkm /vendor_dlkm /dev/block/platform/13200000.ufs/by-name/misc /misc emmc defaults wait /dev/block/platform/13200000.ufs/by-name/metadata /metadata f2fs noatime,nosuid,nodev,sync wait,check,formattable,first_stage_mount #/dev/block/platform/13200000.ufs/by-name/pvmfw /pvmfw emmc defaults wait,slotselect,avb=pvmfw,first_stage_mount -/dev/block/platform/13200000.ufs/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,reserve_root=32768,resgid=1065,fsync_mode=nobarrier,compress_extension=apk,compress_extension=apex,compress_extension=so,compress_extension=vdex,compress_extension=odex,@inlinecrypt@,atgc,checkpoint_merge,compress_cache latemount,wait,check,quota,formattable,sysfs_path=/dev/sys/block/bootdevice,checkpoint=fs,reservedsize=128M,fscompress,readahead_size_kb=128,fileencryption=@fileencryption@,metadata_encryption=@metadata_encryption@,keydirectory=/metadata/vold/metadata_encryption +/dev/block/platform/13200000.ufs/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,reserve_root=32768,resgid=1065,fsync_mode=nobarrier,compress_extension=apk,compress_extension=apex,compress_extension=so,compress_extension=vdex,compress_extension=odex,@inlinecrypt@,atgc,checkpoint_merge,compress_cache latemount,wait,check,quota,formattable,sysfs_path=/dev/sys/block/bootdevice,checkpoint=fs,reservedsize=128M,fscompress,readahead_size_kb=128,@fileencryption@,@metadata_encryption@,keydirectory=/metadata/vold/metadata_encryption /dev/block/platform/13200000.ufs/by-name/vbmeta /vbmeta emmc defaults slotselect,first_stage_mount /devices/platform/11210000.usb* auto vfat defaults voldmanaged=usb:auto