Debugging Android devices using adb and USB connections in Ubuntu

Source: Internet
Author: User

1. Run sudo vi/etc/udev/rules. d/51-Android.rules to create the 51-android.rules configuration file.

2. Add an entry in the following data format:

 

SUBSYSTEM = "usb", ATTR {idVendor} = "xxxx1", ATTR {idProduct} = "xxxx2", MODE = "0600", OWNER = "xxxx3"

 

3. Enter xxx1, xxx2, and xxx3 based on your device information.

Where,

(1) xxx3 is the user name when you log on to mongout.

(2) how to search for xxx1 and xxx2,

Run the command lsusb to find your usb Device (). My Device entry is: Bus 001 Device 014: ID 2207: 0006

Among them, 2207 is the idVendor of the device, and 0006 is the idProduct.

 

 

4. Run the sudo chmod a + rx 51-android.rules command to modify the permissions of 51-android.rules and add the readable and executable permissions to him.

5. Run the command. vi ~ /. Android/adb_usb.ini: Create adb_usb.ini and add the idVendor of the device you just found.

 

 

6. Finally, the last step is reached,

Run the following command: adb kill-server and adb devices ,:

 

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.