-s serialNumber is the adb command that give you a specific emulator/device instance, referred to by its adb-assigned serial number (such as “emulator-5556”).I think this is the adb command that you are looking for
ADB itself will not help find the Vendor ID of a connected piece of hardware, indeed (for the Google ADB driver) it’s necessary to have the Vendor ID set up in advance of it working with ADB.
Fortunately, there’s an easy way to find the Vendor ID (and Product ID) of any device connected to a Windows PC. The device doesn’t even need drivers for this approach to work:
- Start Device Manager
- In the Hardware tree, right-click the hardware entry for the device for which the Vendor ID is to be determined.
- On the Details tab, set the property drop-down to be “Hardware Ids”. The Vendor ID is the 4 character hexadecimal number following the letters
VID_. In the case below, the Vendor ID is
PID_, which follows, is the Product ID. It also has a 4-digit hexadecimal number.