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

Commit 595e3ee3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "ActivityManagerService: all users can handle freezer state in debug builds" into rvc-qpr-dev

parents 2092b189 bbebaf7a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -20367,7 +20367,7 @@ public class ActivityManagerService extends IActivityManager.Stub
        int callerUid = Binder.getCallingUid();
        // Only system can toggle the freezer state
        if (callerUid == SYSTEM_UID) {
        if (callerUid == SYSTEM_UID || Build.IS_DEBUGGABLE) {
            return mOomAdjuster.mCachedAppOptimizer.enableFreezer(enable);
        } else {
            throw new SecurityException("Caller uid " + callerUid + " cannot set freezer state ");