summaryrefslogtreecommitdiffstats
path: root/minadbd/transport_usb.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2012-03-19 23:52:03 +0100
committerDoug Zongker <dougz@android.com>2012-03-20 18:50:23 +0100
commit48704798ea79a4cf0a4024ffcd18fc11ca03a43c (patch)
tree87147fbc8fbc7a84cd246050368a987868fcc000 /minadbd/transport_usb.c
parentMerge "allow recovery UI to ignore certain keypresses" into ics-aah (diff)
downloadandroid_bootable_recovery-48704798ea79a4cf0a4024ffcd18fc11ca03a43c.tar
android_bootable_recovery-48704798ea79a4cf0a4024ffcd18fc11ca03a43c.tar.gz
android_bootable_recovery-48704798ea79a4cf0a4024ffcd18fc11ca03a43c.tar.bz2
android_bootable_recovery-48704798ea79a4cf0a4024ffcd18fc11ca03a43c.tar.lz
android_bootable_recovery-48704798ea79a4cf0a4024ffcd18fc11ca03a43c.tar.xz
android_bootable_recovery-48704798ea79a4cf0a4024ffcd18fc11ca03a43c.tar.zst
android_bootable_recovery-48704798ea79a4cf0a4024ffcd18fc11ca03a43c.zip
Diffstat (limited to 'minadbd/transport_usb.c')
-rw-r--r--minadbd/transport_usb.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/minadbd/transport_usb.c b/minadbd/transport_usb.c
index ee6b637b5..91cbf6151 100644
--- a/minadbd/transport_usb.c
+++ b/minadbd/transport_usb.c
@@ -23,10 +23,6 @@
#define TRACE_TAG TRACE_TRANSPORT
#include "adb.h"
-#if ADB_HOST
-#include "usb_vendors.h"
-#endif
-
#ifdef HAVE_BIG_ENDIAN
#define H4(x) (((x) & 0xFF000000) >> 24) | (((x) & 0x00FF0000) >> 8) | (((x) & 0x0000FF00) << 8) | (((x) & 0x000000FF) << 24)
static inline void fix_endians(apacket *p)
@@ -121,28 +117,5 @@ void init_usb_transport(atransport *t, usb_handle *h, int state)
t->type = kTransportUsb;
t->usb = h;
-#if ADB_HOST
- HOST = 1;
-#else
HOST = 0;
-#endif
-}
-
-#if ADB_HOST
-int is_adb_interface(int vid, int pid, int usb_class, int usb_subclass, int usb_protocol)
-{
- unsigned i;
- for (i = 0; i < vendorIdCount; i++) {
- if (vid == vendorIds[i]) {
- if (usb_class == ADB_CLASS && usb_subclass == ADB_SUBCLASS &&
- usb_protocol == ADB_PROTOCOL) {
- return 1;
- }
-
- return 0;
- }
- }
-
- return 0;
}
-#endif