fstab: adding options for userdata partition to enable FBE
cherry-picked from upstream device/linaro/dragonboard project.
according to the document here:
https://source.android.com/security/encryption/file-based
Test: boot up db845c with android-5.4 and android-mainline kernels, and tested with vts-kernel -m VtsKernelEncryptionTest
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Change-Id: I6ad25b5fef31bef77893f6d5e267568489116fae
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
diff --git a/beryllium/fstab.ramdisk b/beryllium/fstab.ramdisk
index 0c15b79..f22294a 100644
--- a/beryllium/fstab.ramdisk
+++ b/beryllium/fstab.ramdisk
@@ -1,4 +1,4 @@
/dev/block/platform/soc@0/1d84000.ufshc/by-name/system /system ext4 noatime,ro,errors=panic wait,first_stage_mount
/dev/block/platform/soc@0/1d84000.ufshc/by-name/vendor /vendor ext4 noatime,ro,errors=panic wait,first_stage_mount
-LABEL=data /data ext4 discard,noauto_da_alloc,data=ordered,user_xattr,barrier=1 wait
-/devices/platform/soc@0/8804000.sdhci/mmc_host/mmc* auto auto defaults voldmanaged=sdcard1:auto,noemulatedsd
+/dev/block/platform/soc@0/1d84000.ufshc/by-name/userdata /data ext4 discard,noatime,noauto_da_alloc,data=ordered,user_xattr,barrier=1,inlinecrypt wait,formattable,fileencryption=aes-256-xts:aes-256-cts:v2+inlinecrypt_optimized
+/devices/platform/soc@0/8804000.sdhci/mmc_host/mmc* auto auto defaults voldmanaged=sdcard1:auto