An Android hook framework written like Xposed,based on YAHFA.
When using YAHFA, every hook of a method, you have to write a method to replace it, if you want to call the original method, you must write another method to save the original method information. This is very troublesome to use. BudHook generates these methods dynamically. It is very
When hooking a method, budhook will generate the two methods based on the information of the hooked method automatically, then generate the dex file, and finally load the dex file to complete the hook.
(with Instant Run disabled).
apppluginand then put
app. ## Support Budhook adds a layer written in java for YAHFA,so BudHook supports what YAHFA support.
5.0 - 8.1.
x86. ## API
It is recommended to run and read this demo first.There are several important classes :
BudHelpers: High-level API for convenient hook.Like
BudBridge: Export two core functions for hook:
afterCallfor subclass overrides.Like
BudCallBack.MethodHookParams: Wraps information about the method call and allows to influence it.Basic types will be boxed or unboxed automatically.
setResultfunction will prevents the call to the original method. ## Note