adb定義:
adb(android debug bridge)是android系統中的一種命令行工具,通過它可以和android設備或模擬器通信。
adb工具位置:
<path-to-sdk>/tools/adb
adb源碼位置:
<path-to-sourcecode>/system/core/adb
adb組成及實現原理:
adb本身是一個客戶端服務器應用程序,由3個組件組成,Client, Server, Daemon,如下圖


adb命令格式:
adb [-d|-e|-s <serialNumber>] <command>
adb命令分類:
Target device:-d/-e/-s <serialNumber>
General:devices/help/version
Debug:logcat [option] [filter-specs]/bugreport/jdwp
Data:install <path-to-apk>/pull <remote> <local>/push <local> <remote>
Ports and Networking:forward <local> <remote>/ppp <tty> [parm]...
Scripting:get-serialno/get-state/wait-for-device
Server:start-server/kill-server
Shell:shell/shell [shellCommand]
