adb devices shows no permission
Solution:
1.lsusb
My side is Bus 001 Device 082: ID 05c6 : 90cb Qualcomm, Inc.
Where idVendor is the VID of the device, and idProduct is the PID of the device
2. Add
sudo vim /etc/udev/rules.d/51-android.rules
Add a line after opening the file:
ID 05c6 is idVendor, 90cb is idProduct
3. Change the file permissions to make it effective:
sudo chmod a+r /etc/udev/rules.d/51-android.rules
sudo udevadm control --reload-rules
sudo service udev restart
4. If the device is still not found after entering adb devices, then:
Add the VID of the device in the ~/.android/adb_usb.ini file, such as 0x05c6 (note that 0x means hexadecimal, and there can be no spaces between the VID and the straight)
Restart adb:
adb kill-server
adb devices