EzXHelper

object EzXHelper

Properties

Link copied to clipboard

Add module assets path to appContext for using module resources directly.

Link copied to clipboard

Hooked application context. Notice: May cause NullPointerException if the AndroidAppHelper.currentApplication return null Because of you used the appContext too early.

Link copied to clipboard
Link copied to clipboard

Class loader for doing reflection. Will auto initialized when initHandleLoadPackage invoked.

Link copied to clipboard

Package name of hooked application. Will auto initialized when initHandleLoadPackage invoked.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Module path. Will auto initialized when initZygote invoked.

Link copied to clipboard

Module resources. Will auto initialized when initZygote invoked.

Link copied to clipboard

Safe class loader for doing reflection, will use system class loader instead if classLoader is not initialized.

Functions

Link copied to clipboard

Add module path to target Context.resources. Allow directly use module resources with R.xx.xxx.

Link copied to clipboard

Enable the exception message when Finders cannot find the target object.

Link copied to clipboard
fun initAppContext(context: Context? = AndroidAppHelper.currentApplication(), addPath: Boolean = false)

Initialize the application context. Recommended invoke this after Application.onCreate.

Link copied to clipboard
fun initHandleLoadPackage(lpparam: XC_LoadPackage.LoadPackageParam)

You need invoke this function at first in IXposedHookLoadPackage.handleLoadPackage.

Link copied to clipboard
fun initZygote(startupParam: IXposedHookZygoteInit.StartupParam)

You need invoke this function at first in IXposedHookZygoteInit.initZygote. If you want to use module resources.

Link copied to clipboard

Set current logger tag.

Link copied to clipboard

Set current logger toast tag. If not set will not show the prefix.