Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb4c7d56 authored by Inseob Kim's avatar Inseob Kim Committed by Gerrit Code Review
Browse files

Merge "Don't unmount APEXes in microdroid"

parents 2a501a11 0fbc1d7e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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) {