Reverse format template argument order

This commit is contained in:
canyie 2024-03-03 15:15:42 +08:00 committed by John Wu
parent f00408c793
commit 825c6c4316
2 changed files with 7 additions and 7 deletions

View File

@ -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,

View File

@ -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();