Android adb command (network ADB, more than one device and emulator)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.