Merge "UserController.switchUser accepts MANAGE_USERS"
This commit is contained in:
committed by
Android (Google) Code Review
commit
1ae707d394
@@ -1342,7 +1342,6 @@ class UserController implements Handler.Callback {
|
||||
}
|
||||
|
||||
boolean switchUser(final int targetUserId) {
|
||||
checkCallingPermission(INTERACT_ACROSS_USERS_FULL, "switchUser");
|
||||
enforceShellRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES, targetUserId);
|
||||
int currentUserId = getCurrentUserId();
|
||||
UserInfo targetUserInfo = getUserInfo(targetUserId);
|
||||
|
||||
Reference in New Issue
Block a user