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

Commit 71da5078 authored by Kholoud Mohamed's avatar Kholoud Mohamed Committed by Automerger Merge Worker
Browse files

Merge "Fix bug in UserManager#getUserName" into sc-dev am: f3d4c0f9

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibdeee6d8b86d17ae40992d4a90d7173e066ca3d1
parents 1f4c4e0b f3d4c0f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1544,7 +1544,7 @@ public class UserManagerService extends IUserManager.Stub {
    public String getUserName() {
        final int callingUid = Binder.getCallingUid();
        if (!hasManageOrCreateUsersPermission()
                || hasPermissionGranted(
                && !hasPermissionGranted(
                        android.Manifest.permission.GET_ACCOUNTS_PRIVILEGED, callingUid)) {
            throw new SecurityException("You need MANAGE_USERS or CREATE_USERS or "
                    + "GET_ACCOUNTS_PRIVILEGED permissions to: get user name");