error: insufficient permissions for device 问题解决

在ubuntu上进行android开发是,将设备连接到电脑上,执行adb shell命令,会报出如下错误:

error: insufficient permissions for device

解决的办法:
root@android-ubuntu:platform-tools# adb kill-server
root@android-ubuntu:platform-tools# adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
root@android-ubuntu:platform-tools# exit
然后在命令行下执行adb shell就可以了。

相关推荐