diff --git a/init/reboot.cpp b/init/reboot.cpp index 4c27a5608..1f4186dab 100644 --- a/init/reboot.cpp +++ b/init/reboot.cpp @@ -567,6 +567,11 @@ int StopServicesAndLogViolations(const std::set& services, } static Result UnmountAllApexes() { + // don't need to unmount because apexd doesn't use /data in Microdroid + if (IsMicrodroid()) { + return {}; + } + const char* args[] = {"/system/bin/apexd", "--unmount-all"}; int status; if (logwrap_fork_execvp(arraysize(args), args, &status, false, LOG_KLOG, true, nullptr) != 0) {