Development repository for Android SDK Chef Cookbook
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This cookbook will install Google Android SDK.

The default recipe of this Chef cookbook will:

  • Download and install/upgrade Android SDK (not ADT)
  • Update SDK dependencies to install some Android platforms (--filter list can be customized in cookbook attributes)
  • Define a default ANDROID_HOME environment variable (via /etc/profile.d/... mechanism)
  • Add ANDROID_HOME/tools and ANDROID_HOME/platform-tools to default PATH environment variable (via /etc/profile.d/... mechanism)


  • Chef 12.5+ (due to transitive cookbook dependencies, and to avoid a dependency on compat_resource cookbook)
  • Depends on chef-cookbooks/ark and chef-cookbooks/java cookbooks
  • This cookbook currently supports Ubuntu 12.04+ and CentOS 6.6+, but more Linux distributions are welcome (depending on community interests). Support for MacOS and Windows is also on the roadmap thanks to @rjaros87.


TODO (work in progress)

Installation and Usage

This cookbook is released at and its original git repository is

  • Find your favourite way (Berkhelf, Librarian-Chef, Chef Supermarket API, Git submodule, or even tarball download) to install this cookbook (and its dependencies).
  • Include the android-sdk::default recipe to your run list or inside your cookbook.
  • Provision!

Quality Assurance

Continous Integration

This Cookbook is being tasted by Travis CI: Build Status

Automated validations are following:

  • Static Analysis of Ruby code with tailor lint tool
  • Static Analysis of Chef Cookbooks with foodcritic lint tool
  • knife cookbook test in a very basic sandbox
  • PENDING: Expectations described with RSpec examples with ChefSpec
  • PENDING: ServerSpec integration testing
  • PENDING: Run true chef (matrix) on travis VM!

Development and Testing

During development, this cookbook is locally tested in following environments:

  • Development with recent versions of Chef-Solo and Ubuntu (with great help of Berkshelf, Vagrant and Virtualbox and other tools provided by the Chef community).
  • Integration with great help of Opscode test-kitchen

License and Credits

  • Thanks to:: All Contributors

  • Thanks to:: Ralf Kistner, for all relevant information to create original cookbook

  • Thanks to:: Andrew Rosa, for all relevant information to improve this cookbook

  • Thanks to:: Travis CI Project, for motivating the creation of this cookbook

  • Copyright:: 2013-2014, Gilles Cornu

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, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.