Force shell usage in SuFile

This commit is contained in:
topjohnwu 2018-05-20 14:33:04 +08:00
parent 630f2b7d19
commit 4668ef3020

View File

@ -293,7 +293,7 @@ public class InstallMagisk extends ParallelTask<Void, Void, Boolean> {
);
} 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;