Anbox is a container-based approach to boot a full Android system on a regular GNU/Linux system https://anbox.io
Find a file
Simon Fels e1ecd04f0c
Merge pull request #942 from zhsj/fix-gmock
cmake: link gtest_main to gmock lib
2018-10-14 14:50:14 +02:00
.github Add probot stale configuration 2018-09-08 15:41:39 +02:00
android Also add mpeg2 support. 2018-09-13 10:19:43 +02:00
cmake cmake: link gtest_main to gmock lib 2018-10-14 15:10:43 +08:00
data data: add missing seccomp profile 2018-06-12 11:35:06 +02:00
docs Update install.md 2018-07-14 11:06:08 +02:00
external cpu_features: fix clang, set cast-align to warning 2018-09-02 17:00:23 +02:00
products Also add mpeg2 support. 2018-09-13 10:19:43 +02:00
scripts cmds: allow users to change the container network configuration 2018-09-02 15:04:44 +02:00
snap scripts: generate a zip instead of a tarball for our log archive 2018-07-23 18:21:55 +02:00
src Merge branch 'master' into make-lxc3-optional 2018-09-15 17:17:08 +02:00
tests graphics: correctly pass layer alpha level through 2018-05-18 19:38:18 +02:00
.clang-format Don't enforce column limit for our code style 2017-01-03 09:16:46 +01:00
.gitignore Add snap configure hook to allow enable debug mode 2018-05-30 09:24:00 +02:00
.travis.yml Add initial travis build configuration 2017-01-20 10:34:18 +01:00
Android.mk Implement audio support 2017-01-12 07:02:43 +01:00
AUTHORS Add List of authors 2017-04-05 07:23:41 +02:00
cmake_uninstall.cmake.in added uninstall target to cmake to allow make uninstall operation 2017-08-18 13:55:42 +02:00
CMakeLists.txt Merge branch 'master' into touch-enable-move 2018-09-15 17:27:05 +02:00
COPYING.GPL Add proper README and COPYING file 2016-06-20 09:37:16 +02:00
cross-compile-chroot.sh Drop armhf from the chroot setup script 2017-01-27 07:17:21 +01:00
README.md scripts: use 18.04 as our new build environment 2018-06-12 07:34:05 +02:00

Snap Status Build Status

Anbox

Anbox is a container-based approach to boot a full Android system on a regular GNU/Linux system like Ubuntu. In other words: Anbox will let you run Android on your Linux system without the slowness of virtualization.

Overview

Anbox uses Linux namespaces (user, pid, uts, net, mount, ipc) to run a full Android system in a container and provide Android applications on any GNU/Linux-based platform.

The Android inside the container has no direct access to any hardware. All hardware access is going through the anbox daemon on the host. We're reusing what Android implemented within the QEMU-based emulator for OpenGL ES accelerated rendering. The Android system inside the container uses different pipes to communicate with the host system and sends all hardware access commands through these.

For more details have a look at the following documentation pages:

Anbox is currently suited for the desktop use case but can be used on mobile operating systems like Ubuntu Touch, Sailfish OS or Lune OS too. However as the mapping of Android applications is currently desktop specific this needs additional work to supported stacked window user interfaces too.

The Android runtime environment ships with a minimal customized Android system image based on the Android Open Source Project. The used image is currently based on Android 7.1.1

Installation

See our installation instructions for details.

Supported Linux Distributions

At the moment we officially support the following Linux distributions:

  • Ubuntu 16.04 (xenial)
  • Ubuntu 18.04 (bionic)

However all other distributions supporting snap packages should work as well as long as they provide the mandatory kernel modules (see kernel/).

Install and Run Android Applications

TBD

Build from source

Requirements

To build the Anbox runtime itself there is nothing special to know. We're using cmake as build system. A few build dependencies need to be present on your host system:

  • libdbus
  • google-mock
  • google-test
  • libboost
  • libboost-filesystem
  • libboost-log
  • libboost-iostreams
  • libboost-program-options
  • libboost-system
  • libboost-test
  • libboost-thread
  • libcap
  • libsystemd
  • mesa (libegl1, libgles2)
  • glib-2.0
  • libsdl2
  • libprotobuf
  • protobuf-compiler
  • lxc (>= 3.0)

On an Ubuntu system you can install all build dependencies with the following command:

$ sudo apt install build-essential cmake cmake-data debhelper dbus google-mock \
    libboost-dev libboost-filesystem-dev libboost-log-dev libboost-iostreams-dev \
    libboost-program-options-dev libboost-system-dev libboost-test-dev \
    libboost-thread-dev libcap-dev libsystemd-dev libegl1-mesa-dev \
    libgles2-mesa-dev libglib2.0-dev libglm-dev libgtest-dev liblxc1 \
    libproperties-cpp-dev libprotobuf-dev libsdl2-dev libsdl2-image-dev lxc-dev \
    pkg-config protobuf-compiler 

We recommend Ubuntu 18.04 (bionic) with GCC 7.x as your build environment.

Build

Afterwards you can build Anbox with

$ git clone https://github.com/anbox/anbox.git
$ cd anbox
$ mkdir build
$ cd build
$ cmake ..
$ make

A simple

$ sudo make install

will install the necessary bits into your system.

If you want to build the anbox snap instead you can do this with the following steps:

$ mkdir android-images
$ cp /path/to/android.img android-images/android.img
$ snapcraft

The result will be a .snap file you can install on a system supporting snaps

$ snap install --dangerous --devmode anbox_1_amd64.snap

Run Anbox

Running Anbox from a local build requires a few more things you need to know about. Please have a look at the "Runtime Setup" documentation.

Documentation

You will find additional documentation for Anbox in the docs subdirectory of the project source.

Interesting things to have a look at

Reporting bugs

If you have found an issue with Anbox, please file a bug.

Get in Touch

If you want to get in contact with the developers please feel free to join the #anbox IRC channel on Freenode.

Anbox reuses code from other projects like the Android QEMU emulator. These projects are available in the external/ subdirectory with the licensing terms included.

The Anbox source itself, if not stated differently in the relevant source files, is licensed under the terms of the GPLv3 license.