blob: 9a957790da0a3a7153f41f1173b6849de36745ba [file] [log] [blame]
Tom Cherrya2859842015-08-14 13:06:45 -07001# One shot invocation to deal with encrypted volume.
Paul Lawrence84274cc2016-04-15 15:41:33 -07002on defaultcrypto
Paul Lawrence3963b232017-04-25 09:26:56 -07003 start vold
Paul Lawrence84274cc2016-04-15 15:41:33 -07004 exec - root -- /system/bin/vdc --wait cryptfs mountdefaultencrypted
Tom Cherrya2859842015-08-14 13:06:45 -07005 # vold will set vold.decrypt to trigger_restart_framework (default
6 # encryption) or trigger_restart_min_framework (other encryption)
7
8# One shot invocation to encrypt unencrypted volumes
Paul Lawrence84274cc2016-04-15 15:41:33 -07009on encrypt
10 start surfaceflinger
Paul Lawrence3963b232017-04-25 09:26:56 -070011 start vold
Paul Lawrence84274cc2016-04-15 15:41:33 -070012 exec - root -- /system/bin/vdc --wait cryptfs enablecrypto inplace default noui
Tom Cherrya2859842015-08-14 13:06:45 -070013 # vold will set vold.decrypt to trigger_restart_framework (default
14 # encryption)