Home > Android, Texas Instruments OMAP 4 > Android 4.0 Source Code is Now Available

Android 4.0 Source Code is Now Available

November 15th, 2011 Leave a comment Go to comments

Google has just released Android 4.0.1 source code in AOSP.

There are 3 main branches:

  • android-4.0.1_r1: the release branch, ITL41D, that is expected to ship on Galaxy Nexus. That’s the one you want to be using to port to devices.
  • ics-mr0: ICS development branch. It contains a few changes that aren’t in the release branch, so it might not be as stable. That’s the one you want to use if you plan to contribute to CTS.
  • master: usual master branch, it contains all of ics-mr0 plus a few extra changes. That’s the branch that you should use if you want to contribute to the platform.

The release and development branch require the “classic” host configurations (Ubuntu 10.04, or MacOS 10.6 with XCode 3). The master branch had a few tweaks to make it work better on newer systems¬† (Ubuntu 11.10, Mac OS 10.7 with XCode 4.2) but it’s not 100% there yet.

In addition to the usual emulator targets and Galaxy Nexus (a.k.a. maguro), the master branch works experimentally on PandaBoard too (a.k.a. panda).

Proprietary binaries for 4.0.1 are available at http://code.google.com/android/nexus/drivers.html.

Instructions to get the code can be found at http://source.android.com/source/downloading.html.

If you have already installed the tools, you just need to run:

repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
repo sync

If you have a Pandaboard and want to try Android 4.0, then use the master branch instead:

repo init -u https://android.googlesource.com/platform/manifest
repo sync

and be patient…

Once you want to code, you may want to build and run it. Instructions to build and run Android 4.0 on the emulator, Galaxy Nexus and Pandaboard are available at http://source.android.com/source/building.html.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter

Categories: Android, Texas Instruments OMAP 4 Tags: Android, aosp, foss, galaxy nexus, ics, open source, pandabord
  1. November 16th, 2011 at 09:18 | #1

    The code base is large (> 6GB) so the checkout (repo sync) takes a while (about 4 hours for me).

    Then I built Android 4.0.1_r1 on my netbook (Acer Aspire One D255E) since it runs Ubuntu 10.04 LTS and it took over 18 hours and exited with error 45 while running javadoc

  2. November 16th, 2011 at 16:18 | #2

    @cnxsoft
    Just running “make -j2″ again works.
    I also had to uninstall openjdk, and install sun jdk instead.

  3. wanaves
    November 16th, 2011 at 21:15 | #3

    Even though I follow procedures described in “http://source.android.com/source/downloading.html”

    But, I got result as follows :

    android@ubuntu:/media/User/androidhome$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
    fatal: Cannot get https://android.googlesource.com/tools/repo/clone.bundle
    fatal: error [Errno -2] Name or service not known
    android@ubuntu:/media/User/androidhome$

    If you have any opinio.. Please kindly reply your opinion

    Thanks in advance

  1. No trackbacks yet.