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

Commit f01ee1c2 authored by Sudheer Shanka's avatar Sudheer Shanka Committed by android-build-merger
Browse files

DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles. am: 7ef68471

am: 9f6bd401

Change-Id: Id8afe281abcf8e9b07d7a92daacf922952273573
parents b8d3dd24 9f6bd401
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -284,7 +284,7 @@ public class UserManagerService extends IUserManager.Stub {
    @Override
    public List<UserInfo> getProfiles(int userId, boolean enabledOnly) {
        if (userId != UserHandle.getCallingUserId()) {
            checkManageUsersPermission("getting profiles related to user " + userId);
            checkManageOrCreateUsersPermission("getting profiles related to user " + userId);
        }
        final long ident = Binder.clearCallingIdentity();
        try {