当前位置: 代码迷 >> 综合 >> android system services startup process
  详细解决方案

android system services startup process

热度:53   发布时间:2023-12-08 11:48:12.0

android 系统服务启动流程 速记



init =>

Zygote service =>
main() @ frameworks/base/cmds/app_process/app_main.cpp  =>
startSystemServer() @ ZygoteInit.java =>
init1() @ SystemServer.java =>
JNI =>
android_server_SystemServer_init1() @ com_android_server_SystemServer.cpp =>
system_init() @ system_init.cpp =>
(start SurfaceFlinger, SensorService, AndroidRuntime)
com.android.server.SystemServer.init2() @ SystemServer.java =>
ServerThread.run() @ SystemServer.java

following services are started one after another:

EntropyService
ActivityManagerService
TelephonyRegistry
PackageManagerService
  相关解决方案