From 3332fcbd60c54de2a1877c4e7a8d12751eef776d Mon Sep 17 00:00:00 2001 From: Samir Mehta Date: Fri, 23 Jan 2015 16:42:12 -0600 Subject: [PATCH] peregrine: add extra padding for encryption Provide 16K for footer region of data partition /data should have 16K data for the encryption footer. In "fstab.qcom" we specify this by adding "encryptable=footer" option for the /data parition. However after factory reset these paritions will be wiped out and mounted using the parition tables mentioned in "recovery.fstab". In this case the /data should again leave the 16K for the encryption footer. So "length=-16384" needs to be added for the /data parition for the encryption to work after factory reset is done. Similarly BoardConfig is changed for userdata partition by reducing it by 16kb. Change-ID I188ee4ea959bb8eb791b9387fc6adf299ffdc498 Change-Id: I0d58b350e96f1c57190759e2cd8c71aec99efdf2 --- BoardConfig.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 7039725..6fb619b 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -31,7 +31,7 @@ TARGET_KERNEL_CONFIG := peregrine_defconfig BOARD_BOOTIMAGE_PARTITION_SIZE := 10485760 BOARD_RECOVERYIMAGE_PARTITION_SIZE := 10485760 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1157627904 -BOARD_USERDATAIMAGE_PARTITION_SIZE := 5930614784 +BOARD_USERDATAIMAGE_PARTITION_SIZE := 5930598400 # Recovery TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/rootdir/etc/fstab.qcom