GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bmax121/BudHook: An Android hook framework written like Xposed,based on YAHFA.

This repository was archived by the owner on Dec 3, 2019. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

33 Commits
33 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
app
app
 
 
appplugin
appplugin
 
 
gradle/wrapper
gradle/wrapper
 
 
library
library
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

BudHook

BudHook add a similar Xposed api to YAHFA.
BudHook based on several projects below:

  • YAHFA
  • asmdex
  • TurboDex

What did it solved

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 simple to use.

How it works

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.

How to run this demo

  • 1.Import the project in Android Studio (with Instant Run disabled).
  • 2.Build appplugin and then put appplugin-debug.apk into sdcard.
  • 3.Run app.

Support

Budhook adds a layer written in java for YAHFA,so BudHook supports what YAHFA support.
Android 5.0 - 8.1.
ABI arm64-v8a,armeabi-v7a,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 XposedHelper.
  • BudBridge: Export two core functions for hook: hookMethod,hookManyMethod.
  • BudCallBack: Provide beforeCall and afterCall for subclass overrides.Like XC_MethodHook
  • BudCallBack.MethodHookParams: Wraps information about the method call and allows to influence it.Basic types will be boxed or unboxed automatically.setResult function will prevents the call to the original method.

Note

  • TurboDex is useful to avoid some problem that caused by optimization.
  • Notice the capacity initialized of YAHFA.
  • Get a Context when BudHook initialized only to get a ClassLoader and a place to write and read Dex file,change the source as you like.
  • Pay attention to your ClassLoader, otherwise it may cause some reflection problems.

About

An Android hook framework written like Xposed,based on YAHFA.

Resources

Readme
GPL-3.0 license
Activity

Stars

145 stars

Watchers

1 watching

Forks

43 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.