am 06a9e5b8: am b5b6f33e: am ea6f0c52: Fixing cross-user content.
* commit '06a9e5b8fd3abccdc2c24ec53b2fcb484948402b': 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