Add Zygisk API getFlags()

This commit is contained in:
topjohnwu
2022-01-17 19:54:33 -08:00
parent 76ddfeb93a
commit bb7a74e4b4
11 changed files with 173 additions and 82 deletions

View File

@@ -37,14 +37,9 @@ uintptr_t get_function_off(int pid, uintptr_t addr, char *lib);
// Get function address, given library name + offset
uintptr_t get_function_addr(int pid, const char *lib, uintptr_t off);
struct AppInfo {
bool is_magisk_app;
bool on_denylist;
};
extern void *self_handle;
void unload_first_stage();
void hook_functions();
std::vector<int> remote_get_info(int uid, const char *process, AppInfo *info);
std::vector<int> remote_get_info(int uid, const char *process, uint32_t *flags);
int remote_request_unmount();