adb: fix -d and -e options for "adb forward" command.
Change-Id: I9166572a1c398ce5ef1423d19a30895385118ee5 Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
parent
7359c16a85
commit
64e99545d4
|
@ -990,9 +990,13 @@ top:
|
|||
if(!strcmp(argv[0], "forward")) {
|
||||
if(argc != 3) return usage();
|
||||
if (serial) {
|
||||
snprintf(buf, sizeof buf, "host-serial:%s:forward:%s;%s",serial,argv[1],argv[2]);
|
||||
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]);
|
||||
snprintf(buf, sizeof buf, "host:forward:%s;%s", argv[1], argv[2]);
|
||||
}
|
||||
if(adb_command(buf)) {
|
||||
fprintf(stderr,"error: %s\n", adb_error());
|
||||
|
|
Loading…
Reference in New Issue