Google Play Services on Genymotion emulator with Android 7 - android

I have purchased Genymotion with the goal to have a simulation with Android 7.0 and Google Play.
Android 7.0 runs fine on Genymotion, but I am not able to install Google Play on it.
Google Play works fine for Android 6.0 and below - I was able to find the sources (Flashes) that must be installed additionally for using Google Play in Genymotion.
Does someone know how to install Google Play on an Android 7.0 Device with Genymotion?

Updated answer
Since Genymotion 2.10, you are able to install Google Play Services within ease without dealing with zip files. You now have a 1-click installer (called "Open GApps" widget).
Here are few notes to consider:
The 1-click installer is available for every device running Android 4.4 or more (whether new or already created), as long as Genymotion 2.10 is installed.
The Open GApps widget installs the smallest variant (i.e. pico) as it fits most development and testing needs.
That means you only get Google Play Store and Google Play Services and nothing else.
If you need access to further Google apps, you can either visit the Play Store and download them from there or you can install another variant of Open GApps from their website, as describe in my original answer.
How to use the widget and install Open GApps
Just open your Genymotion device.
You will see a gray Open GApps logo on the right bar, alongside with all the other settings:
When you click on that logo, Genymotion will start downloading Open GApps to your device:
Then, you will need to restart your device and you're all set:
Original answer
In order to install Google Play and use it on Genymotion, you will need to find a zip file of the pre-built Google Apps packages to onto the emulator.
As mentioned in the comments to your question, Genymotion's ROM is compiled to x86 to match the most popular computer's CPU architecture.
However, most of the pre-built Google Apps packages available are using ARM architecture, which is popular among phones.
Some of the comments mentioned the need for installing an ARM Translation which will let those ARM apps to run on the x86 virtual device, but it might be difficult to find the right translation file for Android Nougat and anyway that it not necessary at all.
You are able to go to the open GApps site and install the needed pre-built Google Apps packages that you desire.
Make sure to choose Platform: x86 and the proper Android version.
In order to install it on Genymotion just drag and drop the zip file into the emulator and you will be prompted with the following message which lets you know that the file can be flashed to the device:
Click OK and it will flash the file.
When the process is done you will be prompted with the following message:
All you need to do is to restart the device emulator and you will have Google Play on your Android Nougat emulator.
Enjoy.

Since Genymotion 2.10, Gapps can be installed automatically from within Genymotion!
Top right of the Genymotion emulator window, you will find a 'Gapps' button: click on it and Genymotion will do the rest: downloading the correct GApps bundle and install it in your Android image!
Once installed, just restart this emulator: the Gapps button now have a green check mark on it and the Open Gapps (Pico) bundle has been installed for the specific version of Android you are running :-)
Works for Android 4.4 onwards.
Read more at
https://www.genymotion.com/blog/2-10-open-gapps-widget/

UPDATED ANSWER
As #pascal pointing out (kudos to #pascal), since Genymotion 2.10 Google Play Service and Play Store can be automatically installed.
Here is the news from Genymotion 2.10 – Seamlessly install Google Play Services and Play Store:
Genymotion 2.10 is out! And it comes with a 1-click installer for Google Apps
Simply download and install Genymotion 2.10 and a new “Open GApps” widget will be available in your toolbar. Click it and it’ll do the rest!
Now you can have your applications relying on Google Play Services and Google Play Store working perfectly fine. No more fumbling around with random zip files and tutorials found there and there!
OLD ANSWER
Quoting myself from https://stackoverflow.com/a/40712778/4758255:
There is official FAQ for using Google Play in How do I install Google Play Services?, here the FAQ text:
For intellectual property reasons, Google Play Services are not
included by default in Genymotion virtual devices. However, if you
really need them, you can use the packages provided by OpenGapps.
Simply follow these steps:
Visit opengapps.org
Select x86 as platform
Choose the Android version corresponding to your virtual device
Select nano as variant
Download the zip file
Drag & Drop the zip installer in new Genymotion virtual device (2.7.2 and above only)
Follow the pop-up instructions
Please note Genymobile Inc. and Genymotion assume no liability
whatsoever resulting from the download, install and use of Google Play
Services within your virtual devices. You are solely responsible for
the use and assume all liability related thereto. Moreover, we
disclaim any warranties of any kind for a particular purpose regarding
the compatibility of the OpenGapps packages with any version of
Genymotion.

Related

Installing Google Play in GenyMotion by default when creating a device (takes time to do it when creating multiple devices)

