Merge "Enable MS OS descriptors for adb."

This commit is contained in:
Josh Gao
2020-01-27 21:41:48 +00:00
committed by Android (Google) Code Review

View File

@@ -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;