Я хотел бы подключиться к AVD и изменить местоположение GPS AVD с помощью сценария оболочки.
Вручную я могу сделать 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, если это возможно