diff --git a/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt b/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt index 4aa15fe4e..7a1c4d151 100644 --- a/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt +++ b/app/src/main/java/com/topjohnwu/magisk/core/tasks/MagiskInstaller.kt @@ -58,7 +58,7 @@ abstract class MagiskInstallImpl protected constructor( private val localFS get() = FileSystemManager.getLocal() private fun findImage(): Boolean { - val bootPath = "find_boot_image; echo \"\$BOOTIMAGE\"".fsh() + val bootPath = "RECOVERYMODE=${Config.recovery} find_boot_image; echo \"\$BOOTIMAGE\"".fsh() if (bootPath.isEmpty()) { console.add("! Unable to detect target image") return false