Skip to content

Dieken/SurfaceFlinger

Repository files navigation

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

About

Rendering system for Android

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages