Created
December 16, 2018 17:47
-
-
Save kkrishnan90/3cf912edbc43e2285ba6123603919888 to your computer and use it in GitHub Desktop.
Advanced Emulator Selection in Ubuntu (From Command Line)
This file contains 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
#!/bin/bash | |
echo "Setting env variables..." | |
export ANDROID_SDK=~/Android/Sdk | |
export PATH=$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH | |
echo "Showing Emulator Names..." | |
em_list=$(emulator -list-avds) | |
echo "$em_list" | |
select em in $em_list; | |
do | |
echo "You Picked $em" | |
echo "Starting emulator $em now..." | |
sleep 2 | |
nohup emulator @$em & disown | |
exit | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment