Get userId from stored CallingUid when calling identity is cleared
Test: atest ContextCrossProfileHostTest -c Bug: 279006975 Change-Id: I524797994218fee720a9168960b510a76a2f38ac
This commit is contained in:
@@ -3866,7 +3866,7 @@ public final class ActiveServices {
|
||||
if (UserHandle.isCore(callingUid)) {
|
||||
return;
|
||||
}
|
||||
final int callingUserId = UserHandle.getCallingUserId();
|
||||
final int callingUserId = UserHandle.getUserId(callingUid);
|
||||
if (callingUserId == userId
|
||||
|| !mAm.mUserController.isSameProfileGroup(callingUserId, userId)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user