Installing OpenGApps
DISCLAIMER
GENYMOBILE SAS assumes 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, GENYMOBILE SAS disclaims any warranties of any kind, either express or implied, including, without limitation, implied warranties of merchantability, or fitness for a particular purpose regarding the compatibility of the Open GApps packages with any version of Genymotion.
In no event shall GENYMOBILE SAS or its affiliates, or their respective officers, directors, employees, or agents be liable with respect to your download or use of the Google Play Services and you release GENYMOBILE SAS from any liability related thereto.
You agree to defend, indemnify and hold harmless GENYMOBILE SAS for any claims or costs related to your use or download of the Google Play Services.
The application you are developing or testing may require an interaction with Google Play Services (e.g.: in-app purchasing, advertising, etc.).
If you really need them, you can use the packages provided by Open GApps. This section details how to install Open GApps from their website or using the command line.
WARNING
If you wish to install applications with native ARM code from Google Play Store, you have to install the ARM translation tool before the OpenGApps package (see Installing an Application - Applications with ARM code).
From the Open GApps website
You can install Open GApps directly from their website.
- Visit opengapps.org.
- Select platform x86_64.
- Select the Android version corresponding to your virtual device.
- Select variant nano or pico.
- Download the selected Open GApps package.
- Drag and drop the installer in the new Genymotion virtual device.
- Follow the installation instructions.
From the command line
You can install Open GApps using SSH or ADB. Both methods are detailed below.
SSH method
Settup SSH. See Accessing a virtual device from command SSH
Copy the archive using
scp -i key.pem archive.zip [email protected]_ip:/sdcard/Download/archive.zip
Log in with SSH
ssh -i key.pem [email protected]_ip.
Run
su
to switch to root user. For more information about root access, please refer to Using root access.Flash the archive using
/system/bin/flash-archive.sh /sdcard/Download/archive.zip
Reboot your instance.
ADB method
Setup ADB. See Accessing a virtual device from ADB
Copy the archive using
adb push archive.zip /sdcard/Download/archive.zip
Flash the archive using
adb shell /system/bin/flash-archive.sh /sdcard/Download/archive.zip
Reboot your instance using
adb reboot