Android终端——telnet缺少命令,收到此错误:KO:unknown command,try';帮助';
我正试图在模拟设备上设置坐标Android终端——telnet缺少命令,收到此错误:KO:unknown command,try';帮助';,android,command-line,terminal,geo,Android,Command Line,Terminal,Geo,我正试图在模拟设备上设置坐标 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 Cons
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
我似乎没有地理指挥权
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
帮助
Android控制台命令帮助:
救命啊?打印命令列表
auth使用“auth”获得扩展功能
控制虚拟设备执行
退出|退出控制会话
请尝试“帮助”以获取特定于命令的帮助
好啊
事实上,看起来我的大部分命令都丢失了
有人知道命令丢失的原因吗?您没有经过身份验证 获取
/Users/XXXXX/.emulator\u console\u auth\u token
的内容,在OK提示符后输入
auth <auth_token>
auth
对于像我这样的业余爱好者来说,迭戈·托雷斯·米拉诺的意思是:
cat /Users/XXXXX/.emulator_console_auth_token
<copy the above contents - auth_token>
telnet localhost <portnumber> (mostly 5554)
auth auth_token
cat/Users/XXXXX/.emulator\u console\u auth\u令牌
telnet本地主机(大部分为5554)
身份验证令牌
此答案中的路径对OS X用户有效。对于更通用的*nix操作系统(如Linux和OS X),请使用~/.emulator\u console\u auth\u token
。
cat /Users/XXXXX/.emulator_console_auth_token
<copy the above contents - auth_token>
telnet localhost <portnumber> (mostly 5554)
auth auth_token