mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 07:57:39 +00:00
Reverse format template argument order
This commit is contained in:
parent
f00408c793
commit
825c6c4316
@ -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,
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user