From c6569ce022f178b8ba091c7e7e3f86609d451e67 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Sat, 9 May 2020 17:43:18 +0800 Subject: [PATCH] Fix service scripts --- native/jni/core/bootstages.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/native/jni/core/bootstages.cpp b/native/jni/core/bootstages.cpp index 794dc2a59..baeac7e64 100644 --- a/native/jni/core/bootstages.cpp +++ b/native/jni/core/bootstages.cpp @@ -271,6 +271,7 @@ void post_fs_data(int client) { // We still want to do magic mount because root itself might need it magic_mount(); + pfs_done = true; unblock_boot_process(); } @@ -325,7 +326,8 @@ void boot_complete(int client) { // Check whether we have manager installed if (!check_manager()) { // Install stub - exec_command_sync("/sbin/magiskinit", "-x", "manager", "/data/magisk.apk"); + auto init = MAGISKTMP + "/magiskinit"; + exec_command_sync(init.data(), "-x", "manager", "/data/magisk.apk"); install_apk("/data/magisk.apk"); } }