summaryrefslogtreecommitdiffstats
path: root/adb/usb_linux_client.cpp
diff options
context:
space:
mode:
authorBadhri Jagan Sridharan <Badhri@google.com>2015-04-21 11:09:32 -0700
committerBadhri Jagan Sridharan <Badhri@google.com>2015-04-21 12:44:31 -0700
commit5f97370babbe465e82c2aefe9864848af6796113 (patch)
tree267b657e8ccdfb9b5591d7524d53ed1a107baf81 /adb/usb_linux_client.cpp
parente434ad1dd799551830019a7bd2871dec226bdcd2 (diff)
downloadsystem_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/usb_linux_client.cpp')
-rw-r--r--adb/usb_linux_client.cpp2
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);