mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-14 11:37:36 +00:00
@@ -267,6 +267,10 @@ void HookContext::nativeSpecializeAppProcess_post() {
|
||||
run_modules_post();
|
||||
if (info.is_magisk_app) {
|
||||
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;
|
||||
|
Reference in New Issue
Block a user