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

Commit 8528462f authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Remove command handling in PerfettoProtoLogImpl

The ProtoLog service is now in charge of handling all commands.

Test: n/a
Flag: android.tracing.client_side_proto_logging
Test: adb shell cmd window logging
Change-Id: I9d86ba789173c8712eb7984b73a910483161f23e
parent ce5d1c94
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -266,8 +266,15 @@ public class PerfettoProtoLogImpl extends IProtoLogClient.Stub implements IProto
    /**
     * Responds to a shell command.
     */
    @Deprecated
    public int onShellCommand(ShellCommand shell) {
        PrintWriter pw = shell.getOutPrintWriter();

        if (android.tracing.Flags.clientSideProtoLogging()) {
            pw.println("Command deprecated. Please use 'cmd protolog' instead.");
            return -1;
        }

        String cmd = shell.getNextArg();
        if (cmd == null) {
            return unknownCommand(pw);