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

Commit 88819f07 authored by Mathieu Chartier's avatar Mathieu Chartier Committed by Android (Google) Code Review
Browse files

Merge "Add handling for preferCodeIntegrity"

parents 9824ab02 d2fd802f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -480,8 +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()) {
            if (appInfo.isPrivilegedApp() || appInfo.isCodeIntegrityPreferred()) {
                // Privileged apps prefer to load trusted code so they don't use compiled views.
                // If the app is not privileged but prefers code integrity, also avoid compiling
                // views.
                return false;
            }
            Log.i("PackageManager", "Compiling layouts in " + packageName + " (" + apkPath +