Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kkrishnan90/3cf912edbc43e2285ba6123603919888 to your computer and use it in GitHub Desktop.
Save kkrishnan90/3cf912edbc43e2285ba6123603919888 to your computer and use it in GitHub Desktop.
Advanced Emulator Selection in Ubuntu (From Command Line)
#!/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