3-5 Evaggelikis Scholis, 14231 Nea Ionia, Greece

How to Run Android Apps and Games on Linux

Originally posted on makeuseof.

Want to run your favorite Android apps and games on your Linux PC? Here are some ways to run Android apps on Linux.

While you might not be able to install Bluestacks, there are a few fantastic methods you can use to run Android apps and games on your Linux PC. You can create an Android virtual machine, install Waydroid, emulate with Android Studio, or even purchase Genymotion and enjoy a highly supported emulation experience.

What Is the Best Option for Running Android Apps on Linux?

You have quite a few methods to choose from to run Android apps and games on Linux. As mentioned before, creating an Android virtual machine, using Android Studio, installing Waydroid, and purchasing Genymotion are just a few of your options.

You’ll need to consider your own Linux setup and desired emulation experience to determine which option is best. Here’s a basic overview:

  • Waydroid: This application is the best option for Linux systems using the Wayland display server. If you use a newer version of Ubuntu, Fedora, Debian, or Arch, you’re probably using Wayland.
  • Create an Android virtual machine: If you want to run an extremely simple Android system, you can use the open-source Android x86 project by installing it as a virtual machine on your PC.
  • Use Android Studio: Android Studio is primarily geared towards developers, but you can also use it to create a personal Android Virtual Device (AVD). This isn’t the best method due to the inherent learning curve, however.
  • Genymotion: This pay-to-use application offers a convenient way to run Android virtual devices. It’s particularly good for developers, but you may also enjoy it if you want the level of support that a premium application offers.

Many guides recommend installing Anbox—but unfortunately, this application was deprecated in February 2023. You’ll need to find a supported alternative if you want to run Android apps.

1. Use Waydroid to Play Android Games

Overall, the best method to run Android games in light of the deprecation of Anbox is using Waydroid. Before you can start using Waydroid, though, it’s important to check whether you’re running the requisite display server: Wayland.

You can check whether your system runs Wayland by opening the terminal and entering the following to print your session type:

checking system display server type in terminal

If your system runs the Xorg display server, you’ll need to switch from Xorg to Wayland before you can install Waydroid.

On Ubuntu, you can switch to Wayland by logging out of your user account and clicking the Gear icon on the login screen. When the drop-down list of display options appears, click Ubuntu to switch out of the Ubuntu on Xorg configuration.

Next, you should update your system’s package list. This will ensure that the software packages you install are all completely up-to-date. Enter the following to update the package list:

sudo apt update

You’ll also need to follow the Waydroid installation instructions for your specific Linux distribution. On Ubuntu, Debian, and their derivatives, you can install Waydroid by entering the following in the terminal to install prerequisites, add the Waydroid repository to your system, and install Waydroid:

sudo apt install curl ca-certificates -y
curl https://repo.waydro.id | sudo bash
sudo apt install waydroid -y

Once Waydroid is installed, you’ll need to take a few steps to initialize the program. You’ll need to start the Waydroid container and enable its GUI (Graphical User Interface). You can accomplish this by entering:

sudo waydroid container start
waydroid show-full-ui

Finally, you’re ready to install Android apps on your PC. You’ll need to navigate to a reputable website like APKMirror or APKPure to download the APK file for each app you want to install. Once you’ve downloaded your APKs, enter the following to install the app on your system:

waydroid app install appname.apk

Wait for the app to install. Once the installation process is complete, you can run the Android app by selecting it through the Waydroid GUI, launching it through your desktop application menu, or launching it from the terminal with:

waydroid app launch appname

2. Create an Android Virtual Machine

If you’re comfortable creating a virtual machine, one of the best ways to run Android apps and games on your Linux PC is to virtualize an Android x86 system. To start, you’ll need to download the Android x86 ISO image.

You’ll also need to download your virtualization software of choice—in this case, we’ll use VirtualBox. This software is suitable for Ubuntu, Debian, openSUSE, and derivative distributions.

Download: Android x86

Download: VirtualBox

Download the appropriate package for your Linux distribution, then install it from the terminal.

On Ubuntu and Debian-based distros, right-click on the file and select Open with another application. Select Software Install from the dropdown list, and finally, click Install. Wait for VirtualBox to finish installing on your system.

  • Type: Linux
  • Version: Linux 2.6 / 3.x / 4.x (32-bit or 64-bit depends on which version of Android x86 you installed)
  • RAM: 2GB (2048MB) minimum, more if possible
  • HDD file type: VDI (VirtualBox Disk Image)
  • Storage: Dynamically allocated
  • HDD: 8GB (8192MB) minimum, more if possible

After you’ve created the new virtual machine, you’ll still need to configure a few more settings. Select your new virtual machine from the list of VMs and click on Settings. In System > Processor, allocate two or more CPU cores.

In System > Acceleration, select KVM as the paravirtualization interface. In the Display > Screen tab, you’ll need to change the Graphics Controller setting to VBoxSVGA.

configuring graphics settings in virtualbox

As prompts appear on the new virtual machine, click Advanced Options, select Auto_Installation from the advanced options list, and then click Yes to confirm the auto installation.

Once the installation process is complete, you can configure and install apps on your new Android virtual machine.

3. Use Android Studio for Seamless Gaming

While Android Studio is primarily geared towards developers, it can be an excellent option for emulation if you aren’t interested in using Waydroid or an Android x86 virtual machine. After installing Android Studio, you’ll need to create an Android Virtual Device (AVD) using the official Android Developer’s guide and then install your chosen APK on the Android Emulator.

4. Run Android Apps on Linux With Genymotion

It’s worth considering application like Waydroid and even tried-and-true virtual machines before you purchase Genymotion. In most cases, it’s possible to accomplish anything you want on your Linux PC without purchasing proprietary applications.

If you choose to purchase Genymotion, however, you’ll be enthused with the ease of use and convenience that this application offers.

comparing the plans offered by genymotion

To start, you’ll need to purchase the right Genymotion plan. Genymotion offers a free plan for personal use, but any technical support requests beyond issues with installation and first run will be rejected—and you won’t be able to use features like Android 13, camera and media widget features, and quick boot.

If you’re a current student or teacher, you can use your school ID to purchase full-featured Genymotion for $49 per year.

Enjoy Using Android Apps and Games on Your Linux System

With the deprecation of Anbox, it’s easy to wonder if any easy methods to run Android apps on Linux systems remain. Luckily, Waydroid, Android x86, Android Studio, and Genymotion all offer distinct and easy ways to run Android apps.

Once you’ve chosen which software to use, you’ll be amazed at just how convenient and seamless using these apps is.

Source: makeuseof

Related Posts