Merge "DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles." into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e140322bde
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user