应用是怎么启用Binder机制的
2019-06-05 本文已影响0人
ab64fd4eaee3
![](https://img.haomeiwen.com/i1439846/81b0083123a4a174.png)
![](https://img.haomeiwen.com/i1439846/4007ef0e766860fe.png)
ZygoteInit.java . runSelectLoop()->
ZygoteConnection.runOnce()->
pid = Zygote.forkAndSpecialize(孵化进程 pid = 0 子进程)
ZygoteConnection.handleChildProc()->
RuntimeInit.zygoteInit()->
commonInit();
nativeZygoteInit();->binder 初始化
applicationInit(targetSdkVersion, argv);
![](https://img.haomeiwen.com/i1439846/0d75bd610b405759.png)
![](https://img.haomeiwen.com/i1439846/4980121c68b54ab0.png)
![](https://img.haomeiwen.com/i1439846/542a5139bd7b253f.png)
![](https://img.haomeiwen.com/i1439846/d140f9056763ee8a.png)
![](https://img.haomeiwen.com/i1439846/91ca51cbcdefd2d4.png)
![](https://img.haomeiwen.com/i1439846/e0e4010c63720028.png)