Commit 76c88913 authored by vvb2060's avatar vvb2060 Committed by John Wu

Ensure Magisk environment normal

parent a3a1aed7
......@@ -694,6 +694,14 @@ void late_start(int client) {
exec_command_sync("/system/bin/reboot");
}
if (access(BBPATH, F_OK) != 0){
LOGE("* post-fs-data mode is not triggered\n");
unlock_blocks();
magisk_env();
prepare_modules();
close(xopen(DISABLEFILE, O_RDONLY | O_CREAT | O_CLOEXEC, 0));
}
auto_start_magiskhide();
// Run scripts after full patch, most reliable way to run scripts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment