xxxxxxxxx no permissions (user in plugdev group; are your udev rules wrong?)
示例命令:
adb devices
输出信息:
List of devices attached SKDYJJ7DR47DS879 no permissions (user in plugdev group; are your udev rules wrong?); see [http://developer.android.com/tools/device.html]
解决方法:
-
在
/etc/udev/rules.d
目录下创建以.rules
结尾的规则文件sudo touch /etc/udev/rules.d/android-devices.rules
-
在上一步中创建的规则文件中写入以下内容
SUBSYSTEM=="usb", MODE="0660", GROUP="plugdev", SYMLINK+="android%n"
-
断开数据线重新连接即可
一步到位:
复制以下命令执行,断开数据线重新连接即可
sudo echo 'SUBSYSTEM=="usb", MODE="0660", GROUP="plugdev", SYMLINK+="android%n"' | sudo tee /etc/udev/rules.d/android-devices.rules