参考:http://www.51testing.com/?uid-227923-action-viewspace-itemid-233904
错误信息:
出现如下错误信息:
$adb shell
error: insufficient permissions for device
$ adb devices
List of devices attached
???????????? no permissions
一.临时解决方法:
$sudo -s
#adb kill-server
#adb start-server
#exit
再使用adb shell就没问题了
二.一劳永逸解决方法:
进入adb所在目录,例如out/host/linux-x86/sdk/android-sdk_eng.xxxx_linux-x86/platform-tools
$sudo chown root:root adb
$sudo chmod u+s adb