-
-
Save hidroh/67b2ee7bbdd9038450c00d8a4d69c3fa to your computer and use it in GitHub Desktop.
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 |
Thank you so much...
I found this to work for me. If you don't want to add Android SDK to your path. I also added "&disown &exit" to close the terminal window without closing the emulator.
cd $HOME/Android/Sdk/tools
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 &disown &exit
Thanks for posting this it was very helpful!
Thanks! This helped a lot!
Thanks @hidroh for the original script and @MouseZero for the modified script :)
it's work for me perfectly, so thanks for your code.
pushd ${ANDROID_HOME}/tools
./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
I need change your code @Alex1a
pushd ${ANDROID_HOME}/tools
./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
I create a project in Github for maintainer my modification of script, thanks to @Alex1a and @hidroh
Thank's !
Thank's !
now the Open Avd is support to Windows, Linux and MacOS
I was facing an issue while running the script: "Could not launch '/Users/<redacted>/Library/Android/sdk/tools/../emulator/qemu/darwin-x86_64/qemu-system-aarch64': No such file or directory
". I'm using macOS.
Then I found out that recent versions of the Android SDK, the emulator tool has been moved out of the tools
directory to its own emulator
directory at the same level as tools
. I had to modify the script to navigate to ${ANDROID_HOME}/emulator
instead of ${ANDROID_HOME}/tools
.
how to use this? :s