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

Commit df85cadb authored by Roy Luo's avatar Roy Luo Committed by Android (Google) Code Review
Browse files

Merge "usb: add svc usb command to test enableUsbDataSignal" into main

parents 826b2ac8 365acf17
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -77,7 +77,9 @@ public class UsbCommand extends Svc.Command {
                + "         'V1_2', 'V1_3'\n"
                + "       svc usb resetUsbPort [port number]\n"
                + "         Reset the specified connected usb port\n"
                + "         default: the first connected usb port\n";
                + "         default: the first connected usb port\n"
                + "       svc usb enableUsbDataSignal [enable]\n"
                + "         Toggle USB data signaling, possible values are `true` and `false`\n";
    }

    @Override
@@ -213,6 +215,9 @@ public class UsbCommand extends Svc.Command {
                    System.err.println("Error communicating with UsbManager: " + e);
                }
                return;
            } else if ("enableUsbDataSignal".equals(args[1])) {
                usbManager.enableUsbDataSignal(Boolean.parseBoolean(args[2]));
                return;
            }
        }
        System.err.println(longHelp());