Loading services/core/java/com/android/server/am/ActivityManagerService.java +16 −16 Original line number Diff line number Diff line Loading @@ -3663,6 +3663,22 @@ public class ActivityManagerService extends IActivityManager.Stub throw new SecurityException(msg); } final int callingUid = Binder.getCallingUid(); final int callingPid = Binder.getCallingPid(); ProcessRecord proc; synchronized (mPidsSelfLocked) { proc = mPidsSelfLocked.get(callingPid); } if (callingUid >= FIRST_APPLICATION_UID && (proc == null || !proc.info.isSystemApp())) { final String msg = "Permission Denial: killAllBackgroundProcesses() from pid=" + callingPid + ", uid=" + callingUid + " is not allowed"; Slog.w(TAG, msg); // Silently return to avoid existing apps from crashing. return; } final long callingId = Binder.clearCallingIdentity(); try { synchronized (this) { Loading Loading @@ -3703,22 +3719,6 @@ public class ActivityManagerService extends IActivityManager.Stub throw new SecurityException(msg); } final int callingUid = Binder.getCallingUid(); final int callingPid = Binder.getCallingPid(); ProcessRecord proc; synchronized (mPidsSelfLocked) { proc = mPidsSelfLocked.get(callingPid); } if (callingUid >= FIRST_APPLICATION_UID && (proc == null || !proc.info.isSystemApp())) { final String msg = "Permission Denial: killAllBackgroundProcesses() from pid=" + callingPid + ", uid=" + callingUid + " is not allowed"; Slog.w(TAG, msg); // Silently return to avoid existing apps from crashing. return; } final long callingId = Binder.clearCallingIdentity(); try { synchronized (this) { Loading Loading
services/core/java/com/android/server/am/ActivityManagerService.java +16 −16 Original line number Diff line number Diff line Loading @@ -3663,6 +3663,22 @@ public class ActivityManagerService extends IActivityManager.Stub throw new SecurityException(msg); } final int callingUid = Binder.getCallingUid(); final int callingPid = Binder.getCallingPid(); ProcessRecord proc; synchronized (mPidsSelfLocked) { proc = mPidsSelfLocked.get(callingPid); } if (callingUid >= FIRST_APPLICATION_UID && (proc == null || !proc.info.isSystemApp())) { final String msg = "Permission Denial: killAllBackgroundProcesses() from pid=" + callingPid + ", uid=" + callingUid + " is not allowed"; Slog.w(TAG, msg); // Silently return to avoid existing apps from crashing. return; } final long callingId = Binder.clearCallingIdentity(); try { synchronized (this) { Loading Loading @@ -3703,22 +3719,6 @@ public class ActivityManagerService extends IActivityManager.Stub throw new SecurityException(msg); } final int callingUid = Binder.getCallingUid(); final int callingPid = Binder.getCallingPid(); ProcessRecord proc; synchronized (mPidsSelfLocked) { proc = mPidsSelfLocked.get(callingPid); } if (callingUid >= FIRST_APPLICATION_UID && (proc == null || !proc.info.isSystemApp())) { final String msg = "Permission Denial: killAllBackgroundProcesses() from pid=" + callingPid + ", uid=" + callingUid + " is not allowed"; Slog.w(TAG, msg); // Silently return to avoid existing apps from crashing. return; } final long callingId = Binder.clearCallingIdentity(); try { synchronized (this) { Loading