Skip to content
Android ART Hook
Branch: master
Clone or download
unknown unknown
unknown and unknown solve compatibility problem
Latest commit 1d1a2a4 Mar 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
app disable hidden api check for 9.0 Mar 18, 2019
fasthook solve compatibility problem Mar 24, 2019
gradle/wrapper
.gitignore
LICENSE
README.md Update README.md Mar 21, 2019
README_CN.md Update README_CN.md Mar 22, 2019
build.gradle add fasthook Mar 9, 2019
gradle.properties add fasthook Mar 9, 2019
gradlew add fasthook Mar 9, 2019
gradlew.bat add fasthook Mar 9, 2019
settings.gradle add fasthook Mar 9, 2019

README.md

中文文档

FastHook

Android ART Hook

Supports

  • Android 9.0(API 28)
  • Android 8.1 (API 27)
  • Android 8.0 (API 26)
  • Android 7.1 (API 25)
  • Android 7.0 (API 24)
  • Android 6.0 (API 23)
  • Android 5.1 (API 22)
  • Android 5.0 (API 21)

ABI

  • Thumb2
  • Arm64

Usage

/**
 *
 *@param hookInfoClassName class name of HookInfo
 *@param hookInfoClassLoader class loader of HookInfo,if null,that is FastHook class loader
 *@param targetClassLoader class loader of TargetMethod,if null,that is FastHook class loader
 *@param hookClassLoader class loader of HookMethod,if null,that is FastHook class loader
 *@param forwardClassLoader class loader of ForwardMethod,if null,that is FastHook class loader
 *@param jitInline if false, diable jit inline, otherwise allow jit inline
 *
 */
public static void doHook(String hookInfoClassName, ClassLoader hookInfoClassLoader, ClassLoader targetClassLoader, ClassLoader hookClassLoader, ClassLoader forwardClassLoader, boolean jitInline)

call dohook to hook,for example

//hook and target at different classloader
FastHookManger.doHook("hookInfoClassName",pluginsClassloader,null,pluginsClassloader,pluginsClassloader,false);

//hook and target at the same classloader
FastHookManger.doHook("hookInfoClassName",null,null,null,null,false);
You can’t perform that action at this time.