先檢查下終端的用戶是否是root用戶,如果不是就 執(zhí)行下 命令 su ,然后輸入root用戶的密碼
這個(gè)時(shí)候再執(zhí)行adb kill-server
然后再執(zhí)行adb shell
正常情況下這個(gè)時(shí)候手機(jī)上會(huì)提示那個(gè) 授權(quán)的 對話框贷祈,勾選后點(diǎn)確定OK了。
//////////////////////////////////////////////////////////////////////////////
diao@diao-All-Series:~$ su
密碼:
root@diao-All-Series:/home/diao# adb shell
error: insufficient permissions for device
root@diao-All-Series:/home/diao# adb shell
error: insufficient permissions for device
root@diao-All-Series:/home/diao# sudo -s
root@diao-All-Series:/home/diao# adb kill-server
root@diao-All-Series:/home/diao# adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
710KPJ××××××××396 offline
root@diao-All-Series:/home/diao# adb shell
error: device offline
root@diao-All-Series:/home/diao# adb shell
taimen:/ $
搞定