ksud: Disable modules when magisk installed

This commit is contained in:
tiann
2023-03-01 11:39:48 +08:00
parent 1c65048813
commit c34a5ae2a6
4 changed files with 28 additions and 1 deletions

View File

@@ -125,3 +125,7 @@ pub fn umask(mask: u32) {
pub fn umask(_mask: u32) {
unimplemented!("umask is not supported on this platform")
}
pub fn has_magisk() -> bool {
which::which("magisk").is_ok()
}