Allow apps with CREATE_USERS permission to call UM.getProfiles.
am: 7468091329
Change-Id: I8025b2876167e8f39046bbe65463a2225ac1ecd1
This commit is contained in:
@@ -548,7 +548,7 @@ public class UserManagerService extends IUserManager.Stub {
|
||||
public List<UserInfo> getProfiles(int userId, boolean enabledOnly) {
|
||||
boolean returnFullInfo = true;
|
||||
if (userId != UserHandle.getCallingUserId()) {
|
||||
checkManageUsersPermission("getting profiles related to user " + userId);
|
||||
checkManageOrCreateUsersPermission("getting profiles related to user " + userId);
|
||||
} else {
|
||||
returnFullInfo = hasManageUsersPermission();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user