Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A command-line utility for keeping your Android dependencies up-to-date.

Project Description

A tool for keeping your Android SDK dependencies up-to-date in unattended environments. Pass it your $ANDROID_HOME and let it update your installed SDK packages as new revisions are released. Optionally, provide a list of package names (from android list sdk --all --extended) to bootstrap your environment, or to ensure your latest set of dependencies are installed for your next CI run.

This tool is especially useful for continuous-integration servers.

Why do I need this?

The command-line tools provided by the SDK are not especially useful for unattended use. Among other problems:

  • There is no built-in method to list packages that are already installed. This may be because there is no easily-consumed index of installed packages provided, so the SDK manager relies on directory scanning and name-mangling. So does this tool, by the way.
  • Some packages are unnecessarily downloaded and re-installed with no rhyme or reason when the latest version is already installed.
  • Some packages are not automatically updated when an incremental update is available.
  • The package installer requires input from STDIN to actually install packages, because it assumes a human is present to accept software licenses.

This tool performs all of the gritty scanning, mangling, parsing, and input-faking necessary to determine:

  • Packages you have installed, and their revisions.
  • Packages that are available from the official update sites, and their revisions.
  • Local packages which should be updated due to an available revision-bump.
  • Which packages were actually installed, and which failed to install, after the installer has run.

The ultimate goal of this project is to cease its existence when the Android Tools team addresses these pain points. These are mostly solved problems in the GUI tool, but they make unattended builds a hassle.


By using this tool you acknowledge that associated licenses of the components downloaded are accepted automatically on your behalf. You are required to have accepted the respective licenses of these components prior to using this tool.


Tested with Python versions 2.7 and 3.5.


  • jprops
  • pexpect
  • semantic_version


Using pip:

$ pip install android-sdk-updater

From source:

$ git clone
$ cd android-sdk-updater
$ python install

For development:

$ python develop


usage: android-sdk-updater [-h] [-v] [-a ANDROID_HOME] [-d] [-t TIMEOUT] [-vv]
                           [-o ...] [-s {available,installed,updates}]
                           [package [package ...]]

Update an Android SDK installation

positional arguments:
  package               name of SDK package to install if not already

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -a ANDROID_HOME, --android-home ANDROID_HOME
                        the path to your Android SDK
  -d, --dry-run         compute packages to install but do not install
  -t TIMEOUT, --timeout TIMEOUT
                        timeout in seconds for package installation, or 0 to
                        wait indefinitely (default)
  -vv, --verbose        show extra output from android tools
  -o ..., --options ...
                        options to pass to the "android" tool; must be the
                        final option specified
  -s {available,installed,updates}, --show {available,installed,updates}
                        Show available or installed packages

Additional whitespace-delimited package arguments can be piped to this tool over the standard input.


Perform an incremental update of all packages in $ANDROID_HOME:

$ android-sdk-updater

Perform an incremental update of all packages in /foo/sdk:

$ android-sdk-updater --android-home=/foo/sdk

Update all packages in $ANDROID_HOME and ensure the installation of packages android-23 and extra-google-google_play_services:

$ android-sdk-updater android-23 extra-google-google_play_services

Update all packages in ANDROID_HOME and ensure the installation of packages contained in a file:

$ cat packages.txt

$ cat packages.txt | android-sdk-updater

Same as the above, but through a proxy:

$ cat packages.txt | android-sdk-updater -o --no-https --proxy-host --proxy-port 3218

Show installed packages, available packags, or packages with updates:

$ android-sdk-updater -s installed

$ android-sdk-updater -s available

$ android-sdk-updater -s updates


The Android NDK is not supported. We plan to support installing and updating the NDK in a future release. In the meantime, you may see output that includes the following:

Ignoring 'ndk-bundle' as it is blacklisted.

These warnings may be safely ignored.


Copyright 2016 Tad Fisher
Copyright 2016 Tristan Waddington

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(13.5 kB) Copy SHA256 Hash SHA256
Wheel 3.5 Aug 1, 2016
(9.3 kB) Copy SHA256 Hash SHA256
Source None Aug 1, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate