Project

General

Profile

DeprecatedBuildAndroid » History » Version 24

Denis 'GNUtoo' Carikli, 09/29/2009 08:43 PM

1 16 Denis 'GNUtoo' Carikli
Edit:
2
We have now a temporary git repository at gitorious:
3
http://gitorious.org/replicant
4
5 18 Denis 'GNUtoo' Carikli
== Before starting ==
6 8 Denis 'GNUtoo' Carikli
 * root your phone
7 1 Denis 'GNUtoo' Carikli
 * Backup your current system!!!
8 18 Denis 'GNUtoo' Carikli
9 22 Denis 'GNUtoo' Carikli
== Setup the build system ==
10 18 Denis 'GNUtoo' Carikli
Let's say that our build directory is ~/replicant
11
12
Check out the Dream Android repository :
13 15 Aaron Williamson -
{{{
14 20 Denis 'GNUtoo' Carikli
 mkdir bin
15
 cd bin
16 21 Denis 'GNUtoo' Carikli
 wget http://android.git.kernel.org/repo
17 20 Denis 'GNUtoo' Carikli
 chmod a+x repo
18
 cd ..
19 1 Denis 'GNUtoo' Carikli
 mkdir replicant
20
 cd replicant
21 20 Denis 'GNUtoo' Carikli
 ../bin/repo init -u git://gitorious.org/replicant/manifest.git
22
 ../bin/repo sync
23 15 Aaron Williamson -
}}}
24 22 Denis 'GNUtoo' Carikli
== Each time you want to build something ==
25
 * open a new console
26
 * Then type:
27 5 Denis 'GNUtoo' Carikli
{{{
28
 cd ~/replicant
29
 export ANDROID_JAVA_HOME=$JAVA_HOME
30 22 Denis 'GNUtoo' Carikli
 lunch htc_dream-eng
31 5 Denis 'GNUtoo' Carikli
 make
32
}}}
33 1 Denis 'GNUtoo' Carikli
 * The files to flash are in ~/replicant/out/target/product/dream,flash them and then clear the cache
34
 * boot and push the wifi firmware if you want it
35
36
37 23 Denis 'GNUtoo' Carikli
== If you want to build a particular project ==
38 24 Denis 'GNUtoo' Carikli
 * open a new console
39
 * build everything if it was not done before
40
 * Then type:
41
{{{
42
 cd ~/replicant
43
 source build/envsetup.sh
44
 export ANDROID_JAVA_HOME=$JAVA_HOME
45
 lunch htc_dream-eng
46
 #go into the directory containing an Android.mk
47
 mm
48
}}}
49
50 1 Denis 'GNUtoo' Carikli
51
== Status ==
52 18 Denis 'GNUtoo' Carikli
 * ril works more or less:
53 19 Denis 'GNUtoo' Carikli
 * * calls should work(in/out)
54
 * * sms should work(in/out)
55
 * * hearphones not supported
56 18 Denis 'GNUtoo' Carikli
 
57
 * sound works even with headphones(beware calls's sound don't work with headphones)