ADB full name Andorid Debug Bridge. As the name implies, this is a debug tool. But why is it called bridge? Because ADB is a standard CS structure tool, it is to connect the development computer and your debug phone. Contains the following sections:
- Client side, running in the development machine, that is, your development PC. Used to send ADB commands.
- The Deamon daemon, running on the debug device, is the debug phone or emulator.
- Server side, as a background process running in the development machine, that is, your development PC. Used to manage communication between the client side of the PC and the deamon of the phone.
We will use the simulator to assist our link testing, the current mainstream simulator connection mode is also different
127.0. 0.1
The default connection command port for ADB is Port 5555, and the common simulator on the market has its own port.
cmd command :
Night God simulator: ADB connect 127.0.0.1:62001
Carefree simulator ADB Connect 127.0.0.1:21503
Steps:
1. Open Android Simulator, set, about Mobile/PC, click 5 version number, enter developer mode
2. Start the night God simulator First, then run the cmd command, CD to the night God installation directory, execute the command
127.0. 0.1:62001
Connecting to the emulator
How ADB connects to Android simulator