且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android控制台:需要身份验证

更新时间:2023-12-05 17:37:58

您需要从此文件中获取密钥.在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>