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

Commit 375ac82e authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Support cur on am logout-user" into main

parents 705beb0e a5dcf5b6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3113,6 +3113,9 @@ final class ActivityManagerShellCommand extends ShellCommand {

    int runLogoutUser(PrintWriter pw) {
        int userId = UserHandle.parseUserArg(getNextArgRequired());
        if (userId == UserHandle.USER_CURRENT) {
            userId = mInternal.getCurrentUserId();
        }
        if (!mInternal.logoutUser(userId)) {
            getErrPrintWriter().println("Failed to logout user: " + userId);
            return -1;