Commit 17cfb2c4 authored by swift_gan's avatar swift_gan

remove useless code

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