commit
4bbb2f24c9
|
|
@ -24,7 +24,7 @@ dependencies {
|
||||||
compileOnly files("libs/framework-stub.jar")
|
compileOnly files("libs/framework-stub.jar")
|
||||||
implementation project(':edxp-common')
|
implementation project(':edxp-common')
|
||||||
implementation project(':xposed-bridge')
|
implementation project(':xposed-bridge')
|
||||||
implementation 'com.swift.sandhook:hooklib:3.3.3'
|
implementation 'com.swift.sandhook:hooklib:3.3.4'
|
||||||
compileOnly project(':dexmaker')
|
compileOnly project(':dexmaker')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
package com.swift.sandhook.xposedcompat.methodgen;
|
package com.swift.sandhook.xposedcompat.methodgen;
|
||||||
|
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Process;
|
import android.os.Process;
|
||||||
import android.os.Trace;
|
import android.os.Trace;
|
||||||
|
|
||||||
import com.swift.sandhook.SandHook;
|
import com.swift.sandhook.SandHook;
|
||||||
import com.swift.sandhook.SandHookConfig;
|
import com.swift.sandhook.SandHookConfig;
|
||||||
|
import com.swift.sandhook.annotation.HookMode;
|
||||||
import com.swift.sandhook.wrapper.HookWrapper;
|
import com.swift.sandhook.wrapper.HookWrapper;
|
||||||
import com.swift.sandhook.xposedcompat.XposedCompat;
|
import com.swift.sandhook.xposedcompat.XposedCompat;
|
||||||
import com.swift.sandhook.xposedcompat.hookstub.HookMethodEntity;
|
import com.swift.sandhook.xposedcompat.hookstub.HookMethodEntity;
|
||||||
|
|
@ -124,6 +126,9 @@ public final class SandHookXposedBridge {
|
||||||
@Override
|
@Override
|
||||||
public void loadLib() {
|
public void loadLib() {
|
||||||
//do it in loadDexAndInit
|
//do it in loadDexAndInit
|
||||||
|
if (SandHookConfig.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
|
SandHook.setHookMode(HookMode.REPLACE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
SandHookConfig.DEBUG = true;
|
SandHookConfig.DEBUG = true;
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue