Set Google settings on HAXM x86 emulator (Google Maps SDK)

I got an accelerated Android virtual emulator (4.2.2, API 17) working using Intel HAXM (on Mac). I installed the Google Maps SDK using these instructions , basically this answer to the previous SO question - Google Maps SDK with the new Intel Atom x86 emulator, but with photos.

Therefore, the emulator has access to the Google API. However, I need to enable location access for Google apps. This is usually done using the "Google Settings" , but since the creation of the emulator focused on API 17 (and not on the Google API 17), Maps and Google Settings have not been installed.

Where can I find .apk for google settings to install it? It would be even better if there was a way to permanently store it on the emulator (so that -wipe-data would not delete it).

(I know that I need to enable location access due to a problem that I worked with before. See my previous question here .)

+4
source share
2 answers

A new x86 system image is now available with the Google API. Install it from the SDK manager - it is under API 19 and is called "Google API (x86 system image)." Using the emulator created from this image, you should find that you have all the Google APIs that you could only use previously on ARM system images (I only tested Maps v2 so far, but it worked).

+5
source

According to Google Android Map Api v2 ypu cannot run it on Android Emulator ; you need a real device to test your applications. To run an application using Google Maps v2, you need two applications already running on the device

 1. Google Play Services (com.google.android.gms.apk) 2. Google Play Store (com.android.vending.apk) 

Follow this guide here to download and install the latest version of these two apk using adb commands .

0
source

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


All Articles