-
-
Save berndsi/8c4f27e63b5d693a1342 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
SDK_HOME_PATH="$HOME" | |
SDK_PATH="$SDK_HOME_PATH/android-sdk-linux" | |
# Needs to be updated when new releases are made | |
SDK_DOWNLOAD_URL="http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz" | |
curl --location $SDK_DOWNLOAD_URL | tar -xz -C $SDK_HOME_PATH | |
# Just install platform-tools, build-tools & Android-19 | |
# Filter names are from `android list sdk -e -a` | |
expect -c " | |
set timeout -1; | |
spawn $SDK_PATH/tools/android update sdk -u --filter "platform-tools,build-tools-19.1.0,android-19" | |
expect { | |
\"Do you accept the license\" { exp_send \"y\r\"; exp_continue } | |
eof | |
} | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment