Magisk/native/jni/init/magiskrc.h

38 lines
693 B
C
Raw Normal View History

2019-02-10 09:57:51 +01:00
#include <magisk.h>
2019-07-01 04:09:31 +02:00
#include <selinux.h>
2018-04-14 21:18:18 +02:00
2019-07-16 10:08:28 +02:00
constexpr char magiskrc[] =
"\n"
"on post-fs-data\n"
2018-08-09 08:52:44 +02:00
" start logd\n"
2018-11-08 10:20:16 +01:00
" rm " UNBLOCKFILE "\n"
" start %s\n"
2018-11-08 10:20:16 +01:00
" wait " UNBLOCKFILE " 10\n"
" rm " UNBLOCKFILE "\n"
2018-08-09 08:52:44 +02:00
"\n"
"service %s /sbin/magisk --post-fs-data\n"
2018-08-09 08:52:44 +02:00
" user root\n"
2018-11-08 10:20:16 +01:00
" seclabel u:r:" SEPOL_PROC_DOMAIN ":s0\n"
2018-08-09 08:52:44 +02:00
" oneshot\n"
"\n"
"service %s /sbin/magisk --service\n"
" class late_start\n"
2018-08-09 08:52:44 +02:00
" user root\n"
2018-11-08 10:20:16 +01:00
" seclabel u:r:" SEPOL_PROC_DOMAIN ":s0\n"
2018-08-09 08:52:44 +02:00
" oneshot\n"
"\n"
"on property:sys.boot_completed=1\n"
" start %s\n"
2018-08-09 08:52:44 +02:00
"\n"
"service %s /sbin/magisk --boot-complete\n"
2018-08-09 08:52:44 +02:00
" user root\n"
" seclabel u:r:" SEPOL_PROC_DOMAIN ":s0\n"
2018-08-09 08:52:44 +02:00
" oneshot\n"
"\n"
;