public abstract class InitBridge extends java.lang.Object implements IXposedHookZygoteInit
IXposedHookZygoteInit.StartupParam
Constructor and Description |
---|
InitBridge() |
Modifier and Type | Method and Description |
---|---|
static void |
initialize(java.lang.Class<? extends InitBridge> clazz)
Cydia Substrate uses a pure design where a static method is used to instantiate modules.
|
void |
initZygote(IXposedHookZygoteInit.StartupParam startupParam)
For Internal Use
|
void |
onPackageInit(Context context,
java.lang.String packageName,
java.lang.String processName)
This is called whenever a new application is starting.
|
void |
onProcessInit(Context context,
java.lang.String packageName,
java.lang.String processName)
This is invoked when an application is starting and creates it's process.
|
void |
onSystemInit(Context systemContext)
This is invoked once the system thread has been created and started along with things like system context and such.
|
void |
onZygoteInit()
This is invoked the moment a Bridge System, like Xposed or Cydia, loads the module.
|
public final void initZygote(IXposedHookZygoteInit.StartupParam startupParam) throws java.lang.Throwable
initZygote
in interface IXposedHookZygoteInit
java.lang.Throwable
public static final void initialize(java.lang.Class<? extends InitBridge> clazz) throws java.lang.Throwable
clazz
- The Class
type of whatever class extends this class and should be instantiated via Cydiajava.lang.Throwable
public void onZygoteInit()
public void onSystemInit(Context systemContext)
systemContext
- The main system Context
public void onProcessInit(Context context, java.lang.String packageName, java.lang.String processName)
context
- The Application ContextpackageName
- Name of the packageprocessName
- Name of the processpublic void onPackageInit(Context context, java.lang.String packageName, java.lang.String processName)
onProcessInit(Context, String, String)
this is called on all applications, even those attaching themselves to already created processes. Avoid using this
where a shared hook can be used. Only use this to target app specific parts, like a specific Activity
and such that is not used
within other applications in the shared process.context
- The Application ContextpackageName
- Name of the packageprocessName
- Name of the process