Android emulators

From Emulation General Wiki
Revision as of 23:27, 21 January 2020 by FosterHaven (talk | contribs) (new lead section)
Jump to navigation Jump to search
This page is about emulating Android on desktops. For emulating specific platforms, we'll usually list Android ports of emulators on the target platform's page; for example, a Game Boy emulator for Android would be listed at the Game Boy emulators page.

Android is a mobile operating system developed by Google and the Open Handset Alliance. It was originally developed in secret before launching in 2008 as a competitor against Apple's iPhone. While other mobile operating systems had been made throughout the years, none have emerged in terms of market share nearly as much as Android.

Android is like a Linux distribution in that it uses the Linux kernel to facilitate communication with the hardware and manage processes on the system. Unfortunately, the similarities end there as Android uses an entirely different toolset from standard Linux distributions and no support is given for running it on PCs. (Software development on Android is also nothing like Linux development as apps are compiled into architecture-specific APKs via Java which, like IPA files on iOS, are specially designed Zip files. They may be occasionally coupled with OBB files.) While Android can technically run Linux binaries, doing so requires superuser privileges that Android does not provide by default. For many devices, you can expect to see a custom ROM that has an integrated su binary (or a means to install it easily, such as a custom recovery) but not all devices have one.

However, the Linux kernel is flexible enough that it can be emulated well unlike iOS, older cell-phone models, and older Japanese Galapagos mobile phones. While Android natively supports mice,[N 1] most apps expect users to have a touchscreen, so Android emulators will usually default to emulating touchscreen presses like DS emulation (though it can be less than ideal in many cases). The host's keyboard may often emulate the button controller add-ons, and some emulators support Xbox 360 controllers as well with some more tweaks.

Emulators

Important Note: These emulators are usually closed source and while they're distributed for free, their devs look for roundabout ways to monetize them. One such high profile case was BlueStacks. Make sure to check if there are pre-installed apps on your emulator (and disable them), monitor your Internet connection download caps and processor activity to detect any abnormal activity (and block domains accordingly if the need arises) and avoid as much as possible giving sensitive account data (just in case it's key-logged). Besides basic safety, these precautions often make impacted emulators run much faster when the adware services and apps are turned off.

Name Platform(s) Version VM Accuracy Open-Source Active Recommended
PC / x86
Genymotion Windows Linux macOS 3.6.0 VirtualBox High
BlueStacks Windows macOS 5.20.100 QEMU (before v2.5) / VirtualBox (after v2.5) High
MEmu Windows 7.0.8 VirtualBox High
LDPlayer Windows 3.79 VirtualBox High
Nox App Player Windows 6.5.0.3 VirtualBox High
MuMu App Player Windows macOS 1.1.0.2 VirtualBox High
Peak App Player Windows 1.2.5 VirtualBox High
Anbox Linux Git Not an emulator (wine-like approach) ?
tiantian app player Windows 3.2.8 VirtualBox Mid
Andyroid Windows macOS 0.47.226.1076.7 VmWare High
Android x86 Windows Linux macOS 8.1-r3 VirtualBox, VMWare (for 3d acc) Mid
Android Studio Windows Linux 3.5.3 QEMU Low ~
LeapDroid Windows 1.8.0 VirtualBox High
SmartGaGa Windows 1.1.523 VirtualBox High
AMI DuOS Windows 2.0.8.8511 VirtualBox Mid
ARC Welder
(Google Chrome)
Windows Linux macOS Web 50.5021.602.0 Original Mid
Droid4X Windows macOS 0.10.7 VirtualBox High
KoPlayer Windows 2.0.0 VirtualBox High
XePlayer Windows 6.0.10 VirtualBox High
Windroy Windows 1.2 Original Low
Shashlik Linux 0.9.3 Original Low
Xamarin Android Player Windows macOS 0.6.5 ($) VirtualBox ?
Windroye Windows 2.9.0 VirtualBox Mid
YouWave Windows 5.11 VirtualBox Mid
Consoles
LineageOS Switch 15.1 based of the Nvidia Shield TV build of LineageOS ?
Mobile / ARM
LineageOS Linux ARM 16.0 (Raspberry Pi 3/4) Not an emulator (actual AOSP) High
Anbox Linux ARM Git Not an emulator (wine-like approach) ?
Project Astoria Windows Mobile Discontinued ($) Original Low

The VM column describes what backend technology the emulator uses. Emulators labeled with "VirtualBox" sometimes needs the user to install Oracle VM VirtualBox. Usually, it is installed automatically.

Comparisons

