From 8e740553768bb7ca136c1db8397066b206921ddd Mon Sep 17 00:00:00 2001 From: Caio Schnepper Date: Fri, 2 Oct 2015 21:58:21 -0300 Subject: Move encryption key to footer Fixes the "format_volume: failed to open /efs/metadata" error on recovery while trying to wipe user data Change-Id: Ic3f72d72fc34495ec05deffd8aa849bcfa65b29c --- BoardCommonConfig.mk | 2 +- rootdir/fstab.smdk4210 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BoardCommonConfig.mk b/BoardCommonConfig.mk index 8d6814c..0d84bcb 100644 --- a/BoardCommonConfig.mk +++ b/BoardCommonConfig.mk @@ -65,7 +65,7 @@ EXTENDED_FONT_FOOTPRINT := true TARGET_USERIMAGES_USE_EXT4 := true BOARD_BOOTIMAGE_PARTITION_SIZE := 8388608 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 536870912 -BOARD_USERDATAIMAGE_PARTITION_SIZE := 2147483648 +BOARD_USERDATAIMAGE_PARTITION_SIZE := 2147467264 BOARD_FLASH_BLOCK_SIZE := 4096 # Releasetools diff --git a/rootdir/fstab.smdk4210 b/rootdir/fstab.smdk4210 index 5d8b38a..cf03e47 100755 --- a/rootdir/fstab.smdk4210 +++ b/rootdir/fstab.smdk4210 @@ -7,7 +7,7 @@ /dev/block/mmcblk0p9 /system ext4 ro,noatime wait /dev/block/mmcblk0p7 /cache ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check_spo /dev/block/mmcblk0p1 /efs ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check_spo -/dev/block/mmcblk0p10 /data ext4 noatime,nosuid,nodev,noauto_da_alloc,journal_async_commit,errors=panic wait,check_spo,encryptable=/efs/metadata +/dev/block/mmcblk0p10 /data ext4 noatime,nosuid,nodev,noauto_da_alloc,journal_async_commit,errors=panic wait,check_spo,encryptable=footer,length=-16384 /dev/block/mmcblk0p12 /preload ext4 noatime,nosuid,nodev,journal_async_commit wait # vold-managed volumes ("block device" is actually a sysfs devpath) -- cgit v1.1