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

Commit 68027af7 authored by Mathieu Chartier's avatar Mathieu Chartier Committed by android-build-merger
Browse files

Merge "Disable view compilation for privileged apps" am: 3c496729 am: ff52af9c

am: b8b007cb

Change-Id: Ib297b9c14fda2d49200661c7c6836c6242dfb11b
parents fc1eea64 b8b007cb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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();