mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-01-27 18:19:03 +00:00
Merge "Enable MS OS descriptors for adb."
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user