adb no permissions (user *** is not in the plugdev group)

首次配置ubuntu下的adb 环境,执行了adb device命令会出现以下问题

lvi@lvi-PC:~/develop/android/sdk/platform-tools$ adb devices
List of devices attached
123699aac6536d65        no permissions (user lvi is not in the plugdev group); see [http://developer.android.com/tools/device.html]

尝试了下 sudo ./adb devices 还是一样的错误

lvi@lvi-PC:~/develop/android/sdk/platform-tools$ sudo ./adb devices
List of devices attached
123699aac6536d65        no permissions (user lvi is not in the plugdev group); see [http://developer.android.com/tools/device.html]

可以尝试修改可执行文件  adb 的权限



lvi@lvi-PC:~/develop/android/sdk/platform-tools$ sudo chown root:root adb
lvi@lvi-PC:~/develop/android/sdk/platform-tools$ sudo chmod a+x  adb
lvi@lvi-PC:~/develop/android/sdk/platform-tools$ sudo chmod a+s  adb
lvi@lvi-PC:~/develop/android/sdk/platform-tools$ adb kill-server
lvi@lvi-PC:~/develop/android/sdk/platform-tools$ adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
123699aac6536d65        device

lvi@lvi-PC:~/develop/android/sdk/platform-tools$ 

这样就可以找到设备了。

你可能感兴趣的:(android,adb)