chiark
/
gitweb
/
~mdw
/
termux-packages
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
busybox: Update from 1.28.2 to 1.28.3
[termux-packages]
/
scripts
/
setup-android-sdk.sh
diff --git
a/scripts/setup-android-sdk.sh
b/scripts/setup-android-sdk.sh
index c0ce7f873bcba6e284bae368fb161e1eea6a2795..d5c1e1749b2cc9f138bb0c1cb91e3988823939df 100755
(executable)
--- a/
scripts/setup-android-sdk.sh
+++ b/
scripts/setup-android-sdk.sh
@@
-11,7
+11,11
@@
if [ ! -d $ANDROID_HOME ]; then
cd $ANDROID_HOME/..
rm -Rf `basename $ANDROID_HOME`
cd $ANDROID_HOME/..
rm -Rf `basename $ANDROID_HOME`
- curl --fail --retry 3 -o tools.zip https://dl.google.com/android/repository/tools_r25.2.3-linux.zip
+ # https://developer.android.com/studio/index.html#command-tools
+ # The downloaded version below is 26.0.1.:
+ curl --fail --retry 3 \
+ -o tools.zip \
+ https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
rm -Rf android-sdk
unzip -q tools.zip -d android-sdk
rm tools.zip
rm -Rf android-sdk
unzip -q tools.zip -d android-sdk
rm tools.zip
@@
-21,7
+25,7
@@
if [ ! -d $NDK ]; then
mkdir -p $NDK
cd $NDK/..
rm -Rf `basename $NDK`
mkdir -p $NDK
cd $NDK/..
rm -Rf `basename $NDK`
- NDK_VERSION=r1
3
+ NDK_VERSION=r1
6
curl --fail --retry 3 -o ndk.zip \
http://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-`uname`-x86_64.zip
curl --fail --retry 3 -o ndk.zip \
http://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-`uname`-x86_64.zip
@@
-31,4
+35,7
@@
if [ ! -d $NDK ]; then
rm ndk.zip
fi
rm ndk.zip
fi
-echo y | $ANDROID_HOME/tools/android update sdk --no-ui --all --no-https -t "build-tools-25.0.1,android-24"
+yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses
+
+# The android-21 platform is used in the ecj package:
+$ANDROID_HOME/tools/bin/sdkmanager "build-tools;27.0.3" "platforms;android-27" "platforms;android-21"