Skip to content

Instantly share code, notes, and snippets.

@ethanliew
Forked from hidroh/avd.sh
Created January 16, 2019 09:11
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 ethanliew/47214bc43bfa9274b948ab14e5d24ccf to your computer and use it in GitHub Desktop.
Save ethanliew/47214bc43bfa9274b948ab14e5d24ccf to your computer and use it in GitHub Desktop.
Handy bash script to prompt for an Android virtual device (AVD) selection and launch it. Assuming that Android SDK has been set up and is in user PATH.
emulator -list-avds | cat -n
printf "Select AVD: "
read index
avd=$(emulator -list-avds | sed "${index}q;d")
echo "Selected $avd"
emulator -netdelay none -netspeed full -avd $avd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment