Package dalvik.system
Class ZygoteHooks
- java.lang.Object
-
- dalvik.system.ZygoteHooks
-
public final class ZygoteHooks extends Object
Provides hooks for the zygote to call back into the runtime to perform parent or child specific initialization..
-
-
Constructor Summary
Constructors Constructor Description ZygoteHooks()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpostForkChild(int debugFlags, String instructionSet)Called by the zygote in the child process after every fork.voidpostForkCommon()Called by the zygote in both the parent and child processes after every fork.voidpreFork()Called by the zygote prior to every fork.
-
-
-
Method Detail
-
preFork
public void preFork()
Called by the zygote prior to every fork. Each call topreForkis followed by a matching call topostForkChild(int, String)on the child process andpostForkCommon()on both the parent and the child process.postForkCommonis called afterpostForkChildin the child process.
-
postForkChild
public void postForkChild(int debugFlags, String instructionSet)Called by the zygote in the child process after every fork. The debug flags fromdebugFlagsare applied to the child process. The stringinstructionSetdetermines whether to use a native bridge.
-
postForkCommon
public void postForkCommon()
Called by the zygote in both the parent and child processes after every fork. In the child process, this method is called afterpostForkChild.
-
-