HookFactory

The hook factory to quick create a method/constructor hook

Types

Link copied to clipboard
object -Static

Functions

Link copied to clipboard
fun after(callback: IMethodHookCallback?)

Hook method after invoked

Link copied to clipboard
fun before(callback: IMethodHookCallback?)

Hook method before invoke

Link copied to clipboard
fun interrupt()

Interrupt the method, make method return null, just a wrapper of before and same as returnConstant(null)

Link copied to clipboard
fun replace(callback: (param: XC_MethodHook.MethodHookParam) -> Any?)

Replace the method, just a wrapper of before

Link copied to clipboard
fun returnConstant(constant: Any?)

Replace the result of the method, just a wrapper of before