Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

dvoiss/quick-emulators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages