ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
#### 本章主要内容 - 深入分析zygote,并介绍system_server进程的初始化工作。 #### 本章涉及的源代码文件名及位置 下面是我们本章分析的源码文件名及其位置。 - App_main.cpp `framework/base/cmds/app_process/App_main.cpp` - AndroidRuntime.h `framework/base/include/android_runtime/AndroidRuntime.h` - android_debug_JNITest.cpp `framework/base/core/jni/android_debug_JNITest.cpp` - ZygoteInit.java `framework/base/core/java/com/android/internal/os/ZygoteInit.java` - dalvik_system_Zygote.c `dalvik/vm/native/dalvik_system_Zygote.c` - RuntimeInit.java `framework/base/core/java/com/android/internal/os/RuntimeInit.java` - SystemServer.java `framework/base/services/java/com/android/server/SystemServer.java` - com_android_server_SystemServer.cpp `framework/base/services/jni/com_android_server_SystemServer.cpp` - system_init.cpp `framework/base/cmds/system_server/library/system_init.cpp` - Watchdog.java `framework/base/services/java/com/android/server/Watchdog.java` - ActivityManagerService.java `framework/base/services/java/com/android/server/am/ActivityManagerService.java` - Process.java `framework/base/core/java/android/os/Process.java` - ZygoteConnection.java `framework/base/core/java/com/android/internal/os/ZygoteConnection.java`