You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
Implement GetProcessFlags for KernelSU
This commit is contained in:
24
zygiskd/src/root_impl/mod.rs
Normal file
24
zygiskd/src/root_impl/mod.rs
Normal file
@@ -0,0 +1,24 @@
|
||||
mod kernelsu;
|
||||
mod magisk;
|
||||
|
||||
pub fn uid_on_allowlist(uid: i32) -> bool {
|
||||
if kernelsu::is_kernel_su() {
|
||||
kernelsu::uid_on_allowlist(uid)
|
||||
} else if magisk::is_magisk() {
|
||||
magisk::uid_on_allowlist(uid)
|
||||
} else {
|
||||
log::warn!("Unknown root implementation");
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
pub fn uid_on_denylist(uid: i32) -> bool {
|
||||
if kernelsu::is_kernel_su() {
|
||||
kernelsu::uid_on_denylist(uid)
|
||||
} else if magisk::is_magisk() {
|
||||
magisk::uid_on_denylist(uid)
|
||||
} else {
|
||||
log::warn!("Unknown root implementation");
|
||||
false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user