Make zygote notifier more reliable

This commit is contained in:
topjohnwu
2019-03-06 18:22:04 -05:00
parent 6226f875ff
commit 82c864d57e
6 changed files with 31 additions and 25 deletions

View File

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

View File

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