In the ubuntu environment, adb cannot be connected, and an error is reported: no permissions (user in plugdev group; are your udev rules wrong?)

adb devices shows no permission
insert image description here

Solution:

1.lsusb
insert image description here

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:

insert image description here

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

Guess you like

Origin blog.csdn.net/qq_45458713/article/details/129091725