简体   繁体   English

无法在Mac上的Genymotion模拟器上运行telnet命令

[英]Unable to run telnet commands on Genymotion emulator on Mac

I am running Genymotion 2.3.1 on Mac OS X Yosemite. 我在Mac OS X Yosemite上运行Genymotion 2.3.1。 When I was running Genymotion on Win 7, I could telnet to the emulator and run commands like "geo fix" to set a location. 当我在Win 7上运行Genymotion时,我可以telnet到模拟器并运行“geo fix”之类的命令来设置位置。 However, on Yosemite, when I telnet to the emulator and run a command, I do not get an OK response, and nothing happens. 但是,在Yosemite上,当我telnet到模拟器并运行命令时,我没有得到OK响应,也没有任何反应。 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. 运行geo fix命令后,我检查了模拟器,并且未更改GPS位置。 The sms send command caused the telnet session to close. sms send命令导致telnet会话关闭。 Any ideas? 有任何想法吗?

Telnet is not supported on Genymotion. Genymotion不支持Telnet。

To access the Genymotion Shell you need to open the Genyshell app or run it in command line. 要访问Genymotion Shell,您需要打开Genyshell应用程序或在命令行中运行它。 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. 这些命令与telnet不同,因此键入help可以发现打开此shell后可以访问的所有功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM