Added maps parser and fixed child zygote namespaces

This commit is contained in:
snake-4
2024-04-09 22:35:40 +02:00
parent 08547864cd
commit 6f4d78b0fc
8 changed files with 180 additions and 46 deletions

View File

@@ -0,0 +1,10 @@
#pragma once
#include <string>
#include "zygisk.hpp"
#define DCL_HOOK_FUNC(ret, func, ...) \
ret (*old_##func)(__VA_ARGS__); \
ret new_##func(__VA_ARGS__)
int is_userapp_uid(int uid);
bool hook_plt_by_name(zygisk::Api *api, const std::string &libName, const std::string &symbolName, void *hookFunc, void **origFunc);