Android: send sms to emulator
August 22, 2011 15:32:23 Last update: August 22, 2011 15:32:56
- Find ports for emulator devices:
$ adb devices List of devices attached emulator-5554 device
- Telnet to emulator console:
$ telnet localhost 5554 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Android Console: type 'help' for a list of commands OK h Android console command help: help|h|? print a list of commands event simulate hardware events geo Geo-location commands gsm GSM related commands cdma CDMA related commands kill kill the emulator instance network manage network settings power power related commands quit|exit quit control session redir manage port redirections sms SMS related commands avd control virtual device execution window manage emulator window qemu QEMU-specific commands try 'help <command>' for command-specific help OK
- Use "
sms send" to send a message:sms send 1234 'A test message' OK