mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-03 03:51:52 +00:00
Make zygote notifier more reliable
This commit is contained in:
@@ -583,7 +583,7 @@ static void dump_logs() {
|
||||
sprintf(buf, "/system/bin/%s", app);
|
||||
if (lstat(buf, &st) == 0 && S_ISREG(st.st_mode)) {
|
||||
clone_attr(buf, MAGISKTMP "/app_process");
|
||||
bind_mount(MAGISKTMP "/app_process", buf);
|
||||
bind_mount(MAGISKTMP "/app_process", buf, false);
|
||||
}
|
||||
}
|
||||
unblock_boot_process();
|
||||
|
||||
@@ -129,6 +129,7 @@ int app_process_main(int argc, char *argv[]) {
|
||||
int fd = connect_daemon();
|
||||
write_int(fd, ZYGOTE_NOTIFY);
|
||||
write_string(fd, path);
|
||||
read_int(fd);
|
||||
close(fd);
|
||||
} else {
|
||||
// Redirect to system mirror
|
||||
|
||||
Reference in New Issue
Block a user