Skip to content

Commit

Permalink
Reverse format template argument order
Browse files Browse the repository at this point in the history
  • Loading branch information
canyie authored and topjohnwu committed Mar 6, 2024
1 parent f00408c commit 825c6c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion native/src/core/zygisk/entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
12 changes: 6 additions & 6 deletions native/src/init/rootdir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 825c6c4

Please sign in to comment.