Loading
Fix duplicate condition, add missing protocolCode check
getInOutEndpoints() checks interfaceSubclass twice instead of checking all three USB interface attributes. The WebUsbDeviceFilter defines classCode, subclassCode, and protocolCode, but protocolCode was never validated. Replace the duplicate interfaceSubclass check with interfaceProtocol to properly filter USB interfaces matching the ADB protocol (class=0xff, subclass=0x42, protocol=1).