Android控制台:需要身份验证 [英] Android console: authentication required

查看:125
本文介绍了Android控制台:需要身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行geo fix命令,但由于以下消息引起了我的欢迎,所以我无法执行此操作:

I am trying to run the geo fix command but I am unable to do so because I am greeted by the following message:

Android控制台:需要身份验证Android控制台:输入"auth"进行身份验证Android控制台:您可以在'/Users/me/.emulator_console_auth_token'

Android Console: Authentication required Android Console: type 'auth ' to authenticate Android Console: you can find your in '/Users/me/.emulator_console_auth_token'

我在Mac [新用户]上,并且我不知道如何访问.emulator_console_auth_token文件以将其删除.

I am on a mac [new user] and I do not know how to access the .emulator_console_auth_token file to delete it.

我已尝试〜/Users进入users文件夹,但未返回任何结果.此外,具有我的名字的文件夹不包含该文件.请帮忙.

I have tried ~/Users to get to the users folder but it is returning no results. Additionally, the folder with my name does not contain that file. Please help.

推荐答案

您需要从此文件中获取密钥.在Mac OS上,默认情况下该文件是隐藏的.

You need to take key from this file. On Mac OS this file is hidden by default.

打开终端,运行命令:

nano ~/.emulator_console_auth_token

并从打开的文件中复制令牌(令牌看起来像:mEKb + d0DA2x9eHaK)

and copy token from opened file (token look like: mEKb+d0DA2x9eHaK)

连接到仿真器(如果尚未连接):

Connect to Emulator (if does not connected yet):

1)检查仿真器的端口:

1) Check the Port of emulator:

adb devices

2)连接到仿真器:

telnet localhost <number of port like 5554>

您应该看到:

需要身份验证的Android控制台:输入'auth'来对Android控制台进行身份验证:您可以在'/Users/me/.emulator_console_auth_token'"

" Authentication required Android Console: type 'auth ' to authenticate Android Console: you can find your in '/Users/me/.emulator_console_auth_token'"

3)设置身份验证令牌:

3) Set Auth Token:

auth <your auth token>

现在您可以运行:

geo fix <longitude value> <latitude value>

sms send <phonesender> <textmessage>

这篇关于Android控制台:需要身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