Download android4.0.1 source code, compile and run the simulator

Source: Internet
Author: User

After a long wait, the source code of android4.0 (ice cream sandwich) was finally released (Samsung said, hey, my product has been on sale for several weeks, this blog will share with you the experience of downloading, compiling, and running Android ICs. The details are as follows:

Download Android ICs

The http://source.android.com/source/downloading.html has the latest ICS Source Code Synchronization address. If the environment has been set up, it is very easy to synchronize the latest code:

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

After the download is complete, it mainly includes the following directories:

abi  bionic  bootable  build  cts  dalvik  development  device  docs  external  frameworks  hardware  libcore  Makefile  ndk  out  packages  prebuilt  sdk  system

Compilation of Android ICS Simulators

The compiling Simulator version is the same as the previous method:

. build/envsetup.shlunch sdk-engmake

After compilation, a log file v8.log is added to the working directory ($ top ).

Android ICS simulator startup

The old one:

$cd out/host/linux-x86/sdk/android-sdk_eng.xxx_linux-x86/tools$./android list targetsAvailable Android targets:----------id: 1 or "android-14"     Name: Android 4.0     Type: Platform     API level: 14     Revision: 2     Skins: QVGA, WSVGA, HVGA, WVGA854, WXGA720, WQVGA432, WVGA800 (default), WQVGA400, WXGA800     ABIs : armeabi-v7a$./android create avd -t 1 -n icsAuto-selecting single ABI armeabi-v7aAndroid 4.0 is a basic Android platform.Do you wish to create a custom hardware profile [no]Created AVD 'ics' based on Android 4.0, ARM (armeabi-v7a) processor,with the following hardware config:hw.lcd.density=240vm.heapSize=24hw.ramSize=512$./emulator -avd ics

So emulator got up:

It's really ugly when I get up for the first time. It may be that initialization is not complete. Turn it off and restart. This is much better:

Home

Launcher:

Settings:

About:

The version shows that android is indeed 4.0.1, but kernel is not the legendary 3.0.

In addition, this version supports Chinese by default: (is there any previous SDK ?)

Common compilation errors and Solutions

Unexpectedly, the SDK did not encounter any compilation errors. It seems that Google is still very generous, and the complete version is released. It is not a filtering version that some people guess. In this case, compiling the hardware version should not be a big problem. I don't know if there will be any rice system going out right away...

---- Revision history -------------

0.1 initial version. Prepare title and framework of the ariticle and wait for ICS to come...

2011-11-15 1.0 update real content when ICS comes out.

-----------------------------------------

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.