Tom Cherry | a285984 | 2015-08-14 13:06:45 -0700 | [diff] [blame] | 1 | # One shot invocation to deal with encrypted volume. |
Paul Lawrence | 84274cc | 2016-04-15 15:41:33 -0700 | [diff] [blame] | 2 | on defaultcrypto |
Paul Lawrence | 3963b23 | 2017-04-25 09:26:56 -0700 | [diff] [blame^] | 3 | start vold |
Paul Lawrence | 84274cc | 2016-04-15 15:41:33 -0700 | [diff] [blame] | 4 | exec - root -- /system/bin/vdc --wait cryptfs mountdefaultencrypted |
Tom Cherry | a285984 | 2015-08-14 13:06:45 -0700 | [diff] [blame] | 5 | # 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 Lawrence | 84274cc | 2016-04-15 15:41:33 -0700 | [diff] [blame] | 9 | on encrypt |
| 10 | start surfaceflinger |
Paul Lawrence | 3963b23 | 2017-04-25 09:26:56 -0700 | [diff] [blame^] | 11 | start vold |
Paul Lawrence | 84274cc | 2016-04-15 15:41:33 -0700 | [diff] [blame] | 12 | exec - root -- /system/bin/vdc --wait cryptfs enablecrypto inplace default noui |
Tom Cherry | a285984 | 2015-08-14 13:06:45 -0700 | [diff] [blame] | 13 | # vold will set vold.decrypt to trigger_restart_framework (default |
| 14 | # encryption) |