mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-23 18:15:30 +00:00
Fix app_zygote context
This commit is contained in:
parent
468325b51a
commit
8b095de04d
@ -124,7 +124,7 @@ static bool proc_context_match(int pid, string_view context) {
|
||||
sprintf(buf, "/proc/%d/attr/current", pid);
|
||||
if (auto fp = open_file(buf, "re")) {
|
||||
fgets(buf, sizeof(buf), fp.get());
|
||||
if (str_eql(buf, context)) {
|
||||
if (str_starts(buf, context)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -359,7 +359,7 @@ int enable_deny() {
|
||||
if (SDK_INT >= 29 && zygisk_enabled) {
|
||||
kill_process("usap32", true);
|
||||
kill_process("usap64", true);
|
||||
kill_process<&proc_context_match>("app_zygote", true);
|
||||
kill_process<&proc_context_match>("u:r:app_zygote:s0", true);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user