diff options
Diffstat (limited to 'adb/sockets.c')
| -rw-r--r-- | adb/sockets.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/adb/sockets.c b/adb/sockets.c index df223b13..a73fc621 100644 --- a/adb/sockets.c +++ b/adb/sockets.c @@ -598,6 +598,10 @@ unsigned unhex(unsigned char *s, int len) char *skip_host_serial(char *service) { char *first_colon, *serial_end; + if (!strncmp(service, "usb:", 4)) { + return strchr(service + 4, ':'); + } + first_colon = strchr(service, ':'); if (!first_colon) { /* No colon in service string. */ |
