mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 19:47:38 +00:00
Let magiskinit directly spawn new magisk_daemon process
This commit is contained in:
parent
b0567eadfd
commit
d21264d01b
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user