ksud: fix compile for non-android

This commit is contained in:
tiann
2023-01-26 15:05:13 +08:00
parent ee7065bc12
commit f6c249bd77

View File

@@ -35,6 +35,11 @@ pub fn grant_root() -> Result<()> {
Ok(())
}
#[cfg(not(target_os = "android"))]
pub fn grant_root() -> Result<()> {
unimplemented!("grant_root is only available on android");
}
pub fn get_version() -> i32 {
let mut result: i32 = 0;
#[cfg(target_os = "android")]