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

Commit a5dcf5b6 authored by Felipe Leme's avatar Felipe Leme
Browse files

Support cur on am logout-user

Test: adb shell am logout-user cur
Bug: 393646157
Flag: EXEMPT debugging feature

Change-Id: Ie6768e6cc37e4e61e6285b582fb2fa80916ebc5d
parent acee2b54
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;