Use app_dir to detect systemui instead

uid may be shared by other apps (e.g., in MIUI, systemui's uid
is 1000 and shared by many system apps).
This commit is contained in:
LoveSy
2023-03-17 10:01:22 +08:00
committed by John Wu
parent e893c13cf1
commit 07c22ccd39
4 changed files with 7 additions and 7 deletions
-2
View File
@@ -306,8 +306,6 @@ static void get_process_info(int client, const sock_cred *cred) {
int manager_app_id = get_manager();
if (to_app_id(uid) == manager_app_id) {
flags |= PROCESS_IS_MAGISK_APP;
} else if (to_app_id(uid) == sys_ui_app_id) {
flags |= PROCESS_IS_SYS_UI;
}
if (denylist_enforced) {
flags |= DENYLIST_ENFORCING;