DO NOT MERGE Change pm.dexopt.priv-apps to .priv-apps-oob

Other than the renaming, the meaning is now opposite.

Test: build
Bug: 67415855
Bug: 63920015

Change-Id: I349c0b233079b5958e4a308d6c7ad9b3a54f157a
This commit is contained in:
Victor Hsieh
2017-11-09 10:32:10 -08:00
parent 08d23cf07a
commit 66a285d9d7
3 changed files with 4 additions and 4 deletions

View File

@@ -3857,7 +3857,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;
}

View File

@@ -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.isPrivilegedApp()) {
return SystemProperties.getBoolean("pm.dexopt.priv-apps", true);
return !SystemProperties.getBoolean("pm.dexopt.priv-apps-oob", false);
}
return true;

View File

@@ -10270,7 +10270,7 @@ public class PackageManagerService extends IPackageManager.Stub
if (Build.IS_DEBUGGABLE &&
pkg.isPrivilegedApp() &&
!SystemProperties.getBoolean("pm.dexopt.priv-apps", true)) {
SystemProperties.getBoolean("pm.dexopt.priv-apps-oob", false)) {
PackageManagerServiceUtils.logPackageHasUncompressedCode(pkg);
}