Anbox - ArchWiki

# Anbox

From ArchWiki
Jump to navigation Jump to search

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.

## Installation

Install anbox-gitAUR, anbox-imageAUR (or anbox-image-gappsAUR if you want to include Google's Apps and houdini), anbox-modules-dkms-gitAUR and anbox-bridgeAUR

On recent ^5.1 kernels you need to apply a patch [1] to the PKGBUILD of anbox-modules-dkms-gitAUR in order to successfully compile the required binder module.

Start/enable the following services:

- `anbox-container-manager.service`

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

## Usage

You must execute `anbox-bridge` every time before starting `anbox` in order to get network working in anbox.

Now, you can run the android applications on your desktop's launcher on Other category.

If you want to use adb to debug, install android-tools

    $ adb shell

Category:

- Virtualization