fix 正常应用隐藏失败,增加LOG日志方便排查,已经正式机型测试成功
This commit is contained in:
@@ -11,26 +11,7 @@
|
||||
#include <string_view>
|
||||
#include "pmparser.h"
|
||||
#include "android/log.h"
|
||||
|
||||
#ifndef LOG_TAG
|
||||
#ifdef __LP64__
|
||||
#define LOG_TAG "Riru64"
|
||||
#else
|
||||
#define LOG_TAG "Riru"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef NDEBUG
|
||||
#define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__)
|
||||
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
|
||||
#else
|
||||
#define LOGV(...)
|
||||
#define LOGD(...)
|
||||
#endif
|
||||
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
|
||||
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__)
|
||||
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
|
||||
#define PLOGE(fmt, args...) LOGE(fmt " failed with %d: %s", ##args, errno, strerror(errno))
|
||||
#include "log.h"
|
||||
extern "C" {
|
||||
int riru_hide(const char *name) EXPORT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user