From 65ad928602479379187d6fbe1d924f0fd60bea0e Mon Sep 17 00:00:00 2001 From: Da Zhou Date: Fri, 17 Jan 2014 01:04:07 -0800 Subject: ADB sideload command not work In kernel(3.10) USB ADB gadget driver is removed. Using Functionfs for USB adb gadget. Android recovery uses a stripped down version of adb command for sideload only. It's missing the ffs function support, so add the ffs support to allow sideload command to work b/12608946 Change-Id: I4ad024723dfc5bdb544548391f99637c390b171e Signed-off-by: Pierre Couillaud --- minadbd/adb.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'minadbd/adb.h') diff --git a/minadbd/adb.h b/minadbd/adb.h index 98fa5972e..1f28279d3 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); -- cgit v1.2.3