Merge "Change pm.dexopt.priv-apps to .priv-apps-oob"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e465e608e4
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user