How to use the device that you want to link on the ADB link when there are multiple device links

Source: Internet
Author: User

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

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.