Skip to content

Instantly share code, notes, and snippets.

@vinaysshenoy
Created October 26, 2017 10:30
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 vinaysshenoy/499a59d5a48905937ff93ba92dd73d12 to your computer and use it in GitHub Desktop.
Save vinaysshenoy/499a59d5a48905937ff93ba92dd73d12 to your computer and use it in GitHub Desktop.
Run emulator via command line
# Add Android SDK Emulator binary to path
export PATH=:<Path To Android SDK>/emulator
# Add alias for running any emulator
alias run_avd='function _run_avd(){ emulator -avd $1 -dns-server 8.8.8.8; };_run_avd'
# To run emulator via command line, there are 2 steps
# $emulator -list-avds
# Above command will list al AVDS available, copy the one you want to launch
# $run_avd <AVD_NAME>
# Use the above command to run whichever AVD you need
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment