show root impl

This commit is contained in:
5ec1cff
2023-12-11 20:22:52 +08:00
parent 5d95f627bf
commit ad8510dee0
2 changed files with 7 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ pub fn uid_granted_root(uid: i32) -> bool {
match get_impl() {
RootImpl::KernelSU => kernelsu::uid_granted_root(uid),
RootImpl::Magisk => magisk::uid_granted_root(uid),
_ => unreachable!(),
_ => panic!("uid_granted_root: unknown root impl {:?}", get_impl()),
}
}
@@ -53,6 +53,6 @@ pub fn uid_should_umount(uid: i32) -> bool {
match get_impl() {
RootImpl::KernelSU => kernelsu::uid_should_umount(uid),
RootImpl::Magisk => magisk::uid_should_umount(uid),
_ => unreachable!(),
_ => panic!("uid_should_umount: unknown root impl {:?}", get_impl()),
}
}