summaryrefslogtreecommitdiff
path: root/vdc.rc
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2015-08-14 13:06:45 -0700
committerTom Cherry <tomcherry@google.com>2015-08-19 17:36:11 -0700
commita285984ae404b89e87a1f97486bf8f9c8a0fab0f (patch)
tree7b904a7237db88d7dd7c70fd596b39f5b330afdf /vdc.rc
parentf298f6be4c8df8745735676e37ccc963909ff3b2 (diff)
downloadvold-a285984ae404b89e87a1f97486bf8f9c8a0fab0f.tar.gz
bundle init.rc contents with its service
Bug: 23186545 Change-Id: I82d8b6dc54ebe32ceb1ed997aaab3701ee7b6c4a
Diffstat (limited to 'vdc.rc')
-rw-r--r--vdc.rc13
1 files changed, 13 insertions, 0 deletions
diff --git a/vdc.rc b/vdc.rc
new file mode 100644
index 00000000..e8428697
--- /dev/null
+++ b/vdc.rc
@@ -0,0 +1,13 @@
+# 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)
+
+# One shot invocation to encrypt unencrypted volumes
+service encrypt /system/bin/vdc --wait cryptfs enablecrypto inplace default
+ disabled
+ oneshot
+ # vold will set vold.decrypt to trigger_restart_framework (default
+ # encryption)