title: Targeting a specific system-image version using the 'android' command line utility?
body: <p>Background: I've created a headless OSX workstation-bootstrapping script, which installs <code>android-sdk</code> via <a href="http://mxcl.github.io/homebrew/" rel="nofollow noreferrer">homebrew</a> and sets up a Chef-solo environment. I mention this because any sensible tool/predictably-named remotely-hosted file is on the table for solutions. </p>
  
  <p>My problem: 
  I need the Android API 16 system-image and I can't seem to find the right flags/package namespace using the <code>android</code> CLI utility.  I was able to install the 4.1.2/API 16 SDK Platform using <code>android update sdk -u --filter android-16</code>, but I still need the system image for emulation.</p>
  
  <p><code>android update sdk -u --filter system-image</code> installs API 17/4.2.2.</p>
  
  <p>I'd like to avoid doing a grep-based solution over running <code>android list sdk</code>, not that it seems to be an option anyway (<code>android list sdk | grep 'API 16'</code> doesn't bear fruit).</p>
  
  <p>I've looked at the XML file that the <code>android</code> CLI utility calls to enumerate its package list (<a href="http://dl-ssl.google.com/android/repository/sys-img/x86/sys-img.xml" rel="nofollow noreferrer">http://dl-ssl.google.com/android/repository/sys-img/x86/sys-img.xml</a>) and found a link to the file that I believe I want , <a href="http://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-16_r01.zip" rel="nofollow noreferrer">http://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-16_r01.zip</a>, but I'm not thrilled at the parse XML + go around the existing utility option.</p>
  
  <p>I've seen <a href="https://stackoverflow.com/questions/4681697/is-there-a-way-to-automate-the-android-sdk-installation">this other SO post</a> and while it was helpful, it doesn't completely cover what I'm attempting to do.</p>
  
  <p>Am I missing a flag or using the wrong package name?  If so, what documentation source did I miss?  How could I solve this for myself in the future?</p>