How to run android apps on linux or mac

Being able to install applications on different devices in your unix.

The most common option you find on the internet is anbox which, as its name indicates, is a “box” that seeks to install android applications on linux, although it works for some, many application libraries do not go well at all, and the installation is very complicated starting for installing modules to the kernel of your computer following the amount of incompatibility and resources.
/posts/how-to-run-android-apps-on-linux-or-mac/anbox.png

Then I tried to create a virtual machine with Android x86 which is an open source project that creates bootable android images, so I ran it in qemu but it gave the same problems, it used too many resources and the installation of applications ended up being hell. Finally try to use Prime OS which is a fork of Android x86 but optimized for computers and as it is originally to run mobile games on a laptop it should work better at first, and so it worked a little better but not enough the installation of applications It is better and in this case I decided to install in physical hardware and not virtualized, and although it was better many of the applications did not work since Android x86 is a tablet so many applications are not optimized. /posts/how-to-run-android-apps-on-linux-or-mac/primeos.jpg

/posts/how-to-run-android-apps-on-linux-or-mac/genymotion.jpg

So I already knew what an android needed that was a cell phone with google services installed. It was there when I remembered that there was genymotion which allows you to virtualize a complete android. It was originally made for app developers but it works for anything ;)

It’s stupidly easy to install it’s a linux binary and executables for mac and windows. The only requirement I noticed in linux was virtualbox but it was a matter of installing it with my package manager and everything was ready.

For linux you have to first install virtual box (you can do it with apt install virtualbox) then you will download the genymotion installation binary from its official download page and run it with: ./genymotion.bin.

Then you can search for the application and open it: /posts/how-to-run-android-apps-on-linux-or-mac/open-genymotion.png

When you are in the dashboard you must press the plus icon and create a new device:

/posts/how-to-run-android-apps-on-linux-or-mac/dashboard-genymotion.png

I choose a custom device, with the version of android 8.1

/posts/how-to-run-android-apps-on-linux-or-mac/create-device.png /posts/how-to-run-android-apps-on-linux-or-mac/device-creation.png

When the device is created we will start it:

/posts/how-to-run-android-apps-on-linux-or-mac/device-installed.png /posts/how-to-run-android-apps-on-linux-or-mac/android-home.png

To install Google services and the acclaimed Play Store you must click on the “open Gapps” section, then you will accept the installation, your device will restart and you will have the Play Store installed.

/posts/how-to-run-android-apps-on-linux-or-mac/google-apps.png

/posts/how-to-run-android-apps-on-linux-or-mac/play-store.png

Manual installation
For manual installation go to the GApps page and download the file then drag and reboot.

Some apps will give you the following error to fix it, just download the arm translator zip file, reboot and you are good to go.

/posts/how-to-run-android-apps-on-linux-or-mac/android-translator.png