fix: Magisk app marking Zygisk as disabled

This commit fixes the regression added (by me) that doesn't set "ZYGISK_ENABLED" environment variable, making it mark Zygisk as disabled.
This commit is contained in:
ThePedroo
2024-08-15 00:38:25 -03:00
parent 75a004f9d5
commit 763e94b9b6

View File

@@ -674,7 +674,9 @@ void ZygiskContext::app_specialize_pre() {
}
if ((info_flags & (PROCESS_IS_MANAGER | PROCESS_ROOT_IS_MAGISK)) == (PROCESS_IS_MANAGER | PROCESS_ROOT_IS_MAGISK)) {
LOGI("Manager process detected, not touching.\n");
LOGI("Manager process detected. Notifying that Zygisk has been enabled.\n");
setenv("ZYGISK_ENABLED", "1", 1);
} else {
run_modules_pre();
}