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

@@ -128,12 +128,10 @@ static void get_process_info(int client, const sock_cred *cred) {
uint32_t flags = 0;
check_pkg_refresh();
if (is_deny_target(uid, process)) {
flags |= PROCESS_ON_DENYLIST;
}
int manager_app_id = get_manager();
if (to_app_id(uid) == manager_app_id) {
if (get_manager(to_user_id(uid)) == uid) {
flags |= PROCESS_IS_MAGISK_APP;
}
if (denylist_enforced) {