Open source android emulators

Что делать, если под рукой нет Android-устройства? Обзор Android-эмуляторов

Введение

Часто бывает необходимость проверить работу свеженаписанного приложения на устройстве. Но вполне может оказаться, что устройства под рукой нет. Или нет устройства с определенными параметрами (правда, это больше относится к размеру/разрешению экрана). Что же делать в этом случае?
К счастью, альтернативы есть. Android-сообщество и разные компании предлагают на выбор несколько вариантов замены android-устройств для разных целей.

Я кратко расскажу о следующих:

  • Эмулятор в составе SDK
  • Genymotion
  • Android x86
  • Bluestacks

Если интересно — добро пожаловать под кат (осторожно, достаточно много картинок)

Эмулятор в составе SDK

Сайт: http://developer.android.com/sdk/index.html
Самый очевидный способ подмены устройства. Если занимаешься разработкой под Android — эмулятор точно есть.

Использование
Плюсы
Минусы
  • Медленный, если не использовать HAXM
  • Не ARM, если использовать HAXM
  • Нет эмуляции Bluetooth, OTG, наушников и некоторых других железных параметров

Genymotion

Сайт: http://www.genymotion.com/
Проприетарная реализация, выросшая из проекта AndroVM.
По сути, виртуальная машина на VirtualBox с дополнительными фишками вроде своих контролов, расширенной настройки и т.д.
Достаточно удобен, быстр, много возможность, коммандлайн тулы, Java API для тестов.
При создании устройства из сети выкачивается его образ.
APK можно устанавливать, перетянув их на окно с виртуалкой.

Плюсы
Минусы
  • Платный для компаний, и это главный минус
  • Не ARM
  • Достаточно долгий выход актуальных версий Android

Android x86

Сайт: http://www.android-x86.org/
Проект по портированию Android на платформу x86. Распространяется в виде образа iso, можно запустить/установить в виртуальной машине, при большом желании можно даже поставить на живую машину с x86 процессором (на ноутбук, например).
Работает быстро, но есть куча проблем из-за того, что это виртуальная машина. Например, привязывние мыши внутри окна виртуалки, доступ к adb только по сети и т.д.

Для использования в VirtualBox нужно отключать Mouse Integration, иначе в виртуальной машине не видно курсора.

Для подключения adb нужно выполнить

IP-адрес можно узнать, нажав в машине Alt+F1 и введя netcfg. Вернуться в графический режим — Alt+F7.

Плюсы
Минусы
  • Неудобный доступ к adb
  • Минусы, связанные с использованием VM — привязка мыши, например
  • Не ARM
  • Очень долгий выход актуальных версий

Bluestacks

Сайт: www.bluestacks.com
Позиционируется как плеер приложений для Windows, Mac и TV. Умеет запускать приложения, имеет доступ к маркету. Неудобен для разработки и тестирования — apk ставятся тулом из комплекта, но доступ к adb можно получить. Однако для запуска приложений может быть полезен.
Для подключения через adb:

Плюсы
Минусы
  • Неудобно ставить приложения
  • Непонятно, что с версиями android (2.3 под OS X, под Windows ставился 4.0)
  • Нет под linux

Источник

Open source android emulators

Note: No longer needed

Support for downloading the M1-based emulator was added to SDK Manager, so it’s not necessary to go to the Github releases page to download a standalone .app anymore. In AVD Manager go to the Other Images tab as by default it doesn’t show the ARM64 images.

Android Emulator M1 Preview

This is a preview of some basic Android emulation functionality on the M1. There are still many issues, but apps work at a basic level. To be updated soon with more fixes. The release tag corresponds to this commit: https://android.googlesource.com/platform/external/qemu/+/aca144a9e9264b11c2d729096af90d695d01455d

  • Webview doesn’t work in the AOSP version, but works in the Google APIs version preview v3. However, Chrome doesn’t work.
  • No device skins
  • Video codecs not working
  • 32 bit ARM apps won’t work
  • Graphical glitches in some Vulkan apps
  • Popup on startup about not being able to find the ADB path (ADB will still notice the emulator if you have it installed though)
  • When building, it may be faster to start then cancel the Python triggered build and then reissue ninja -C objs install/strip versus letting the Python triggered build finish.
Читайте также:  Пеший туризм навигатор для андроид

This only works on M1 Apple Silicon Macs. M1 (or equivalently capable) SoCs are required; note that this does not work on DTKs as they do not support ARM64 on ARM64 hardware virtualization via Hypevisor.framework.

Go to the Github releases page, download a .dmg, drag to the Applications folder, and run. You’ll first need to right click the app icon and select Open and then skip past the developer identity verification step (we are working on providing official identity info). The first few times it starts up it will take a while to show up, but subsequent launches will be faster.

