am b5b6f33e: am ea6f0c52: Fixing cross-user content.
* commit 'b5b6f33e777a62fc400e21ab73c2a78ba1c974e9': Fixing cross-user content.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user