manager: Rework
This commit is contained in:
@@ -865,7 +865,7 @@ private fun ModuleList(
|
|||||||
ModuleOperationUtils.handleModuleUninstall(module.dirId)
|
ModuleOperationUtils.handleModuleUninstall(module.dirId)
|
||||||
uninstallModule(module.dirId)
|
uninstallModule(module.dirId)
|
||||||
} else {
|
} else {
|
||||||
restoreModule(module.dirId)
|
undoUninstallModule(module.dirId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -151,6 +151,13 @@ fun restoreModule(id: String): Boolean {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun undoUninstallModule(id: String): Boolean {
|
||||||
|
val cmd = "module undo-uninstall $id"
|
||||||
|
val result = execKsud(cmd, true)
|
||||||
|
Log.i(TAG, "undo uninstall module $id result: $result")
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
private fun flashWithIO(
|
private fun flashWithIO(
|
||||||
cmd: String,
|
cmd: String,
|
||||||
onStdout: (String) -> Unit,
|
onStdout: (String) -> Unit,
|
||||||
|
|||||||
Reference in New Issue
Block a user