Manually modify the device serial number displayed by adb devices

Source: Internet
Author: User

Mobile phone developers often need to use adb to connect multiple devices of the same product model on one PC at the same time, many times the usb serial number is the same, so that the same PC cannot be connected to multiple identical devices at the same time. For example, some occasional problems require a large sample size for testing.

1. First, the mobile terminal requires the root permission, and then drag/data/usb_serial_num.txt from the mobile phone to the PC through adb pull, and then modify the corresponding number.

2. Add the modified usb_serial_num.txt file to the mobile phone/data Directory through adb push.

3. You only need to connect all numeric strings in usb_serail_num.txt of the same PC using the adb method.

4. connect multiple mobile terminals on the same PC using the adb-s device serial number

In the following command, 19761202 is the modified usb serial number.
Adb-s 19761202 shell

Adb-s19761202 logcat
Adb-s19761203 logcat
Adb-s19761204logcat

Related Article

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.