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

Commit a913eded authored by Anna Bauza's avatar Anna Bauza Committed by Automerger Merge Worker
Browse files

Merge "fix: isMultiUserSupported in TestDevice does not reflect real value" am: 0529d280

parents 5c451057 0529d280
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -314,6 +314,8 @@ class PackageManagerShellCommand extends ShellCommand {
                    return runRemoveUser();
                case "set-user-restriction":
                    return runSetUserRestriction();
                case "supports-multiple-users":
                    return runSupportsMultipleUsers();
                case "get-max-users":
                    return runGetMaxUsers();
                case "get-max-running-users":
@@ -3014,6 +3016,12 @@ class PackageManagerShellCommand extends ShellCommand {
        return 0;
    }

    public int runSupportsMultipleUsers() {
        getOutPrintWriter().println("Is multiuser supported: "
                + UserManager.supportsMultipleUsers());
        return 0;
    }

    public int runGetMaxUsers() {
        getOutPrintWriter().println("Maximum supported users: "
                + UserManager.getMaxSupportedUsers());