diff options
author | Josh Gao <jmgao@google.com> | 2019-09-06 12:35:32 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2019-09-06 12:38:20 -0700 |
commit | 5c7c6d5edcbe04454eb9a40f947ac0a3045f64eb (patch) | |
tree | 25cf89c028fb679dad4566e27716fac12436f55d /usb/UsbGadgetUtils.cpp | |
parent | af108633e9e45a0282a892d213b6e915c39ee050 (diff) | |
download | pixel-5c7c6d5edcbe04454eb9a40f947ac0a3045f64eb.tar.gz |
Enable MS OS descriptors for adb.
Bug: http://b/68993980
Test: check_ms_os_desc
Change-Id: Ic8ff7f34b08030ce590298e33e8498d61fafed47
Diffstat (limited to 'usb/UsbGadgetUtils.cpp')
-rw-r--r-- | usb/UsbGadgetUtils.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usb/UsbGadgetUtils.cpp b/usb/UsbGadgetUtils.cpp index 47465729..115bae50 100644 --- a/usb/UsbGadgetUtils.cpp +++ b/usb/UsbGadgetUtils.cpp @@ -201,6 +201,9 @@ Status addGenericAndroidFunctions(MonitorFfs *monitorFfs, uint64_t functions, bo Status addAdb(MonitorFfs *monitorFfs, int *functionCount) { ALOGI("setCurrentUsbFunctions Adb"); + if (!WriteStringToFile("1", DESC_USE_PATH)) + return Status::ERROR; + if (!monitorFfs->addInotifyFd("/dev/usb-ffs/adb/")) return Status::ERROR; |