Merge "Don't unmount APEXes in microdroid"

This commit is contained in:
Inseob Kim 2022-11-09 09:57:09 +00:00 committed by Gerrit Code Review
commit cb4c7d56e8

View file

@ -567,6 +567,11 @@ int StopServicesAndLogViolations(const std::set<std::string>& services,
}
static Result<void> 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) {