Genymotion
A closed-source Android emulator with hardware-accelerated 3D graphics and USB host support, available for Windows, macOS, and Linux. In its latest versions, it has pretty good compatibility with commercial games. It's a commercial product though, aimed at software developers and QA teams. You'll need to create an account and download the free non-commercial use license available. Except for pay-to-remove "free for personal use" watermark on the screen, paid builds to add features only useful for Android app developers.

Setting up the emulator itself is not too hard, but a bit of tinkering is required to add the Google Play store and ARM processor emulation (what you need essentially here to play the commercial releases) as well as Xbox 360 controller support. Not noob-friendly, but if you're experienced enough with Android to know your way around a rooted filesystem it shouldn't be too hard.

Note as of November 25th, 2019: The above paragraph is outdated and ARM Emulation has been broken in Genymotion for a while, so you can't use ARM apps unless you get a really old version.

BlueStacks
Also commercial with a free option (requires a google account). It's less good than Genymotion and doesn't handle USB cable emulation. Previous versions used to come with an installer with adware comes with junk apps within the emulator and has a non-intuitive uninstaller, but that's no longer the case today. It includes Google Apps by default, though you'll need to install a file manager to copy game cache when loading your own .apk files.
MEmu
A free Android emulator with very good accuracy, sometimes outperforming BlueStacks.
LDPlayer
An Android emulator also with good accuracy. When testing games along side Nox, LDPlayer shows to have better performance/compatibility with games.
Droid4x

Has good accuracy but forcefully uninstalls VirtualBox, so it cannot co-exist with Genymotion and Xamarin. It's not recommended because it will install hidden background services (xunlei.exe, and Thunder.exe, both by the Chinese company which developed Droid4x) that seed Chinese torrents constantly and they are a pain to uninstall or deactivate (in case you've already fallen for it, use Revo Uninstaller).

Andyroid
Not recommended because it will install a cryptocurrency miner on your system without asking or informing about this to the user. Just like Genymotion, Andyroid uses VirtualBox, but with a twist: if it detects an installed VirtualBox during installation, it will delete it and will refuse to work. Beware!
DuOS
Not to be confused with a similarly-named Nintendo DS emulator by Roor, is a relative newcomer to the Android emulation market, made by American Megatrends i.e. the very same people behind the BIOS/UEFI firmware your PC may be using. Emulation is modest at best, with games and apps such as DraStic struggling on lower-end hardware. And to top it all off, it isn't free either.
Google Chrome
Can open .apk files using the ARC Welder extension, though their emulation on PC is average at best. Here's a compatibility list and a dedicated subreddit. Google has announced Play Store for Chrome OS, but it works on a different "container" technology that is embedded in the Chrome OS. In addition, Google will discontinue Google Chrome apps on PC, so any major updates to ARC Welder for PC is unlikely.
Windroy
(Without the 'e' suffix) is a fast Android emulator that does not rely on VirtualBox or any similar technology. It isn't accurate though. While Google Play store can be installed with some tinkering, not many games can be installed (due to not faking device names) and will spawn multiple harmless-yet-annoying app_process.exe crashes. The official site is down since July 2016, so any updates are unlikely.
Windroye
(With the 'e' suffix) uses VirtualBox, but still offers better performance than BlueStacks. The Play Store is installed by default and has no stability issues found in Windroy. A related Reddit topic can be found here.
Android x86
An open-source project that aims to port the Android operating system to x86-based netbooks. Comes with Google Play and libhoudini (x86/ARM translation layer) installed. 3D acceleration works well both when installed directly on the machine as a local OS and also on VMware. VMware Player 15 supports emulating OpenGL ES 3 on the target and performance is quite good. VirtualBox 3d support is poor and probably won't work. Android x86 is continually being improved and can be tried fairly painlessly through VMware. Genymotion is (or at least used to be) a closed-source fork of Android x86, designed exclusively to be run on VirtualBox.
Anbox
A project that aims to run Android applications on Ubuntu distributions. Currently, it is on alpha state and only known to work on Ubuntu 16.04. Anbox requires custom kernel modules to run because unlike other emulators which emulate the whole Linux kernel, this one uses the host system's Linux kernel directly.
Shashlik
A project by KDE that aims to run Android applications on Linux using KDE5 and Qt5 technology. The project is infancy state and only known to run on latest Kubuntu versions. It currently lacks ARM processor emulation, so not many games will run. It is however known to play Flappy Bird and can show Spotify's login screen. It uses modified QEMU to emulate the Android operating system. Last major update was March 2016 and seems abandoned.
Xamarin Android Player
A newcomer to the Android emulation market. Not much is known about this because it required a minimum of $25/month subscription of main Xamarin products. The main Xamarin products were made available for free after the purchase by Microsoft, but Xamarin Android Player was discontinued.
Project Astoria
A Microsoft-developed Android emulator for Windows 10 Mobile included in several insider previews. It could run a few applications, though apps required Google Play Services did not run or had issues. This project was reportedly discontinued in November 2015 and its cancellation was confirmed on February 2016, so the emulator is not included in more recent versions of Windows 10 Mobile.

