Make a mirror for Android SDK Manager, both standalone and built-in to Android Studio
CSS XSLT JavaScript HTML Shell ApacheConf
Latest commit 0a2d4b3 Jan 15, 2017 @renfeng committed on GitHub Update


This is a set of scripts for creating a mirror of Android Repository for Android SDK Manager (both standalone and Android Studio built-in) to download SDK packages from.

It's ideal for a classroom, Study Jams, and Code labs.

Tested on

  • Linux Mint Maya (13, Ubuntu 10.04)/Rebecca (17.1, Ubuntu 14.04),
  • OS X Yosemite (10.10.4)
  • Cygwin on Windows 7 64bit


You'll need a lot of free storage on your disk, about 150GB as of 2017-01-12.


sudo apt-get install xsltproc

(TODO test) yum install xsltproc


It's recommended to use homebrew to install wget.


TODO test xsltproc on osx


Setup your mirror and Android Standalone SDK Manager

Setup your Android Studio Built-in SDK Manager

Settings >> Appearance & Behavior >> System Settings >> HTTP Proxy

  • Manual proxy configuration
  • HTTP
  • Host name:
  • Port number: 80
  • Check connection

Settings >> Appearance & Behavior >> System Settings >> Android SDK >> SDK Update Sites

Known problem

Missing SDK tools: CMake, LLDB, NDK

(optional) SDK Web Manager

It's a single page app for exploring the packages downloaded. To make it work,

  1. In your web root directory, (backup your index.html, and) run


    It will copy over three files and one directory.

    • index.html
    • .bowerrc
    • bower.json
    • elements/
  2. Install bower (requires nodejs,, and run the following command line
  3. bower i -F -S

Who's using it

At StudyJams and other events hosted by GDG Suzhou

(To support this project, please tell me about your mirror, and it'd be great if you wanted your mirror to be listed here!)