How to Run Android Apps and Games on Linux
Whatsapp Pinterest
Advertisement

Want to run Android apps on Linux? How about play Android games? Several options are available, but the one that works the best is Anbox, a useful tool that runs your favorite Android apps on Linux without emulation.

Here’s how to get it up and running on your Linux PC today.

Meet Anbox, Your “Android in a Box”

Having access to your preferred Android apps and games brings an exciting new dimension of productivity to your Linux desktop or laptop. Mobile apps are, by design, a lot simpler than those found on desktop operating systems.

This could be just what you’re looking for to improve desktop productivity!

Meanwhile, mobile games are becoming increasingly sophisticated. It makes sense that you might want to continue playing on a different device, especially given the limited battery life of a phone or tablet. Sure, you could plug the device in to recharge, but being able to play the game on your computer could give you an edge.

Several macOS and Windows tools are available for running Android apps. The most common tool for running Android on a desktop The Best Android Emulator for Windows 10 The Best Android Emulator for Windows 10 You've heard of Android phones, but did you know you could install Android directly onto your computer? We'll show you the best emulators for Windows 10. Read More is Bluestacks, but this isn’t available for Linux.

Instead, Linux users should try Anbox, a free and open source alternative based on the latest version from the Android Open Source Project (AOSP). Offering a window-based Android environment, complete with apps and games, Anbox uses containers to separate Android from the host operating system (that is, the OS on your computer).

That’s not all; as well as being open source, Anbox has no limits, so in theory you can run any Android app on Linux. There’s no hardware virtualization either, and Anbox can work on a laptop or desktop as well as it might on a Linux-powered mobile device.

This last point is hugely significant, as it could overcome engagement issues with Linux mobiles.

Which Linux Distros Support Snap?

Although free to use, Anbox comes as a snap package. This means that the binary and any dependencies are included in a single package How Ubuntu 16.04's New Package Format Makes Installing Software A Snap How Ubuntu 16.04's New Package Format Makes Installing Software A Snap In version 16.04, Ubuntu is hoping to strike a balance between having stability and staying up-to-date, with a new way to install apps. Let's find out how "snaps" work. Read More , easing installation. Unfortunately, it may also mean that your Linux OS cannot use Anbox unless it can unpackage and install snaps.

The snapd service is required to install snaps, and this is compatible with Linux distributions such as:

  • Arch Linux
  • Debian
  • Fedora
  • Gentoo
  • Linux Mint
  • Manjaro
  • openSUSE
  • Solus
  • Ubuntu

In Ubuntu, it comes pre-installed from 14.04 onwards. You’ll find full details for your distro at the Snapcraft website.

To install snapd, use the following terminal command:

sudo apt install snapd

Wait until the installation completes before proceeding.

Installing Anbox on Linux

With the snapd service installed on your Linux PC, you’re ready to install Anbox. This is done using the following command, which installs everything you need:

snap install --classic anbox-installer && anbox-installer

You’ll be prompted for a password before the snap package downloads.

Linux Download Anbox

Shortly after, you’ll be presented with a choice:

  1. Install Anbox
  2. Uninstall Anbox

Should you need to remove the software at a later date, simply run the installer command above, and select option 2. In the case of installing Anbox, however, you can proceed with option 1.

Linux Anbox Install Summary

Following this, you’ll see a summary of what the installation will do. For instance, files that are added from a PPA are highlighted, as is the information that the anbox runtime (a software library that enables other software and apps to run) will autostart when you log into Linux.

If you’re happy with all of this, enter the legend I AGREE, and wait for Anbox to install. Once done, follow the instruction to reboot your system before proceeding.

Downloading APK Files to Your Linux PC

With your PC rebooted, you should find Anbox available in your desktop’s menu. Click it to launch; you’ll soon see the Anbox window.

Android Anbox Application Manager

If nothing happens, or you’re stuck on a splash screen with the Starting message, cancel or wait for this to end. Then open a new terminal and enter

