2017-12-27 1180 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