Solve ADB devices under Ubuntu:???????????? No permission

Source: Internet
Author: User

Use ADB devices appears as follows:

List of devices attached

???????????? No Permissions

at the same time DDMS in The display device name also displays ???????????? , you cannot display the process name, and you cannot view Log .

Workaround:

1 , setting USB Permissions

because Ubuntu Such systems are default to non- Root identity is running, you want to use USB debugging, Need sudo support.

$ lsusb

Bus 002 Device 002:id 8087:0024 Intel Corp Integrated rate Matching Hub
Bus 002 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 001 Device 003:id 19d2:0249 ZTE WCDMA Technologies MSM
Bus 001 Device 002:id 8087:0024 Intel Corp Integrated rate Matching Hub
Bus 001 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 004 Device 001:id 1d6b:0003 Linux Foundation 3.0 root Hub
Bus 003 Device 002:id 17ef:6019 Lenovo
Bus 003 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub

list,Bus 001 Device 003:id 19d2:0249 ZTE WCDMA Technologies MSM .  This behavior ZTE Phone's USB use the port, record it, ID to 19d2 according to the information on the Internet, as a result of subsequent use Android the system has more and more mobile phones, each of which is assigned Idvendor , but the workaround is the same.

$sudo vim/etc/udev/rules.d/70-android.rules

Add the following content:

subsystem== "USB", attrs{idvendor}== "19d2", attrs{idproduct}== "0249", mode= "0666"

one of the Idvendor idproduct refers to USB of the ID can use Lsusb query to get.

For example, I have: Before you connect to other peripherals, just find the last one. Root Hub this line of attention.

ID 19d2 is idvendor ,0249 is idproduct

Run command, restart Udev :

$sudo chmod a+rx/etc/udev/rules.d/70-android.rules

$sudo Service Udev Restart

2 , do not need to restart the computer, reboot ADB server down on OK

( very important ) Unplug the USB Reconnect to perform:

sudo./adb kill-server

./ADB devices

./adb Root ( This step is important .  )

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.