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

Commit 0dd90806 authored by Stanislav Zholnin's avatar Stanislav Zholnin Committed by Android (Google) Code Review
Browse files

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

parents 6c5c0235 b9be4d4d
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;