Magisk/native/jni/init/magiskrc.inc

43 lines
849 B
PHP
Raw Normal View History

2020-03-09 08:50:30 +00:00
#include <magisk.hpp>
#include <selinux.hpp>
2018-04-14 19:18:18 +00:00
#define quote(s) #s
#define str(s) quote(s)
2020-04-26 06:19:36 +00:00
constexpr char MAGISK_RC[] =
2019-07-16 08:08:28 +00:00
"\n"
"on post-fs-data\n"
2018-08-09 06:52:44 +00:00
" start logd\n"
2018-11-08 09:20:16 +00:00
" rm " UNBLOCKFILE "\n"
" start %2$s\n"
" wait " UNBLOCKFILE " " str(POST_FS_DATA_WAIT_TIME) "\n"
2018-11-08 09:20:16 +00:00
" rm " UNBLOCKFILE "\n"
2018-08-09 06:52:44 +00:00
"\n"
"service %2$s %1$s/magisk --post-fs-data\n"
2018-08-09 06:52:44 +00:00
" user root\n"
2018-11-08 09:20:16 +00:00
" seclabel u:r:" SEPOL_PROC_DOMAIN ":s0\n"
2018-08-09 06:52:44 +00:00
" oneshot\n"
"\n"
"service %3$s %1$s/magisk --service\n"
" class late_start\n"
2018-08-09 06:52:44 +00:00
" user root\n"
2018-11-08 09:20:16 +00:00
" seclabel u:r:" SEPOL_PROC_DOMAIN ":s0\n"
2018-08-09 06:52:44 +00:00
" oneshot\n"
"\n"
"on property:sys.boot_completed=1\n"
2022-05-28 23:53:04 +00:00
" exec %1$s/magisk --boot-complete\n"
"\n"
2022-05-29 05:39:44 +00:00
"on property:init.svc.zygote=restarting\n"
" exec %1$s/magisk --zygote-restart\n"
"\n"
"on property:init.svc.zygote=stopped\n"
" exec %1$s/magisk --zygote-restart\n"
"\n"
;