2018-06-10 18:26:18 +00:00
|
|
|
#include "magisk.h"
|
2018-04-14 19:18:18 +00:00
|
|
|
#include "magiskpolicy.h"
|
|
|
|
|
2018-09-09 03:15:58 +00:00
|
|
|
static const char magiskrc[] =
|
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"
|
|
|
|
" rm "UNBLOCKFILE"\n"
|
2018-09-09 03:15:58 +00:00
|
|
|
" start %s\n"
|
2018-08-09 06:52:44 +00:00
|
|
|
" wait "UNBLOCKFILE" 10\n"
|
|
|
|
" rm "UNBLOCKFILE"\n"
|
|
|
|
"\n"
|
|
|
|
|
2018-09-09 03:15:58 +00:00
|
|
|
"service %s /sbin/magisk --startup\n"
|
2018-08-09 06:52:44 +00:00
|
|
|
" user root\n"
|
|
|
|
" seclabel u:r:"SEPOL_PROC_DOMAIN":s0\n"
|
|
|
|
" 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"
|
|
|
|
" seclabel u:r:"SEPOL_PROC_DOMAIN":s0\n"
|
|
|
|
" oneshot\n"
|
2017-11-05 21:41:03 +00:00
|
|
|
"\n"
|
|
|
|
|
2018-09-09 03:15:58 +00:00
|
|
|
#if 0
|
|
|
|
"on property:sys.boot_completed=1\n"
|
|
|
|
" start magisk_bc\n"
|
2018-08-09 06:52:44 +00:00
|
|
|
"\n"
|
|
|
|
|
|
|
|
"service magisk_bc /sbin/magisk --boot-complete\n"
|
|
|
|
" user root\n"
|
|
|
|
" seclabel u:r:"SEPOL_PROC_DOMAIN":s0\n"
|
|
|
|
" oneshot\n"
|
2017-11-05 21:41:03 +00:00
|
|
|
;
|
2018-09-09 03:15:58 +00:00
|
|
|
#endif
|
|
|
|
;
|