简体   繁体   English

Android终端 - telnet丢失命令,收到此错误:KO:未知命令,尝试'帮助'

[英]Android terminal--telnet missing commands, receiving this error : KO: unknown command, try 'help'

I'm trying to set the coordinates on an emulated device. 我正在尝试在模拟设备上设置坐标。

XXXX-MacBook-XXXXX XXXX$ telnet localhost 5554
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Android Console: Authentication required
Android Console: type 'auth <auth_token>' to authenticate
Android Console: you can find your <auth_token> in 
'/Users/XXXXX/.emulator_console_auth_token'
OK

The problem is... 问题是...

geo fix 77.9888 34.0000
    KO: unknown command, try 'help'

I don't seem to have the geo command 我似乎没有geo命令

help
Android console command help:

    help|h|?         print a list of commands
    auth             use 'auth <auth_token>' to get extended functionality
    avd              control virtual device execution
    quit|exit        quit control session

try 'help <command>' for command-specific help
OK

In fact, it looks like most of my commands are missing. 事实上,看起来我的大多数命令都缺失了。

Does anyone know why the commands are missing? 有谁知道为什么命令丢失了?

You are not authenticated. 您未经过身份验证。

Obtain the content of /Users/XXXXX/.emulator_console_auth_token and after the OK prompt enter 获取/Users/XXXXX/.emulator_console_auth_token的内容,然后在OK提示符下输入

auth <auth_token>

For amateurs' like me what diego-torres-milano meant : 对于像我这样的业余爱好者来说,diego-torres-milano意味着:

cat /Users/XXXXX/.emulator_console_auth_token
<copy the above contents - auth_token>
telnet localhost <portnumber> (mostly 5554)
auth auth_token

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

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