Changes:
* Decouple the version of the SDK that is installed from
the version of the Android API that will be used.
* Upgrade the SDK to Android-19 while we are at it.
* Allow an "--api-level" argument to choose system images.
* Automagically download and install platform libraries for
any --api-level
BUG=
Review URL: https://codereview.chromium.org/59943011
git-svn-id: http://src.chromium.org/svn/trunk/src/build@235782 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Although sharing the SDK with the one downloaded into
src/third_party/android_tools allowed us to avoid having to keep another
660MB SDK around, there were several downsides:
o It downloaded ARMv7 and x86 system images into the git repository in
src/third_party/android_tools, potentially confusing users who did
not have the new directories in their .gitignore.
o Messages in avd.py and usage of the emulator could lead users to
update the SDK checked into android_tools/, causing build problems
and a lot of confusion.
o The ARMv7 and x86 system images could end up being out of sync with
the SDK in android_tools/.
o The SDK in android_tools/ might be older than the one we used to
download separately.
The new solution is to revert large parts of r222121 and r223003 but not
completely: instead of downloading the SDK into a directory that is two
levels above the top-level src/ (there is no guarantee it is writable,
for example), the emulator SDK is now downloaded into
src/android_emulator_sdk/, which has also been added to .gitignore to
avoid confusion. Additionally, we build upon r222612 and install a newer
version of the SDK that works with version 18 of the Android API.
R=peter@chromium.org,navabi@chromium.org,bulach@chromium.org
BUG=304129
Review URL: https://codereview.chromium.org/25675010
git-svn-id: http://src.chromium.org/svn/trunk/src/build@227121 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Follow-up to r222121: GetSDK() used to download an additional copy of the
Android SDK that came with an ARM image. The copy we currently use in
third_party/android_tools/sdk does not come with the ARM image.
Restore the lost functionality while still avoiding downloading the complete
SDK by grabbing only the ARM images from a Google URL.
R=mariakhomenko@chromium.org,peter@chromium.org,bulach@chromium.org
Review URL: https://chromiumcodereview.appspot.com/23708033
git-svn-id: http://src.chromium.org/svn/trunk/src/build@223003 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
I have worked with a couple developers to dogfood the installation and running
of AVD's using the build/android scripts. The following suggestions have been
taken are are implemented by this change:
- Use configuration of AVD for Galaxy Nexus by Google as default config
- allows developers to use software keyboard
- uses the Galaxy Nexus skin with Back/Home/Apps buttons at bottom
- Defaults (one x86 AVD) are printed on the help page
- Does not require virtualization support for ARM emulator (only x86)
BUG=164911
Review URL: https://chromiumcodereview.appspot.com/13543008
git-svn-id: http://src.chromium.org/svn/trunk/src/build@193281 4ff67af0-8c30-449e-8e8b-ad334ec8d88c