USB connected phone Debug in Ubuntu

Source: Internet
Author: User

1. Turn on the phone USB debugging function

Show "Developer Options" (Developer options are hidden by default, generally need to go to "settings"-"about phone" seven consecutive clicks, you can show "developer Options")

Set developer options to On

Turn on USB debugging

2. Connect the device to the computer via USB and use the "LSUSB" command to view the device's vendor ID and Product ID

3. Switch to the root user and create the following file:

  /etc/udev/rules.d/51-android.rules

and add the following content:

  SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee2", MODE="0666", GROUP="<username>"

Where the values of Idvendor and idproduct are the data that was previously found; username is the user of the computer

4. Authorization

  chmod a+r /etc/udev/rules.d/51-android.rules

5. Restart the USB service

Sudo/etc/init.d/dev restart

For more detailed information, please refer to: Google official documentation

USB connected phone Debug in Ubuntu

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.