1. Start Android emulator and check the title bar to find the port. Generally, it is Android emulator (5554), of which 5554 is the port.
2. Open the command line and enter Telnet localhost 5554. The program will be connected to the android emulator, And the console will return
Android Console: Type 'help' for a list of commands
OK
3. simulate a phone call. Enter the GSM call <analog phone number>. Example: GSM call 123456789
4. Simulate text message sending. Enter the GSM send <phone number for sending a simulated text message> <SMS content>. For example, SMS send 123456789 hello
Android console command:
Android Console Command help:
Help | H |? Print a list of commands
Event simulate hardware events
GEO geo-location commands
GSM related commands
Kill kill the emulator instance
Network manage network settings
Power related commands
Quit | exit quit control session
Redir manage port redirections ctions
SMS related commands
AVD manager virtual device state
Window manage emulator window