2014-12-01 22:33:29 -05:00
|
|
|
#!/bin/bash -
|
|
|
|
|
2014-12-05 01:09:39 -05:00
|
|
|
COMPONENTS="
|
|
|
|
tools
|
|
|
|
platform-tools
|
|
|
|
build-tools-21.1.1
|
|
|
|
android-21
|
|
|
|
extra-android-m2repository
|
|
|
|
extra-android-support
|
|
|
|
extra-google-m2repository"
|
|
|
|
|
2014-12-01 22:33:29 -05:00
|
|
|
wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
|
|
|
|
tar xf android-sdk_r23.0.2-linux.tgz
|
|
|
|
cd android-sdk-linux/
|
|
|
|
export ANDROID_HOME=`pwd`
|
2014-12-05 01:09:39 -05:00
|
|
|
ls android-sdk-linux/
|
2014-12-01 22:33:29 -05:00
|
|
|
|
2014-12-05 01:09:39 -05:00
|
|
|
for COMP in ${COMPONENTS}
|
2014-12-01 22:33:29 -05:00
|
|
|
do
|
2014-12-05 01:09:39 -05:00
|
|
|
echo "yes" | tools/android update sdk -u -a -t ${COMP}
|
2014-12-01 22:33:29 -05:00
|
|
|
done
|
|
|
|
|
|
|
|
cd -
|