Skip to content

Instantly share code, notes, and snippets.

@uilian
Created September 26, 2017 11:35
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 uilian/fa2c46d4340394eb9f6af796b616cb0f to your computer and use it in GitHub Desktop.
Save uilian/fa2c46d4340394eb9f6af796b616cb0f to your computer and use it in GitHub Desktop.
Shows a list of all avds and let you select on by the index.
#!/bin/bash
# you android_home, something like '/home/user/Android/Sdk/'
cd $ANDROID_HOME
./tools/emulator -list-avds | cat -n
printf "Select AVD: "
read index
avd=$(./tools/emulator -list-avds | sed "${index}q;d")
echo "Selected $avd"
./tools/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