Android emulator cannot recognize that GPS is on

I am having problems connecting the emulator to GPS. It is designed for the Google API 4.2.2 (hw.gps = yes). Emulator AVD settings

In Settings> Location Access, access is enabled, and GPS and Wi-Fi are installed. Location access settings screenshot

When I telnet localhost 5554 and submit the geo patch, I get OK from the Android console.

lkung$ 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: type 'help' for a list of commands OK geo fix 50 50 OK 

However, if I open Maps, he says: "Please enable access to the location of Google applications." Maps fails to recognize GPS

I am trying to test a location dependent application using an emulator.

+4
source share
1 answer

So, in fact, there are other settings only for Google applications ... so the error message in Maps is indicated Please enable Google apps location access . The Google Settings app is separate from your regular settings. Classic misunderstanding of the error message ...

Google settings screenshotGoogle Settings location access setting screenshot

+1
source

Source: https://habr.com/ru/post/1497162/


All Articles