summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaio Schnepper <caioschnepper@gmail.com>2015-10-02 21:58:21 -0300
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-10-05 12:24:47 -0700
commit8e740553768bb7ca136c1db8397066b206921ddd (patch)
tree16927e9c7610b5e6b3c99e34eeb7740a863dcb49
parent05a285749a65fb7ef1e2b0ec6a81617aaf1573fc (diff)
downloaddevice_samsung_galaxys2-common-8e740553768bb7ca136c1db8397066b206921ddd.zip
device_samsung_galaxys2-common-8e740553768bb7ca136c1db8397066b206921ddd.tar.gz
device_samsung_galaxys2-common-8e740553768bb7ca136c1db8397066b206921ddd.tar.bz2
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
-rw-r--r--BoardCommonConfig.mk2
-rwxr-xr-xrootdir/fstab.smdk42102
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)