Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22ba2a01 authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

Merge "adb: pin USB interface versions on darwin." am: 6a08b2c2

am: db95a11d

Change-Id: I0c65c0a98104a5059be1f7311c9e3c2957e21bb6
parents 8ddeb5ae db95a11d
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -136,8 +136,8 @@ AndroidInterfaceAdded(io_iterator_t iterator)
    io_service_t             usbDevice;
    io_service_t             usbInterface;
    IOCFPlugInInterface      **plugInInterface = NULL;
    IOUSBInterfaceInterface220  **iface = NULL;
    IOUSBDeviceInterface197  **dev = NULL;
    IOUSBInterfaceInterface500  **iface = NULL;
    IOUSBDeviceInterface500  **dev = NULL;
    HRESULT                  result;
    SInt32                   score;
    uint32_t                 locationId;
@@ -163,7 +163,7 @@ AndroidInterfaceAdded(io_iterator_t iterator)
        //* This gets us the interface object
        result = (*plugInInterface)->QueryInterface(
            plugInInterface,
            CFUUIDGetUUIDBytes(kIOUSBInterfaceInterfaceID), (LPVOID*)&iface);
            CFUUIDGetUUIDBytes(kIOUSBInterfaceInterfaceID500), (LPVOID*)&iface);
        //* We only needed the plugin to get the interface, so discard it
        (*plugInInterface)->Release(plugInInterface);
        if (result || !iface) {
@@ -209,7 +209,7 @@ AndroidInterfaceAdded(io_iterator_t iterator)
        }

        result = (*plugInInterface)->QueryInterface(plugInInterface,
            CFUUIDGetUUIDBytes(kIOUSBDeviceInterfaceID), (LPVOID*)&dev);
            CFUUIDGetUUIDBytes(kIOUSBDeviceInterfaceID500), (LPVOID*)&dev);
        //* only needed this to query the plugin
        (*plugInInterface)->Release(plugInInterface);
        if (result || !dev) {