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

Commit bf43d480 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Call getPackageUidAsUser instead of getPackageUid"

parents ac3a47c7 62477e50
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4325,7 +4325,7 @@ public class AppOpsService extends IAppOpsService.Stub {
                    } else if (shell.targetsUid && shell.packageName != null) {
                        try {
                            final int uid = shell.mInternal.mContext.getPackageManager()
                                    .getPackageUid(shell.packageName, shell.userId);
                                    .getPackageUidAsUser(shell.packageName, shell.userId);
                            shell.mInterface.setUidMode(shell.op, uid, mode);
                        } catch (PackageManager.NameNotFoundException e) {
                            return -1;