Rewrite get_manager

This commit is contained in:
vvb2060
2024-02-01 04:33:35 +08:00
committed by John Wu
parent 6aab856de7
commit 2963d4ca9e
6 changed files with 171 additions and 208 deletions

View File

@@ -62,11 +62,8 @@ void zygisk_handler(int client, const sock_cred *cred);
// Package
void preserve_stub_apk();
void check_pkg_refresh();
std::vector<bool> get_app_no_list();
// Call check_pkg_refresh() before calling get_manager(...)
// to make sure the package state is invalidated!
int get_manager(int user_id = 0, std::string *pkg = nullptr, bool install = false);
int get_manager(int user, std::string *pkg = nullptr, bool install = false);
void prune_su_access();
// Module stuffs