summaryrefslogtreecommitdiffstats
path: root/minadbd/adb.h
diff options
context:
space:
mode:
authorDa Zhou <dza@broadcom.com>2014-01-17 10:04:07 +0100
committerDees Troy <dees_troy@teamw.in>2014-10-07 20:43:53 +0200
commitd432deb371186d29af75781b497d2f1d7050c679 (patch)
tree638acdec7ed1b6c4230c23ffbe28ffc564047916 /minadbd/adb.h
parentCheck sehandle before fixing permissions (diff)
downloadandroid_bootable_recovery-d432deb371186d29af75781b497d2f1d7050c679.tar
android_bootable_recovery-d432deb371186d29af75781b497d2f1d7050c679.tar.gz
android_bootable_recovery-d432deb371186d29af75781b497d2f1d7050c679.tar.bz2
android_bootable_recovery-d432deb371186d29af75781b497d2f1d7050c679.tar.lz
android_bootable_recovery-d432deb371186d29af75781b497d2f1d7050c679.tar.xz
android_bootable_recovery-d432deb371186d29af75781b497d2f1d7050c679.tar.zst
android_bootable_recovery-d432deb371186d29af75781b497d2f1d7050c679.zip
Diffstat (limited to 'minadbd/adb.h')
-rw-r--r--minadbd/adb.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/minadbd/adb.h b/minadbd/adb.h
index 19c22e8ea..c899b5862 100644
--- a/minadbd/adb.h
+++ b/minadbd/adb.h
@@ -410,6 +410,17 @@ extern int SHELL_EXIT_NOTIFY_FD;
#define CHUNK_SIZE (64*1024)
+#if !ADB_HOST
+#define USB_ADB_PATH "/dev/android_adb"
+
+#define USB_FFS_ADB_PATH "/dev/usb-ffs/adb/"
+#define USB_FFS_ADB_EP(x) USB_FFS_ADB_PATH#x
+
+#define USB_FFS_ADB_EP0 USB_FFS_ADB_EP(ep0)
+#define USB_FFS_ADB_OUT USB_FFS_ADB_EP(ep1)
+#define USB_FFS_ADB_IN USB_FFS_ADB_EP(ep2)
+#endif
+
int sendfailmsg(int fd, const char *reason);
int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s);