Migrate package detection to Rust

This commit is contained in:
topjohnwu
2025-01-09 00:14:08 +08:00
committed by John Wu
parent ee6810f417
commit 5637a258fc
12 changed files with 528 additions and 442 deletions

View File

@@ -132,7 +132,7 @@ static void get_process_info(int client, const sock_cred *cred) {
if (is_deny_target(uid, process)) {
flags |= PROCESS_ON_DENYLIST;
}
if (get_manager(to_user_id(uid)) == uid) {
if (MagiskD().get_manager(to_user_id(uid), nullptr, false) == uid) {
flags |= PROCESS_IS_MAGISK_APP;
}
if (denylist_enforced) {