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