1. 启动Android Emulator, 查看标题栏找出端口。一般是android emulator(5554),其中5554就是端口。

2. 打开命令行,输入telnet localhost 5554。程序将会连接到android emulator,控制台会返回

  Android Console: type 'help' for a list of commands

  OK

(win7的话,需要telnet命令的支持)

3. 模拟电话打入。输入gsm call <模拟打进的电话号码>。如:gsm call 123456789

4. 模拟短信发送。输sms send <模拟发送短信的电话号码> <短信内容>。如:sms send 123456789 Hello

  Android控制台命令:(输入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 execution

window manage emulator window

qemu QEMU-specific commands

sensor manage emulator sensors

}

相关文章:

  • 2021-12-06
  • 2021-12-31
  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
  • 2021-12-23
  • 2021-12-13
  • 2021-11-03
猜你喜欢
  • 2022-12-23
  • 2021-12-06
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2021-04-17
  • 2021-10-19
相关资源
相似解决方案