Skip to content

Commit

Permalink
Merge pull request #194 from ElderDrivers/sandhook
Browse files Browse the repository at this point in the history
Sandhook
  • Loading branch information
solohsu authored Mar 27, 2019
2 parents 8a37dae + 55d6363 commit 4bbb2f2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion edxp-sandhook/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies {
compileOnly files("libs/framework-stub.jar")
implementation project(':edxp-common')
implementation project(':xposed-bridge')
implementation 'com.swift.sandhook:hooklib:3.3.3'
implementation 'com.swift.sandhook:hooklib:3.3.4'
compileOnly project(':dexmaker')
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package com.swift.sandhook.xposedcompat.methodgen;

import android.os.Build;
import android.os.Process;
import android.os.Trace;

import com.swift.sandhook.SandHook;
import com.swift.sandhook.SandHookConfig;
import com.swift.sandhook.annotation.HookMode;
import com.swift.sandhook.wrapper.HookWrapper;
import com.swift.sandhook.xposedcompat.XposedCompat;
import com.swift.sandhook.xposedcompat.hookstub.HookMethodEntity;
Expand Down Expand Up @@ -124,6 +126,9 @@ public static void init() {
@Override
public void loadLib() {
//do it in loadDexAndInit
if (SandHookConfig.SDK_INT >= Build.VERSION_CODES.O) {
SandHook.setHookMode(HookMode.REPLACE);
}
}
};
SandHookConfig.DEBUG = true;
Expand Down
Binary file modified edxp-sandhook/template_override/system/lib/libsandhook.edxp.so
Binary file not shown.
Binary file modified edxp-sandhook/template_override/system/lib64/libsandhook.edxp.so
Binary file not shown.

0 comments on commit 4bbb2f2

Please sign in to comment.