# # Copyright (c) 2024 Florian "sp1rit" <sp1rit@disroot.org> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, see <http://www.gnu.org/licenses/>. # # Author: Florian "sp1rit" <sp1rit@disroot.org> #
set -e
set -x
if [ -z $ANDROID_HOME -o -z $ANDROID_SDKVER ]; then echo"ANDROID_HOME and ANDROID_SDKVER env var must be set!"
exit 1 fi
test -d ${HOME}/.android || mkdir ${HOME}/.android # there are currently zero user repos echo'count=0' > ${HOME}/.android/repositories.cfg cat <<EOF >> ${HOME}/.android/sites-settings.cfg
@version@=1
@disabled@https\://dl.google.com/android/repository/extras/intel/addon.xml=disabled
@disabled@https\://dl.google.com/android/repository/glass/addon.xml=disabled
@disabled@https\://dl.google.com/android/repository/sys-img/android/sys-img.xml=disabled
@disabled@https\://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml=disabled
@disabled@https\://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml=disabled
@disabled@https\://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml=disabled
EOF
SDKMANAGER="sdkmanager --sdk_root=${ANDROID_HOME}"#ANDROID_HOME may not contain a space :(
${SDKMANAGER} \ "build-tools;${ANDROID_SDKVER}" \ "ndk;${ANDROID_NDKVER}" \ "platforms;android-${ANDROID_SDKMAJOR}"
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.