Android SDK Emulator: Compile CyanogenMod (Linux)
来源:互联网 发布:淘宝上的军品是真的么 编辑:程序博客网 时间:2024/05/18 03:48
How to compile CyanogenMod for the Android Emulator.
This how-to was written for Ubuntu 10.04 & Ubuntu 10.10, Android Emulator r08, CyanogenMod 7.x (Gingerbread), on 2 February 2011.
Contents
[hide]- 1 Prepare the Build Environment
- 1.1 Install the ADB
- 1.2 Install the Build Packages
- 1.3 Create the Directories
- 1.4 Install the Repository
- 2 Download RomManager
- 3 Building CyanogenMod
- 3.1 Check for updates
- 3.2 Configure Build
- 3.3 Compile
- 4 Install
Prepare the Build Environment
- NOTE: You only need to do these steps the first time you build. If you previously prepared your build environment, skip to Download RomManager.
Install the ADB
- Install the Android SDK.
Install the Build Packages
Install using the package manager of your choice:
For 32-bit & 64-bit systems:
git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool
For 64-bit only systems:
g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev gcc-4.3-multilib g++-4.3-multilib
Note: On Ubuntu 10.10, and variants, you need to enable the parter repository to install sun-java6-jdk:
add-apt-repository "deb http://archive.canonical.com/ maverick partner"
Create the Directories
You will need to set up some directories in your build environment.
To create them:
mkdir -p ~/bin
mkdir -p ~/android/system
Install the Repository
Enter the following to download make executable the "repo" binary:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
- NOTE: You may need to reboot for these changes to take effect.
Now enter the following to initialize the repository:
cd ~/android/system/
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
repo sync -j16
Download RomManager
- NOTE: This only needs to be done when an update to RomManager is released. If you are-up-to date, you may skip to Building CyanogenMod.
Download ROM Manager which is needed by the build:
cd ~/android/system/vendor/cyanogen/
./get-rommanager
Building CyanogenMod
Check for updates
First, check for updates in the source:
cd ~/android/system/
repo sync
Configure Build
Now, your environment must be configured to build specifically for the Android Emulator. To set up your build environment:
. build/envsetup.sh
lunch cyanogen_generic-eng
Compile
Next, we will build the actual ROM.
mka
Install
- Create a folder called android-9-cyanogen on Your/Android-SDK/platforms/
- Copy the contents of Your/Android-SDK/platforms/android-9 into Your/Android-SDK/platforms/android-9-cyanogen
- Copy the ramdisk.img system.img and userdata.img file from ~/android/system/out/target/product/generic to Your/Android-SDK/platforms/android-9-cyanogen/images/
- Run the Android AVD Manager and select the second Android 2.3 target.
- Android SDK Emulator: Compile CyanogenMod (Linux)
- Nexus One: Compile CyanogenMod (Linux)
- Galaxy Nexus (GSM): Compile CyanogenMod 9 (Linux)
- android emulator on linux
- Install Android SDK, Eclipse, and Emulator (AVDs)
- Intellij IDEA + Android SDK + Genymotion Emulator
- HTC Hero (GSM): Compile CyanogenMod (OS X)
- Nexus 7 Cyanogenmod OS Compile and errors
- How To Build CyanogenMod Android (oneplus/bacon) On Linux
- android SDK开发环境搭建(Android 4.0.3 emulator)
- Android:invalid command-line parameter: Filesandroid-sdk-windowsools/emulator-arm
- moible sdk&mobile emulator
- Fedora 20 Compile Cyanogenmod 11.0 - Nexus 4 ( mako ) example
- The right method to compile android SDK from source code
- Android SDK Add-on Configure, Compile and Release
- Android SDK Add-on Configure, Compile and Release
- Android SDK Add-on Configure, Compile and Release
- Android开发创建项目的Minimum SDK、Target SDK、Compile SDK作用
- zoj 1240 IBM Minus One
- zoj 2812 Quicksum
- c#循环中产生伪随机数
- 还是内存~~~
- DirectX9中的occlusion query
- Android SDK Emulator: Compile CyanogenMod (Linux)
- ORACLE 表空间扩展方法
- DB2存储过程使用游标
- win7上用256色作远程连接
- C#再谈序列化和反序列化
- 1080
- Maximo更改语言支持
- loadrunner 对接口进行测试
- 如何在Mac OS X里输入特殊字符