blob: f2a8076fc80f3425d9d9a0aafc631c10cec1c054 [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
3 exec - root -- /system/bin/vdc --wait cryptfs mountdefaultencrypted
Tom Cherrya2859842015-08-14 13:06:45 -07004 # vold will set vold.decrypt to trigger_restart_framework (default
5 # encryption) or trigger_restart_min_framework (other encryption)
6
7# One shot invocation to encrypt unencrypted volumes
Paul Lawrence84274cc2016-04-15 15:41:33 -07008on encrypt
9 start surfaceflinger
Paul Lawrence7ee87cf2017-12-22 10:12:06 -080010 exec - root -- /system/bin/vdc --wait cryptfs enablecrypto
Tom Cherrya2859842015-08-14 13:06:45 -070011 # vold will set vold.decrypt to trigger_restart_framework (default
12 # encryption)