Android控制台:需要身份验证

编程入门 行业动态 更新时间:2024-10-27 08:35:20
本文介绍了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控制台:需要身份验证

本文发布于:2023-11-12 19:14:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1582296.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控制台   身份验证   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!