diff options
author | Doug Zongker <dougz@android.com> | 2014-02-26 22:17:57 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-02-26 22:17:57 +0000 |
commit | 2f173bde6584f4c560ecc3f13f6e890f52815050 (patch) | |
tree | c2f6afc37a7cd65c411a6ccaf1eadbd8377ff262 /minadbd/adb.h | |
parent | ac189bf645123b4dc79cd2053f5eb07917774d66 (diff) | |
parent | 65ad928602479379187d6fbe1d924f0fd60bea0e (diff) | |
download | bootable_recovery-2f173bde6584f4c560ecc3f13f6e890f52815050.zip bootable_recovery-2f173bde6584f4c560ecc3f13f6e890f52815050.tar.gz bootable_recovery-2f173bde6584f4c560ecc3f13f6e890f52815050.tar.bz2 |
Merge "ADB sideload command not work"
Diffstat (limited to 'minadbd/adb.h')
-rw-r--r-- | minadbd/adb.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/minadbd/adb.h b/minadbd/adb.h index 688a6f2..d389165 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); |