본문 바로가기

IT/과학 관련정보

펌)Make own custom rom

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
How to make your custom Android ROM – The Prerequisites (part 1)

BY AEGYPIUS – DECEMBER 15, 2009

POSTED IN: DEVELOPMENT

First of all, this is an experiment tutorial explaining how i complete compilation of Android source on a gentoo. The purpose of this serie of article is to provide a step-by-step way to create your own custom ROM for android.

I own a HTC Magic 32B (Google branded) so the tests i will perform is intended to work on this specific platform.

As you know, it can be risky to modify your Android ROM with a custom one. You’re warn ! I am not responsible of possible deterioration of your terminal !

So, let’s begin !

Part 1 – The Prerequisites (for Gentoo)

You may read the Official documentation located here : http://source.android.com/download.

Let’s start with dependencies installation,

emerge git gnupg emerge "
Android does not compile with JDK-1.6 so we have merged a JDK-1.5, let’s configure your system to use it.

eselect java-vm list [1] sun-jdk-1.5 [2] sun-jdk-1.6 system-vm eselect java-vm set user sun-jdk-1.5

or

eselect java-vm set user 1

Now you need to refresh your environment :

sudo env-update && source /etc/profile

Environment is now ready let’s try to compile android system :



How To make your custom Android ROM – Compiling the system (part 2) How to make your custom Android ROM – Compiling the system (part 2)

BY AEGYPIUS – JANUARY 6, 2010

POSTED IN: DEVELOPMENT

Part 2 – The Compilation

This post is more generic than the previous one, every linux may work :

Let’s get the sources, Google uses a tool called “repo” so you need first to get this tool.

mkdir ~/bin cat >> ~/.bashrc # set PATH so it includes user's private bin if it exists if [ -d ~/bin ] ; then PATH=~/bin:"${PATH}" fi

source ~/.bash_profile

This step allow you to have your own bin directory so you don’t mess your system with binaries that are not managed by emerge.

curl http://android.git.kernel.org/repo > ~/bin/repo chmod a+x ~/bin/repo

Let’s try :

repo --version repo version v1.6.8.8 (from git://android.git.kernel.org/tools/repo.git) git version 1.6.5.6 Python 2.6.4 (r264:75706, Dec 7 2009, 12:35:13) [GCC 4.1.2 (Gentoo 4.1.2 p1.3)]

Now we will initialize android repository.

mkdir -p ~/src/android cd ~/src/android repo init -u git://android.git.kernel.org/platform/manifest.git -b donut

After a while you will be able to synchronize your repository

repo sync export ANDROID_JAVA_HOME=$JAVA_HOME make

Now compile is running …

272 minutes later, compilation completed (on my AMD Athlon XP 3200+) !

In the next part we will test our fresh build !

See You !


디자이어를 쓰고있는데 롬을만들어볼까해서 저장해놨었는데 어디서 갖고왔는지기억이..
구글링했었는데;
내용읽어보지도않아 제데로되있는건지도 모릅니다
일단 컴퓨터에 우분투부터 깔고 차근차근 할려구요