本文基于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.