Last active
September 21, 2020 07:33
-
-
Save itmammoth/da077a0a50da536ede59a8a90b503acb to your computer and use it in GitHub Desktop.
Start an android emulator with changing DNS server to Google public DNS
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 | |
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