ksud: add su

This commit is contained in:
tiann
2023-01-26 12:28:55 +08:00
parent 080aeee5e3
commit ed86635b3c
2 changed files with 27 additions and 15 deletions

View File

@@ -58,6 +58,9 @@ enum Debug {
apk: String,
},
/// Root Shell
Su,
/// Get kernel version
Version,
@@ -129,6 +132,7 @@ pub fn run() -> Result<()> {
println!("Kernel Version: {}", crate::ksu::get_version());
Ok(())
}
Debug::Su => crate::ksu::grant_root(),
Debug::Test => todo!(),
},
};