How to Install and Run Android Applications on Linux (Ubuntu)

Android has brought enormous changes in the world of technology, especially smartphones. And Android is almost becoming de-facto mobile computing. This is why android applications are sought after even on other operating systems including Windows and Linux because everyone wants to use their favorite android applications on all devices - even on desktops and laptops.

And now you can run Android applications on Linux, thanks to a solution called Anbox (Android In a Box).
allows you to install and use Android applications like other applications on your computer.

So, if you want to get experience using an Android smartphone on your linux computer, let's learn How to install and run Android applications on Linux.

  • Requirements

Here are the important things that you must prepare and manage before installing and running an Android application on Linux:

# Already have Linux on your computer. In this example I use ubuntu linux, you can also follow this guide if you use debian-based distributions including linux mint.
Or you already have another linux distro, then you just have to modify a few commands in accordance with the linux distro that you use.
# You must install Android in a box (Anbox) on your linux.
# Login with a user with sudo rights.

1). Check snapd
First of all, you should check whether your system supports snap. Open a terminal and type snap find hello. If you see a list of packages, then that means that your linux computer already supports snap.
If not, you can browse Google how to install snapd.

2). Install the kernel module
Now, we have to install a kernel module for Anbox, which helps Anbox run Android containers on Linux. Here's how to do it:

To install a module, open a terminal and type the command:

$ sudo add-apt-repository ppa:morphis/anbox-support ;
sudo apt update ;
sudo apt install linux-headers-generic anbox-

After the module is installed, you must load it for the first time.
Type sudo modprobe ashmem_linux;
sudo modprobe binder_linux
And you won't see any message from this command, so don't worry!

Finally, let's confirm to see if you installed it correctly by typing this command:

$ ls -1 /dev/{ashmem,binder}

You will see a message like this:

3). Install Anbox Snap
Now, let's install Anbox from Snap Store. To install Anbox, open a terminal and type the command: snap install --devmode --beta anbox.

If it doesn't work or gives an error or warning, try this command: sudo snap install --devmode --beta anbox.

Once installed, you can type anbox info snap to confirm Anbox installation on your system by checking the version of Anbox that is installed.

4). Install ADB for Linux
ADB - Android Debug Bridge - is a tool for managing and connecting to an Android device or instance via the command line.
Anbox uses this tool to allow you to install applications on Anbox, e.g., Android on Linux. And here is how:

In the terminal, type sudo apt install android-tools-adb.

Now, type and run adb --version to confirm the installation.

Now, you have successfully installed the application on Anbox, which Andbox application can allow you to install and run android applications on Linux. But before you can do that, you must have an APK - this is an application form that can be executed, packaged; just like you have a deb file for Ubuntu or .exe if on Windows.

You can download the Android application (APK file) from anywhere.
After downloading the APK, you can type
adb install in the terminal.

For example, I want to install an application "Color notes"
by typing the following command: adb install com.colornotes.steno.apk

If you see an error from ADB, Anbox is not running. You can type and run anbox.appmgr to activate and run Anbox. After that, type the previous command again!
maybe Anbox cannot run all applications available on the Google Play Store. However, even so, you have to try, and you can also run many applications!

Good luck..

Post a Comment