Magisk/native/jni/core/magiskrc.h

45 lines
844 B
C
Raw Normal View History

2019-02-10 03:57:51 -05:00
#include <magisk.h>
#include <magiskpolicy.h>
2018-04-15 03:18:18 +08:00
static const char magiskrc[] =
"\n\n"
"on early-init\n"
" write " EARLYINIT " 1\n"
" wait " EARLYINITDONE "\n"
" rm " EARLYINITDONE "\n"
"\n"
"on post-fs-data\n"
2018-08-09 14:52:44 +08:00
" start logd\n"
" load_persist_props\n"
2018-11-08 04:20:16 -05:00
" rm " UNBLOCKFILE "\n"
" start %s\n"
2018-11-08 04:20:16 -05:00
" wait " UNBLOCKFILE " 10\n"
" rm " UNBLOCKFILE "\n"
2018-08-09 14:52:44 +08:00
"\n"
"service %s /sbin/magisk --post-fs-data\n"
2018-08-09 14:52:44 +08:00
" user root\n"
2018-11-08 04:20:16 -05:00
" seclabel u:r:" SEPOL_PROC_DOMAIN ":s0\n"
2018-08-09 14:52:44 +08:00
" oneshot\n"
"\n"
"service %s /sbin/magisk --service\n"
" class late_start\n"
2018-08-09 14:52:44 +08:00
" user root\n"
2018-11-08 04:20:16 -05:00
" seclabel u:r:" SEPOL_PROC_DOMAIN ":s0\n"
2018-08-09 14:52:44 +08:00
" oneshot\n"
"\n"
"on property:sys.boot_completed=1\n"
" start %s\n"
2018-08-09 14:52:44 +08:00
"\n"
"service %s /sbin/magisk --boot-complete\n"
2018-08-09 14:52:44 +08:00
" user root\n"
" seclabel u:r:" SEPOL_PROC_DOMAIN ":s0\n"
2018-08-09 14:52:44 +08:00
" oneshot\n"
"\n"
;