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.c | |
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.c')
-rw-r--r-- | minadbd/adb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/minadbd/adb.c b/minadbd/adb.c index da25b6b..4a1cbaa 100644 --- a/minadbd/adb.c +++ b/minadbd/adb.c @@ -388,7 +388,7 @@ int adb_main() init_transport_registration(); // The minimal version of adbd only uses USB. - if (access("/dev/android_adb", F_OK) == 0) { + if (access(USB_ADB_PATH, F_OK) == 0 || access(USB_FFS_ADB_EP0, F_OK) == 0) { // listen on USB LOGE("listen on USB\n"); usb_init(); |