You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
This commit removes the maps hiding, as it not only breaks behavior compatibility with Magisk Zygisk (original), but also can break some modules because of that. It doesn't provide any improved hiding in slightly better detections and makes the codebase more complex.
30 lines
612 B
C++
30 lines
612 B
C++
#include "daemon.h"
|
|
#include "logging.h"
|
|
#include "zygisk.hpp"
|
|
|
|
using namespace std;
|
|
|
|
void *start_addr = nullptr;
|
|
size_t block_size = 0;
|
|
|
|
extern "C" [[gnu::visibility("default")]]
|
|
void entry(void* addr, size_t size, const char* path) {
|
|
LOGD("Zygisk library injected, version %s", ZKSU_VERSION);
|
|
|
|
start_addr = addr;
|
|
block_size = size;
|
|
|
|
if (!rezygiskd_ping()) {
|
|
LOGE("Zygisk daemon is not running");
|
|
|
|
return;
|
|
}
|
|
|
|
LOGD("start plt hooking");
|
|
hook_functions();
|
|
|
|
void *module_addrs[1] = { addr };
|
|
clean_trace(path, module_addrs, 1, 1, 0);
|
|
send_seccomp_event();
|
|
}
|