diff --git a/loader/src/injector/hook.cpp b/loader/src/injector/hook.cpp index 024c4d2..f419c9c 100644 --- a/loader/src/injector/hook.cpp +++ b/loader/src/injector/hook.cpp @@ -753,10 +753,11 @@ void ZygiskContext::nativeForkSystemServer_pre() { flags[SERVER_FORK_AND_SPECIALIZE] = true; fork_pre(); - if (is_child()) { - run_modules_pre(); - rezygiskd_system_server_started(); - } + if (!is_child()) + return; + + run_modules_pre(); + rezygiskd_system_server_started(); sanitize_fds(); }