Skip to content

Instantly share code, notes, and snippets.

@Kishanjvaghela
Forked from itmammoth/start_emulator.sh
Created August 21, 2019 06:26
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 Kishanjvaghela/010214430287e81f38b775103ec7eed9 to your computer and use it in GitHub Desktop.
Save Kishanjvaghela/010214430287e81f38b775103ec7eed9 to your computer and use it in GitHub Desktop.
Start an android emulator with changing DNS server to Google public DNS
#!/bin/bash
EMULATOR=~/Library/Android/sdk/tools/emulator
if [ $# -ne 1 ]; then
echo "ERROR: Please specify the target AVD from the list below" 1>&2
$EMULATOR -list-avds 1>&2
exit 1
fi
$EMULATOR -avd $1 -dns-server "8.8.8.8,8.8.4.4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment