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

Commit 3400c3e8 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Update "clear-bad-process" command consistent with others.

Take optional params before the necessary arguments.

Bug: 390727489
Test: atest tests/app/src/android/app/cts/BroadcastOptionsIntegrationTest.java
Flag: TEST_ONLY
Change-Id: I05332821d2ce99e475a7ffbdb1f0a3a6b0078385
parent 81c2274b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4279,7 +4279,6 @@ final class ActivityManagerShellCommand extends ShellCommand {
    }

    int runClearBadProcess(PrintWriter pw) throws RemoteException {
        final String processName = getNextArgRequired();
        int userId = UserHandle.USER_CURRENT;
        String opt;
        while ((opt = getNextOption()) != null) {
@@ -4290,6 +4289,7 @@ final class ActivityManagerShellCommand extends ShellCommand {
                return -1;
            }
        }
        final String processName = getNextArgRequired();
        if (userId == UserHandle.USER_CURRENT) {
            userId = mInternal.getCurrentUserId();
        }