Android4.0.1 源码下载,模拟器编译和运行
2012-06-16 22:14
489 查看
经过漫长的等待, android4.0 (Ice Cream Sandwich)的源码终于放出来了 (三星说,嘿嘿,我的产品已经开卖了好几个星期了,不要意思,又领先了一步),本博客将在第一时间与大家分享,下载,编译运行 android ICS 的经验。 以下是详细内容:
http://source.android.com/source/downloading.html 上有 最新的ICS 源代码同步的地址。如果环境已经设置好了的话,同步最新的代码非常的简单:
[plain] view
plaincopyprint?
$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORY
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
$repo sync
下载完成后主要包含一下目录:
[plain] view
plaincopyprint?
abi bionic bootable build cts dalvik development device docs external frameworks hardware libcore Makefile ndk out packages prebuilt sdk system
编译模拟器版本和以前方法一样:
[plain] view
plaincopyprint?
. build/envsetup.sh
lunch sdk-eng
make
编译完成后工作目录($TOP)里增加了一个log文件 v8.log
还是老一套:
[plain] view
plaincopyprint?
$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 ***D '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
于是 emulator就起来了:
第一次起来后真难看啊。可能是初始化没有做好。关掉后重新启动,这下子好多了:
Home
Launcher:
Settings:
About:
版本显示: android 的确是4.0.1 但是kernel 却不是传说中的3.0 啊。
而且,这个版本默认的就支持中文: (以前的sdk有没有?)
出乎所料,编译sdk竟然没有碰到任何编译错误。 看样子google还是很厚道的,放出来的是完整的版本。不是有些人猜测的过滤版。 这样子的话编译出硬件版本应该不是大问题,不知道会不会马上就有什么 大米系统 流出...
---- Revision History -------------
2011-11-07 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.
Android ICS 下载
http://source.android.com/source/downloading.html 上有 最新的ICS 源代码同步的地址。如果环境已经设置好了的话,同步最新的代码非常的简单:[plain] view
plaincopyprint?
$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORY
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
$repo sync
下载完成后主要包含一下目录:
[plain] view
plaincopyprint?
abi bionic bootable build cts dalvik development device docs external frameworks hardware libcore Makefile ndk out packages prebuilt sdk system
Android ICS 模拟器的编译
编译模拟器版本和以前方法一样:[plain] view
plaincopyprint?
. build/envsetup.sh
lunch sdk-eng
make
编译完成后工作目录($TOP)里增加了一个log文件 v8.log
Android ICS 模拟器的启动
还是老一套:[plain] view
plaincopyprint?
$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 ***D '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
于是 emulator就起来了:
第一次起来后真难看啊。可能是初始化没有做好。关掉后重新启动,这下子好多了:
Home
Launcher:
Settings:
About:
版本显示: android 的确是4.0.1 但是kernel 却不是传说中的3.0 啊。
而且,这个版本默认的就支持中文: (以前的sdk有没有?)
常见的编译错误及解决方案
出乎所料,编译sdk竟然没有碰到任何编译错误。 看样子google还是很厚道的,放出来的是完整的版本。不是有些人猜测的过滤版。 这样子的话编译出硬件版本应该不是大问题,不知道会不会马上就有什么 大米系统 流出...---- Revision History -------------
2011-11-07 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.
相关文章推荐
- Android4.0.1 源码下载,模拟器编译和运行 .
- Android4.0.1 源码下载,模拟器编译和运行
- Android 4.0.1 源码下载,编译和运行
- Android 4.0.1 源码下载,编译和运行
- 如何下载Android源码(非常详细,含自动恢复下载,编译,运行模拟器说明)
- Android 4.0.1 源码下载,编译和运行
- Android4.0.1 模拟器内核 最新下载地址及编译步骤
- Android4.0.1 模拟器内核 最新下载地址及编译步骤
- Mac Android 源码下载 编译 运行 Android6.0.1
- Android源码编译及模拟器运行
- 动手实现Android源码(AOSP)的下载、编译、运行、导入、调试
- Android 4.0 framework源码修改编译,模拟器运行不起来——解决
- ubuntu下Android源码下载编译运行,单独编译运行
- ubuntu下在模拟器上运行编译后的android源码
- android-2.3.1源码 下载,编译,运行(编译环境ubuntu17.10)
- Android4.0.1 模拟器内核 最新下载地址及编译步骤