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

筅森魡賤 提交于 2019-12-03 12:19:19

问题


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

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?


回答1:


You are not authenticated.

Obtain the content of /Users/XXXXX/.emulator_console_auth_token and after the OK prompt enter

auth <auth_token>



回答2:


For amateurs' like me what diego-torres-milano meant :

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


来源:https://stackoverflow.com/questions/40700725/android-terminal-telnet-missing-commands-receiving-this-error-ko-unknown-co

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!