Anbox is a free and open-source compatibility layer that aims to allow mobile applications and mobile games developed for Android to run on GNU/Linux distributions. It executes the Android runtime environment by using LXC (Linux Containers), recreating the directory structure of Android as a mountable loop image, whilst using the native Linux kernel to execute applications.
Make sure you have had the header files for your kernel installed (e.g.for Linux kernel).
Install AUR, AUR (or AUR if you want to include Google's Apps and houdini), AUR and AUR
Start/enable the following services:
If you don't want to reboot your computer to enable the required DKMS modules, you can load them manually:
$ sudo modprobe ashmem_linux $ sudo modprobe binder_linux
There has been cases of conflicting packages while InstallingAUR.
So make sure you install the Android Image (AUR or AUR) first and then proceed to install the other Anbox packages.
See this link if you run into a common
You must execute
anbox-bridge every time before starting
anbox-container-manager.service in order to get network working in anbox.
The easiest solution is create a drop-in file
You can run the Android applications on your desktop's launcher on Other category.
If you want to use adb to debug, install
$ adb shell
Installing apps through adb
By default, Anbox doesn't support for ARM applications. So apps must have a x86_64 architecture.
$ adb install /path/to/app.apk
To get the list of installed applications
$ adb shell pm list packages
Note that output will be similar to
app.name is different from the one displayed in anbox container.
$ adb uninstall app.name
app.name is a system app
$ adb uninstall --user 0 app.name
Installing apps through apps stores
Apps can be easily installed throught apps stores. InAUR PlayStore is included.