Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2c9d5ca authored by Adam Bookatz's avatar Adam Bookatz
Browse files

Remove flag: get_user_switchability_permission

Flag is eligible for cleanup/removal.

Bug: 390458180
Bug: 419132893
Flag: EXEMPT removal
Test: compiles
Change-Id: I7bb2abb50d13a1609c0ab54b7aaa913a7b55356c
parent a302a178
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -348,16 +348,6 @@ flag {
    bug: "338579331"
}

flag {
  name: "get_user_switchability_permission"
  namespace: "multiuser"
  description: "Update permissions for getUserSwitchability"
  bug: "390458180"
  metadata {
    purpose: PURPOSE_BUGFIX
  }
}

flag {
    name: "restrict_quiet_mode_credential_bug_fix_to_managed_profiles"
    namespace: "profile_experiences"
+3 −10
Original line number Diff line number Diff line
@@ -3037,17 +3037,10 @@ public class UserManagerService extends IUserManager.Stub {
     */
    @Override
    public @UserManager.UserSwitchabilityResult int getUserSwitchability(@UserIdInt int userId) {
        if (Flags.getUserSwitchabilityPermission()) {
        if (!hasManageUsersOrPermission(android.Manifest.permission.INTERACT_ACROSS_USERS)) {
                throw new SecurityException(
                        "You need MANAGE_USERS or INTERACT_ACROSS_USERS permission to "
                                + "getUserSwitchability");
            throw new SecurityException("You need MANAGE_USERS or INTERACT_ACROSS_USERS permission "
                    + "to getUserSwitchability");
        }
        } else {
            checkManageOrInteractPermissionIfCallerInOtherProfileGroup(userId,
                    "getUserSwitchability");
        }

        final TimingsTraceAndSlog t = new TimingsTraceAndSlog();
        t.traceBegin("getUserSwitchability-" + userId);