You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
improve: flexibility of modules to modify mounts in app_specialize_pre
This commit improves the flexibility of modules to modify mounts in "preAppSpecialize" in denylisted apps, which would later be setns to a new namespace, after executing Zygisk modules "preAppSpecialize".
This commit is contained in:
@@ -698,8 +698,6 @@ void ZygiskContext::app_specialize_pre() {
|
|||||||
identify Zygisk, being it not built-in, as working, we also set it. */
|
identify Zygisk, being it not built-in, as working, we also set it. */
|
||||||
setenv("ZYGISK_ENABLED", "1", 1);
|
setenv("ZYGISK_ENABLED", "1", 1);
|
||||||
} else {
|
} else {
|
||||||
run_modules_pre();
|
|
||||||
|
|
||||||
/* INFO: Modules only have two "start off" points from Zygisk, preSpecialize and
|
/* INFO: Modules only have two "start off" points from Zygisk, preSpecialize and
|
||||||
postSpecialize. While preSpecialie in fact runs with Zygote (not superuser)
|
postSpecialize. While preSpecialie in fact runs with Zygote (not superuser)
|
||||||
privileges, in postSpecialize it will now be with lower permission, in
|
privileges, in postSpecialize it will now be with lower permission, in
|
||||||
@@ -711,6 +709,11 @@ void ZygiskContext::app_specialize_pre() {
|
|||||||
|
|
||||||
update_mnt_ns(Clean, false);
|
update_mnt_ns(Clean, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* INFO: Executed after setns to ensure a module can update the mounts of an
|
||||||
|
application without worrying about it being overwritten by setns.
|
||||||
|
*/
|
||||||
|
run_modules_pre();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user