Add support for Samsung and Motorola devices.
Also update the linux code. Some devices have more complex USB descriptors
which can't be parsed with the simple assumption of just skipping the
endpoint descriptors.
diff --git a/adb/usb_linux.c b/adb/usb_linux.c
index 95c2ce6..537122d 100644
--- a/adb/usb_linux.c
+++ b/adb/usb_linux.c
@@ -318,9 +318,13 @@
found_device = 1;
break;
} else {
- // skip to next interface
- bufptr += (interface->bNumEndpoints * USB_DT_ENDPOINT_SIZE);
- }
+ // seek next interface descriptor
+ if (i < interfaces - 1) {
+ while (bufptr[1] != USB_DT_INTERFACE) {
+ bufptr += bufptr[0];
+ }
+ }
+ }
} // end of for
adb_close(fd);