You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Restructure the native module
Consolidate all code into the src folder
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
#include <magisk.hpp>
|
||||
#include <selinux.hpp>
|
||||
|
||||
#define quote(s) #s
|
||||
#define str(s) quote(s)
|
||||
|
||||
constexpr char MAGISK_RC[] =
|
||||
"\n"
|
||||
|
||||
"on post-fs-data\n"
|
||||
" start logd\n"
|
||||
" rm " UNBLOCKFILE "\n"
|
||||
" start %2$s\n"
|
||||
" wait " UNBLOCKFILE " " str(POST_FS_DATA_WAIT_TIME) "\n"
|
||||
" rm " UNBLOCKFILE "\n"
|
||||
"\n"
|
||||
|
||||
"service %2$s %1$s/magisk --post-fs-data\n"
|
||||
" user root\n"
|
||||
" seclabel u:r:" SEPOL_PROC_DOMAIN ":s0\n"
|
||||
" oneshot\n"
|
||||
"\n"
|
||||
|
||||
"service %3$s %1$s/magisk --service\n"
|
||||
" class late_start\n"
|
||||
" user root\n"
|
||||
" seclabel u:r:" SEPOL_PROC_DOMAIN ":s0\n"
|
||||
" oneshot\n"
|
||||
"\n"
|
||||
|
||||
"on property:sys.boot_completed=1\n"
|
||||
" exec %1$s/magisk --boot-complete\n"
|
||||
"\n"
|
||||
|
||||
"on property:init.svc.zygote=restarting\n"
|
||||
" exec %1$s/magisk --zygote-restart\n"
|
||||
"\n"
|
||||
|
||||
"on property:init.svc.zygote=stopped\n"
|
||||
" exec %1$s/magisk --zygote-restart\n"
|
||||
"\n"
|
||||
;
|
||||
Reference in New Issue
Block a user