Ubuntu adb/fastboot 报错提示 no permissions (user in plugdev group; are your udev rules wrong?)解决方案

此处的前提是你已经安装了Android platform tools了~

开始正文.

1. 查看自己的安卓设备

terminal输入lsusb

chen@chen:~$ lsusb
Bus 001 Device 005: ID 18d1:4ee0 Google Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

2. 创建设备文件(文件名随便):

sudo vim /etc/udev/rules.d/90-android.rules

内容:

SUBSYSTEM=="usb",ATTRS{idVendor}=="18d1",ATTRS{idProduct}=="4ee0",MODE="0666",GROUP="plugdev",SYMLINK+="android",SYMLINK+="android_adb"

3. 重启 abd 服务

sudo udevadm control --reload-rules
sudo service udev restart
sudo udevadm trigger
adb kill-server
adb start-server

4. 完结撒花~

adb devices

输出

chen@chen:~$ adb devices
List of devices attached
FA77R0302500    device