diff options
| -rw-r--r-- | services/core/java/com/android/server/am/ActivityManagerService.java | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index 421ba86ff516..e9b9767194f2 100644 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java @@ -5267,7 +5267,7 @@ public final class ActivityManagerService extends ActivityManagerNative          }          int callerUid = Binder.getCallingUid();          // Only the system server can kill an application -        if (callerUid == Process.SYSTEM_UID) { +        if (UserHandle.getAppId(callerUid) == Process.SYSTEM_UID) {              // Post an aysnc message to kill the application              Message msg = mHandler.obtainMessage(KILL_APPLICATION_MSG);              msg.arg1 = appid;  |