Installing OpenGApps

DISCLAIMER

Genymobile Inc. 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 Inc. 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 Inc. 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 Inc. from any liability related thereto.
You agree to defend, indemnify and hold harmless Genymobile Inc. 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.

From the Open GApps website

You can install Open GApps directly from their website.

  1. Visit opengapps.org.
  2. Select platform x86_64.
  3. Select the Android version corresponding to your virtual device.
  4. Select variant nano or pico.
  5. Download the selected Open GApps package.
  6. Drag and drop the installer in the new Genymotion virtual device.
  7. Follow the installation instructions.

From the command line

You can install Open GApps using SSH or ADB. Both methods are detailed below.

SSH method

  1. Setup SSH. See Accessing a virtual device from command SSH

  2. Copy the archive using

    scp -i key.pem archive.zip [email protected]_ip:/sdcard/Download/archive.zip
    
  3. Log in with SSH

    ssh -i key.pem [email protected]_ip.
    
  4. Run su to switch to root user. For more information about root access, please refer to Using root access.

  5. Flash the archive using

    /system/bin/flash-archive.sh /sdcard/Download/archive.zip
    
  6. Reboot your instance.

ADB method

  1. Setup ADB. See Accessing a virtual device from ADB

  2. Copy the archive using

    adb push archive.zip /sdcard/Download/archive.zip
    
  3. Flash the archive using

    adb shell /system/bin/flash-archive.sh /sdcard/Download/archive.zip
    
  4. Reboot your instance using

    adb reboot