diff options
author | Da Zhou <dza@broadcom.com> | 2014-01-17 01:04:07 -0800 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2014-05-03 22:07:45 +0200 |
commit | 99d38e035e53ea11a5cd82ddfce9d1001e72caa9 (patch) | |
tree | 4ec3fce11df96d87bb804ec5ffccf5464a53dc30 /minadbd/adb.h | |
parent | 0f7f15cb1bd8e8811dbb8a427557d13993761478 (diff) | |
download | bootable_recovery-replicant-4.2.zip bootable_recovery-replicant-4.2.tar.gz bootable_recovery-replicant-4.2.tar.bz2 |
ADB sideload command not workreplicant-4.2-0004replicant-4.2-0003replicant-4.2-0002replicant-4.2
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 <pierre@broadcom.com>
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 98fa597..1f28279 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); |