2010年1月6日 星期三

Manually start android in the google android emulator

Manually start android in the google android emulator

The google android kernel will invoke services listed in the file /etc/init.rc after the kernel is started up. The /etc/init.rc is included in the ramdisk.img. Find the ramdisk.img in $EMULATOR_SDK_FOLDER/tools/lib/images/. One can change the ramdisk.img to change the init.rc and so to change the google android startup sequence.

Follow the tips in
Step by step to create/modify ramdisk.img to change ramdisk.img.

Following is the items to comment out in
init.rc to stop the android to be loaded at the initial time:

Comment out lines are listed for your reference:

#zygote {
#exec /system/bin/app_process
#args {
#0 -Xzygote
#1 /system/bin
#2 --zygote
#}
#autostart 1
#}
#runtime {
#exec /system/bin/runtime
#autostart 1
#}

After the google android emulator is started up, manually start up the google android services below:

Upload a strace tool to trace the above services:

沒有留言:

張貼留言