If you’ve installed Android Studio and Android SDK and adb is available, the emulator should be visible from Studio and work (deploy built apps, debug apps, etc).

How to configure

Edit /Applications/Android\ Emulator.app/Contents/MacOS/aosp-master-arm64-v8a/config.ini . Some notable options:

  • disk.dataPartition.size : size of userdata. When reconfiguring, you’ll also need to delete all userdata*.img files in that directory.
  • fastboot.forceColdBoot , fastboot.forceFastBoot : whether to enable snapshots. Current default is snapshots disabled. Set fastboot.forceColdBoot=no , fastboot.forceFastBoot=yes to enable snapshots.
  • hw.lcd.density : Virtual display DPI.
  • hw.lcd.width , hw.lcd.height : Virtual display dimensions.
  • hw.ramSize : RAM limit for the guest. (2GB minimum)

How to wipe data

Remove all userdata*.img files in /Applications/Android\ Emulator.app/Contents/MacOS/aosp-master-arm64-v8a/ .

How to build your own emulator

Building the engine

The emulator source code lives (here), but there are a bunch of other dependencies to download, so we use repo .

To build, first make sure you have Xcode and Xcode command line tools installed, and that you have Chromium depot_tools in your PATH (link). Then:

Note that canceling the python based build after it gets going and issuing just ninja -C objs install/strip may be faster.

The built artifacts are in /path/to/external/qemu/objs/distribution/emulator . They should be automatically signed. However, the binaries in objs/ are not; to sign them, issue ./sign-objs-binaries.sh . Note that this can only be done after ninja -C objs install/strip is successful.

Building the system image

The system image is built from AOSP master sdk_phone_arm64 with a few modifications. Ideally, let’s be on a Linux host when building the system image—the build is relatively untested on M1 systems, and at least, we need to create a separate case sensitive partition for the AOSP repo. Assuming you’re on Linux:

Источник

15 BEST Android Emulator in 2021 (Windows PC, Mac)

Updated November 23, 2021

Following is a handpicked list of Top Android Emulator, with their popular features and website links. The list contains both open source(free) and commercial(paid) software.

LDPlayer offers an ideal Android emulation system. It provides plenty of comprehensive features to fulfill every which is performed by any Android device. You can download Android Games and apps from pre-installed LD Store or Google Play.

Top Android Emulator for Windows PC, Mac

1) LDPlayer

LDPlayer offers an ideal Android emulation system. It provides plenty of comprehensive features to fulfill every which is performed by any Android device.

Features:

  • You can download Android Games and apps from pre-installed LD Store or Google Play.
  • It helps you to manage your gaming automatically.
  • Offers custom control with keyboard and mouse
  • It allows you to open several games simultaneously.
  • Supported Platform: Windows PC

2) Bluestacks

Bluestacks is a very popular Android emulator. It is one of the best Android emulator for PC that offers custom key mapping for keyboard configurations. It helps you to improve your target and reaction time while playing a game with the keyboard and mouse.

Читайте также:  Вкл выкл андроида по расписанию

  • You can play multiple games simultaneously.
  • Record and replay any action in real-time.
  • It allows you to do video recording and screen recordings.
  • Supported Platform: Microsoft Windows, and Apple macOS.

3) GameLoop

GameLoop is an Android emulator that is used as a gaming platform. It is an ideal emulator if you want to play games on your desktop. GamLoop emulator includes many popular games like Call of Duty: Mobile and PUBG Mobile.

Features:

  • It supports android PUBG mobile games and allows them to play on PC.
  • This Android Emulator for Mac offers configured controls for playing PUBG games on PC.
  • Users can customize PUBG mobile’s control overlay.
  • This Emulator doesn’t ask for any type of account creation, so no need to register on it.
  • This simulator works in a low configuration computer tool.
  • Supported Platform: Windows, Mac

4) NoxPlayer

Nox Player is another Android Emulator which is recognized by gaming lovers around the world. You can run this Emulator on various devices that allows running multiple functions.

Features:

  • It is one of the best emulator for PC that offers open keyboard mapping running with a single click, all gaming controls on the mouse, and keyboard.
  • Nox player comes with a default macro recorder to record the complex operations.
  • It offers the best user experience and superior performance.
  • Supported Platform: Windows, Mac

5)Memu

Memu is easy to install an Android emulator app. It is one of the best Android emulator for PC which offers support for Intel and AMD chips, as well as integrated and dedicated graphics.

Features:

  • Range of keyboard mapping options to enhance your gaming experience.
  • Provide an option for virtualization.
  • It offers various dedicated keyboard settings for the fast gaming experience.
  • Supported Platform: Android and Microsoft Windows.

6) AndY

AndY is another popular Android emulator. It breaks down the main barrier between mobile and desktop computing by keeping the customer updated with the latest Android upgrades.

