mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-23 18:15:30 +00:00
Fully match zygote/usap process names
This commit is contained in:
parent
45d8d139a9
commit
baaaf7d5de
@ -214,8 +214,8 @@ static bool check_pid(int pid) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Still zygote/usap
|
||||
if (strncmp(cmdline, "zygote", 6) == 0 || strncmp(cmdline, "usap", 4) == 0)
|
||||
if (cmdline == "zygote"sv || cmdline == "zygote32"sv || cmdline == "zygote64"sv ||
|
||||
cmdline == "usap32"sv || cmdline == "usap64"sv)
|
||||
return false;
|
||||
|
||||
int uid = st.st_uid % 100000;
|
||||
|
Loading…
Reference in New Issue
Block a user