mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 06:22:53 +00:00
Merge "Enable MS OS descriptors for adb." am: cbb51b15fe am: e6cd994315 am: cda67e1a16
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1797476 Change-Id: Ic3804b02ed8c27596cfeb77e61bef5bd99d75073
This commit is contained in:
@@ -178,6 +178,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;
|
||||
|
||||
if (linkFunction("ffs.adb", (*functionCount)++)) return Status::ERROR;
|
||||
|
||||
@@ -190,6 +190,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;
|
||||
|
||||
if (linkFunction("ffs.adb", (*functionCount)++)) return Status::ERROR;
|
||||
|
||||
Reference in New Issue
Block a user