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

Commit c900ba3c authored by Calin Juravle's avatar Calin Juravle Committed by Gerrit Code Review
Browse files

Merge "Enforce system/root/shell for dexopt operation."

parents ba32f574 f4a6ba88
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -9962,6 +9962,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);