@@ -181,8 +181,6 @@ DCL_HOOK_FUNC(int, unshare, int flags) {
181181 update_mnt_ns (Rooted, false );
182182 } else if (!(g_ctx->flags [DO_REVERT_UNMOUNT])) {
183183 update_mnt_ns (Module, false );
184- } else {
185- LOGI (" Process [%s] is on denylist, skipping unmount" , g_ctx->process );
186184 }
187185
188186 old_unshare (CLONE_NEWNS);
@@ -636,6 +634,7 @@ void ZygiskContext::run_modules_pre() {
636634
637635 for (auto &m : modules) {
638636 m.onLoad (env);
637+
639638 if (flags[APP_SPECIALIZE]) m.preAppSpecialize (args.app );
640639 else if (flags[SERVER_FORK_AND_SPECIALIZE]) m.preServerSpecialize (args.server );
641640 }
@@ -674,6 +673,12 @@ void ZygiskContext::app_specialize_pre() {
674673 if ((info_flags & (PROCESS_IS_MANAGER | PROCESS_ROOT_IS_MAGISK)) == (PROCESS_IS_MANAGER | PROCESS_ROOT_IS_MAGISK)) {
675674 LOGD (" Manager process detected. Notifying that Zygisk has been enabled." );
676675
676+ /* INFO: This environment variable is related to Magisk Zygisk/Manager. It
677+ it used by Magisk's Zygisk to communicate to Magisk Manager whether
678+ Zygisk is working or not.
679+
680+ To allow Zygisk modules to both work properly and for the manager to
681+ identify Zygisk, being it not built-in, as working, we also set it. */
677682 setenv (" ZYGISK_ENABLED" , " 1" , 1 );
678683 } else {
679684 run_modules_pre ();
@@ -818,7 +823,7 @@ void clean_trace(const char* path, size_t load, size_t unload, bool spoof_maps)
818823
819824 if (load > 0 || unload > 0 ) solist_reset_counters (load, unload);
820825
821- LOGI (" Dropping solist record for %s" , path);
826+ LOGD (" Dropping solist record for %s" , path);
822827
823828 bool path_found = solist_drop_so_path (path);
824829 if (!path_found || !spoof_maps) return ;
0 commit comments