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

Commit d1a5f674 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Add missing isShellUser check"

parents 6772bd1e 03542611
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3318,6 +3318,9 @@ public class ActivityManagerService extends IActivityManager.Stub
    @Override
    public boolean setProcessMemoryTrimLevel(String process, int userId, int level)
            throws RemoteException {
        if (!isCallerShell()) {
            throw new SecurityException("Only shell can call it");
        }
        synchronized (this) {
            final ProcessRecord app = findProcessLocked(process, userId, "setProcessMemoryTrimLevel");
            if (app == null) {