Android 2.3.4 building guide

来源:互联网 发布:安安学车软件 编辑:程序博客网 时间:2024/06/05 10:04

摘要:随着智能手机的普遍应用,作为被广泛应用的开源智能手机操作系统Android被广泛关注。本文接合了笔者的经验介绍了在ubuntu10.04上编译Android源代码的步骤。

关键字:Android,Ubuntu10.04,编译

 

Step 1: Follow instructions to setup environment
http://source.android.com/source/initializing.html gives instructions about setup OS, JDK and many essential libraries, follow them to finish preparation. I choose Ubuntu 10.04 as local OS. (Is your ubuntu too ugly to use? Try MacBuntu@SrouceForge, easy to install and use.)

Step 2: Download source code
http://source.android.com/source/downloading.html gives instructions about setup Git and Repo for downloading source code. But pay attention to change the branch to "gingerbread" in the following command:
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b froyo, you can find other branches in http://source.android.com/source/overview.html
Command "repo sync" takes a long time and may be hanged, so find something to do at this moment but don't be so far from computer.

Step 3: Compiling source code
$ source build/envsetup.sh
$ lunch full-eng
$ make -j4

Step 4 : Running in emulator
$ emulator