Anbox: How to install Google Play Store and enable ARM (libhoudini) support, easy way

AnbaoOr Android in a Box, is a free open source tool that allows running Android applications on Linux. It works by running the Android runtime environment in an LXC container, recreating Android’s directory structure as an installable circular image, and using the native Linux kernel to execute applications.

According to its website, its main functions are security, performance, integration and integration (across different forms of proportion). With Anbox, each Android application or game is launched in a separate window like a system application. Their behavior is more or less like a regular window, displayed in the launcher, and can be tiled.
By default, Anbox is not provided with the Google Play store or does not support ARM applications. To install apps, you must download each app APK and install manually using adb. In addition, by default, Anbox cannot install ARM applications or games-attempting to install ARM applications will result in the following error being displayed:

Failed to install PACKAGE.NAME.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]

You can manually set up the Google Play store and support for ARM applications (via libhoudini) for Android in Box, but this is a very complicated process. To make it easier to install Google Play Store and Google Play Services on Anbox and make it support ARM applications and games (using libhoudini), (The linked article is displayed in German) One has been created script Perform these tasks automatically.
Before using this feature, I want to explain that even if libhoudini is integrated into ARM support, not all Android applications and games can run in Anbox. Some Android apps and games may not appear in the Google Play store at all, while others may be installed but not working properly. In addition, some functions may not be available in some applications.

Install Google Play Store and enable ARM application/game support in Anbox (boxed Android)

Update (February 2019): The script used to install the Google Play store and enable ARM (libhoudini) support for Anbox has been updated to automatically download the latest open-gapps, which solves the problem of causing Google Play to close immediately after booting in some cases Store issue (when the Google Play store version downloaded by the script is too old). If Anbox has not been installed on the Linux desktop, these instructions will obviously not work. If it is not installed, follow the installation instructions found to install Anbox Here. Also, make sure you run anbox.appmgr It must be done at least once after installing Anbox and before using this script to avoid problems. Also, make sure that Anbox is not running when executing the following script (I suspect this is the cause of the problem mentioned in the comments).
1. Install the required dependencies (wget, lzip, unzip with squashfs-tools).
In Debian, Ubuntu or Linux Mint, use the following command to install the required dependencies:

sudo apt install wget curl lzip tar unzip squashfs-tools

2. Download and run the script, which will automatically download and install the Google Play Store (and Google Play Services) and libhoudini (for ARM application/game support) on Android in the Box installation. Warning: Never run an unwritten script without knowing what it does. Before running this script, please check its script code.
To download the script and make it executable, use the following command in the terminal:

chmod +x

Now you can run the script:


Initially, the script needed to run with super user rights, but this is no longer the case. After installing the Google Play store and libhoudini, you can clean up the leftovers-delete the anbox-work folder created by the script.
4. To make the Google Play Store run in Anbox, you need to enable all permissions for both the Google Play Store and Google Play Services
To do this, run Anbox:


Then go Settings > Apps > Google Play Services > Permissions And enable all available permissions. Do the same for the Google Play store!Anbox Google Play permissions

You should now be able to use your Google account to log in to the Google Play store.
If you don’t enable all permissions for the Google Play Store and Google Play Services, you may encounter problems when trying to log in to your Google account and display the following error message: “Cannot log in. There was a problem communicating with the Google server. Please try later “Redisplay”, as you can see in this screenshot:There was a problem with Anbox communicating with Google servers

After logging in, you can disable some Google Play Store/Google Play services permissions. If you have connection problems when logging into your Google account on Anbox, please make sure Running:

  • Start it:
sudo /snap/anbox/current/bin/ start
  • Restart it:
sudo /snap/anbox/current/bin/ restart

If you are still experiencing connection issues with Anbox, you may also need to install the dnsmasq package. This one user. But this is not necessary on my Ubuntu 18.04 desktop.