You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
This commit ports the C++ to C99 from zygisk-ptracer code, allowing a ~3x size reduce in its binary.
27 lines
470 B
C
27 lines
470 B
C
#ifndef MONITOR_H
|
|
#define MONITOR_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
void init_monitor();
|
|
|
|
bool trace_zygote(int pid);
|
|
|
|
enum rezygiskd_command {
|
|
START = 1,
|
|
STOP = 2,
|
|
EXIT = 3,
|
|
|
|
/* sent from daemon */
|
|
ZYGOTE64_INJECTED = 4,
|
|
ZYGOTE32_INJECTED = 5,
|
|
DAEMON64_SET_INFO = 6,
|
|
DAEMON32_SET_INFO = 7,
|
|
DAEMON64_SET_ERROR_INFO = 8,
|
|
DAEMON32_SET_ERROR_INFO = 9,
|
|
SYSTEM_SERVER_STARTED = 10
|
|
};
|
|
|
|
int send_control_command(enum rezygiskd_command cmd);
|
|
|
|
#endif /* MONITOR_H */ |