Giter VIP home page Giter VIP logo

quick-emulators's Introduction

Quick Emulators

Launch your Android emulators (Genymotion and AVDs) via Spotlight: ⌘ + Space

Android Arsenal

Finding Genymotion Emulator

Use

brew tap dvoiss/tap
brew install quick-emulators
brew services start dvoiss/tap/quick-emulators

How does it work?

The process started by brew services will create .app files under the directory: ~/Applications/Quick Emulators/ (see screenshot below). These empty app files are indexed by Spotlight. They contain a shell script that launches one of these commands:

  1. For Android Virtual Devices:

    PATH_TO_ANDROID_SDK/tools/emulator -avd <name-of-emulator>

  2. For Genymotion Virtual Machines:

    /Applications/Genymotion.app/Contents/MacOS/player.app/Contents/MacOS/player --vm-name <name-of-emulator>

For AVDs an ANDROID_SDK or ANDROID_HOME environment variable must be set. For Genymotion the Genymotion app must be at the default path above.

The background daemon watches for changes in the default locations that AVDs and Genymotion virtual machines are installed to: ~/.android/avd/ and ~/.Genymobile/Genymotion/deployed/. When you add or remove a new emulator the generated folder containing the .app files gets re-written. For more information see the plist method in the Homebrew formula for Quick Emulators.

Generated App files

The generated app files are tagged with "Emulator" and either "AVD" or "Genymotion". These tags can be used in Spotlight as well:

Finding AVD by Tag

Caveats:

Genymotion and Android virtual devices cannot run side by side due to the error below. This happens whether you launch them using Quick Emulators or via a different method. The message below occurs while running a Genymotion emulator.

$ emulator -avd <device-name>
...
emulator: ERROR: Unfortunately, there's an incompatibility between HAXM
hypervisor and VirtualBox 4.3.30+ which doesn't allow multiple hypervisors
to co-exist.  It is being actively worked on; you can find out more about
the issue at http://b.android.com/197915 (Android) and
https://www.virtualbox.org/ticket/14294 (VirtualBox)

Internal error: initial hax sync failed

quick-emulators's People

Contributors

dvoiss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

quick-emulators's Issues

Error: undefined method `undent' when installing

I was looking for exactly this because I use Spotlight to switch between all of my apps.

Unfortunately I wasn't able to install it. This is on MacOs Catalina, with Homebrew 2.4.12.

~$ brew install quick-emulators
==> Installing quick-emulators from dvoiss/tap
==> Downloading https://github.com/dvoiss/quick-emulators/archive/0.1.1.tar.gz
Already downloaded: /Users/vn0jgc2/Library/Caches/Homebrew/downloads/6ea341ce23d86bb00c44bccf6bc60ca303c607460017e76bd26cf47026ad9c8a--quick-emulators-0.1.1.tar.gz
Error: Failed to install plist file
Error: undefined method `undent' for #String:0x00007fab62947608
Please report this issue:
https://docs.brew.sh/Troubleshooting

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.