From 4668ef3020f762ac0172003ca381e147c66aad47 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 20 May 2018 14:33:04 +0800 Subject: [PATCH] Force shell usage in SuFile --- src/main/java/com/topjohnwu/magisk/asyncs/InstallMagisk.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;