Android ICS 下载
http://source.Android.com/source/downloading.html 上有 最新的ICS 源代码同步的地址。如果环境已经设置好了的话,同步最新的代码非常的简单:
- $ mkdir WORKING_DIRECTORY
- $ cd WORKING_DIRECTORY
- $ repo init -u https://Android.googlesource.com/platform/manifest -b android-4.0.1_r1
- $repo sync
下载完成后主要包含一下目录:
- abi bionic bootable build cts dalvik development device docs external frameworks hardware libcore Makefile ndk out packages prebuilt sdk system
Android ICS 模拟器的编译
编译模拟器版本和以前方法一样:
- . build/envsetup.sh
- lunch sdk-eng
- make
Android ICS 模拟器的启动
还是老一套:- $cd out/host/linux-x86/sdk/android-sdk_eng.xxx_linux-x86/tools
- $./Android list targets
- Available 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 ics
- Auto-selecting single ABI armeabi-v7a
- Android 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=240
- vm.heapSize=24
- hw.ramSize=512
- $./emulator -avd ics