Microdroid_manager starts before apexd
Microdroid_manager should verify payloads (APEXes, APK) before anything
else (including apexd reading APEXes, apkdmverity/zipfuse reading APK).
In order to start before apexd, it should be "bootstrap" process (since
it can't rely on any apexes including bionic).
Bug: 190343842
Test: MicrodroidHostTestCases
Change-Id: I682555822fb8f73ea160c4a2ac379549dde35329
diff --git a/microdroid/init.rc b/microdroid/init.rc
index 45d9398..043577d 100644
--- a/microdroid/init.rc
+++ b/microdroid/init.rc
@@ -17,6 +17,7 @@
start ueventd
+ start microdroid_manager
# TODO(b/190343842) verify apexes/apk before mounting them.
# Exec apexd in the VM mode to avoid unnecessary overhead of normal mode.
@@ -81,10 +82,6 @@
start adbd
- # TODO(b/186396070) microdroid_manager starts zipfuse if necessary
- # TODO(b/186396070) move this before apexd for DICE derivation
- start microdroid_manager
-
on load_persist_props_action
start logd
start logd-reinit