summaryrefslogtreecommitdiffstats
path: root/init.tuna.rc
diff options
context:
space:
mode:
authorKen Sumrall <ksumrall@android.com>2011-07-14 11:29:11 -0700
committerKen Sumrall <ksumrall@android.com>2011-07-15 20:17:15 -0700
commitc256e5a31871c5e09342a795fe4a8aed044a20ab (patch)
tree35132a3260435bb6be80b8ea2256aadd7075ec90 /init.tuna.rc
parenta1fafcd3f89cacd9b96c077d988210b1887d3cd2 (diff)
downloaddevice_samsung_tuna-c256e5a31871c5e09342a795fe4a8aed044a20ab.zip
device_samsung_tuna-c256e5a31871c5e09342a795fe4a8aed044a20ab.tar.gz
device_samsung_tuna-c256e5a31871c5e09342a795fe4a8aed044a20ab.tar.bz2
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
Diffstat (limited to 'init.tuna.rc')
-rwxr-xr-xinit.tuna.rc3
1 files changed, 3 insertions, 0 deletions
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