anbox session-manager

Next, click the icon in the menu again. A few moments later, Anbox should run. This is a known bug in Ubuntu 16.04-based distributions, and shouldn’t affect later distros.

With Anbox running, you’ll see a list of the basic Android apps you can run on Linux, such as Calendar and Email. Simply left-click these icons to open them; they’ll appear in new windows that you can resize as required. If you need a browser, the WebView Shell is included.

To add your own apps and games, all you need to do is download (or copy from another device) the appropriate APK files What Is an APK File and What Does It Do? What Is an APK File and What Does It Do? Wondering what an APK file is? Curious about sideloading apps on Android? Here's what you need to know to understand APK files. Read More . These are installer files, like DEB files (or snaps) in Linux, or EXE files in Windows. They’re typically available via Google Play on Android… but that doesn’t apply on Anbox.

Installing Android Apps on Linux With Anbox

Because the Anbox implementation of Android is not registered, you won’t be able to access (or install) Google Play. The answer, therefore, is to download and sideload APKs How to Sideload Any File onto Your Android Phone or Tablet How to Sideload Any File onto Your Android Phone or Tablet You may have come across the term "sideloading" before, but what does it mean? And how can you go about sideloading apps or files? Read More .

Where will you find the APKs? Several Google Play alternatives Google Play Alternatives For Downloading Android Apps Without Fuss Google Play Alternatives For Downloading Android Apps Without Fuss Many people think that the Google Play Store is the only option Android users have for downloading apps, but there are actually quite a few quality alternatives out there. Read More are available, but if you’d rather stick with the Play Store, you have several methods for extracting APKs from Google Play How to Download an APK from Google Play to Bypass Restrictions How to Download an APK from Google Play to Bypass Restrictions Need to get your hands on the installable APK file for an app from Google Play? We got you covered. Read More . While Google restricts access to the Play Store to registered Android devices, bypassing this is not piracy. If you own the APK files, or they’re available freely, it’s okay to run them on unregistered Android devices.

Android apps running on Linux with Anbox

Once you’ve got hold of any APK files you want to install, you’ll need to enable installation from unknown sources. Do this by opening the Settings menu from the apps screen, then find Security. Here, enable the switch next to Unknown Sources, and click OK to accept.

With this done, find your APK files and double-click the first one you want to install. A few moments later, the app or game should be ready, and will run in its own window in Linux. Installed games are listed alongside all other apps.

It’s that simple!

Now You Can Run Android Apps on Linux

Since Anbox is in the alpha stage, there may be some stability issues. However, it is reassuring to know how simple it is to set up, install, and run Android apps on Linux with Anbox.

To review:

  1. Confirm your distro supports snap packages.
  2. Install or update the snapd service.
  3. Install Anbox.
  4. Launch Anbox from your Linux desktop.
  5. Download APK files, and run them.
  6. Wait as the APK file installs.
  7. Click to run Android apps on your Linux desktop.

Anbox isn’t the only way to run Android apps and games on Linux 3 Ways to Emulate Android Apps on Linux 3 Ways to Emulate Android Apps on Linux If you want to run your Android apps on your Linux computer, one of these apps will be able to help you out. Read More , but we reckon it will be the most popular within a few years. And to go the other way, check out how to run Linux on your Android device How to Run Linux on Android Devices How to Run Linux on Android Devices Want to run Linux on Android? Here are methods for both unrooted and rooted devices to get a Linux desktop running on your phone. Read More .

Explore more about: Android, Android Apps, Emulation, Linux.

Enjoyed this article? Stay informed by joining our newsletter!

