Difference between revisions of "Anbox"

From ArchWiki
Jump to navigation Jump to search
m (Fixed a minor typo in the second reference to the anbox-modules-dkms-git AUR package so the hyperlink resolves correctly.)
(added installing kernel headers notice)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[Category:Virtualization]]
 
[[Category:Virtualization]]
 +
[[ja:Anbox]]
 
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.
 
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.
 
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.
Line 5: Line 6:
 
== Installation ==
 
== Installation ==
  
[[Install]] {{AUR|anbox-git}}, {{AUR|anbox-image}} (or {{AUR|anbox-image-gapps}} if you want to include Google's Apps and houdini), {{AUR|anbox-modules-dkms-git}} and {{AUR|anbox-bridge}})
+
Make sure you have had the header files for your kernel installed (e.g. {{Pkg|linux-headers}} for Linux kernel).
  
On recent ^5.1 kernels you need to apply a patch [https://aur.archlinux.org/pkgbase/anbox-git/#comment-694481] to the PKGBUILD of {{AUR|anbox-modules-dkms-git}} in order to successfully compile the required binder module.
+
[[Install]] {{AUR|anbox-git}}, {{AUR|anbox-image}} (or {{AUR|anbox-image-gapps}} if you want to include Google's Apps and houdini), {{AUR|anbox-modules-dkms-git}} and {{AUR|anbox-bridge}}
  
 
[[Start/enable]] the following services:
 
[[Start/enable]] the following services:

Latest revision as of 10:10, 28 August 2019

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

Make sure you have had the header files for your kernel installed (e.g. linux-headers for Linux kernel).

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

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