mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
Don't kill webview zygote on denylist change
It won't restart and make webview unusable.
This commit is contained in:
@@ -182,8 +182,6 @@ static bool add_hide_set(const char *pkg, const char *proc) {
|
||||
if (str_eql(pkg, ISOLATED_MAGIC)) {
|
||||
// Kill all matching isolated processes
|
||||
kill_process<&proc_name_match<str_starts_with>>(proc, true);
|
||||
} else if (str_eql(pkg, WEBVIEW_ZYGOTE_MAGIC)) {
|
||||
kill_process<&proc_context_match>("u:r:webview_zygote:s0", true);
|
||||
} else {
|
||||
kill_process(proc);
|
||||
}
|
||||
@@ -396,9 +394,6 @@ int enable_deny() {
|
||||
kill_process("usap64", true);
|
||||
kill_process<&proc_context_match>("u:r:app_zygote:s0", true);
|
||||
}
|
||||
if (pkg_to_procs.find(WEBVIEW_ZYGOTE_MAGIC) != pkg_to_procs.end()) {
|
||||
kill_process<&proc_context_match>("u:r:webview_zygote:s0", true);
|
||||
}
|
||||
}
|
||||
|
||||
MagiskD::Get().set_db_setting(DbEntryKey::DenylistConfig, true);
|
||||
|
||||
Reference in New Issue
Block a user