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