-
-
Save ricardopereira/22f943ae84e8160237d74fedce122e03 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pushd ${ANDROID_HOME}/emulator | |
./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 | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment