1
mirror of https://github.com/topjohnwu/Magisk synced 2024-11-14 22:28:37 +01:00

Let magiskinit directly spawn new magisk_daemon process

This commit is contained in:
topjohnwu 2017-12-19 14:27:54 +08:00
parent b0567eadfd
commit d21264d01b
2 changed files with 1 additions and 5 deletions

View File

@ -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);
}
}

View File

@ -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"