diff --git a/native/src/core/zygisk/entry.cpp b/native/src/core/zygisk/entry.cpp index 2a5661dc1..838213540 100644 --- a/native/src/core/zygisk/entry.cpp +++ b/native/src/core/zygisk/entry.cpp @@ -22,7 +22,7 @@ static bool is_compatible_with(uint32_t) { return false; } -extern "C" [[maybe_unused]] NativeBridgeCallbacks NativeBridgeItf{ +extern "C" [[maybe_unused]] NativeBridgeCallbacks NativeBridgeItf { .version = 2, .padding = {}, .isCompatibleWith = &is_compatible_with, diff --git a/native/src/init/rootdir.rs b/native/src/init/rootdir.rs index 4fbe45dee..9cc6b02c4 100644 --- a/native/src/init/rootdir.rs +++ b/native/src/init/rootdir.rs @@ -15,21 +15,21 @@ pub fn inject_magisk_rc(fd: RawFd, tmp_dir: &Utf8CStr) { r#" on post-fs-data start logd - exec {1} 0 0 -- {0}/magisk --post-fs-data + exec {0} 0 0 -- {1}/magisk --post-fs-data on property:vold.decrypt=trigger_restart_framework - exec {1} 0 0 -- {0}/magisk --service + exec {0} 0 0 -- {1}/magisk --service on nonencrypted - exec {1} 0 0 -- {0}/magisk --service + exec {0} 0 0 -- {1}/magisk --service on property:sys.boot_completed=1 - exec {1} 0 0 -- {0}/magisk --boot-complete + exec {0} 0 0 -- {1}/magisk --boot-complete on property:init.svc.zygote=stopped - exec {1} 0 0 -- {0}/magisk --zygote-restart + exec {0} 0 0 -- {1}/magisk --zygote-restart "#, - tmp_dir, "u:r:magisk:s0" + "u:r:magisk:s0", tmp_dir ) .ok();