I know how to install Google Play Services on Genymotion devices with the Arm Translation Zip and the other zip. But is there anyway to install them by default when I create the virtual device ?
or some other adb commands to install it in batch (ie from Device Named '1' to device named '15'. I am naming the device with numbers. So it can make the installation easier.. and I could update the Google Play Services myself in Play Store (sadly, i don't think there are other ways to update it.)
Genymotion doesn't provide Google Apps. To install Google Apps:
Upgrade Genymotion and VirtualBox to the latest version.
Download two zip files:
- ARM Translation Installer v1.1
- Google Apps for your Android version: 2.3.7 - 4.4.4 or 5.0
Open Genymotion emulator and go to home screen then drag and drop the first file Genymotion-ARM-Translation_v1.1.zip over the emulator. A dialog will appear and show as file transfer in progress, then another dialog will appear and ask that do you want to flash it on the emulator. Click OK and reboot the device by running adb reboot.
Drag and drop the second file gapps-*-signed.zip and repeat the same steps as above. Run adb reboot and, once rebooted, Google Apps will be in the emulator.
At this point 'Google Apps Services' will crash frequently with the following message google play services has stopped working. Open Google Play. After providing your account details, open Google Play and update your installed Google Apps. This seems to make Google Play realize you have an old Google Play Services and will ask you to update (in my case, updating Google Hangouts required a new version of Google Play Services). I've also heard that simply waiting will also prompt you to update. The 'Google Play Services' app doesn't seem to appear otherwise - you can't search for it. You should then see an offer to update Google Play Services. Once the new Google Play Services is installed you will now have stable, working access to Google Play
Taken from How to install Google Play Services in a Genymotion VM (with no drag and drop support)?

How to install app in playstore without Google playstore in android emulator

I had installed AndroVM to use Android apps in computer. But when it comes to games like shadow fight even with OpenGL support enabled, AndroVM couldn't run many games such as Hill Climb racing, Gunship battle etc. Hence I tried Genymotion. When I installed Genymotion, it automatically detected AndroVM installed in Virtual Box. And I could only run Hill climb racing and rest of them didn't work. So I finally installed Android SDK and followed all instructions to add packages(Tools, extras and System Images). Even if I have installed Google play services and Google repository, I couldn't find Google playstore in the android emulator. Even this post suggests how to install Google playstore in emulator,it also have discussions about piracy and legal issues(in comments) and the apk's (GoogleLoginService.apk , GoogleServicesFramework.apk , Phonesky.apk) are not official packages. Hence
Can any one suggest how can I install apps inside emulator without using Google playstore, and
Why can't I find playstore even after I install Google play services and repository.
These are the packages I've installed (Sorry I don't have enough reputation to upload image). And I'm using Ubuntu 14.04
you can't directly install apps using what google provided to you to install playstore app in emulator.
there are some 'hack' (not really) for this, but even you follow the steps, you can't install paid app in emulator also,
I believe it is kind of difficulty made by google to prevent people to use pc to run android apps easily.
below is a detail steps how to install apps in emulator
http://blog.apkudo.com/2012/08/08/run-google-play-on-an-emulator-and-pretend-to-be-any-device/
another more up-to-date steps.
http://www.flinkd.org/2013/12/installing-google-play-on-the-android-emulator-api-18/
before all these, you should download the same version as your emulator of package from
http(s)://goo.im/gapps/
happy 'hacking'.
i have found the best emulator to be is bluestacks. It runs flawlessly in my less powered old laptop which has 2GB RAM. It is core2duo engine and has 10 years old graphics card. It does make lot of noice when i run bluestacks and gets heated. Bluestacks is the best emulator. All apps run easily in bluestacks. I have tried all emulators. None of them works in my machine except bluestacks. Youwave which is light weight app but asks for money.

Genymotion 2 - No Connection on Google Play Store

I'm using Genymotion 2.0.3 and following this guide to install Google Play Services for a Galaxy Nexus 4.1.1 API 16 device.
When launching Play Store I get "No Connection".
However, I am able to browse etc. So there is definitely a working internet connection.
I tried two different Google accounts just to check and also tried all three Google Apps downloads (4.1 version does not flash) all with the same result.
I have an old 1.x virtual device from the previous version of Genymotion (4.1.1 with Google Apps) and Google Apps works perfectly there.
Anyone have any suggestions on how to get Google Apps working for Genymotion 2.0.x and a 4.1.1 device?
You probably installed incompatible app services. Please download correct version compatible with your API from here. I had similar issue when I had API18, but downloaded services for API17.
You have to download the exact version of gapps to match the device API that you wish to run on. By default Genymotion does not come with gapps. To download gapps click on any of the link below. You can only drag and drop the setup on to Genymotion if it is signed already. So please download the signed gapps.
http://www.androidfilehost.com/
http://wiki.cyanogenmod.org/
http://goo.im/
in GenyMotion, download the device with gapps prebuilt.

Missing Google Play Services from AVD

I recently started developing for Android, and I have come into trouble when trying to use Google Maps in my app. I downloaded the Google Maps API v2 for Android, and have already performed all the required steps according to Google Developers Site.
My problem is that although the app runs, in the place where the maps should be displayed there is a texts saying that my device is missing Google Play Services.
I have already downloaded the Google Play Services from the SDK, imported the library into my project and also importing the .JAR file.
I am using Netbeans, not Eclipse, so many solutions I have found over the web aren`t useful for me. I hope you can help me with this.
Unfortunately, you can't use the emulator to run apps that use Google Play services. From http://developer.android.com/google/play-services/setup.html: "Google Play services is not supported on the Android emulator — to develop using the APIs, you need to provide a development device such as an Android phone or tablet."
From google's own site http://developer.android.com/google/play-services/setup.html
If you want to test your app on the emulator, expand the directory for
Android 4.2.2 (API 17) or a higher version, select Google APIs, and
install it. Then create a new AVD with Google APIs as the platform
target. Note: Only Android 4.2.2 and higher versions of the Google
APIs platform include Google Play services.
I had this same problem and found solution:
Here are the updated gms and vending files. Same instructions as before: Create a new emulator with any cpu/abi, a non google-api target (versions 10-17 work) and gpu emulation on or off, and then install the files:
adb install com.android.vending-20130716.apk
adb install com.google.android.gms-20130716.apk
If you are upgrading an existing emulator then you might need to uninstall previous versions by:
adb uninstall com.android.vending
adb uninstall com.google.android.gms
Bellow link contains a solution that works with Android 4.2.2 or higher
How to install Google Play Services in Android Emulator
1.1 Start your emulator. Disconnect any other Android device (such as your smartphone) from computer.
1.2 Download these two files
com.android.vending-19032013.apk : http://www.mediafire.com/download.php?7jfar2v1bzx6v59
com.google.android.gms-19032013.apk : http://www.mediafire.com/download.php?4o9fz413uavlblf
1.3 Open command console, go to \platform-tools
Install two files above with command
adb install \com.android.vending-19032013.apk
adb install \com.google.android.gms-19032013.apk
Yes, you can use Google maps on emulator. However, it's not officially supported, so takes some work. I had the best success following the info on this link.
I found this, i hope it helps you ;)
Installing Google Play on Android Emulator
Run Google Play Services in your emulator
If anyone is still experiencing this issue, first try to create your emulator with the Google API's as the platform target. After doing so, I noticed that my Google Play Services was not the correct version on the emulator.
While trying to hack together a solution, I stumbled upon the GoogleApiAvailability class here. Google did a phenomenal job handling compatibility issues.
GoogleApiAvailability.isGooglePlayServicesAvailable(Context) returns an integer status code, which can be fed directly into getErrorDialog(Activity, errorCode, requestCode) which returns a Dialog that works perfectly right out of the box. If your Play Services are out of date, the dialog will redirect you to an updater... If they are missing, it will redirect you to an installer, etc...
Thought I would share this great feature in case anyone is looking for a fix that would work in production code as well as testing.

How to install Android Market App on the emulator?

I am not able to access android market through emulator.
I got Android Market to work on Emulator for Platform 2.3 using OS 10.6.6:
First download and setup emulator on your mac.
Launch emulator and create an AVD. I created one called vd1.
Close vd1.
Launch Terminal in Utilities and enable the Finder to show hidden system files and folders by executing following commands:
lsy$ defaults write com.apple.finder AppleShowAllFiles TRUE
lsy$ killall Finder
Download system.img
http://www.mediafire.com/?s8eeph3r71ho1lz
Copy system.img to two locations:
[username]\.android\avd\[vd1]\
[username]\android\platforms\android-9\images\
Launch emulator from Terminal
lsy$ cd android\tools
lsy$ ./emulator -avd [vd1] -partition-size 100
Android Market is not available through the emulator for similar reasons it is not available through the developer phone. Allowing people to buy applications with an unlocked phone (or the emulator) would make it easier for those paid apps to be redistributed as freee apps.
Will's right. But also see this if it helps: http://forum.openhandsetdevelopers.com/running-android-market-on-emulator-no-download-issue-t82.html
Check out this link.
http://tech-droid.blogspot.com/2009/11/android-market-on-emulator.html
You get a full featured market on your emulator. I don't know if it's
legal(allowed by Google), but the image file, that this post mentions,
is a link to HTC's download page.
I am able to access all the market apps now, right from the emulator,
the paid ones, and the copy-protected ones also.
Cheers.
Dexter.
The emulator does not have the Android Market. The Android Market is only available for devices whose manufacturers have licensed the Android Market from Google.
Android Studio from version 2.3.2 has Google Play System Images.
You are able to create the simulator with the Play Store (old name: Android Market App).
You can use this test framework : android-test-billing to test the In-App billing on the emulator.
This library was used in the project Horer - horaires de RER.
I have did it in my 1.6 emulator it worked fine , Try this,
Download system.img from following link
http://www.4shared.com/get/x6pZm3-W/system.html
Go to avd folder. It will be in your c drive probably
( example C:\Documents and Settings\Vadivelan.android\avd\market.avd)
Paste the download file
Now launch the emulator
Market is ready
But am not sure it will work in 2.2 emulator, because the given system.img file is specific to 1.6. For 2.2 download the 2.2 system.img (but i doubt it works, as per my information it gives error)
Regards,
Vadivelan
just find the same app from a trusted website that allows you to download the .apk file to launch the app without using the play store. You wont be able to find all apps, but most of them should be relatively easy to find and download without using the play store.

Categories

Resources