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

Commit e43bf4bb authored by Makoto Onuki's avatar Makoto Onuki Committed by Android (Google) Code Review
Browse files

Merge "Allow killApplicationWithAppId() on secondary users" into mnc-dev

parents d5e5151f fa24bd8a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;