Skip to content

Commit ff6bcf1

Browse files
committed
manager, ksud: style fix and bump MINIMAL_SUPPORTED_KERNEL to 32483
Signed-off-by: AlexLiuDev233 <wzylin11@outlook.com>
1 parent 921055c commit ff6bcf1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

manager/app/src/main/java/me/weishu/kernelsu/Natives.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

userspace/ksud/src/ksucalls.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![allow(clippy::unreadable_literal)]
22
use crate::ksu_uapi;
3-
use crate::ksu_uapi::KERNEL_SU_UAPI_VERSION;
43
use std::fs;
54
use std::os::fd::RawFd;
65
use std::sync::OnceLock;
@@ -85,7 +84,7 @@ pub fn is_late_load() -> bool {
8584
}
8685

8786
pub 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

9190
pub fn grant_root() -> std::io::Result<()> {

0 commit comments

Comments
 (0)