Anbox Allows You to Run Android Apps Natively in Ubuntu Linux

It’s been possible to run Android app in computers for a while with solutions such as Bluestacks or ShashLik, as well as running Android-x86 ISO in a virtual machine. But all those solutions rely on emulation, may not have the best performance, and at the time I tried them did not really work well, or were inconvenient to use. Anbox is different as instead of running its own Linux kernel for Android, it leverages the Linux kernel in Ubuntu for better integration and performance, and use an LXC container to run Android.

Click to Enlarge

Anbox has been tested with Ubuntu 16.04, but should also work with other recent Ubuntu distributions. Installing Anbox (Alpha) is easy, and can be done with a single command line:

The command will modify your system with the following:

  • Add the anbox-support ppa ppa:morphis/anbox-support to the host system
  • Install the anbox-modules-dkms deb package from the ppa which will add kernel modules for ashmem and binder which are required for the Android container to work.
  • Configure binder and ashmem kernel modules to be loaded automatically on boot.
  • Add an upstart job for the current user XXXXX which will start the anbox runtime on login.
  • Add a X11 session configuration file to allow the system  application launcher (Unity7, Gnome Shell, ..) to find available Android applications.

If you’re OK with that, enter “I AGREE” to complete the installation, and reboot your computer.

The instructions indicate that you can install apps with adb:

I did that but, adb could not find any devices attached. So I checked the system-info:

And my Nvidia graphics card with proprietary drivers does not seem to be handled properly. Not sure, whether is it the reason Anbox is not running. There are also lots of anbox related messages looping in the kernel log:

So sadly, I did not manage to make it work, but Anbox is an open source project released in github  and licensed under the terms of the GPLv3 license, plus some parts with an Apache-2.0 license, so it could be fixed by the developer, or yourself. Several users currently have problems and submitted issues to Anbox’s Github repo. Anbox is alpha software, so it’s bound to have issues at the beginning.

While I did not manage to get it to work, you can still checkout what’s it supposed to look like in the video below.

You could also visit Anbox website for more details.

Via Liliputing

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard
Notify of
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
7 years ago

Any chance to run this on an ARMbian Xenial over Orange Pi or other ARM SoC?

Martin Schlatter
Martin Schlatter
7 years ago

Just a guess: maybe “adb tcpip” helps?

7 years ago

My guess is that it will also have problems with Android DRM framework and Google Widevine DRM, so it will not just be easy yet to use streaming apps made for Android on Linux.

7 years ago

> Any chance to run this on an ARMbian Xenial over Orange Pi or other ARM SoC?

I think this would be difficult. As far as I know there is no working OSS 3D driver for Mali. The author mentions that he is passing through calls to OpenGL/ES to the host to execute. I’m not sure how well (if at all) this would work on a system without a working 3D driver.

There is apparently a binary driver for Mali, but I don’t think anyone is shipping this in their Linux image.

7 years ago

The Armbian Xenial Desktop OS images for H3 boards have Mali acceleration working (though based on a rather old kernel driver version since the included blobs have to match). I would better try it with H3 Lakka or RetrOrangePi builds (both based on Armbian but maybe their devs had more luck finding newer blobs and included more recent Mali driver). IIRC we patched the driver to run the Mali cores with up to 600 MHz so performance might not suck that much.

Khadas VIM4 SBC