Merge "Mount default encrypted devices at boot"
This commit is contained in:
commit
b6e3b3cea2
|
@ -501,10 +501,10 @@ int do_mount_all(int nargs, char **args)
|
|||
return -1;
|
||||
}
|
||||
|
||||
/* ret is 1 if the device is encrypted, 0 if not, and -1 on error */
|
||||
/* ret is 1 if the device appears encrypted, 0 if not, and -1 on error */
|
||||
if (ret == 1) {
|
||||
property_set("ro.crypto.state", "encrypted");
|
||||
property_set("vold.decrypt", "1");
|
||||
property_set("vold.decrypt", "trigger_default_encryption");
|
||||
} else if (ret == 0) {
|
||||
property_set("ro.crypto.state", "unencrypted");
|
||||
/* If fs_mgr determined this is an unencrypted device, then trigger
|
||||
|
|
|
@ -391,11 +391,15 @@ on boot
|
|||
setprop net.tcp.buffersize.evdo 4094,87380,262144,4096,16384,262144
|
||||
|
||||
class_start core
|
||||
class_start main
|
||||
|
||||
on nonencrypted
|
||||
class_start main
|
||||
class_start late_start
|
||||
|
||||
on property:vold.decrypt=trigger_default_encryption
|
||||
start surfaceflinger
|
||||
start defaultcrypto
|
||||
|
||||
on charger
|
||||
class_start charger
|
||||
|
||||
|
@ -529,6 +533,13 @@ service media /system/bin/mediaserver
|
|||
group audio camera inet net_bt net_bt_admin net_bw_acct drmrpc mediadrm
|
||||
ioprio rt 4
|
||||
|
||||
# One shot invocation to deal with encrypted volume.
|
||||
service defaultcrypto /system/bin/vdc --wait cryptfs mountdefaultencrypted
|
||||
disabled
|
||||
oneshot
|
||||
# vold will set vold.decrypt to trigger_restart_framework (default
|
||||
# encryption) or trigger_restart_min_framework (other encryption)
|
||||
|
||||
service bootanim /system/bin/bootanimation
|
||||
class main
|
||||
user graphics
|
||||
|
|
Loading…
Reference in New Issue