1、启动模拟器,找出模拟器的端口(一般模拟器上方显示)
2、打开命令行终端,输入
telnet localhost 端口
telnet 客户端会连接android console,应该开到类似如下提示:
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Android Console: type 'help' for a list of commands
OK
以上表示操作成功。
3、模拟发短信
sms send 模拟号码 内容;例如:sms send 1380001380001 hello
4、模拟打电话
gsm call 模拟要打的号码;例如:gsm call 1380001380001