Ubuntu adb devices :???????????? no permissions怎么办?(adb shell ,返回结果error: insufficient permissions for device)
Posted on 2012-08-30 16:24 酸草莓 阅读(368) 评论(0) 编辑 收藏 举报一、运行环境ubuntu
二、操作步骤
1.连接手机到电脑;
2.Ctrl+Alt+T打开运行终端
3.进入adb所在文件夹下,输入命令:./adb devices命令, 返回的结果是:
List of devices attached
???????????? no permissions
输入 ./adb shell,返回结果是:error: insufficient permissions for device(与上面输入./adb devices的问题是一样的)
4.问题:此种情况下,无法执行monkey,在eclips中也无法使用DDMS及截屏的相关操作
三、解决方法
问题:
shuangye@shuangye-Vostro-1014:~/android-sdk-linux/platform-tools$ ./adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
???????????? no permissions
解决方法:
shuangye@shuangye-Vostro-1014:~/android-sdk-linux/platform-tools$ ./adb kill-server #说明:用来结束当前server
shuangye@shuangye-Vostro-1014:~/android-sdk-linux/platform-tools$ sudo ./adb start-server #说明:以root权限重新启动server
[sudo] password for shuangye:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
再次察看设备,连接成功:
shuangye@shuangye-Vostro-1014:~/android-sdk-linux/platform-tools$ ./adb devices
List of devices attached
ZTE_SP920 device
shuangye@shuangye-Vostro-1014:~/android-sdk-linux/platform-tools$
见图: