diff --git a/src/main/java/com/topjohnwu/magisk/asyncs/InstallMagisk.java b/src/main/java/com/topjohnwu/magisk/asyncs/InstallMagisk.java index 44f0c0c41..758882175 100644 --- a/src/main/java/com/topjohnwu/magisk/asyncs/InstallMagisk.java +++ b/src/main/java/com/topjohnwu/magisk/asyncs/InstallMagisk.java @@ -293,7 +293,7 @@ public class InstallMagisk extends ParallelTask { ); } else { File boot = new File(install, "boot.img"); - SuFile patched_boot = new SuFile(install.getParent(), "new-boot.img"); + SuFile patched_boot = new SuFile(install.getParent() + "/new-boot.img", true); if (!dumpBoot(boot) || !patchBoot(boot, patched_boot)) return false;