有的时候运行adb会出现错误:
error: insufficient permissions for device
这是因为adb的守护进程需要root权限造成的。
切换到root下,运行:
$:adb kill-server
然后再执行
$:adb start-server
这时候再退出root,换成普通用户,就可以正常运行adb了。
参考文档:
http://bear.freebearblog.org/archives/588