While running an application .apk file is formed and that apk file is installed in the emulator. for installing the apk file in the emulator we need Android Debug Bridge(ADB) service. Daemon is a part of this service. My question is what is the work of the daemon? What does it do?
From Android Debug Bridge documentation:
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:
- 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.
So, the daemon is the ADB component that runs on the device (or emulator) which accepts commands from the ADB server and executes them.