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

Commit cf0583e2 authored by Victor Hsieh's avatar Victor Hsieh
Browse files

Change pm.dexopt.priv-apps to .priv-apps-oob

Other than the renaming, the meaning is now opposite.

(cherry-picked from aosp/533101)

Test: build
Bug: 67415855
Bug: 63920015

Change-Id: I349c0b233079b5958e4a308d6c7ad9b3a54f157a
(cherry picked from commit 66a285d9)
parent b6ba2471
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3889,7 +3889,7 @@ public class ActivityManagerService extends IActivityManager.Stub
            }
            if (app.info.isPrivilegedApp() &&
                    !SystemProperties.getBoolean("pm.dexopt.priv-apps", true)) {
                    SystemProperties.getBoolean("pm.dexopt.priv-apps-oob", false)) {
                runtimeFlags |= Zygote.DISABLE_VERIFIER;
                runtimeFlags |= Zygote.ONLY_USE_SYSTEM_OAT_FILES;
            }
+2 −2
Original line number Diff line number Diff line
@@ -110,9 +110,9 @@ public class PackageDexOptimizer {
            return false;
        }

        // We do not dexopt a priv-app package when pm.dexopt.priv-apps is false.
        // We do not dexopt a priv-app package when pm.dexopt.priv-apps-oob is true.
        if (pkg.isPrivileged()) {
            return SystemProperties.getBoolean("pm.dexopt.priv-apps", true);
            return !SystemProperties.getBoolean("pm.dexopt.priv-apps-oob", false);
        }

        return true;
+1 −1
Original line number Diff line number Diff line
@@ -9598,7 +9598,7 @@ public class PackageManagerService extends IPackageManager.Stub
        if (Build.IS_DEBUGGABLE &&
                pkg.isPrivileged() &&
                !SystemProperties.getBoolean("pm.dexopt.priv-apps", true)) {
                SystemProperties.getBoolean("pm.dexopt.priv-apps-oob", false)) {
            PackageManagerServiceUtils.logPackageHasUncompressedCode(pkg);
        }