Features:

  • It offers storage capacity to users and the freedom to play any games available on the Android platform with ease.
  • It provides the feature of the phone as a joystick so that the user never has to leave multi-touch or amazing gaming elements.
  • AndY offers smooth interaction between mobile and desktop devices.
  • This Android Emulator for Mac allows users to download any app from any desktop browser to AndY OS.
  • Supported Platform: Android, macOS, and Microsoft Windows.

7)Genymotion

Genymotion is a multi-support Android emulator. The software helps you to speeds up testing, share live demos. You can also monitor performance across all devices.

Features:

  • It offers high definition pixel compatibility, which provides better clarity on your PC.
  • It is one of the best Android emulator for Linux that allows you to test the products in a secure virtual environment.
  • It allows you to use a desktop webcam as the video source to record screencasts.
  • This Android emulator for Ubuntu is capable of emulating more than 3000 Android device configurations like the Android version and screen size.
  • This Android emulator for Mac has strong sensors, like GPS and multi-touch.
  • Supported Platform: Android, Mac OS, Microsoft Windows, and Linux

8)PrimeOS

PrimeOS emulator provides a complete desktop experience the same as Mac OS or Windows with access to many Android applications. This Android Emulator is designed to bring you both worlds – a complete fusion of Android and PC.

Features:

  • Support for dual boot with a single click with a PrimeOS installer.
  • It combines the Android ecosystem with the system interface to provide a great gaming experience.
  • It offers high performance when compared to the Windows budget system.
  • Supported Platform: Android, Mac OS, and Microsoft Windows.

9) Android-x86

Android X86 is an open-source platform. This is an open-source Android emulator which is licensed under Apache Public License 2.0.

Читайте также:  Как убрать кнопку домой с экрана андроид huawei

Features:

  • Provide WiFi support with GUI.
  • Power Suspend/resume (S3 mode)
  • Offer Battery Status.
  • V4l2 Camera support.
  • It offers support for netbook native resolution.
  • Allows mirror mode on external monitors.
  • External storage automount support.
  • Support external keyboard
  • Supported Platform: Windows PC

10) ARChon

ArChone is Google’s official App Runtime for Chrome package. This streamlined Emulator has the ability to run any Android app as a ChromeOS app.

Features:

  • Very lightweight because it is integrated with Google Chrome.
  • You can use it with all operating systems.
  • It is one of the best Linux Android emulators that provide support for the latest Android system.
  • This Android emulator Linux can be used for all applications and Android games.
  • Supported Platform: Windows, Mac, Linux

11) Ko Player

Ko player is an Android emulator tool that helps users gain the quality Android playing experience on their Windows PC or Mac. The main focus of this Emulator is to provide a lag-free gaming experience to its users.

Features:

  • It allows you to take advantage of all the features and functions of Android without owning any device.
  • Ko player has simple, easy to use, and interactive user interface.
  • The built-in video recording allows you to record your favorite videos and enjoy them at your convenient time.
  • This Android app emulator also allows you to record videos.
  • Enhance gaming performance.
  • You can record and share your gameplay with your friends or anyone you want.
  • It comes with an inbuilt Google Play Store, thus giving you access to any app you want.
  • Supported Platform: Windows, Mac

12) Droid4x

Droid4X is an Android emulator developed for Windows PC that allows you to user-run mobile applications and games using on a desktop. This Emulator supports most of the games available in the play store.

Features:

  • It helps you to complete user experience on PC and supports the touch screen computer to work across devices.
  • This Emulator allows you to customize controls as per their needs and can directly download the app to the Emulator.
  • This Android emulator for Windows 10 provides supports for keyboard and gamepad for the quick configuration of games.
  • Supported Platform: Windows PC

13)ARC Welder

ARC Welder is another Android emulator tool that allows Android applications to run on Google Chrome for Windows systems.

Features:

  • It is one of the best Android emulators for Windows that allows you to test and run Android applications within Chrome OS to overcomes any runtime errors or bugs.
  • You can test applications in the Google Chrome web browser.
  • Supported Platform: Windows PC

❓ What is Android Emulator?

An Android emulator is a software application that allows your mobile to imitate Android OS features into your PC. It allows you to install Android Apps on your computer or laptop and use them natively. It is mainly used for debugging purposes.

⚡ What are the benefits of using Android Emulator software?

Here are some other reasons for using Android Emulator:

  • It will have a larger display thus also offers better controls to use applications in computers.
  • You don’t need to care about the battery life of your Android devices.
  • PCs are highly powerful than Android devices so that it can handle HD games and videos at a decent speed.

💻 How do Android Emulators Work?

Android Emulators work on the principle of platform virtualization for both hardware and software. The AVD manager (Android Virtual Device) helps you to set up and do the configurations for virtual Android devices.

🏅 Which are the Best Android Emulators for PC?

Here are some of the best Android emulators for PC:

Источник

Оцените статью