Fix MagiskInstaller.patchBoot() error catching

This commit is contained in:
残页 2023-07-20 11:27:28 +08:00 committed by John Wu
parent 4d2b62da0d
commit 6141bb5bb3

View File

@ -493,11 +493,12 @@ abstract class MagiskInstallImpl protected constructor(
"PATCHVBMETAFLAG=${Config.patchVbmeta} " +
"RECOVERYMODE=${Config.recovery} " +
"SYSTEM_ROOT=${Info.isSAR} " +
"sh boot_patch.sh $srcBoot",
"./magiskboot cleanup",
"cd /")
"sh boot_patch.sh $srcBoot")
val isSuccess = cmds.sh().isSuccess
return cmds.sh().isSuccess
shell.newJob().add("./magiskboot cleanup", "cd /").exec()
return isSuccess
}
private fun flashBoot() = "direct_install $installDir $srcBoot".sh().isSuccess