Android Debug Bridge
Android Debug Bridge (adb) is a tool used to establish communication between the development environment and a virtual device or the connected Android device. It is a client-server command-line program, which works on three elements:
Client on the development machine: Works as the client, which can be invoked by adb commands. Other Android tools such as the ADT plugin and DDMS also create adb clients.
Daemon: A background process that runs in the background on each emulator or device instance.
Server on the development machine: This is a background process that runs on the development machine and manages the communication between the client and server.
On starting adb, the client first checks whether there is an adb server process already running. If there isn't, it starts the server process. When the server starts, it binds to the local TCP port 5037
and listens for commands sent from adb clients—all adb clients use port 5037
to communicate with the adb server.
The server...