這裏是不能這麽用的,因為妳的這個問題涉及到了adb client, adb server, adbd原理。
這裏簡單bibi壹下。。。不感興趣直接跳過即可
adb全名Andorid?Debug?Bridge,是壹種調試工具稱之為Bridge,?因為adb是壹個標準的CS結構的工具。包含如下幾個部分:
Client端,?運行在PC機。
Deamon守護進程,?運行在調試設備中,?即的調試手機或模擬器。---adbd
Server端,?作為壹個後臺進程運行在PC器中,管理PC中的Client端和手機的Deamon之間的通信。---adb
在妳的終端上,這裏只是Deamon守護進程,既不是Client、又不是Server,所以無法單獨運行adb命令。以下操作可簡單驗證:
#?首先su獲取root權限$?su
#?列出sbin目錄,這個目錄需要root權限,具體的內容根據廠商可能不壹樣
$?ls?/sbin
adbd
e2image_blocks
filefrag_blocks
healthd
setlockstate
ueventd
watchdogd
或者直接;
$?su$?which?adbd
/sbin/adbd
所以這裏妳應該明白了,設備中提供的是adbd Deamon守護進程,只是橋的壹邊,無法正常行走。
可以看看該終端模擬器作者的wiki,裏面也具體的說明了該目錄:
/jackpal/Android-Terminal-Emulator/wiki/Android-Shell-Command-ReferenceNotice?also?that?neither?of?the?/sbin?commands?are?useful?to?the?shell?--?the?adb?and?ueventd?files?are?'daemon'?programs?used?to?implement?the?Android?Debugger?"adb"?program?that?is?used?by?developers.