ksud: added module restore cmd, replaced pkg id for debug and uninstall manager and changed banner

manager: implement restore module UI
This commit is contained in:
Rifat Azad
2024-12-19 17:33:20 +06:00
parent 9911795aa3
commit adf3920caa
7 changed files with 116 additions and 39 deletions
+8 -1
View File
@@ -143,7 +143,7 @@ enum Debug {
/// Set the manager app, kernel CONFIG_KSU_DEBUG should be enabled.
SetManager {
/// manager package name
#[arg(default_value_t = String::from("me.weishu.kernelsu"))]
#[arg(default_value_t = String::from("com.rifsxd.ksunext"))]
apk: String,
},
@@ -204,6 +204,12 @@ enum Module {
id: String,
},
/// Restore module <id>
Restore {
/// module id
id: String,
},
/// enable module <id>
Enable {
/// module id
@@ -304,6 +310,7 @@ pub fn run() -> Result<()> {
match command {
Module::Install { zip } => module::install_module(&zip),
Module::Uninstall { id } => module::uninstall_module(&id),
Module::Restore { id } => module::restore_module(&id),
Module::Enable { id } => module::enable_module(&id),
Module::Disable { id } => module::disable_module(&id),
Module::Action { id } => module::run_action(&id),