Commit fef44bd2 authored by topjohnwu's avatar topjohnwu

Allow boot scripts to know Zygisk status

parent e4a7617d
......@@ -5,6 +5,7 @@
#include <magisk.hpp>
#include <utils.hpp>
#include <selinux.hpp>
#include <daemon.hpp>
#include "core.hpp"
......@@ -24,6 +25,8 @@ static void set_script_env() {
char new_path[4096];
sprintf(new_path, "%s:%s", getenv("PATH"), MAGISKTMP.data());
setenv("PATH", new_path, 1);
if (zygisk_enabled)
setenv("ZYGISK_ENABLED", "1", 1);
};
void exec_script(const char *script) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment