Instantly share code, notes, and snippets.

Embed
What would you like to do?
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