参考文章:
复杂:https://www.zybuluo.com/TryLoveCatch/note/1311265
简单:https://www.jianshu.com/p/8f0ceb55f590
一些源码调用:https://www.jianshu.com/p/a1f40b39b3de
ActivityManagerNative过时:https://blog.csdn.net/qi1017269990/article/details/78879512
文章中有一些笔误,现修改为如下:
ApplicationThread是App进程是服务端,system_server进程是客户端;ActivityManager是system_server进程是服务端,App进程是客户端。
涉及到的进程:有四个
launch进程、system_server进程、Zygote进程、新建进程
[图片上传中...(image.png-d42a8f-1545644423865-0)]
涉及到的主要类:
ActivityManagerService、ActivityManagerNative、ActivityManagerProxy
ApplicationThread、ApplicationThreadNative、ApplicationThreadProxy
ActivityThread