-
Notifications
You must be signed in to change notification settings - Fork 4
/
README
58 lines (42 loc) · 1.51 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
1. build android
Require cmake (>= 2.6) and these packages:
libexpat-dev
libicu-dev
libfreetype6-dev
libgif-dev
libjpeg-dev
libpng-dev
zlib1g-dev
Pass building on Debian Sid with GCC 4.1.3.
$ mkdir build && cd build && ccmake ../SurfaceFlinger
$ make
2. build linux kernel
$ git clone git://android.git.kernel.org/kernel/common.git kernel
$ cd kernel && git checkout android-2.6.29
$ cp ../SurfaceFlinger/kernel/android-2.6.29-config .config
$ make oldconfig
$ make
# make deb-pkg # require root privilege, stupid...
On your test machine(you can test with VirtualBox):
# dpkg -i ../linux*.deb
3. run
# aptitude install v86d # required by uvesafb
# ./init.sh
# cd build/bin
# cp -r ../../x86/frameworks/base/core/res/assets . # required by BootAnimation
# ./logcat -v long '*:*' # tty1
# ./ServiceManager # tty2
# ./SurfaceFlinger # tty3
# export ANDROID_ROOT=/system; ./BootAnimation # tty4
---------IGNORE BELOW ---------------------------------
Some notes:
export ANDROID_ROOT=/system
#export ANDROID_DATA=/data
#export ANDROID_ASSETS=/system/app
#export ANDROID_BOOTLOGO=1
#export BOOTCLASSPATH=/system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar
#export EXTERNAL_STORAGE=/sdcard
#export LD_LIBRARY_PATH=/system/lib
#export PATH=/sbin:/system/sbin:/system/bin:/system/xbin
AssetManager::addDefaultAssets()
$ANDROID_ROOT/framework/framework-res.apk