mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-04-16 08:41:25 +00:00
parent
e68dd866a3
commit
f642fb3b99
@ -267,6 +267,10 @@ void HookContext::nativeSpecializeAppProcess_post() {
|
|||||||
run_modules_post();
|
run_modules_post();
|
||||||
if (info.is_magisk_app) {
|
if (info.is_magisk_app) {
|
||||||
setenv("ZYGISK_ENABLED", "1", 1);
|
setenv("ZYGISK_ENABLED", "1", 1);
|
||||||
|
} else if (args->is_child_zygote && *args->is_child_zygote) {
|
||||||
|
// If we are in child zygote, unhook all zygisk hooks
|
||||||
|
// Modules still have their code loaded and can do whatever they want
|
||||||
|
unhook_functions();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
g_ctx = nullptr;
|
g_ctx = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user