genymotion安卓模擬器怎麼用telnet控制?

在DDMS上顯示的是192.168.56.101:5555,但在cmd上用telnet localhost 5555顯示連接不上埠。


謝邀。

建議題主在提問之前先自行 Google 一下該問題。

剛剛在機器上試了一下,確實是醬紫的。

突然發現知乎貌似不支持 MarkDown 語法。用 MarkDown 寫了一整天需求文檔,一時半會兒轉不過彎來。

該問題在偉大的 Google 或者 Stack Overflow 已經有了明確的答覆(Copy 自 android - Unable to run telnet commands on Genymotion emulator on Mac):

問題表述:

I am running Genymotion 2.3.1 on Mac OS X Yosemite. When I was running Genymotion on Win 7, I could telnet to the emulator and run commands like "geo fix" to set a location. However, on Yosemite, when I telnet to the emulator and run a command, I do not get an OK response, and nothing happens. This is an example:

$ adb devices
List of devices attached
192.168.56.101:5555 device

$ telnet 192.168.56.101 5555
Trying 192.168.56.101...
Connected to 192.168.56.101.
Escape character is "^]".
geo fix 34 -118
sms send 1234 test
Connection closed by foreign host.
$

After running the geo fix command, I checked on the emulator, and the GPS location was not changed. The sms send command caused the telnet session to close. Any ideas?

問題回答:

Telnet is not supported on Genymotion.

To access the Genymotion Shell you need to open the Genyshell app or run it in command line. It will open a terminal where you will be able to do all the commands you used to do.

The commands are different than telnet, so type help to discover all the features you can access after opening this shell.

肥肥英語不好,就不要難為肥肥費那麼大勁給你翻譯了,好不啦?

么么噠。


推薦閱讀:

如何評價 HTC U11?
小米5s以及5splus有沒有可能成就小米一個新的巔峰?
安卓手機系統應用里什麼是可以刪除的?
相同價位的 Mac 和 Windows PC 哪個更適合 Android 開發?
如何評價 2017 年 3 月發布的 Android O 預覽版?

TAG:Android開發 | Android | 安卓模擬器 | Genymotion |