Remove vdc.rc
Now that FDE is no longer supported, the "defaultcrypto" and "encrypt"
events are never triggered. Therefore, the actions in vdc.rc aren't
needed anymore.
Bug: 191796797
Change-Id: Icdff584ec664b3e038f0accdc826437d261fed51
diff --git a/Android.bp b/Android.bp
index 2b2d91c..4750d1a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -233,7 +233,6 @@
static_libs: [
"libvold_binder",
],
- init_rc: ["vdc.rc"],
}
cc_binary {
diff --git a/vdc.rc b/vdc.rc
deleted file mode 100644
index f2a8076..0000000
--- a/vdc.rc
+++ /dev/null
@@ -1,12 +0,0 @@
-# One shot invocation to deal with encrypted volume.
-on defaultcrypto
- exec - root -- /system/bin/vdc --wait cryptfs mountdefaultencrypted
- # 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
-on encrypt
- start surfaceflinger
- exec - root -- /system/bin/vdc --wait cryptfs enablecrypto
- # vold will set vold.decrypt to trigger_restart_framework (default
- # encryption)