mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 02:25:28 +00:00
Fix MagiskInstaller.patchBoot() error catching
This commit is contained in:
parent
4d2b62da0d
commit
6141bb5bb3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user