You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
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:
@@ -822,7 +822,8 @@ void ZygiskContext::app_specialize_pre() {
|
|||||||
if Zygisk is enabled.
|
if Zygisk is enabled.
|
||||||
*/
|
*/
|
||||||
setenv("ZYGISK_ENABLED", "1", 1);
|
setenv("ZYGISK_ENABLED", "1", 1);
|
||||||
} else {
|
}
|
||||||
|
|
||||||
/* INFO: Because we load directly from the file, we need to do it before we umount
|
/* 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.
|
the mounts, or else it won't have access to /data/adb anymore.
|
||||||
*/
|
*/
|
||||||
@@ -867,7 +868,6 @@ void ZygiskContext::app_specialize_pre() {
|
|||||||
*/
|
*/
|
||||||
if (!in_denylist && flags[DO_REVERT_UNMOUNT])
|
if (!in_denylist && flags[DO_REVERT_UNMOUNT])
|
||||||
update_mnt_ns(Clean, false);
|
update_mnt_ns(Clean, false);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user