身份验证令牌与〜/ .emulator_console_auth_token不匹配

时间:2016-06-14 12:53:54

标签: android authentication command-prompt

我试图通过控制台访问Android模拟器。

最初我输入了telnet localhost 5554,然后我看到了:

screenshot of command line

接下来我输入auth auth_token,我收到以下错误:

screenshot of command line

这里有什么问题?

我在哪里可以获得此令牌?

感谢您的帮助!

2 个答案:

答案 0 :(得分:4)

只需从文件.emulator_console_auth_token中复制令牌并运行命令

  

auth your-token-here

为了检查一切是否顺利,只需运行“help”命令,您将在列表中看到更多可用的命令。我不知道这是解决这个问题的最佳选择,但这个解决方案对我有用。

答案 1 :(得分:4)

在Windows上,该文件位于当前用户文件夹

c:\Users\<current_user>\.emulator_console_auth_token

您可以使用记事本打开文件并复制令牌。

现在,你可以运行

auth <token>