diff options
| author | Badhri Jagan Sridharan <Badhri@google.com> | 2015-04-21 11:09:32 -0700 | 
|---|---|---|
| committer | Badhri Jagan Sridharan <Badhri@google.com> | 2015-04-21 12:44:31 -0700 | 
| commit | 5f97370babbe465e82c2aefe9864848af6796113 (patch) | |
| tree | 267b657e8ccdfb9b5591d7524d53ed1a107baf81 /adb | |
| parent | e434ad1dd799551830019a7bd2871dec226bdcd2 (diff) | |
| download | system_core-5f97370babbe465e82c2aefe9864848af6796113.zip system_core-5f97370babbe465e82c2aefe9864848af6796113.tar.gz system_core-5f97370babbe465e82c2aefe9864848af6796113.tar.bz2 | |
adb: set sys.usb.ffs.ready to signal usb pullup
This change sets sys.usb.ffs.ready to 1 to
trigger configfs based enumeration.
Change-Id: I222495fc667cce59675579069d164b0b484f3653
Diffstat (limited to 'adb')
| -rw-r--r-- | adb/usb_linux_client.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/adb/usb_linux_client.cpp b/adb/usb_linux_client.cpp index 343f20c..6d21104 100644 --- a/adb/usb_linux_client.cpp +++ b/adb/usb_linux_client.cpp @@ -18,6 +18,7 @@  #include "sysdeps.h" +#include <cutils/properties.h>  #include <dirent.h>  #include <errno.h>  #include <linux/usb/ch9.h> @@ -362,6 +363,7 @@ static void *usb_ffs_open_thread(void *x)              adb_sleep_ms(1000);          } +        property_set("sys.usb.ffs.ready", "1");          D("[ usb_thread - registering device ]\n");          register_usb_transport(usb, 0, 0, 1); | 
