我正在尝试按照这个页面的指导,通过telnet连接到一个安卓模拟器:https://developer.android.com/studio/run/emulator-console.html
我成功地连接到本地主机:5554,使用在/Users/me/.emulator_console_auth_token
中找到的令牌进行身份验证,并获得可用命令的列表:
$ telnet localhost 5554
Trying ::1...
telnet: connect to address ::1: Connection refused
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
'/Users/me/.emulator_console_auth_token'
OK
auth 123456789XYZ
Android Console: type 'help' for a list of commands
OK
help
Android console command help:
help|h|? print a list of commands
crash crash the emulator instance
kill kill the emulator instance
quit|exit quit control session
redir manage port redirections
power power related commands
event simulate hardware events
avd control virtual device execution
finger manage emulator fingerprint
geo Geo-location commands
sms SMS related commands
cdma CDMA related commands
gsm GSM related commands
rotate rotate the screen by 90 degrees
但是,我注意到该页面中提到的network
、window
和vm
命令不在此列表中。如何运行这些命令?
非常感谢您的提前!
哑光
发布于 2017-05-10 04:44:02
此选项在android studio 2.3.1中运行仿真器时可用
https://stackoverflow.com/questions/43433301
复制相似问题