diff options
| author | Xavier Ducrohet <xav@android.com> | 2009-05-21 17:47:43 -0700 |
|---|---|---|
| committer | Xavier Ducrohet <xav@android.com> | 2009-05-22 15:25:25 -0700 |
| commit | a481d096feba7cf6e61d54e416a68e2d46498df1 (patch) | |
| tree | 24c6057a3d3d5c960744c4cbed5c3c2918378089 /adb/adb.h | |
| parent | a09fbd164d2e088bc5433d310e25640ae048d47d (diff) | |
| download | system_core-a481d096feba7cf6e61d54e416a68e2d46498df1.tar.gz system_core-a481d096feba7cf6e61d54e416a68e2d46498df1.tar.bz2 system_core-a481d096feba7cf6e61d54e416a68e2d46498df1.zip | |
Support for 3rd party USB Vendor IDs in adb.
Vendor IDs are read from ~/.android/adb_usb.ini. The format is very simple:
1 number per line. First number is ID count, followed by the ID themselves.
Lines starting with # are considered comments.
Other misc changes: moved VENDOR_ID_* to usb_vendors.c to prevent direct
access. Made transport_usb.c reuse the USB constant introduced in usb_osx
(moved them to adb.h)
Diffstat (limited to 'adb/adb.h')
| -rw-r--r-- | adb/adb.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -357,11 +357,10 @@ typedef enum { #define ADB_PORT 5037 #define ADB_LOCAL_TRANSPORT_PORT 5555 -// Google's USB Vendor ID -#define VENDOR_ID_GOOGLE 0x18d1 +#define ADB_CLASS 0xff +#define ADB_SUBCLASS 0x42 +#define ADB_PROTOCOL 0x1 -// HTC's USB Vendor ID -#define VENDOR_ID_HTC 0x0bb4 void local_init(); int local_connect(int port); |
