本文基於Android官網對adb的描述和一個日本開發者分享的資料寫出。android
主要內容以下:git
1. adb通訊模型github
2. adb 命令web
3. 無線鏈接adb,非usb。shell
博客園不支持markdown,詳文見:markdown
Recently, I’m interesting how android adb works. If you are an Android programer, you certainly familiar with adb shell
,adb logcat
. Or maybe you only use eclipse, it is helpful to know behind DDMS there is adb.eclipse
We can find adb description from android developer website.ui
Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device. It is a client-server program that includes three components:google
As introducted by google, it has three key components.rest
- A client, which runs on your development machine. You can invoke a client from a shell by issuing an adb command. Other Android tools such as the ADT plugin and DDMS also create adb clients.
- A server, which runs as a background process on your development machine. The server manages communication between the client and the adb daemon running on an emulator or device.
- A daemon, which runs as a background process on each emulator or device instance.