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
+4
View File
@@ -392,6 +392,10 @@ pub fn uninstall_module(id: &str) -> Result<()> {
mark_module_state(id, defs::REMOVE_FILE_NAME, true)
}
pub fn restore_module(id: &str) -> Result<()> {
mark_module_state(id, defs::REMOVE_FILE_NAME, false)
}
pub fn run_action(id: &str) -> Result<()> {
let action_script_path = format!("/data/adb/modules/{}/action.sh", id);
exec_script(&action_script_path, true)