Merge "Get userId from stored CallingUid when calling identity is cleared" into udc-dev

This commit is contained in:
Nikhil Kumar
2023-04-26 09:43:02 +00:00
committed by Android (Google) Code Review

View File

@@ -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;