Solve the Problem of adb devices in Ubuntu :???????????? No permissions Method

Source: Internet
Author: User

I have been developing in windows all the time, but this time, because a small module can only run in linux, such a series of problems have occurred.
Environment: Ubuntu12.10 under Vmware Virtual Machine
Event: after connecting to the android phone, adb devices appears ?????, Nopermissions has no permissions,

Reason: After Baidu, the reason is that ubuntu and other systems are running as non-root by default. To use usb debugging, sudo support is required.
Solution:
1. Enter the command to view the usage of the usb. The green box contains the android device that is currently connected to me. The 18d1: 9025 in the ID will be used later.

2. enter the command, enter the following content, and save it. Note that ATTRS {idVendor} in the following content is the left part of the colon in the ID, ATTRS {idProduct} is the right part of the colon in the ID.

If there are multiple devices, you can directly wrap the lines in this file and add content in the xiamina format.

In a single case:

SUBSYSTEM = "usb", ATTRS {idVendor} = "18d1", ATTRS {idProduct} = "9025", MODE = "0666"

In multiple cases:

SUBSYSTEM = "usb", ATTRS {idVendor} = "21d2", ATTRS {idProduct} = "0363", MODE = "0666" = "usb ", ATTRS {idVendor }== "18d1", ATTRS {idProduct }== "9025", MODE = "0666"

3. After saving the file, grant related permissions to the file.

Sudo service udev restart

5. You do not need to restart the computer. Restart the adb server,

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.