如何模拟来电?

时间:2017-12-27 19:25:45

标签: android automated-tests adb telnet

我发现它可以在模拟器设备上制作:

# connects to device
telnet localhost 5554
# set the power level
power status full
power status charging
# make a call to the device
gsm call 012041293123
# send a sms to the device
sms send 12345 Will be home soon
# set the geo location
geo fix 48 51

来自here, 但是当我插入:

telnet localhost 5554

我得到以下信息:

Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

可能它没有帮助我,因为我需要伪造cal连接到计算机的真实设备。我需要一些adb shell命令。

1 个答案:

答案 0 :(得分:1)

你可以直接从模拟器设置gui,点击三个点,然后'电话':

enter image description here

相关问题