From b310da608b8292999cb30ed29bfb0bf4a9cb606d Mon Sep 17 00:00:00 2001 From: Jack Pham Date: Thu, 12 Dec 2019 00:13:29 -0800 Subject: [PATCH] adbd: Update DeviceInterfaceGUID for WinUSB The MS OS extended property descriptor is used to convey additional information to Windows hosts, in this case the DeviceInterfaceGUID which allows the inbox WinUSB driver to get automatically installed. However, the ADB windows client looks for USB devices by enumerating devices with a specific GUID {F72FE0D4-CBCB-407D-8814-9ED673D0DD6B}, and as a result fails to find the device since it was installed with a different DeviceInterfaceGUID. Update the OS descriptor to pass back the same GUID the client already uses. Change-Id: If664cdd9be821c502e8c2048ff79e79e311936f5 --- adb/daemon/usb_ffs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/daemon/usb_ffs.cpp b/adb/daemon/usb_ffs.cpp index 338d77679..b19fa5d58 100644 --- a/adb/daemon/usb_ffs.cpp +++ b/adb/daemon/usb_ffs.cpp @@ -84,7 +84,7 @@ struct usb_os_desc_ext_prop { using usb_os_desc_guid_t = usb_os_desc_ext_prop<20, 39>; usb_os_desc_guid_t os_desc_guid = { .bPropertyName = "DeviceInterfaceGUID", - .bProperty = "{64379D6C-D531-4BED-BBEC-5A16FC07D6BC}", + .bProperty = "{F72FE0D4-CBCB-407D-8814-9ED673D0DD6B}", }; struct usb_ext_prop_values {