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

Commit 2a9844c5 authored by Nicolas Prevot's avatar Nicolas Prevot Committed by Android Git Automerger
Browse files

am b5b6f33e: am ea6f0c52: Fixing cross-user content.

* commit 'b5b6f33e777a62fc400e21ab73c2a78ba1c974e9':
  Fixing cross-user content.
parents cfd1fa63 6cb4f0c9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -8060,8 +8060,8 @@ public final class ActivityManagerService extends ActivityManagerNative
        boolean checkedGrants = false;
        if (checkUser) {
            // Looking for cross-user grants before enforcing the typical cross-users permissions
            int tmpTargetUserId = unsafeConvertIncomingUser(UserHandle.getUserId(callingUid));
            if (tmpTargetUserId != userId) {
            int tmpTargetUserId = unsafeConvertIncomingUser(userId);
            if (tmpTargetUserId != UserHandle.getUserId(callingUid)) {
                if (checkAuthorityGrants(callingUid, cpi, tmpTargetUserId, checkUser)) {
                    return null;
                }