From c256e5a31871c5e09342a795fe4a8aed044a20ab Mon Sep 17 00:00:00 2001 From: Ken Sumrall Date: Thu, 14 Jul 2011 11:29:11 -0700 Subject: Fixes for crypto on Prime Keep the keys in a file on /efs instead of in the footer, and set the userdata filesystem size to the full size of the partition. Having a writable persistent filesystem besides /data makes things much cleaner. Keeping keys in the footer requires lots of co-ordination among many pieces to make sure they don't overwrite the footer with a new filesystem. In particular, setup_fs doesn't yet know how to not overwrite the footer. Also properly notify vold when the post-fs-data action is done. Change-Id: Ia67144d25630d86a3018419bff735e1395a85a7a --- BoardConfig.mk | 2 +- init.tuna.rc | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 734ad21..37fcb91 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -52,7 +52,7 @@ TARGET_RELEASETOOLS_EXTENSIONS := device/samsung/tuna TARGET_USERIMAGES_USE_EXT4 := true BOARD_SYSTEMIMAGE_PARTITION_SIZE := 685768704 -BOARD_USERDATAIMAGE_PARTITION_SIZE := 14539517952 +BOARD_USERDATAIMAGE_PARTITION_SIZE := 14539537408 BOARD_FLASH_BLOCK_SIZE := 4096 #TARGET_PROVIDES_INIT_RC := true diff --git a/init.tuna.rc b/init.tuna.rc index b42b98f..99ef510 100755 --- a/init.tuna.rc +++ b/init.tuna.rc @@ -15,6 +15,8 @@ on post-fs-data mkdir /data/misc/dhcp 0770 dhcp dhcp chown dhcp dhcp /data/misc/dhcp + setprop vold.post_fs_data_done 1 + # LTE chown radio system /sys/devices/platform/switch-sio/usb_sel chown radio system /sys/devices/platform/switch-sio/uart_sel @@ -22,6 +24,7 @@ on post-fs-data on boot mount debugfs /sys/kernel/debug /sys/kernel/debug chmod 0666 /dev/pvrsrvkm + setprop ro.crypto.keyfile.userdata /efs/userdata_footer on fs mkdir /efs 0775 radio radio -- cgit v1.1