How to Use ADB to connect to a mobile phone in Linux

Source: Internet
Author: User

In Linux, the simulator can be directly identified, and there is no restriction on the use of ADB, but after the mobile phone is plugged into the USB, ADB does not recognize it and displays a question mark, which is also true in eclipse.

The solution is as follows:

1. input lsusb in Bash. We can see that many of the bus devices are Linux Foundation 1.1 root hub. This is because the port of the USB device is not plugged in, and another string is displayed when the port of the mobile phone is plugged in, for example, ID: 0bb4: 0c02

 

2. Create a 51-android.rules file in the/etc/udev/rules. d directory with the following content:


Subsystem = "USB", sysfs {idvendor} = "0bb4", mode = "0666"

3. Execute the following command:

  1. Chmod A + R/etc/udev/rules. d/51-android.rules
  2. Sudo ADB kill-Server
  3. Sudo ADB Devices

Then, you can directly use ADB for operations.

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.