Fix temp dir on Android 10 or below (#1250)

Co-authored-by: Ylarod <me@ylarod.cn>
This commit is contained in:
Nullptr
2024-01-05 14:41:33 +08:00
committed by GitHub
parent 01711b4114
commit 52f5727875
4 changed files with 22 additions and 2 deletions

View File

@@ -48,6 +48,9 @@ enum Commands {
command: Profile,
},
/// Print KernelSU tmpfs path
Path,
/// For developers
Debug {
#[command(subcommand)]
@@ -228,6 +231,10 @@ pub fn run() -> Result<()> {
Profile::DeleteTemplate { id } => crate::profile::delete_template(id),
Profile::ListTemplates => crate::profile::list_templates(),
},
Commands::Path => {
println!("{}", utils::get_tmp_path());
Ok(())
}
Commands::Debug { command } => match command {
Debug::SetManager { apk } => debug::set_manager(&apk),