manager: Fix reboot button is missing when flash
This commit is contained in:
@@ -207,12 +207,13 @@ fun installBoot(
|
|||||||
val result =
|
val result =
|
||||||
shell.newJob().add("${getKsuDaemonPath()} $cmd").to(stdoutCallback, stderrCallback)
|
shell.newJob().add("${getKsuDaemonPath()} $cmd").to(stdoutCallback, stderrCallback)
|
||||||
.exec()
|
.exec()
|
||||||
Log.i("KernelSU", "install boot $lkmUri result: $result")
|
Log.i("KernelSU", "install boot $lkmUri result: ${result.isSuccess}")
|
||||||
|
|
||||||
lkmFile.delete()
|
lkmFile.delete()
|
||||||
bootFile?.delete()
|
bootFile?.delete()
|
||||||
|
|
||||||
onFinish(bootUri != null && result.isSuccess)
|
// if boot uri is empty, it is direct install, when success, we should show reboot button
|
||||||
|
onFinish(bootUri == null && result.isSuccess)
|
||||||
return result.isSuccess
|
return result.isSuccess
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user