diff options
author | Josh Gao <jmgao@google.com> | 2020-01-27 21:41:48 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-01-27 21:41:48 +0000 |
commit | f1a17bc0eb80f7d2bc8f667f40b128349ecb8467 (patch) | |
tree | 5729b12c3bb2e943d447aa416232646093e24b7b /usb | |
parent | c7817aee5ed4ea741072cc1c6a161356162b8437 (diff) | |
parent | 0a7d54e462166c9fd45b132a9adc09c3e802ec4e (diff) | |
download | wahoo-f1a17bc0eb80f7d2bc8f667f40b128349ecb8467.tar.gz |
Merge "Enable MS OS descriptors for adb."
Diffstat (limited to 'usb')
-rw-r--r-- | usb/UsbGadget.cpp | 2 |
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; |