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

Commit fa24bd8a authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Allow killApplicationWithAppId() on secondary users

Bug 20949609

Change-Id: If0e766aeb3e8b4aa6aebed3b75bcedd75251e382
parent 9f6d39f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -5267,7 +5267,7 @@ public final class ActivityManagerService extends ActivityManagerNative
        }
        }
        int callerUid = Binder.getCallingUid();
        int callerUid = Binder.getCallingUid();
        // Only the system server can kill an application
        // 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
            // Post an aysnc message to kill the application
            Message msg = mHandler.obtainMessage(KILL_APPLICATION_MSG);
            Message msg = mHandler.obtainMessage(KILL_APPLICATION_MSG);
            msg.arg1 = appid;
            msg.arg1 = appid;