User:Bear:AndroidNotes

From MozillaWiki
Revision as of 16:56, 2 June 2010 by Bear (talk | contribs) (Created page with '=== Misc Notes about Android Build environments === ==== Headless Android SDK Installs ==== If your a fan of GUIs, installing the base SDK and platforms is as simple as running…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Misc Notes about Android Build environments

Headless Android SDK Installs

If your a fan of GUIs, installing the base SDK and platforms is as simple as running tools/android from the Base SDK directory.

But if your not, then it's a pain in the tuckus, but I discovered how the GUI gets it's updates :)

The magic is all contained in a manifest file repository.xml which lists all the SDKs and AddOns that are available to download.

2.2 SDK manifest entry snippet
<sdk:platform>
    <sdk:version>2.2</sdk:version>
    <sdk:api-level>8</sdk:api-level>
    <sdk:codename/>
    <sdk:revision>01</sdk:revision>
    <sdk:min-tools-rev>6</sdk:min-tools-rev>
    <sdk:description>Android SDK Platform 2.2_r1</sdk:description>
    <sdk:desc-url>http://developer.android.com/sdk/</sdk:desc-url>
    <sdk:archives>
        <sdk:archive os="linux" arch="any">
            <sdk:size>76404989</sdk:size>
            <sdk:checksum type="sha1">eec1e438e39de6d9ef9fad7bc2cb229b73dfea39</sdk:checksum>
            <sdk:url>android-2.2_r01-linux.zip</sdk:url>
        </sdk:archive>
    ...
    </sdk:archives>
</sdk:platform>

if you take the repository.xml url http://dl-ssl.google.com/android/repository/ and add the sdk:url item's value you get the download path for the 2.2 SDK zip file.