Android Zygote进程和SystemServer进程启动过程

Android Zygote进程和SystemServer进程启动过程

1.init.c main(...) parse init.rc

2.app_process.app_main.cpp main(...)

3.AndroidRuntime.cpp start(...)

4.ZygoteInit.java main(...)
①:registerZygoteSocket();
②:startSystemServer();
③:runSelectLoopMode();
④:closeServerSocket

4.SystemServer.java main(...)
①:init1(...)
②:init2(...)
③:ServerThread.start()
...

你可能感兴趣的:(Android,Framework)