2020-03-09 09:50:30 +01:00
|
|
|
#include <magisk.hpp>
|
|
|
|
#include <selinux.hpp>
|
2018-04-14 21:18:18 +02:00
|
|
|
|
2019-07-16 10:08:28 +02:00
|
|
|
constexpr char magiskrc[] =
|
|
|
|
"\n"
|
2017-11-05 22:41:03 +01:00
|
|
|
|
|
|
|
"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"
|
2020-04-19 08:19:19 +02:00
|
|
|
" start %2$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"
|
|
|
|
|
2020-04-19 08:19:19 +02:00
|
|
|
"service %2$s %1$s/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"
|
2017-11-05 22:41:03 +01:00
|
|
|
"\n"
|
|
|
|
|
2020-04-19 08:19:19 +02:00
|
|
|
"service %3$s %1$s/magisk --service\n"
|
2018-09-09 05:15:58 +02:00
|
|
|
" 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"
|
2017-11-05 22:41:03 +01:00
|
|
|
"\n"
|
|
|
|
|
2018-09-09 05:15:58 +02:00
|
|
|
"on property:sys.boot_completed=1\n"
|
2020-04-19 08:19:19 +02:00
|
|
|
" start %4$s\n"
|
2018-08-09 08:52:44 +02:00
|
|
|
"\n"
|
|
|
|
|
2020-04-19 08:19:19 +02:00
|
|
|
"service %4$s %1$s/magisk --boot-complete\n"
|
2018-08-09 08:52:44 +02:00
|
|
|
" user root\n"
|
2019-04-05 13:00:30 +02:00
|
|
|
" seclabel u:r:" SEPOL_PROC_DOMAIN ":s0\n"
|
2018-08-09 08:52:44 +02:00
|
|
|
" oneshot\n"
|
2019-04-05 13:00:30 +02:00
|
|
|
"\n"
|
2018-09-09 05:15:58 +02:00
|
|
|
;
|