From faf077b4946222c94e65da08ccf15aa4d7a3093b Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sat, 29 Feb 2020 15:41:15 -0800 Subject: [PATCH] Min ver is 19.0, don't need legacy commands --- .../topjohnwu/magisk/core/tasks/MagiskInstallImpl.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstallImpl.kt b/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstallImpl.kt index 7a4b1a02f..956c9ff0c 100644 --- a/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstallImpl.kt +++ b/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstallImpl.kt @@ -164,7 +164,7 @@ abstract class MagiskInstallImpl : FlashResultListener { FileOutputStream(extract).use { tarIn.copyTo(it) } if (name.contains(".lz4")) { console.add("-- Decompressing: $name") - "./magiskboot --decompress $extract".sh() + "./magiskboot decompress $extract".sh() } } else if (entry.name.contains("vbmeta.img")) { vbmeta = true @@ -189,9 +189,9 @@ abstract class MagiskInstallImpl : FlashResultListener { srcBoot = recovery.path // Repack boot image to prevent restore arrayOf( - "./magiskboot --unpack boot.img", - "./magiskboot --repack boot.img", - "./magiskboot --cleanup", + "./magiskboot unpack boot.img", + "./magiskboot repack boot.img", + "./magiskboot cleanup", "mv new-boot.img boot.img").sh() SuFileInputStream(boot).use { tarOut.putNextEntry(newEntry("boot.img", boot.length())) @@ -259,7 +259,7 @@ abstract class MagiskInstallImpl : FlashResultListener { } val job = Shell.sh( - "./magiskboot --cleanup", + "./magiskboot cleanup", "mv bin/busybox busybox", "rm -rf magisk.apk bin boot.img update-binary", "cd /")