Skip to content

Make a mirror of Android SDK Update Sites - works for both standalone and Android Studio built-in SDK Managers

License

Notifications You must be signed in to change notification settings

renfeng/android-repository

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

android/repository

It mirrors Android SDKs, which Android Studio built-in and standalone SDK Manager both can download from. Ideal for a crowded place, e.g. classroom, Study Jams, and Code labs.

Tested on

  • Linux Mint Rebecca (17.1, Ubuntu 14.04),
  • Windows 7 64bit
  • macOS Sierra (10.12.6)

Prerequisites

  • 127 GB storage on your disk, as of 2020-12-30
  • wget

Server setup

Notes

  • Files will be downloaded to your working directory, which can be different than
  • The directory the project is cloned into, referred as ${ANDROID_REPOSITORY_HOME}.
  • The mirror can be hosted with an HTTP server. Sample configurations of Apache HTTPd and nginx will be printed at the end.
${ANDROID_REPOSITORY_HOME}/download2.sh

By default, it downloads from https://dl.google.com. To download from some mirror, set environment variable, DL_HOST. e.g.

export DL_HOST=https://some-mirror

See also Known Mirrors.

Client setup

Set environment variable, SDK_TEST_BASE_URL, and launch Android Studio e.g. on macOS

export SDK_TEST_BASE_URL=http://your-mirror/${DL_PATH}/
open -a 'Android Studio'

About

Make a mirror of Android SDK Update Sites - works for both standalone and Android Studio built-in SDK Managers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages