fix: *AppSpecialize inconsistency for root manager process; improve: allow to inject into root manager

This commit fixes an issue where modules would have their "postAppSpecialize" called for root manager processes, but not "preAppSpecialize". The approach taken to fix that was to completely allow to inject into root manager, which instead of making it not call "postAppSpecialize" either, now it allows both.
This commit is contained in:
ThePedroo
2025-08-15 21:30:18 -03:00
parent 0c7a756030
commit 3688df6450

View File

@@ -822,7 +822,8 @@ void ZygiskContext::app_specialize_pre() {
if Zygisk is enabled.
*/
setenv("ZYGISK_ENABLED", "1", 1);
} else {
}
/* INFO: Because we load directly from the file, we need to do it before we umount
the mounts, or else it won't have access to /data/adb anymore.
*/
@@ -868,7 +869,6 @@ void ZygiskContext::app_specialize_pre() {
if (!in_denylist && flags[DO_REVERT_UNMOUNT])
update_mnt_ns(Clean, false);
}
}
void ZygiskContext::app_specialize_post() {