In our usual use of the ADB tool, you may encounter such problems, when the computer is linked to multiple devices, the simple use of the ADB shell link device, there will be an error. Let's take a specific look at how to deal with this situation:
1. First, we need to know which devices are linked to each other on the computer. Use the following command to return to the device list
ADB devices-l
The command line returns the name and DeviceID of the currently linked device
2, when using the adb shell command, you need to add the option to link the relevant devices
Adb-s deviceIDshell (link device)
DeviceID: 0123456789ABCEDF
Adb-s DeviceIDpush Xxx.apk/data/app (import apk to device)
Note: When multiple devices are present, you need to add the-s DeviceID to operate on a single device
How to use the device that you want to link on the ADB link when there are multiple device links