Skip to content

Instantly share code, notes, and snippets.

@BenFausch
Created December 22, 2017 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BenFausch/407f1abbe9c923642e76d2d0e56ce40b to your computer and use it in GitHub Desktop.
Save BenFausch/407f1abbe9c923642e76d2d0e56ce40b to your computer and use it in GitHub Desktop.
Run Android emu from command line
//this lists available devices:
alias listAndroid='cd ~/Library/Android/Sdk/tools/bin && ./avdmanager list avd'
response looks like this:
Available Android Virtual Devices:
Name: Nexus_5X_API_24
Device: Nexus 5X (Google)
Path: /Users/benfausch/.android/avd/Nexus_5X_API_24.avd
Target: Google Play (Google Inc.)
Based on: Android 7.0 (Nougat) Tag/ABI: google_apis_playstore/x86
Skin: nexus_5x
Sdcard: 100M
//then, using the Name value from the response, I use this to start the emulator:
alias startAndroid='cd ~/Library/Android/Sdk/tools && ./emulator -avd Nexus_5X_API_24'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment