The commonly used ADB commands should be more familiar, such as
ADB Shell
Adb remount
ADB devices
Adb Install
Adb Uninstall
Adb Pull
ADB push
These are local adb, so how do you connect another device over a network interface? So here's a little summary of what the Internet adb is about.
Adb Connect Ip:port
IP in this command indicates the IP address of the target device, such as 192.168.196.37
Port indicates that the ADB port for this device is 5555 by default, so when a device connecting to that IP is required:
According to the actual operation, returned the already connected
When connected via the Connect command, the next operation is the same as the local ADB, where the following commands are executed:
As you can see, when we execute the ADB shell, we see that there are 2 terminal devices through the ADB devices command, and I have been experimenting with two of them over and over again, which makes me not quite clear, and both of them point to the same device!
Since it is 2, we may see "more than one device and emulator" when executing the ADB command (there are currently multiple devices connected) by first looking at what devices are currently connected through the Adbdevices command. A device is then specified with the-s command.
Yes, for example, if you are currently connected to 2 devices, you can specify the current operating device by using the –s parameter when executing the ADB install command, as follows:
Adb–s emulator-5554 Install a.apk (subject to CD to a.apk directory), there will be no "more than one device and emulator" error
Android adb command (network ADB, more than one device and emulator)