You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
28 lines
567 B
C++
28 lines
567 B
C++
#include "daemon.h"
|
|
#include "logging.h"
|
|
#include "zygisk.hpp"
|
|
#include "module.hpp"
|
|
|
|
using namespace std;
|
|
|
|
void *self_handle = nullptr;
|
|
|
|
extern "C" [[gnu::visibility("default")]]
|
|
void entry(void* handle, const char* path) {
|
|
LOGI("Zygisk library injected, version %s", ZKSU_VERSION);
|
|
self_handle = handle;
|
|
zygiskd::Init(path);
|
|
|
|
if (!zygiskd::PingHeartbeat()) {
|
|
LOGE("Zygisk daemon is not running");
|
|
return;
|
|
}
|
|
|
|
#ifdef NDEBUG
|
|
logging::setfd(zygiskd::RequestLogcatFd());
|
|
#endif
|
|
|
|
LOGI("Start hooking");
|
|
hook_functions();
|
|
}
|