Moved headers to includes, various changes...

+ Added better UID checks.
+ Added MS_SLAVE root mount in the new mount namespace.
This commit is contained in:
snake-4
2024-03-26 15:37:07 +01:00
parent ba80d6d181
commit 916558491a
6 changed files with 260 additions and 17 deletions

View File

@@ -0,0 +1,15 @@
#pragma once
#include <android/log.h>
#include <string.h>
#include <errno.h>
#ifndef NDEBUG
static constexpr auto TAG = "ZygiskAssistant/JNI";
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, TAG, __VA_ARGS__)
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, TAG, __VA_ARGS__)
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, TAG, __VA_ARGS__)
#else
#define LOGD(...)
#define LOGI(...)
#define LOGE(...)
#endif