Enter your Email

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. hansaka
    October 23, 2018 at 4:52 pm

    Using this will i be able to play android games on Elemantry OS ?

  2. prashant
    September 20, 2018 at 4:24 am

    $ sudo apt install snapd

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
    openjdk-11-jre : Depends: openjdk-11-jre-headless (= 10.0.2+13-1ubuntu0.18.04.2) but 10.0.2+13-1ubuntu0.18.04.1 is to be installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

    $ snap install --classic anbox-installer && anbox-installer

    Command 'snap' not found, but can be installed with:

    sudo apt install snapd

  3. Chris
    September 6, 2018 at 6:56 pm

    You'll need to update this article. The installation instructions you provided have been depreciated. I tried following the instructions on their GitHub, but being a totally new to Linux, I have missed something. Doesn't seem to be installed.

  4. Grumpy granddad
    June 24, 2018 at 5:00 pm

    Anbox only supports Ubuntu, LinuxMint, neon and elementary.
    The destro you list (Arch Linux, Debian, Fedora, Gentoo, Linux Mint, Manjaro, openSUSE, Solus, Ubuntu) , may support snaps, but does not support by anbox...
    (Hope my post doesn't again disappears just because I correct the artikel)

  5. adi yono
    April 21, 2018 at 11:51 am

    It's sad to learn that Anbox will never able to run an ARM architecture APK. Most of android apps are build for ARM architecture only, which mean, most of the apps will never work on Anbox. Otherwise, it is a promising project :(

  6. Rudi Pittman
    April 18, 2018 at 7:50 pm

    All I get on linux mint 18.3 when I try this is:

    modprobe: FATAL: Module binder_linux not found in directory /lib/modules/4.4.0-119-generic

    While I can see the module is in older versions that doesn't really help.

    locate binder_linux
    /lib/modules/4.4.0-72-generic/updates/binder_linux.ko
    /lib/modules/4.4.0-75-generic/updates/binder_linux.ko
    /lib/modules/4.4.0-79-generic/updates/binder_linux.ko
    /lib/modules/4.4.0-83-generic/updates/binder_linux.ko
    /lib/modules/4.4.0-87-generic/updates/binder_linux.ko
    /lib/modules/4.4.0-92-generic/updates/binder_linux.ko
    /var/lib/dkms/anbox-modules-binder/4~xenial1/4.4.0-72-generic/amd64/module/binder_linux.ko
    /var/lib/dkms/anbox-modules-binder/4~xenial1/4.4.0-75-generic/x86_64/module/binder_linux.ko
    /var/lib/dkms/anbox-modules-binder/6~xenial1/4.4.0-72-generic/amd64/module/binder_linux.ko
    /var/lib/dkms/anbox-modules-binder/6~xenial1/4.4.0-75-generic/amd64/module/binder_linux.ko
    /var/lib/dkms/anbox-modules-binder/7~xenial1/4.4.0-79-generic/amd64/module/binder_linux.ko
    /var/lib/dkms/anbox-modules-binder/8~xenial1/4.4.0-83-generic/amd64/module/binder_linux.ko
    /var/lib/dkms/anbox-modules-binder/9~xenial1/4.4.0-87-generic/amd64/module/binder_linux.ko
    /var/lib/dkms/anbox-modules-binder/9~xenial1/4.4.0-92-generic/amd64/module/binder_linux.ko

    • Christian Cawley
      April 20, 2018 at 7:03 pm

      Ah, that's a shame. As noted, anbox is in alpha, but it's such a great development that we had to take a look at it.

      AFAIK, issues with Mint 18.3 have been around for a while. If you're able to try on Ubuntu, that will probably be the best option until Anbox is ready for the big time.

    • bob
      April 21, 2018 at 5:18 pm

      Be careful. I just nuked my Mint 18.3 installation by installingl anbox. It installed, but upon reboot - blackscreen. I was able to hard reboot, enter recovery mode, gain root shell and then invoke timeshift to restore my system from command line, otherwise I'd be fooked.

      Lesson learned & just donated to the developer of timeshift (whew).

      Highly recommended that you get some kind of system backup tool and learn to use it from command line as well as the graphical interface before continuing.