Skip to content

Commit 12d4694

Browse files
aviraxpsidex15
authored andcommitted
Strip JNI debug logs on release build (#2732)
Add conditional logging to jni.cc for debug builds.
1 parent 556d9c8 commit 12d4694

File tree

1 file changed

+4
-0
lines changed
  • manager/app/src/main/cpp

1 file changed

+4
-0
lines changed

manager/app/src/main/cpp/jni.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
#include "ksu.h"
99

1010
#define LOG_TAG "KernelSU-Next"
11+
#ifdef NDEBUG
12+
#define LOGD(...) (void)0
13+
#else
1114
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
15+
#endif
1216

1317
extern "C"
1418
JNIEXPORT jboolean JNICALL

0 commit comments

Comments
 (0)