Skip to content

Modules loaded multiple times #1348

Closed Answered by yujincheng08
Massi-X asked this question in Q&A
Discussion options

You must be logged in to vote

There are two entry points (basically three but just ignore resource hook).

One is initZygote, which is called as soon as Zygote forked this process. So for one process of one application, initZygote will be and only be called once. At that time, no classloader (except for the one from the system) is available.

The other is handleLoadedPackage, which is called whenever a single LoadedApk is called getClassloader, which means the classloader of a package is constructed. You might think there can only be only one package in one process, but this is false. There are many scenarios in which more than one packages can be loaded into one process: i) packages sharing the same UID and process nam…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Massi-X
Comment options

Answer selected by yujincheng08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants