Patcher

object Patcher

Helper for applying Xposed method hooks.

Functions

Link copied to clipboard
fun addPatch(member: Member, hook: XC_MethodHook): XC_MethodHook.Unhook

Hook the given reflective member (method or constructor) with the provided hook.

fun addPatch(clazz: Class<*>, methodName: String, paramTypes: Array<Class<*>> = emptyArray(), hook: XC_MethodHook): XC_MethodHook.Unhook?

Hook the method with the given name on the specified class.

fun addPatch(forClass: String, methodName: String, paramTypes: Array<Class<*>> = emptyArray(), hook: XC_MethodHook): XC_MethodHook.Unhook?

Load the class by name and hook the specified method.