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

Commit 2349d0de 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: 8a8d7e79

Change-Id: Id3a971b538618801f97abe0bd1d03d11d2b8118c
parents bfdf9592 8a8d7e79
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -301,7 +301,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 {