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

Commit ad770e97 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: 274d5098

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

Change-Id: I98b2c50a3694b67f41af7f9b4faf5c1648d3d8b6
parents 800b64ec 274d5098
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -9980,6 +9980,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);