系统先通过init.rc中通过app_process启动Zygote,
service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
socket zygote stream 666
onrestart write /sys/android_power/request_state wake
onrestart write /sys/power/state on
onrestart restart media
onrestart restart netd
Zygote又通过
if (argv[1].equals("start-system-server")) {
startSystemServer();
来启动systemServer(com.android.server.SystemServer).
阅读(717) | 评论(0) | 转发(0) |