Commit 17cfb2c4 authored by swift_gan's avatar swift_gan

remove useless code

parent 7ec4541b
......@@ -11,7 +11,7 @@ android {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
......
......@@ -58,7 +58,6 @@ bool doHookWithReplacement(JNIEnv* env,
originMethod->backup(backupMethod);
backupMethod->disableCompilable();
backupMethod->disableInterpreterForO();
backupMethod->tryDisableInline();
if (!backupMethod->isStatic()) {
backupMethod->setPrivate();
}
......@@ -69,7 +68,6 @@ bool doHookWithReplacement(JNIEnv* env,
hookMethod->disableCompilable();
hookMethod->flushCache();
originMethod->tryDisableInline();
originMethod->disableInterpreterForO();
SandHook::HookTrampoline* hookTrampoline = trampolineManager.installReplacementTrampoline(originMethod, hookMethod, backupMethod);
......@@ -103,7 +101,7 @@ bool doHookWithInline(JNIEnv* env,
if (SDK_INT >= ANDROID_N) {
originMethod->disableCompilable();
}
originMethod->tryDisableInline();
originMethod->flushCache();
SandHook::HookTrampoline* hookTrampoline = trampolineManager.installInlineTrampoline(originMethod, hookMethod, backupMethod);
......@@ -121,7 +119,6 @@ bool doHookWithInline(JNIEnv* env,
backupMethod->disableCompilable();
}
backupMethod->disableInterpreterForO();
backupMethod->tryDisableInline();
if (!backupMethod->isStatic()) {
backupMethod->setPrivate();
}
......
......@@ -7,7 +7,7 @@
#include "../includes/log.h"
extern int SDK_INT;
#define SWITCH_SETX0 true
#define SWITCH_SETX0 false
namespace SandHook {
......
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