telnet连接Android模拟器后,输入命令时出现"KO: unknown command, try 'help' "
2018-03-01 00:00
726 查看
今天想在模拟器上测试以下接听电话相关的功能,通过telnet连接模拟器成功后,输入命令时却出现错误
然后按照提示输入help:
真是不看不知道,一看吓一跳,居然就剩这么几个可用命令了。
再回头看最开始的错误信息,发现原来是"auth"在作怪,查看其说明,需要输入"auth_token"才能解锁其它命令。
根据提示,auth_token是存储在/home/username/.emulator_console_auth_token中。
接下来执行: 'auth <auth_token>'
然后再来看看help命令:
我们需要的命令又回来了。
然后就可以通过"gsm call 123456789"给模拟器打电话了。
G
M
T
Text-to-speech function is limited to 200 characters
$ telnet localhost 5554 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 '/home/username/.emulator_console_auth_token' OK gsm call 111111 KO: unknown command, try 'help'
然后按照提示输入help:
help Android console command help: help|h|? print a list of commands avd control virtual device execution auth user authentication for the emulator console quit|exit quit control session
真是不看不知道,一看吓一跳,居然就剩这么几个可用命令了。
再回头看最开始的错误信息,发现原来是"auth"在作怪,查看其说明,需要输入"auth_token"才能解锁其它命令。
help auth use 'auth <auth_token>' to get extended console functionality
根据提示,auth_token是存储在/home/username/.emulator_console_auth_token中。
接下来执行: 'auth <auth_token>'
然后再来看看help命令:
help Android console command help: help|h|? print a list of commands event simulate hardware events geo Geo-location commands gsm GSM related commands cdma CDMA related commands crash crash the emulator instance kill kill the emulator instance network manage network settings power power related commands quit|exit quit control session redir manage port redirections sms SMS related commands avd control virtual device execution qemu QEMU-specific commands sensor manage emulator sensors finger manage emulator finger print try 'help <command>' for command-specific help
我们需要的命令又回来了。
然后就可以通过"gsm call 123456789"给模拟器打电话了。
G
M
T
Detect languageAfrikaansAlbanianArabicArmenianAzerbaijaniBasqueBelarusianBengaliBosnianBulgarianCatalanCebuanoChichewaChinese (Simplified)Chinese (Traditional)CroatianCzechDanishDutchEnglishEsperantoEstonianFilipinoFinnishFrenchGalicianGeorgianGermanGreekGujaratiHaitian CreoleHausaHebrewHindiHmongHungarianIcelandicIgboIndonesianIrishItalianJapaneseJavaneseKannadaKazakhKhmerKoreanLaoLatinLatvianLithuanianMacedonianMalagasyMalayMalayalamMalteseMaoriMarathiMongolianMyanmar (Burmese)NepaliNorwegianPersianPolishPortuguesePunjabiRomanianRussianSerbianSesothoSinhalaSlovakSlovenianSomaliSpanishSundaneseSwahiliSwedishTajikTamilTeluguThaiTurkishUkrainianUrduUzbekVietnameseWelshYiddishYorubaZulu | AfrikaansAlbanianArabicArmenianAzerbaijaniBasqueBelarusianBengaliBosnianBulgarianCatalanCebuanoChichewaChinese (Simplified)Chinese (Traditional)CroatianCzechDanishDutchEnglishEsperantoEstonianFilipinoFinnishFrenchGalicianGeorgianGermanGreekGujaratiHaitian CreoleHausaHebrewHindiHmongHungarianIcelandicIgboIndonesianIrishItalianJapaneseJavaneseKannadaKazakhKhmerKoreanLaoLatinLatvianLithuanianMacedonianMalagasyMalayMalayalamMalteseMaoriMarathiMongolianMyanmar (Burmese)NepaliNorwegianPersianPolishPortuguesePunjabiRomanianRussianSerbianSesothoSinhalaSlovakSlovenianSomaliSpanishSundaneseSwahiliSwedishTajikTamilTeluguThaiTurkishUkrainianUrduUzbekVietnameseWelshYiddishYorubaZulu |
Options : History : Feedback : Donate | Close |
相关文章推荐
- RMAN 下执行startup 命令出现"ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务" 错误
- mysql导入时出现"ERROR at line : Unknown command '\''."的解决办法
- ssh连接树莓派出现"network error:connection refused"的解决办法
- 解决错误Unknown CMake command "QT4_WRAP_CPP"(CMAKE对应Qt在Linux/Windows兼容问题)
- 使用plsql时,出现"ORA-12154:TNS:无法解析指定的连接标识符"解决办法
- MySql 数据库导入"Unknown command '\n'."错误解决办法
- 解决MySQL5.6出现"Using a password on the command line interface..."
- xshell出现unknown command "free"是因为用的是sftp,而不是 ssh方式登录
- 解决mac OSX下安装git出现的"git命令需要使用开发者工具。您要现在安装该工具吗"
- telnet出现"all network ports in use"的解决
- VS调试ASP.NET MVC程序出现"未连接到互联网"的解决方法
- GNS3连接VMware出现error could not execute vmrun:Command "C:\\program files (x86)\\vmwork\\vmrun.exe,'-T'
- ssh连接树莓派出现"network error:connection refused"的解决办法
- 出现"无法连接synaptics定点装置驱动程序"
- PowerDesigned15连接MySQL出现"Could not initialize JavaVM"时的详细解决步骤(图文)
- 远程服务器连接出现"服务器连接数过多"时处理办法
- 用命令连接mysql , 出现'mysql' is not recognized as an internal or external command错误解决
- android模拟器滑动自动输入"c"的问题解决:
- win7安装QT时出现"无法定位程序输入点_except1于动态链接库MSVCR120.dll"时的解决办法
- Windows 7 下 " 'telnet' 不是内部或外部命令 "