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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" [[maybe_unused]] NativeBridgeCallbacks NativeBridgeItf{
|
extern "C" [[maybe_unused]] NativeBridgeCallbacks NativeBridgeItf {
|
||||||
.version = 2,
|
.version = 2,
|
||||||
.padding = {},
|
.padding = {},
|
||||||
.isCompatibleWith = &is_compatible_with,
|
.isCompatibleWith = &is_compatible_with,
|
||||||
|
@ -15,21 +15,21 @@ pub fn inject_magisk_rc(fd: RawFd, tmp_dir: &Utf8CStr) {
|
|||||||
r#"
|
r#"
|
||||||
on post-fs-data
|
on post-fs-data
|
||||||
start logd
|
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
|
on property:vold.decrypt=trigger_restart_framework
|
||||||
exec {1} 0 0 -- {0}/magisk --service
|
exec {0} 0 0 -- {1}/magisk --service
|
||||||
|
|
||||||
on nonencrypted
|
on nonencrypted
|
||||||
exec {1} 0 0 -- {0}/magisk --service
|
exec {0} 0 0 -- {1}/magisk --service
|
||||||
|
|
||||||
on property:sys.boot_completed=1
|
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
|
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();
|
.ok();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user