【BUG】no permissions (user in plugdev group; are your udev rules wrong?
ubuntu 18接开发板子,发现adb这个提示,查看:felix@felix-desktop:~/wd500g/eyemore-i.mx/android_n7$ lsusbBus 001 Device 002: ID 8087:8001 Intel Corp.Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus...
ubuntu 18接开发板子,发现adb这个提示,查看:
felix@felix-desktop:~/wd500g/eyemore-i.mx/android_n7$ lsusb
Bus 001 Device 002: ID 8087:8001 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 004: ID 8087:0a2a Intel Corp.
Bus 002 Device 009: ID 18d1:4ee7 Google Inc.
Bus 002 Device 003: ID 0461:4d51 Primax Electronics, Ltd 0Y357C PMX-MMOCZUL (B) [Dell Laser Mouse]
Bus 002 Device 002: ID 17ef:602d Lenovo
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
发现手机端口为 Bus 002 Device 009: ID 18d1:4ee7 Google Inc.
felix@felix-desktop:/$ cd /etc/udev/rules.d/
felix@felix-desktop:/etc/udev/rules.d$ ls
felix@felix-desktop:/etc/udev/rules.d$ ls -a
. …
felix@felix-desktop:/etc/udev/rules.d$ vim 51-android.rules
参考 https://github.com/snowdream/51-android/blob/master/51-android.rules
根据id: 18d1 对于添加添加
#Google Inc.
SUBSYSTEM==“usb”, ATTR{idVendor}==“18d1”, MODE=“0666”, GROUP=“plugdev”
在执行:
chmod a+r /etc/udev/rules.d/51-android.rules
adb kill-server
adb start-server
然后就OK了
更多推荐
所有评论(0)