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

Commit 5ef7e19a authored by Nicolas Prevot's avatar Nicolas Prevot
Browse files

Allow the system in other users to call startActivityAsCaller.

BUG: 17148852

Change-Id: I4c9811b7da90b5705e72001dd36bf67d559cb189
parent 5e85359a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3461,7 +3461,7 @@ public final class ActivityManagerService extends ActivityManagerNative
            if (sourceRecord.app == null) {
                throw new SecurityException("Called without a process attached to activity");
            }
            if (sourceRecord.app.uid != Process.SYSTEM_UID) {
            if (UserHandle.getAppId(sourceRecord.app.uid) != Process.SYSTEM_UID) {
                // This is still okay, as long as this activity is running under the
                // uid of the original calling activity.
                if (sourceRecord.app.uid != sourceRecord.launchedFromUid) {