Anbox is a fairly new tools that acts as a layer between your Linux distribution and native Android apps. It allows you to use many apps as though they were running natively on your machine. While Anbox is still very much in development, you can get started with it now, and try out some of your favorite Android apps.
In this tutorial you will learn:
- How to Install Anbox on Ubuntu and Debian
- How to Install Anbox on Arch Linux
- How to Install Anbox with a Snap
- How to Install ADB on Ubuntu and Debian
- How to Install ADB on Fedora
- How to Install ADB on Arch Linux
- How to Install Apps on Anbox
Software Requirements and Conventions Used
|Category||Requirements, Conventions or Software Version Used|
|System||Ubuntu, Debian, Fedora, and Arch Linux|
|Other||Privileged access to your Linux system as root or via the
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of
$ – requires given linux commands to be executed as a regular non-privileged user
How to Install Anbox
Anbox has gained some traction with the major Linux distributions. As a result, you can find it in some distribution repositories. That said, snaps may still be the easiest way to get set up. Evaluate your options, and choose which works best for you.
How to Install Anbox on Ubuntu or Debian
Anbox is a rather new addition to the Ubuntu and Debian repositories. If you’re on Debian Buster or Ubuntu Cosmic, you’ll have access to Anbox with Apt. Otherwise, skip down to the snap section.
$ sudo apt install anbox
How to Install Anbox on Arch Linux
Anbox is available in the AUR. You can get it manually or with an AUR helper.
$ cd ~/Downloads $ git clone https://aur.archlinux.org/anbox-git.git $ cd anbox-git $ makepkg -si
If you have an AUR helper, the process is much simpler.
$ pikaur -S anbox-git
How to Install Anbox with a Snap
Snaps are the still the preferred way to install Anbox, and they’re the only real option on most distributions. Make sure that you have
snapd installed and running on your system, and run the following command to install Anbox.
$ sudo systemctl status snapd $ sudo snap install --devmode --beta anbox
You’ll probably need to restart to get Anbox working. It requires a few kernel modules to be loaded.
How to Install ADB
You can start up Anbox right now, but the tools that come with it are fairly limited. Unfortunately, one of those tools isn’t the Google Play Store. As a result, you’re going to need the Android Debug Bridge(ADB) to manually push Android APKs to your virtual Android install in Anbox. The tools are readily available across most distributions, so you won’t have a hard time getting them.
How to Install ADB on Ubuntu and Debian
Google developed these tools for Ubuntu, so they’re super easy to get set up on Ubuntu and Debian.
$ sudo apt install android-tools-adb
How to Install ADB on Fedora
The Android tools aren’t hard to get on Fedora either. They’re available in the default repository.
$ sudo dnf install android-tools
How to Install ADB on Arch Linux
Arch Linux has the tools in its repositories too.
# pacman -S android-tools
How to Install Apps on Anbox
While you can’t use the Play Store to download apps on Anbox, you can grab independent Android APKs from sites like APKMirror, and manually push them with the ADB to Anbox. It might seem a bit awkward, but you’ll pick it up quickly.
Download an APK
Open your browser, and head over to APKMirror. You’ll notice that there is a search feature to the right of the page. Use it to search for an app you want to try out. Don’t select anything that you know will require Google services. They won’t work, since Anbox is missing the Google Play services. Also, be sure to locate an
x86 APK. Even though you’re emulating Android, you’re still on a regular 64bit CPU, not ARM.
Connect To Anbox
It’s time to start up Anbox. It is a graphical application, so you can search for it in your application launcher. When Anbox opens, you’ll see a plain window with a simple listing of Android apps. You can try clicking on one to open it up. It’s all fairly bare bones, but it does work.
Open a terminal, and run the following command to start up the ADB server
$ adb devices
The ADB server will start and list out Anbox as an emulated device. Now, you’re ready to install your app.
Install The App
Locate the APK that you downloaded in your terminal. Then, issue the following command to install it on Anbox.
$ adb install name-of-your.apk
It’ll take a few seconds, but when it’s done, your app will appear in the listing on Anbox. Here’s the tricky part. It may work, and it may not. Anbox isn’t a perfect emulation solution just yet.
Anbox is a great way to try out Android apps on your Linux PC. It’s not ready for daily use, and it’s certainly not a production grade system. That said, you can do some really cool things with Anbox, and it can be a great tool for Android developers.