summaryrefslogtreecommitdiff
path: root/usb
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2020-01-27 21:41:48 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-01-27 21:41:48 +0000
commitf1a17bc0eb80f7d2bc8f667f40b128349ecb8467 (patch)
tree5729b12c3bb2e943d447aa416232646093e24b7b /usb
parentc7817aee5ed4ea741072cc1c6a161356162b8437 (diff)
parent0a7d54e462166c9fd45b132a9adc09c3e802ec4e (diff)
downloadwahoo-f1a17bc0eb80f7d2bc8f667f40b128349ecb8467.tar.gz
Merge "Enable MS OS descriptors for adb."
Diffstat (limited to 'usb')
-rw-r--r--usb/UsbGadget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/usb/UsbGadget.cpp b/usb/UsbGadget.cpp
index e5c37a6a..2263da1a 100644
--- a/usb/UsbGadget.cpp
+++ b/usb/UsbGadget.cpp
@@ -529,6 +529,8 @@ V1_0::Status UsbGadget::setupFunctions(
if ((functions & GadgetFunction::ADB) != 0) {
ffsEnabled = true;
ALOGI("setCurrentUsbFunctions Adb");
+ if (!WriteStringToFile("1", DESC_USE_PATH))
+ return Status::ERROR;
if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/adb/", IN_ALL_EVENTS) == -1)
return Status::ERROR;