普通APP 的Process Name 来源
在AMS call startProcessLocked 中,将Main class: android.app.ActivityThread 以及app 的ProcessName, uid, gid 等等都通过Process.Start 传递给zygote.
ActivityManagerService.java
->Process.java
->Zygoteinit.java
-> ZygoteConnection.java
-> runOnce()
->zygote.java -> dalvik_system_Zygote.cpp ->fork() -> set uid gid....
new Child Process->handleChildProc->Process.setArgV0->android_util_Process->android_os_Process_setArgV0->ProcessState.cpp setArgV0->system/core/libcutils/process_name.c->prctl
普通APP 的Process Name 来源
最新推荐文章于 2022-05-23 19:15:26 发布