How to Run Android Apps on Linux Distros (like Ubuntu)

Android has (almost) become the de-facto of mobile computing. That’s why its apps are sought-after even on other operating systems including Windows and Linux as everyone wishes to use their favorite apps on all devices — even on desktops and laptops. So, let me share the good news with you:

You can run Android apps on Linux, thanks to a solution called Anbox. Anbox — a short name for “Android in a Box” — turns your Linux into Android, allowing you to install and use Android apps like any other app on your system. So, what are you waiting for? Let’s check how to install and run Android apps on Linux.

10 Most Asked Questions About Linux

10 Most Asked Questions About Linux

You have probably heard of Linux as the free alternative to Windows and OS X. It's one of... Read more

Prerequisites

Let’s first talk about the essential things you must set up before installing and running Android apps on Linux, i.e., you must install Anbox. Please note that this tutorial was written for Debian-based OSs including Ubuntu and Linux Mint, so you may modify a few commands to make them work in other distros.

1.1 Check for snapd

First of all, you must check if your system supports snaps. Open a terminal and type snap find hello. If you see a list of packages (as in the screenshot below), it’s all good. If not, install snapd using this guide from Ubuntu.

Check if snapd is installed in Linux
1.2 Install kernel modules

Now, we must install kernel modules for Anbox, which help Anbox run the Android container in Linux. Here’s how to do it:

  1. Open a terminal and type sudo add-apt-repository ppa:morphis/anbox-support ; sudo apt update ; sudo apt install linux-headers-generic anbox-modules-dkms to install modules.
  2. Install Anbox kernel modules in Linux
  3. After the modules are installed, you need to load them for the first time. Type sudo modprobe ashmem_linux ; sudo modprobe binder_linux, and you won’t see any messages from this command, surprisingly!
  4. Finally, let’s confirm if you’ve got them installed properly by typing this command: ls -1 /dev/{ashmem,binder}. You’ll see like this:
  5. Check if Anbox kernal modules are installed
1.3 Install the Anbox snap

Now, let’s install Anbox from the Snap Store. That said, open a terminal and type snap install --devmode --beta anbox to install Anbox.

If it doesn’t work or gives any error or warning, try this command: sudo snap install --devmode --beta anbox. After it’s installed, you can type snap info anbox to confirm its installation in your system by checking the installed version of Anbox.

Install Anbox as a snap in Linux
1.4 Install ADB for Linux

ADB — Android Debug Bridge — is a tool to connect to and manage an Android device or instance through the command-line.

Anbox leverages this tool to allow you to install apps in Anbox, i.e., Android on Linux. Let’s see how to do it:

  1. In a terminal, type sudo apt install android-tools-adb.
  2. Install Android ADB tools in Linux
  3. Now, type and run adb --version to confirm its installation.
  4. Check if ADB is installed in Linux

Android Apps on Linux

Finally, let’s learn to install apps in Anbox, which will finally allow us to use them on Linux. But before you can do that, you must have an APK — it’s an executable, packaged form of an app; it’s as you have .deb files for Debian and Ubuntu.

You can download from APKMirror — it’s a popular and safe place to get APKs.

Once you’ve downloaded the APK, you can type adb install <APK_FILE> in the terminal.

For example, I used adb install com.manco.steno.apk to install Steno Notes — a minimalistic note-keeping app — on my system. If you see an error from ADB, Anbox isn’t running. You can type and run anbox.appmgr to get Anbox up and running. Thereafter, type the previous command again!

Install Android apps in Anbox on Linux

If you’d run the command for Anbox, you’ll see its window as in the screenshot below. If not, you can always search for Anbox Application Manager in the applications menu. When you run it, you’ll see the list of installed apps.

Anbox Application Manager on Linux

For instance, I ran Calculator, Calendar, Files, Settings, and Steno using Anbox on Linux. All apps ran successfully except Steno — it started as others, but it wasn’t accepting my input. It may be because Steno is a beta app and may have bugs. Or maybe Anbox can’t run all the apps that are available in the Google Play Store.

Nevertheless, it’s still worth a try, and also, you can run multiple apps!

FacebookTwitterInstagramPinterestLinkedInGoogle+YoutubeRedditDribbbleBehanceGithubCodePenWhatsappEmail