File tree Expand file tree Collapse file tree
manager/app/src/main/java/me/weishu/kernelsu Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ object Natives {
2121 // 32310: new get_allow_list ioctl
2222 // 32336: new set_sepolicy ioctl
2323 // 32377: add set_init_pgrp ioctl
24- const val MINIMAL_SUPPORTED_KERNEL = 32377
24+ // 32483: add uapi version
25+ const val MINIMAL_SUPPORTED_KERNEL = 32483
2526
2627 const val KERNEL_SU_DOMAIN = " u:r:ksu:s0"
2728
Original file line number Diff line number Diff line change 11#![ allow( clippy:: unreadable_literal) ]
22use crate :: ksu_uapi;
3- use crate :: ksu_uapi:: KERNEL_SU_UAPI_VERSION ;
43use std:: fs;
54use std:: os:: fd:: RawFd ;
65use std:: sync:: OnceLock ;
@@ -85,7 +84,7 @@ pub fn is_late_load() -> bool {
8584}
8685
8786pub fn is_uapi_version_mismatch ( ) -> bool {
88- get_info ( ) . uapi_version != KERNEL_SU_UAPI_VERSION
87+ get_info ( ) . uapi_version != ksu_uapi :: KERNEL_SU_UAPI_VERSION
8988}
9089
9190pub fn grant_root ( ) -> std:: io:: Result < ( ) > {
You can’t perform that action at this time.
0 commit comments