Skip to content

Instantly share code, notes, and snippets.

@patrick-elmquist
Forked from itmammoth/start_emulator.sh
Created March 4, 2019 06:42
Show Gist options
  • Select an option

  • Save patrick-elmquist/dc01f4417732004d104abcfa69d86f0f to your computer and use it in GitHub Desktop.

Select an option

Save patrick-elmquist/dc01f4417732004d104abcfa69d86f0f to your computer and use it in GitHub Desktop.

Revisions

  1. @itmammoth itmammoth revised this gist Jul 24, 2017. No changes.
  2. @itmammoth itmammoth revised this gist Jul 24, 2017. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions start_emulator.sh
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,7 @@
    EMULATOR=~/Library/Android/sdk/tools/emulator

    if [ $# -ne 1 ]; then
    echo "ERROR: No AVD specified." 1>&2
    echo "Please specify the target AVD from the list below" 1>&2
    echo "ERROR: Please specify the target AVD from the list below" 1>&2
    $EMULATOR -list-avds 1>&2
    exit 1
    fi
  3. @itmammoth itmammoth created this gist Jul 24, 2017.
    11 changes: 11 additions & 0 deletions start_emulator.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/bin/bash

    EMULATOR=~/Library/Android/sdk/tools/emulator

    if [ $# -ne 1 ]; then
    echo "ERROR: No AVD specified." 1>&2
    echo "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"