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

Commit fba1d8d9 authored by Vladimir Marko's avatar Vladimir Marko Committed by android-build-merger
Browse files

Merge "Clear BOOTCLASSPATH for APP AOT compilation." am: 96602ece am: 85a962e5

am: 0cbf5c63

Change-Id: If1acdbc97b678b834162887dac57aeb7dba6f93a
parents 07698602 0cbf5c63
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1958,6 +1958,11 @@ int dexopt(const char* dex_path, uid_t uid, const char* pkgname, const char* ins
        /* child -- drop privileges before continuing */
        drop_capabilities(uid);

        // Clear BOOTCLASSPATH.
        // Let dex2oat use the BCP from boot image, excluding updatable BCP
        // modules for AOT to avoid app recompilation after their upgrades.
        unsetenv("BOOTCLASSPATH");

        SetDex2OatScheduling(boot_complete);
        if (flock(out_oat_fd.get(), LOCK_EX | LOCK_NB) != 0) {
            PLOG(ERROR) << "flock(" << out_oat_path << ") failed";