Unverified Commit cd964548 authored by 残页's avatar 残页 Committed by GitHub

Fix finding recovery image on direct install

Fix #5972, fix #5673
parent 741b6793
...@@ -58,7 +58,7 @@ abstract class MagiskInstallImpl protected constructor( ...@@ -58,7 +58,7 @@ abstract class MagiskInstallImpl protected constructor(
private val localFS get() = FileSystemManager.getLocal() private val localFS get() = FileSystemManager.getLocal()
private fun findImage(): Boolean { 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()) { if (bootPath.isEmpty()) {
console.add("! Unable to detect target image") console.add("! Unable to detect target image")
return false return false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment