Commit d21264d0 authored by topjohnwu's avatar topjohnwu

Let magiskinit directly spawn new magisk_daemon process

parent b0567ead
......@@ -393,7 +393,7 @@ static void magisk_init_daemon() {
* We restart the daemon again */
close(fd);
if (fork_dont_care() == 0) {
execv("/sbin/magisk", (char *[]) { "resetprop", "magisk.daemon", "1", NULL } );
execv("/sbin/magisk", (char *[]) { "magisk", "--daemon", NULL } );
exit(1);
}
}
......
......@@ -16,10 +16,6 @@ const char magiskrc[] =
" rm /dev/.magisk.unblock\n"
"\n"
"on property:magisk.daemon=1\n"
" start magisk_daemon\n"
"\n"
// Services
"service magisk_daemon /sbin/magisk --daemon\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment