2020-03-09 01:50:30 -07:00
|
|
|
#include <magisk.hpp>
|
|
|
|
#include <selinux.hpp>
|
2018-04-15 03:18:18 +08:00
|
|
|
|
2019-07-16 01:08:28 -07:00
|
|
|
constexpr char magiskrc[] =
|
|
|
|
"\n"
|
2017-11-06 05:41:03 +08:00
|
|
|
|
|
|
|
"on post-fs-data\n"
|
2018-08-09 14:52:44 +08:00
|
|
|
" start logd\n"
|
2018-11-08 04:20:16 -05:00
|
|
|
" rm " UNBLOCKFILE "\n"
|
2018-09-08 23:15:58 -04:00
|
|
|
" 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"
|
|
|
|
|
2019-02-09 01:51:46 -05:00
|
|
|
"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"
|
2017-11-06 05:41:03 +08:00
|
|
|
"\n"
|
|
|
|
|
2018-09-08 23:15:58 -04:00
|
|
|
"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"
|
2017-11-06 05:41:03 +08:00
|
|
|
"\n"
|
|
|
|
|
2018-09-08 23:15:58 -04:00
|
|
|
"on property:sys.boot_completed=1\n"
|
2019-04-05 07:00:30 -04:00
|
|
|
" start %s\n"
|
2018-08-09 14:52:44 +08:00
|
|
|
"\n"
|
|
|
|
|
2019-04-05 07:00:30 -04:00
|
|
|
"service %s /sbin/magisk --boot-complete\n"
|
2018-08-09 14:52:44 +08:00
|
|
|
" user root\n"
|
2019-04-05 07:00:30 -04:00
|
|
|
" seclabel u:r:" SEPOL_PROC_DOMAIN ":s0\n"
|
2018-08-09 14:52:44 +08:00
|
|
|
" oneshot\n"
|
2019-04-05 07:00:30 -04:00
|
|
|
"\n"
|
2018-09-08 23:15:58 -04:00
|
|
|
;
|