diff options
| author | 2020-12-11 15:22:58 +0000 | |
|---|---|---|
| committer | 2020-12-11 15:22:58 +0000 | |
| commit | adf390d7a03cb7cb0a1141f54e6efa1674eb6359 (patch) | |
| tree | 99f3f736389a43e88808f006d0f2db4dda20df60 | |
| parent | 24756e39ebea0ef78fe16b1df28f2f4eef7b7841 (diff) | |
| parent | 633e1fbfedac66919a1e960640aa29376dd886dd (diff) | |
Merge "Revert "installd: Fix set dex2oat to background after boot_complete""
| -rw-r--r-- | cmds/installd/dexopt.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cmds/installd/dexopt.cpp b/cmds/installd/dexopt.cpp index 65fc46ecaf..594880ac60 100644 --- a/cmds/installd/dexopt.cpp +++ b/cmds/installd/dexopt.cpp @@ -1818,13 +1818,10 @@ int dexopt(const char* dex_path, uid_t uid, const char* pkgname, const char* ins pid_t pid = fork(); if (pid == 0) { - // Need to set schedpolicy before dropping privileges - // for cgroup migration. See details at b/175178520. - SetDex2OatScheduling(boot_complete); - /* child -- drop privileges before continuing */ drop_capabilities(uid); + SetDex2OatScheduling(boot_complete); if (flock(out_oat.fd(), LOCK_EX | LOCK_NB) != 0) { PLOG(ERROR) << "flock(" << out_oat.path() << ") failed"; _exit(DexoptReturnCodes::kFlock); |