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 */ * We restart the daemon again */
close(fd); close(fd);
if (fork_dont_care() == 0) { if (fork_dont_care() == 0) {
execv("/sbin/magisk", (char *[]) { "resetprop", "magisk.daemon", "1", NULL } ); execv("/sbin/magisk", (char *[]) { "magisk", "--daemon", NULL } );
exit(1); exit(1);
} }
} }

View File

@ -16,10 +16,6 @@ const char magiskrc[] =
" rm /dev/.magisk.unblock\n" " rm /dev/.magisk.unblock\n"
"\n" "\n"
"on property:magisk.daemon=1\n"
" start magisk_daemon\n"
"\n"
// Services // Services
"service magisk_daemon /sbin/magisk --daemon\n" "service magisk_daemon /sbin/magisk --daemon\n"