虚拟中安装adb后,使用adb devices,能看到id,但提示用户无权限
$ adb devices
List of devices attached
1c22d6dc no permissions (user in plugdev group; are your udev rules wrong?); see [http://developer.android.com/tools/device.html]
$ adb shell
error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information
解决办法:
1、在下面路径创建规则文件
sudo gedit /etc/udev/rules.d/xxx.rules
2、规则文件中输入以下内容
SUBSYSTEM=="usb", MODE="0660", GROUP="plugdev", SYMLINK+="android%n"
3、再次拔插手机即可