diff --git a/native/jni/core/log_monitor.c b/native/jni/core/log_monitor.c index c1375bcb0..f94fb67a1 100644 --- a/native/jni/core/log_monitor.c +++ b/native/jni/core/log_monitor.c @@ -106,6 +106,7 @@ static void *logger_thread(void *args) { } static void *magisk_log_thread(void *args) { + rename(LOGFILE, LOGFILE ".bak"); FILE *log = xfopen(LOGFILE, "w"); setbuf(log, NULL); int pipefd[2];