Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b18b7ec authored by Stanislav Zholnin's avatar Stanislav Zholnin Committed by Automerger Merge Worker
Browse files

Merge "Make getHistoricalOps() properly handle multi-user functionality." into...

Merge "Make getHistoricalOps() properly handle multi-user functionality." into sc-dev am: 0dd90806 am: 9cf2fdc4

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15108422

Change-Id: I4144a07d76b4b93a50e0248847d634b023095e27
parents bd174c97 9cf2fdc4
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2341,8 +2341,9 @@ public class AppOpsService extends IAppOpsService.Stub {
            boolean isCallerSystem = Binder.getCallingPid() == Process.myPid();
            boolean isCallerPermissionController;
            try {
                isCallerPermissionController = pm.getPackageUid(
                        mContext.getPackageManager().getPermissionControllerPackageName(), 0)
                isCallerPermissionController = pm.getPackageUidAsUser(
                        mContext.getPackageManager().getPermissionControllerPackageName(), 0,
                        UserHandle.getUserId(Binder.getCallingUid()))
                        == Binder.getCallingUid();
            } catch (PackageManager.NameNotFoundException doesNotHappen) {
                return;