我想通过外壳脚本远程登录到AVD并更改AVD的GPS位置。
我可以手动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/michaelcas/.emulator_console_auth_token'
OK
然后我进行身份验证并更改GPS
auth BKLphG9dWG2Isxwb
Android Console: type 'help' for a list of commands
OK
最后更改位置
geo fix -120.65962 35.28275
但是我想在可能的情况下使用Bash shell脚本完成以上所有操作