Commit 237274b7 authored by swift_gan's avatar swift_gan

add logger invoke switcher

parent 68be7414
...@@ -9,6 +9,8 @@ public class DexLog { ...@@ -9,6 +9,8 @@ public class DexLog {
public static final String TAG = "SandXposed-dexmaker"; public static final String TAG = "SandXposed-dexmaker";
public static boolean DEBUG = true;
public static int v(String s) { public static int v(String s) {
return Log.v(TAG, s); return Log.v(TAG, s);
} }
...@@ -22,9 +24,9 @@ public class DexLog { ...@@ -22,9 +24,9 @@ public class DexLog {
} }
public static void printMethodHookIn(Member member) { public static void printMethodHookIn(Member member) {
if (member == null) if (DEBUG && member != null) {
return; Log.d("SandHook-Xposed", "method <" + member.toString() + "> hook in");
Log.d("SandHook-Xposed", "method <" + member.toString() + "> hook in"); }
} }
public static int w(String s) { public static int w(String s) {
......
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