ubuntu :no permissions (user in plugdev group; are your udev rules wrong?);

第一步:lsusb,找出来设备端口号
lsusb
Bus 002 Device 004: ID 060b:7a03 Solid Year
Bus 002 Device 003: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 008: ID 2717:ff48
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

第二步:
sudo gedit /etc/udev/rules.d/51-android.rules
输入内容:ATTR{idProduct}==“ff48”, SYMLINK+=“android_adb”, MODE=“0660”, GROUP=“plugdev”, TAG+=“uaccess”, SYMLINK+=“android”

前面的ff48是第一步里面的ID

第三步:
执行以下命令:
sudo usermod -a -G plugdev $(id -u -n)
sudo udevadm control --reload-rules
sudo service udev restart
sudo udevadm trigger

第四步:
重启adb
adb kill-server
adb start-server
adb devices

此时就不会再报权限问题

你可能感兴趣的:(ubuntu :no permissions (user in plugdev group; are your udev rules wrong?);)