我基本上只想在AVD上打开Google Maps并使用telnet更改GPS位置,并让Google Maps更改我显示的位置,但是我无法更改Google Map的位置:
我启动了AVD,我做了adb devices
,看到了
emulator-5554 device
然后我做telnet localhost 5554
并看到“确定”提示
user:~ userName$ 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
然后从~/.emulator_console_auth_token
复制令牌BKLphG9dWG2Isxwb
并使用令牌进行身份验证
user:~ userName$ 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
auth BKLphG9dWG2Isxwb
Android Console: type 'help' for a list of commands
OK
然后我在AVD上打开Google Maps,然后通过telnet设置GPS
geo fix -120.65962 35.28275
但是我在Google Maps上的位置没有改变。为什么会这样?