2017-12-27 1690 views
-1

我发现,它可能使模拟器设备上:如何模拟来电?

# 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 

也许这没有帮助我,因为我需要伪装成连接到计算机的真实设备。我需要一些adb shell命令。

+0

你运行的操作系统? – jeprubio

+0

我使用的是Ubuntu 16.10 – mordi

+0

我发现我可以从真实设备调用: adb shell am start -a android.intent.action.CALL电话:1112223333,但我不想使用真实设备,只是假来电命令行 – mordi

回答

1

您可以从模拟器设置GUI直接做到这一点,点击三个点,然后“电话”:

enter image description here

+0

我正在测试真实设备,并且据我所知我无法从avd调用实际设备。 – mordi

+0

@mordi真。我不认为有可能在真实设备上模拟呼叫。通过telnet到localhost的方法也只适用于模拟器。 – FWeigl