Update README section about dlfcn.h
[termux-packages] / install-sdk.sh
index 0d158af..af5b952 100755 (executable)
@@ -1,3 +1,8 @@
 #!/bin/sh
 
-android update sdk --all --no-https --no-ui --filter build-tools-23.0.0,android-21
+# Read settings from .termuxrc if existing
+test -f $HOME/.termuxrc && . $HOME/.termuxrc
+: ${ANDROID_HOME:="${HOME}/lib/android-sdk"}
+
+$ANDROID_HOME/tools/android update sdk --no-ui --all --no-https -t "build-tools-23.0.2"
+$ANDROID_HOME/tools/android update sdk --no-ui --all --no-https -t "android-21"