Fixing “adb devices -> no permissions”
Ever experienced adb device(s) ‘no permission’ like below:
Sample of ADB no permission
This solution might help.
Check USB:
First, check the vendor ID and product ID by typing:lsusb
If you don’t know which USB was just plugged in, you can:
- Unplug the USB
- Type lsusb and take a screenshot or note down the list of USB devices
- Plug the USB back in
- Type lsusb again and look for differences in the USB list. An additional USB device should be on the list. If there isn’t, make sure the USB cable is working properly.
Then, note down the vendor ID (VID) and product ID (PID) of the new (additional) USB device. The location of the vendor ID and product ID can be seen in the image below.
Red box: vendor ID, while the green box is product ID
Assuming for Logitech, vid=046c and pid=c534.
Creating a udev rule
Then create a udev rule with the following command by replacing the vid and pid of your USB device. For example, if vid=046c and pid=c534:
sudo nano /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="046c", ATTR{idProduct}=="c534", MODE="0666", GROUP="plugdev"
Run ADB
Try running again
adb devices
If it doesn't work, unplug and replug the USB or restart the PC. Hopefully, it will be successful.