美文网首页
no permissions (user in plugdev

no permissions (user in plugdev

作者: Felix_lin | 来源:发表于2018-11-08 16:43 被阅读134次

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.dls -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了

相关文章

网友评论

      本文标题:no permissions (user in plugdev

      本文链接:https://www.haomeiwen.com/subject/byiwxqtx.html