1.开启telnet功能
windows》控制面板》程序》打开或关闭windows功能》勾选telnet客户端》确定
2.telnet localhost 5554
其中5554为模拟器控制台端口号
3.连接成功以后,输入help查看支持的命令
help
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 executio
window manage emulator window
qemu QEMU-specific commands
sensor manage emulator sensors
try 'help <command>' for command-specific help
4.发送短信
sms send 1234 "Message body"
其中1234为电话号码,一般默认为1234
参考文档:http://developer.android.com/tools/devices/emulator.html