Fully implement daemon side of Zygisk in Rust

This commit is contained in:
topjohnwu
2025-01-31 02:52:27 +08:00
committed by John Wu
parent b575c95710
commit 15a605765c
12 changed files with 160 additions and 101 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ static void set_script_env() {
char new_path[4096];
ssprintf(new_path, sizeof(new_path), "%s:%s", getenv("PATH"), get_magisk_tmp());
setenv("PATH", new_path, 1);
if (zygisk_enabled)
if (MagiskD().zygisk_enabled())
setenv("ZYGISK_ENABLED", "1", 1);
};