You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
This commit adds numerous improvements to the state of hidden'ility of ReZygisk, and also for compatibility. Recommended to check #111 for more information.
57 lines
1.1 KiB
C
57 lines
1.1 KiB
C
#ifndef CONSTANTS_H
|
|
#define CONSTANTS_H
|
|
|
|
#include <android/log.h>
|
|
|
|
#define bool _Bool
|
|
#define true 1
|
|
#define false 0
|
|
|
|
#if (defined(__LP64__) || defined(_LP64))
|
|
#define lp_select(a, b) b
|
|
#else
|
|
#define lp_select(a, b) a
|
|
#endif
|
|
|
|
#define ZYGOTE_INJECTED lp_select(5, 4)
|
|
#define DAEMON_SET_INFO lp_select(7, 6)
|
|
#define DAEMON_SET_ERROR_INFO lp_select(9, 8)
|
|
#define SYSTEM_SERVER_STARTED 10
|
|
|
|
enum DaemonSocketAction {
|
|
PingHeartbeat = 0,
|
|
GetProcessFlags = 1,
|
|
GetInfo = 2,
|
|
ReadModules = 3,
|
|
RequestCompanionSocket = 4,
|
|
GetModuleDir = 5,
|
|
ZygoteRestart = 6,
|
|
SystemServerStarted = 7,
|
|
GetCleanNamespace = 8
|
|
};
|
|
|
|
enum ProcessFlags: uint32_t {
|
|
PROCESS_GRANTED_ROOT = (1u << 0),
|
|
PROCESS_ON_DENYLIST = (1u << 1),
|
|
PROCESS_IS_MANAGER = (1u << 27),
|
|
PROCESS_ROOT_IS_APATCH = (1u << 28),
|
|
PROCESS_ROOT_IS_KSU = (1u << 29),
|
|
PROCESS_ROOT_IS_MAGISK = (1u << 30),
|
|
PROCESS_IS_FIRST_STARTED = (1u << 31)
|
|
};
|
|
|
|
enum RootImplState {
|
|
Supported,
|
|
TooOld,
|
|
Inexistent,
|
|
Abnormal
|
|
};
|
|
|
|
enum MountNamespaceState {
|
|
Clean,
|
|
Rooted,
|
|
Module
|
|
};
|
|
|
|
#endif /* CONSTANTS_H */
|