Merge "Disable view compilation for privileged apps"
am: 3c496729de
Change-Id: Ice8a1710b04f93036dcdc831402d8975528f3fc2
This commit is contained in:
@@ -480,6 +480,10 @@ public class ArtManagerService extends android.content.pm.dex.IArtManager.Stub {
|
||||
final String apkPath = pkg.baseCodePath;
|
||||
final ApplicationInfo appInfo = pkg.applicationInfo;
|
||||
final String outDexFile = appInfo.dataDir + "/code_cache/compiled_view.dex";
|
||||
if (appInfo.isPrivilegedApp()) {
|
||||
// Privileged apps prefer to load trusted code so they don't use compiled views.
|
||||
return false;
|
||||
}
|
||||
Log.i("PackageManager", "Compiling layouts in " + packageName + " (" + apkPath +
|
||||
") to " + outDexFile);
|
||||
long callingId = Binder.clearCallingIdentity();
|
||||
|
||||
Reference in New Issue
Block a user