Commit 6e884926 authored by swift_gan's avatar swift_gan

Merge remote-tracking branch 'origin/master'

parents 331f9130 d2b7b3c7
...@@ -30,7 +30,7 @@ cant hook if lined ...@@ -30,7 +30,7 @@ cant hook if lined
# how to use # how to use
```gradle ```gradle
implementation 'com.swift.sandhook:hooklib:2.5.2' implementation 'com.swift.sandhook:hooklib:3.0.2'
``` ```
- Annotation API - Annotation API
...@@ -103,7 +103,14 @@ public class NewAnnotationApiHooker { ...@@ -103,7 +103,14 @@ public class NewAnnotationApiHooker {
} }
//first set debuggable
SandHookConfig.DEBUG = BuildConfig.DEBUG;
and and
//add hookers
SandHook.addHookClass(CtrHook.class, LogHooker.class, CustmizeHooker.class, ActivityHooker.class, ObjectHooker.class); SandHook.addHookClass(CtrHook.class, LogHooker.class, CustmizeHooker.class, ActivityHooker.class, ObjectHooker.class);
you can also use: you can also use:
...@@ -114,7 +121,7 @@ SanHook.public static boolean hook(Member target, Method hook, Method backup) {} ...@@ -114,7 +121,7 @@ SanHook.public static boolean hook(Member target, Method hook, Method backup) {}
if hookers is in plugin(like xposed): if hookers is in plugin(like xposed):
```groovy ```groovy
provided 'com.swift.sandhook:hookannotation:2.5.2' provided 'com.swift.sandhook:hookannotation:3.0.2'
``` ```
in your plugin in your plugin
...@@ -129,7 +136,7 @@ backup method can call itself to avoid be inlining ...@@ -129,7 +136,7 @@ backup method can call itself to avoid be inlining
Now you can use Xposed api: Now you can use Xposed api:
```groovy ```groovy
implementation 'com.swift.sandhook:xposedcompat:2.5.2' implementation 'com.swift.sandhook:xposedcompat:3.0.2'
``` ```
```java ```java
......
...@@ -24,6 +24,8 @@ public class MyApp extends Application { ...@@ -24,6 +24,8 @@ public class MyApp extends Application {
public void onCreate() { public void onCreate() {
super.onCreate(); super.onCreate();
SandHookConfig.DEBUG = BuildConfig.DEBUG;
SandHook.disableVMInline(); SandHook.disableVMInline();
try { try {
......
...@@ -30,7 +30,7 @@ ext { ...@@ -30,7 +30,7 @@ ext {
userOrg = 'ganyao114' userOrg = 'ganyao114'
groupId = 'com.swift.sandhook' groupId = 'com.swift.sandhook'
repoName = 'SandHook' repoName = 'SandHook'
publishVersion = '2.9.5' publishVersion = '3.0.2'
desc = 'android art hook' desc = 'android art hook'
website = 'https://github.com/ganyao114/SandHook' website = 'https://github.com/ganyao114/SandHook'
licences = ['Apache-2.0'] licences = ['Apache-2.0']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment