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

Commit ea6c89b7 authored by Dmitry Dementyev's avatar Dmitry Dementyev Committed by Android (Google) Code Review
Browse files

Merge "Call getPackageUidAsUser using correct callingIdentity."

parents a28ad427 940b760f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -6154,8 +6154,13 @@ public class AccountManagerService
            }

            final int uid;
            try {
                long identityToken = clearCallingIdentity();
                try {
                    uid = mPackageManager.getPackageUidAsUser(packageName, userId);
                } finally {
                    restoreCallingIdentity(identityToken);
                }
            } catch (NameNotFoundException e) {
                Slog.e(TAG, "Unknown package " + packageName);
                return;