Windows/Linux/Mac: Detecting Android (as an accessory) when connected

150 Views Asked by At

I want to be able to detect when an Android device is connected to the computer.

As "Android" is a collection of devices with varying vendor/product IDs, how are we able to identify if a product is an Android device upon USB connection?

To make matters worse, the Android device class can be different too (phone, tablets, cameras, etc)

For what it's worth, I'm using libusb-win32 (based on libusb-0.1)

0

There are 0 best solutions below