diff options
| -rw-r--r-- | services/core/java/com/android/server/am/ActivityStarter.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/am/ActivityStarter.java b/services/core/java/com/android/server/am/ActivityStarter.java index 6614e638b983..9c7eb9562721 100644 --- a/services/core/java/com/android/server/am/ActivityStarter.java +++ b/services/core/java/com/android/server/am/ActivityStarter.java @@ -608,7 +608,13 @@ class ActivityStarter { // app in a locked managed profile from an unlocked parent allow it to resolve // as user will be sent via confirm credentials to unlock the profile. UserManager userManager = UserManager.get(mService.mContext); - UserInfo parent = userManager.getProfileParent(userId); + UserInfo parent = null; + long token = Binder.clearCallingIdentity(); + try { + parent = userManager.getProfileParent(userId); + } finally { + Binder.restoreCallingIdentity(token); + } if (parent != null && userManager.isUserUnlocked(parent.getUserHandle()) && !userManager.isUserUnlocked(userInfo.getUserHandle())) { |