General Emulation issues

Lack of Release Notes and Update History information

While some emulators such as Genymotion do have version history on their website, most other emulators do not have such history pages, making it difficult to track updates as well as regressions.

Emulator Conflict

Many emulators, such as Droid4x, Andyroid, Genymotion, and Xamarin cannot co-exist on the same machine because they will uninstall each other. This can be a problem if one game runs only on one of these emulators but the other games do not work on it.

Google-related Libraries

Likely due to licensing issues, most Android emulators do not come with Google-related applications and related libraries preinstalled (Google Play Store, Play Services, Play Games client, etc) and requires the user to manually install them. Many games verify the existence of Google-related components at the start and refuse to work if some or any of them are missing.

ARM Applications

Most commercial games are developed and published only for devices with ARM CPUs such as most smartphones and tablets. However, the PCs we regularly use contain x86 CPUs, so these games cannot directly run. Some emulators like BlueStacks have ARM emulation by default, and in some others like Genymotion, it is possible to install ARM emulator manually. The ARM emulator requires Intel CPUs to work correctly and not guaranteed to work with all games.

Games with root/Custom ROMs/Emulator Detection

Many commercial games refuse to run if the device is "rooted" (hacked to allow access to the deep portion of Android OS) in order to reduce cheating and pirating. If the emulator is rooted by default, it must be unrooted manually before the game can be played.

Some games are very aggressive that they detect Custom ROMs (unofficial firmware) or Android emulators (like the ones listed in this page) by the variety of ways like checking the existence and absence of system files in order to prevent the game from running in any unauthorized environments. These games are very difficult or plain impossible to play on emulators without resorting to cracked versions of the games. Solutions exist, like using MagiskSU (bundled with the Magisk flashable zip) and hiding root on anything Google Play related or installed apps that check for it.

Emulator Specific Issues

BlueStacks

  • Can't root the device:

The latest Kingroot's .apk will do the job when loaded inside BlueStacks. It's that simple.

Alternatively, you could use Universal BlueStacks Rooting Software on an existing BlueStacks installation. Before opening it, go to the folder where BlueStacks is installed under Program Files, and run "HD-Quit.exe" once.

Then, from the extracted "BlueStacks RootEZ 32_64", open as administrator "BlueStacks RootEZ.exe". Click "Automatic Detect from Installed Bluestacks", enable "Enlarge System (Root.fs) Size to 400MB", and click "I'm ready for Step 1". A command-line window should appear. Now just wait until "Preparing Complete" appears. Then, click "Go for Step 2" and wait until "Rooting is Complete" appears.

Close the application, and open the "output" folder in the same directory as the extracted application. You should find a newly generated "Root.fs" file. You can use it to replace the existing one under "%programdata%\BlueStacks\Android" (Press Windows+R and go there), but it's recommended to keep a backup of the original in case the new one causes Bluestacks to hang in the loading screen for more than a few minutes.

The package also includes Nova Explorer and Root Launcher. You may verify the rooting status with the "Root Checker" app from Google Play. Considering some apps check for Google Play services for online checks, you can also install "Modded Google Play Store", "Lucky Patcher" and "Magisk".

Andyroid

  • Unable To Launch VM Process:

On the taskbar, right-click Andyroid's notification icon, and choose Settings, Advanced, Set Andy Protocol. Type "tcp" and confirm, then launch Andyroid.

Android-x86

  • 3D Support is broken on VMWare when using newer kernels:

Kernels > 4.14 with version 8.1 break 3d acceleration in VMWare (see https://groups.google.com/forum/#!searchin/android-x86/4.9%7Csort:date/android-x86/wB65vJnuJiI/ytJaWYWUBwAJ). Use kernel 4.9 with 8.1 instead.

  • Setting resolution in VMWare

Pass in a kernel option to grub when booting. Select the boot entry and then press 'e' to edit it, and then 'e' to edit again. Add the kernel option here. For example, to use a video resolution of 1920x1080, add 'video=1920x1080'. Press return to save the changes (for this boot session only), and 'b' to boot (the keys to edit and boot may be different depending on your grub version, there are usually instructions on the grub screen for the requisite keys)

See also

Notes

  1. If you have an Android device you can confirm this by connecting a Bluetooth mouse or a USB mouse via a USB On-the-Go adapter.