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

Commit d4bab5f8 authored by Calin Juravle's avatar Calin Juravle Committed by Automerger Merge Worker
Browse files

Merge "Enforce system/root/shell for dexopt operation." am: c900ba3c am:...

Merge "Enforce system/root/shell for dexopt operation." am: c900ba3c am: 274d5098 am: ad770e97 am: b5d991b3

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699071

Change-Id: Ic681525cfb0d105978b9cda3c40c786fb771b9fd
parents a23add75 b5d991b3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -12131,6 +12131,8 @@ public class PackageManagerService extends IPackageManager.Stub
    public boolean performDexOptMode(String packageName,
            boolean checkProfiles, String targetCompilerFilter, boolean force,
            boolean bootComplete, String splitName) {
        enforceSystemOrRootOrShell("performDexOptMode");
        int flags = (checkProfiles ? DexoptOptions.DEXOPT_CHECK_FOR_PROFILES_UPDATES : 0) |
                (force ? DexoptOptions.DEXOPT_FORCE : 0) |
                (bootComplete ? DexoptOptions.DEXOPT_BOOT_COMPLETE : 0);