summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nikhil Kumar <nykkumar@google.com> 2023-04-26 09:43:02 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-04-26 09:43:02 +0000
commit76ae0024ea4b6ea9bbb51e4e96ef5a9d847bc768 (patch)
tree4e24e007876827aa10818189670f8db9c64dfba9
parent1e9f13da3435d754456c5674a8b6b1fedcb6dc11 (diff)
parent0edb20374c63d66d0454f698fe80a545d36223ac (diff)
Merge "Get userId from stored CallingUid when calling identity is cleared" into udc-dev
-rw-r--r--services/core/java/com/android/server/am/ActiveServices.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/am/ActiveServices.java b/services/core/java/com/android/server/am/ActiveServices.java
index df3c95bdfaf3..678d58232f15 100644
--- a/services/core/java/com/android/server/am/ActiveServices.java
+++ b/services/core/java/com/android/server/am/ActiveServices.java
@@ -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;