mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-01-04 16:58:35 -08:00
Rewrite get_manager
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user