Linux环境下生成Android刷机包
一般准备工作:
Install ADB
Install Android SDK.
Install Build Packages
Add repo for Java6 JDK:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
(For Lucid & Meerkat, Java6-jdk not in Meerkat repos)
sudo aptitude update
For 32bit(Install using Package Manager of your choice):
sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush
Setup Directories
mkdir bin
mkdir eclair
Setup Repo
curl http://android.git.kernel.org/repo > ~/bin/repo
chmod a+x ~/bin/repo
You may need to reboot for the file to be executable and for ~/bin to show up in echo $PATH
cd bin (在bin目录下repo文件中将git改成下面http)
REPO_URL='http://android.git.kernel.org/tools/repo.git' cd eclair
repo init -u http://github.com/CyanogenMod/android.git -b eclair
After init: 在文件/home/zhouyanghua/eclair/.repo/manifest.xml文件中改动如下:
<remote name="korg" fetch="http://android.git.kernel.org/" review="review.source.android.com"/> <remote name="github" fetch="http://github.com/" />
<remote name="gitorious" fetch="http://gitorious.org" />
repo sync
RomManager.apk put in /android_cm/vendor/cyanogen/proprietary
superuser.* put in /android_cm/build/target/product/security
mkdir proprietary(将附件包里文件拷贝过来)
/eclair/vendor/htc/dream_sapphire/proprietary
. build/envsetup.sh
lunch cyanogen_dream_sapphire-eng
make otapackage
./vendor/cyanogen/tools/squisher
编译Android包要用到文件下载地址:
FTP地址:ftp://www.6688.cc/
用户名:www.linuxidc.net
密码:www.6688.cc