mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-23 18:15:30 +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} " +
|
||||
"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
|
||||
|
Loading…
Reference in New Issue
Block a user