Home > other >  What is the android system startup process?
What is the android system startup process?

Time:10-04

What is the android system startup process?

CodePudding user response:

You can refer to the following link:
https://blog.csdn.net/u014076894/article/details/51445041

CodePudding user response:

内核初始化好后,运行的第一个用户程序是init,init将启动init.rc里声明的多个service,跟Android空间相关的有servicemanager和zygote,servicemanager负责管理所有的binder service,zygote负责孵化所有Android空间的程序,zygote service对应的程序是app_process,不过加了一些启动参数,所以它会启动Java层的ZygoteInit,在ZygoteInit里会启动SystemServer,SystemServer分为两个阶段:本地的init1和Java层的init2,init2里会启动线程android.server.ServerThread,在android.server.ServerThread线程里会启动Java层的各种binder service,比如ActivityManagerService,PackageManagerService,WindowManagerService,然后调用ActivityManagerService的systemReady方法,在该方法里会启动系统界面以及Home程序,
  • Related