Anbox-Run Android apps in Linux

There are plethora amount of options available to run Android apps on different Operating Systems like macOS, Windows and Linux ofcourse, that is apk files in Windows as far as I know Bluestacks is the most widely used tool/platform out there. But somehow in the Tux world an alternative open source tool always emerges and it can be really 

First of all we need Snap packages which could be found on the official website,

Now coming back to Linux World let’s talk about Anbox, which is nothing but Android in a box, similar to containers, uses the LXC to separate Android from the host. So Let us get started now. 

Now install the package snapd

sudo apt update
sudo apt install snapd

Either restart your machine, or log out and in again, to complete the installation.

Install DKMS package from PPA

In order to add the PPA to your Ubuntu system.

$ sudo add-apt-repository ppa:morphis/anbox-support
$ sudo apt update
$ sudo apt install linux-headers-generic anbox-modules-dkms

These will add the PPA to your system and install the anbox-modules-dkms package which contains the ashmem and binder kernel modules. They will be automatically rebuild every time the kernel packages on your system update.

After you installed the anbox-modules-dkms package you have to manually load the kernel modules. The next time your system starts they will be automatically loaded.

sudo modprobe ashmem_linux
sudo modprobe binder_linux

Now you should have two new nodes in your systems /dev directory:

ls -1 /dev/{ashmem,binder}

After inputting the above command the below details must be seen as shown in the screenshot.


Install the Anbox snap

The second step will install the Anbox snap from the store and will give you everything you need to run the full Anbox experience.

Installing the Anbox snap is very simple:

$ snap install –devmode –beta anbox

Information about the currently available versions of the snap is available via:

$ snap info anbox

Uninstall Anbox

If you want to remove Anbox from your system you first have to remove the snap:

NOTE: By removing the snap you remove all data you stored within the snap from your system. There is no way to bring it back.

$ snap remove anbox

Once the snap is removed you have to remove the installed kernel modules as well:

$ sudo apt install ppa-purge
$ sudo ppa-purge ppa:morphis/anbox-support

Once done Anbox is removed from your system.