Merge "Allow apps with CREATE_USERS permission to call UM.getUserInfo." into nyc-dev

This commit is contained in:
TreeHugger Robot
2016-06-15 01:02:32 +00:00
committed by Android (Google) Code Review

View File

@@ -798,7 +798,7 @@ public class UserManagerService extends IUserManager.Stub {
@Override
public UserInfo getUserInfo(int userId) {
checkManageUsersPermission("query user");
checkManageOrCreateUsersPermission("query user");
synchronized (mUsersLock) {
return userWithName(getUserInfoLU(userId));
}