2021-10-31 00:46:59 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace safetynetfix {
|
|
|
|
|
|
|
|
static constexpr auto TAG = "SafetyNetFix/JNI";
|
|
|
|
|
2021-10-31 01:32:59 +00:00
|
|
|
static constexpr auto MODULE_DEX_PATH = "/data/adb/modules/safetynet-fix/classes.dex";
|
|
|
|
|
2021-10-31 00:46:59 +00:00
|
|
|
#ifdef NDEBUG
|
|
|
|
#define LOGD(...)
|
|
|
|
#else
|
|
|
|
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, TAG, __VA_ARGS__)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, TAG, __VA_ARGS__)
|
|
|
|
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, TAG, __VA_ARGS__)
|
|
|
|
#define LOGERRNO(...) __android_log_print(ANDROID_LOG_ERROR, TAG, __VA_ARGS__ ": %d (%s)", errno, strerror(errno))
|
|
|
|
|
|
|
|
}
|