Merge "UserController.switchUser accepts MANAGE_USERS"

This commit is contained in:
TreeHugger Robot
2019-08-24 05:46:23 +00:00
committed by Android (Google) Code Review

View File

@@ -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);