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

Commit a59387b5 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

adb: fix -d and -e options for "adb forward" command.



Change-Id: I9166572a1c398ce5ef1423d19a30895385118ee5
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 303254eb
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -991,6 +991,10 @@ top:
        if(argc != 3) return usage();
        if (serial) {
            snprintf(buf, sizeof buf, "host-serial:%s:forward:%s;%s",serial, argv[1], argv[2]);
        } else if (ttype == kTransportUsb) {
            snprintf(buf, sizeof buf, "host-usb:forward:%s;%s", argv[1], argv[2]);
        } else if (ttype == kTransportLocal) {
            snprintf(buf, sizeof buf, "host-local:forward:%s;%s", argv[1], argv[2]);
        } else {
            snprintf(buf, sizeof buf, "host:forward:%s;%s", argv[1], argv[2]);
        }