Error:insufficient Permissions for device (troubleshooting adb shell issues)

Source: Internet
Author: User

Today, the Error:insufficient permissions for device is connected to the tablet USB under Linux and the ADB shell is tried.

And we enter the ADB devices display:

[Email protected]:~$ adb devices
List of devices attached
???????????? Device
So how do we fix it?


First in the terminal to view the USB ID, enter the LSUSB command, we can see we just plug the ID number such as USB, such as:

[Email protected]:~$ Lsusb
Bus 001 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 002 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 001 Device 002:id 8087:0020 Intel Corp Integrated rate Matching Hub
Bus 002 Device 002:id 8087:0020 Intel Corp Integrated rate Matching Hub
Bus 001 Device 003:id 0461:4d80 primax Electronics, LTD
Bus 001 Device 004:id 1c7a:0801 lightuning technology INC fingerprint Reader
Bus 002 Device 003:id 5986:0190 Acer, Inc.
Bus 001 Device 019:id 0BB4:0C02 High Tech Computer Corp. Dream/adp1/g1/magic/tattoo (Debug)

The red one is the ID number that we plugged into the USB.


So let's go into the cd/etc/udev/rules.d/and create a new 51-android.rules file (sudo vim 51-android.rules), which is written in this file:

subsystem== "USB", attrs{idvendor}== " 0bb4", attrs{idproduct}== "0c02", mode= "0666 "

Save, and then add permissions for 51-android.rules (sudo chmod a+x 51-android.rules).


Unplug the USB plug on it, such as:

[Email protected]:~$ adb devices
List of devices attached
AB100607 Device

This solves the problem that the USB is not recognized.

Error:insufficient Permissions for device (troubleshooting adb shell issues)

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.