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} " + "PATCHVBMETAFLAG=${Config.patchVbmeta} " +
"RECOVERYMODE=${Config.recovery} " + "RECOVERYMODE=${Config.recovery} " +
"SYSTEM_ROOT=${Info.isSAR} " + "SYSTEM_ROOT=${Info.isSAR} " +
"sh boot_patch.sh $srcBoot", "sh boot_patch.sh $srcBoot")
"./magiskboot cleanup", val isSuccess = cmds.sh().isSuccess
"cd /")
return cmds.sh().isSuccess shell.newJob().add("./magiskboot cleanup", "cd /").exec()
return isSuccess
} }
private fun flashBoot() = "direct_install $installDir $srcBoot".sh().isSuccess private fun flashBoot() = "direct_install $installDir $srcBoot".sh().isSuccess