summaryrefslogtreecommitdiffstats
path: root/minadbd/adb.h
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2014-02-26 23:39:08 +0100
committerAndroid Git Automerger <android-git-automerger@android.com>2014-02-26 23:39:08 +0100
commita47996c6a34f796c551ab1db1e93c0a725c2aaee (patch)
treef218c526e41d2f25fc1373b93c7c8c61c58ad336 /minadbd/adb.h
parentam ed75be6d: am ac189bf6: Merge "recovery: Fix adb with linux 3.10" (diff)
parentam 2f173bde: Merge "ADB sideload command not work" (diff)
downloadandroid_bootable_recovery-a47996c6a34f796c551ab1db1e93c0a725c2aaee.tar
android_bootable_recovery-a47996c6a34f796c551ab1db1e93c0a725c2aaee.tar.gz
android_bootable_recovery-a47996c6a34f796c551ab1db1e93c0a725c2aaee.tar.bz2
android_bootable_recovery-a47996c6a34f796c551ab1db1e93c0a725c2aaee.tar.lz
android_bootable_recovery-a47996c6a34f796c551ab1db1e93c0a725c2aaee.tar.xz
android_bootable_recovery-a47996c6a34f796c551ab1db1e93c0a725c2aaee.tar.zst
android_bootable_recovery-a47996c6a34f796c551ab1db1e93c0a725c2aaee.zip
Diffstat (limited to '')
-rw-r--r--minadbd/adb.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/minadbd/adb.h b/minadbd/adb.h
index 688a6f273..d389165ae 100644
--- a/minadbd/adb.h
+++ b/minadbd/adb.h
@@ -406,6 +406,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);