Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

Commit b5a931d

Browse files
committed
KernelSU v1.0.5+
Added from https://github.com/5ec1cff/KernelSU (+22) 153e8bc - implement magic mount dde1efb - restorecon: set adb_file to system_file for module files 8508566 - magic_mount: use trusted.overlay.opaque 78ce6de - chore: fmt df0f057 - magic_mount: supports whiteout bd8fab1 - chore: refine code 61a2be6 - magic_mount: fix 12c584b - log: make verbose logging optional 044a08f - magic_mount: refine 55b6cb5 - ksud: fix disable / enable modules 42cdb10 - ksud: fix odm not magic-mounted 897f06f - manager: no need to check overlayfs b703c97 - ksud: fix partition link f7b08ff - ksud: fix clone symlink dcedf38 - ksud: refine tmpfs 845219b - ksud: add KSU_MAGIC_MOUNT to env (5ec1cff#5) f1fcf4b - manager: remove shrink image 7baaad7 - ksud: make tmpfs and magic mount optional bc856e9 - ksud: fix stat 882edf5 - reformat rust codes fb4cdb5 - app: persist show system app settings a47bb7b - magic mount: make mount points read only Other changes: (+18) 426fa8a - ksud: move workdir to /mnt/vendor 03d9726 - ksud: remove tmpfs mounting 0f68d54 - ksud: tell prctl interface about our mounts (5ec1cff#16) 511b874 - ksud: add cmd for add-try-umount (5ec1cff#16) 02636ae - ksud: add wipe umount list cmd ca1ccb3 - ksud: add cmd for nuke-ext4-sysfs 02ef753 - workflows: debloat 3b9c8c1 - workflows: debloat pt. 2 70f5e9e - ksud: add armeabi-v7a support 5e70e6b - manager: failure mode dummy demo 8c07502 - dummy.keystore a27c3ad - manager: unofficial build 73cd53c - manager: Add ABI and Kernel archirecture info into InfoCardItem cc54bc8 - ksud: prevent 32-on-64 pointer mismatches on sepolicy 449cfc7 - ksud/su: import devpts workaround 3dc9d06 - Reapply: "Handle unmount for isolated process correctly (tiann#2696)" 2c0d25c - kernel: squash all changes KernelSU v1.0.5+ Warning: Managers built from this repo has a known keystore. See dummy.keystore. Signed-off-by: backslashxx <[email protected]>
1 parent 2c0d25c commit b5a931d

File tree

3 files changed

+5
-29
lines changed

3 files changed

+5
-29
lines changed

kernel/Makefile

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -34,32 +34,8 @@ MDIR := $(realpath $(dir $(abspath $(lastword $(MAKEFILE_LIST)))))
3434
$(info -- KDIR: $(KDIR))
3535
$(info -- MDIR: $(MDIR))
3636

37-
# Check if this is a git repository
38-
# For in-tree build: check $(srctree)/$(src)/../.git
39-
# For out-of-tree build: check $(MDIR)/../.git
40-
ifeq ($(shell test -e $(srctree)/$(src)/../.git && echo "in-tree"),in-tree)
41-
# In-tree build (git submodule)
42-
$(shell cd $(srctree)/$(src); /usr/bin/env PATH="$$PATH":/usr/bin:/usr/local/bin [ -f ../.git/shallow ] && git fetch --unshallow)
43-
KSU_GIT_VERSION := $(shell cd $(srctree)/$(src); /usr/bin/env PATH="$$PATH":/usr/bin:/usr/local/bin git rev-list --count HEAD)
44-
KSU_GIT_VERSION_VALID := 1
45-
else ifeq ($(shell test -e $(MDIR)/../.git && echo "out-of-tree"),out-of-tree)
46-
# Out-of-tree build (standalone repository)
47-
$(shell cd $(MDIR); /usr/bin/env PATH="$$PATH":/usr/bin:/usr/local/bin [ -f ../.git/shallow ] && git fetch --unshallow)
48-
KSU_GIT_VERSION := $(shell cd $(MDIR); /usr/bin/env PATH="$$PATH":/usr/bin:/usr/local/bin git rev-list --count HEAD)
49-
KSU_GIT_VERSION_VALID := 1
50-
endif
51-
52-
# Calculate version if git version is available
53-
ifdef KSU_GIT_VERSION_VALID
54-
# ksu_version: major * 10000 + git version + 200 for historical reasons
55-
$(eval KSU_VERSION=$(shell expr 10000 + $(KSU_GIT_VERSION) + 200))
56-
$(info -- KernelSU version: $(KSU_VERSION))
57-
ccflags-y += -DKSU_VERSION=$(KSU_VERSION)
58-
else
59-
# If there is no .git directory, use default version
60-
$(warning "KSU_GIT_VERSION not defined! It is better to make KernelSU a git repository!")
61-
ccflags-y += -DKSU_VERSION=16
62-
endif
37+
# compliant to last upstream kernel change as of 20251019 - 7dd8818
38+
ccflags-y += -DKSU_VERSION=12131
6339

6440
ifeq ($(shell grep -q " current_sid(void)" $(srctree)/security/selinux/include/objsec.h; echo $$?),0)
6541
ccflags-y += -DKSU_COMPAT_HAS_CURRENT_SID

manager/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fun getGitDescribe(): String {
4848
fun getVersionCode(): Int {
4949
val commitCount = getGitCommitCount()
5050
val major = 1
51-
return major * 10000 + commitCount + 200
51+
return major * 10000 + commitCount + 160
5252
}
5353

5454
fun getVersionName(): String {
@@ -84,4 +84,4 @@ subprojects {
8484
}
8585
}
8686
}
87-
}
87+
}

userspace/ksud/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fn get_git_version() -> Result<(u32, String), std::io::Error> {
1515
.trim()
1616
.parse()
1717
.map_err(|_| std::io::Error::other("Failed to parse git count"))?;
18-
let version_code = 10000 + 200 + version_code; // For historical reasons
18+
let version_code = 10000 + 160 + version_code; // For historical reasons
1919

2020
let version_name = String::from_utf8(
2121
Command::new("git")

0 commit comments

Comments
 (0)