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

Commit 9a77ae3f authored by Dario Freni's avatar Dario Freni Committed by Automerger Merge Worker
Browse files

Merge "Revert "installd: Fix set dex2oat to background after boot_complete""...

Merge "Revert "installd: Fix set dex2oat to background after boot_complete"" am: adf390d7 am: 5bac4ed7 am: a3ee5ad5

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1525942

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2ee83050a017ea14491fce596bd929fc6823e510
parents 44eb4554 a3ee5ad5
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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);