Skip to content

manager: show seccomp status on Home screen#3372

Merged
Ylarod merged 3 commits into
tiann:mainfrom
ljxi:seccomp_status
Apr 3, 2026
Merged

manager: show seccomp status on Home screen#3372
Ylarod merged 3 commits into
tiann:mainfrom
ljxi:seccomp_status

Conversation

@ljxi

@ljxi ljxi commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Users in jailbreak mode need this

Copilot AI review requested due to automatic review settings March 30, 2026 11:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Seccomp status reporting to the Manager Home screen so users (notably in jailbreak mode) can quickly see whether the current process is running under seccomp.

Changes:

  • Add localized strings for “Seccomp status” and its possible values.
  • Extend SystemInfo / HomeViewModel to include a raw seccomp status derived from /proc/self/status.
  • Display seccomp status in both Material and MIUI Home info cards.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
manager/app/src/main/res/values/strings.xml Adds English UI strings for seccomp status labels/values.
manager/app/src/main/res/values-zh-rCN/strings.xml Adds Simplified Chinese UI strings for seccomp status labels/values.
manager/app/src/main/java/me/weishu/kernelsu/ui/viewmodel/HomeViewModel.kt Populates SystemInfo.seccompStatus via new util function.
manager/app/src/main/java/me/weishu/kernelsu/ui/util/SeccompChecker.kt Introduces /proc/self/status parsing for per-process seccomp mode.
manager/app/src/main/java/me/weishu/kernelsu/ui/screen/home/HomeUtils.kt Extends SystemInfo with seccompStatus.
manager/app/src/main/java/me/weishu/kernelsu/ui/screen/home/HomeMiuix.kt Renders seccomp status in MIUI Home info card and previews.
manager/app/src/main/java/me/weishu/kernelsu/ui/screen/home/HomeMaterial.kt Renders seccomp status in Material Home info card and previews.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread manager/app/src/main/res/values/strings.xml Outdated
Comment thread manager/app/src/main/res/values-zh-rCN/strings.xml Outdated
Comment thread manager/app/src/main/java/me/weishu/kernelsu/ui/screen/home/HomeMaterial.kt Outdated
Comment thread manager/app/src/main/java/me/weishu/kernelsu/ui/screen/home/HomeMiuix.kt Outdated
Comment thread manager/app/src/main/java/me/weishu/kernelsu/ui/util/SeccompChecker.kt Outdated
Comment thread manager/app/src/main/java/me/weishu/kernelsu/ui/util/SeccompChecker.kt Outdated
@aviraxp

aviraxp commented Mar 30, 2026

Copy link
Copy Markdown
Collaborator

Better use prctl(PR_GET_SECCOMP)

ljxi added 2 commits March 30, 2026 23:41
Expose and display kernel Seccomp status in the Home screen.
Add a JNI binding (Java_me_weishu_kernelsu_Natives_getSeccompStatus) that returns prctl(PR_GET_SECCOMP) and expose it in Natives.kt. Migrate SystemInfo.seccompStatus from String to Int and update HomeMaterial/HomeMiuix UI to map numeric codes (-1, 0, 1, 2) to localized strings (not supported, disabled, strict, filter, unknown). Remove the old SeccompChecker.kt that parsed /proc/self/status and update HomeViewModel to call Natives.getSeccompStatus(). Also update string resources and preview data to reflect the new status values and labels.
@aviraxp

aviraxp commented Mar 31, 2026

Copy link
Copy Markdown
Collaborator

@ljxi

ljxi commented Mar 31, 2026

Copy link
Copy Markdown
Contributor Author

PR_GET_SECCOMP isn't defined in the OsConstants, hard-coded here.
https://developer.android.com/reference/kotlin/android/system/OsConstants

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Ylarod Ylarod merged commit d406163 into tiann:main Apr 3, 2026
21 checks passed
@ljxi ljxi deleted the seccomp_status branch April 3, 2026 13:38
AlexLiuDev233 pushed a commit to ReSukiSU/ReSukiSU that referenced this pull request Apr 11, 2026
Users in jailbreak mode need this

Signed-off-by: AlexLiuDev233 <wzylin11@outlook.com>
AlexLiuDev233 pushed a commit to ReSukiSU/ReSukiSU that referenced this pull request Apr 11, 2026
Users in jailbreak mode need this

Signed-off-by: AlexLiuDev233 <wzylin11@outlook.com>
AlexLiuDev233 pushed a commit to ReSukiSU/ReSukiSU that referenced this pull request Apr 11, 2026
Users in jailbreak mode need this

Signed-off-by: AlexLiuDev233 <wzylin11@outlook.com>
Flopster101 added a commit to FlopKernel-Series/flop_exynos2100_kernel that referenced this pull request Apr 12, 2026
81b42954dadda kernel: Replace GFP_ATOMIC flags in throne tracker
6d47cf8db9265 kernel: Fix OOB read caused by missing null terminator (tiann/KernelSU#3413)
ae631ffbc1e8e kernel: implement ksu_toolkit support
c9272c57bd644 manager: adb_root: load our ksurc if possible
42418d3ab6419 kernel: infra: shim is_compat_syscall
12b523147a356 manager: don't play animation when SwipeToDismissBox reset
11e5ca6008e5c manager: make Snackbar don't share across every page, make Snackbar can be dismieed by swipe
71c618a4618b3 manager: stop show hook type when manager is not valid, stop show hook type in susfs version
c6b6bf5f74aa0 manager: bump minimal supported kernel version to 34795
79fc35b913e4f manager: use Icons.Filled.Adb for adb root feature icon
ea35b7172b985 manager: cleanup
2ee60a980d4d2 manager: disable adb root switch widget when kernel not support this feature
34e60f2270f45 ksud: fix late_load's type error
5a89f36776e4f userspace: improve module loading and ksud CLI (tiann/KernelSU#3406)
a53b0d29a97e0 manager: throw out these comment garbage
291e691a820ea ksud: fix late-load mode can't reopen manager after EoP
315143cd9bd3d kernel: Fix building sulog on kernel 6.1 & x86_64 (tiann/KernelSU#3401)
32347a008d812 manager: show seccomp status on Home screen (tiann/KernelSU#3372)
4a216d78b5400 syscall_hook: Fix building on kernel 6.6 and below (tiann/KernelSU#3383)
ea6d38c114359 kernel: remove asm/memory.h include in adb_root.c
759d6545dc0a5 kernel: Don't advertise webview zygote in umount list (tiann/KernelSU#3389)
0403aa98bc803 kernel, ksud, manager: adb root (tiann/KernelSU#3382)
1007dda3d1351 manager: fix webui ime insets
a1411e960f93a fix: add CORS header to ksu://icon/ responses to allow programmatic image loading (#3402)
fdc27ed136221 ksud: add manager package name option to some commands
b290252f80b62 kernel: add sulog for ioctl grant root
fc9a2372609f6 kernel: fix build for armv7l, 4.9+ kernel
e75005fde4765 manager: add sulog screen
70dc59494f1ca ksud: format
422374fe1669b kernel: mark more functions as init/exit functions (tiann/KernelSU#3380)
935335d05ad19 ksud: remove ksud before update it
d9caa2397afa6 ksud: minor refactor (tiann/KernelSU#3377)
5d17fb2c07a05 kernel, ksud: add sulog (tiann/KernelSU#3360)
a86fc8478d0ea kernel, ksud, manager: nuke old sulog impl from sukisu
b2f18ec6e0f71 manager: sync translation from Crowdin (#134)
d63ebb67dfef9 build(deps): bump libc from 0.2.183 to 0.2.184 in /userspace/ksuinit in the crates group (#138)
21754e820d22a build(deps): bump the crates group in /userspace/ksud with 12 updates (#139)
f587a254963e5 ksubot: add a delay
ec058e15d33eb crowdin: enable skip_identical_translations
5d6925650b9f8 ksud: add `feature get --config`
f035650d8c0d8 kernel: fix manual hook check
815fe09cf26b5 ksud: Open susfs subcommand for non-arm64-v8a devices
5bee234587f15 ksud: add --kmi for ksud late-load
e85512f299ccd ksud: Change uid references to appid (tiann/KernelSU#3388)
4f40e44797a16 ksud: fix daemonize
086e2caba42ce [skip ci]ci: clean up unused scripts
fcac5f7736859 Kernel: minify Kbuild (#129)
afdf237da8dd9 build(deps): bump the crates group in /userspace/ksud with 12 updates (#133)
1ed0b9cc9ebc2 kernel: fix multi manager not working with ddk

git-subtree-dir: drivers/sukisu
git-subtree-split: 81b42954daddaabe227c76936c736a4661772b68
Flopster101 added a commit to FlopKernel-Series/flop_trinket-mi_kernel that referenced this pull request Apr 13, 2026
81b42954dadd kernel: Replace GFP_ATOMIC flags in throne tracker
6d47cf8db926 kernel: Fix OOB read caused by missing null terminator (tiann/KernelSU#3413)
ae631ffbc1e8 kernel: implement ksu_toolkit support
c9272c57bd64 manager: adb_root: load our ksurc if possible
42418d3ab641 kernel: infra: shim is_compat_syscall
12b523147a35 manager: don't play animation when SwipeToDismissBox reset
11e5ca6008e5 manager: make Snackbar don't share across every page, make Snackbar can be dismieed by swipe
71c618a4618b manager: stop show hook type when manager is not valid, stop show hook type in susfs version
c6b6bf5f74aa manager: bump minimal supported kernel version to 34795
79fc35b913e4 manager: use Icons.Filled.Adb for adb root feature icon
ea35b7172b98 manager: cleanup
2ee60a980d4d manager: disable adb root switch widget when kernel not support this feature
34e60f2270f4 ksud: fix late_load's type error
5a89f36776e4 userspace: improve module loading and ksud CLI (tiann/KernelSU#3406)
a53b0d29a97e manager: throw out these comment garbage
291e691a820e ksud: fix late-load mode can't reopen manager after EoP
315143cd9bd3 kernel: Fix building sulog on kernel 6.1 & x86_64 (tiann/KernelSU#3401)
32347a008d81 manager: show seccomp status on Home screen (tiann/KernelSU#3372)
4a216d78b540 syscall_hook: Fix building on kernel 6.6 and below (tiann/KernelSU#3383)
ea6d38c11435 kernel: remove asm/memory.h include in adb_root.c
759d6545dc0a kernel: Don't advertise webview zygote in umount list (tiann/KernelSU#3389)
0403aa98bc80 kernel, ksud, manager: adb root (tiann/KernelSU#3382)
1007dda3d135 manager: fix webui ime insets
a1411e960f93 fix: add CORS header to ksu://icon/ responses to allow programmatic image loading (#3402)
fdc27ed13622 ksud: add manager package name option to some commands
b290252f80b6 kernel: add sulog for ioctl grant root
fc9a2372609f kernel: fix build for armv7l, 4.9+ kernel
e75005fde476 manager: add sulog screen
70dc59494f1c ksud: format
422374fe1669 kernel: mark more functions as init/exit functions (tiann/KernelSU#3380)
935335d05ad1 ksud: remove ksud before update it
d9caa2397afa ksud: minor refactor (tiann/KernelSU#3377)
5d17fb2c07a0 kernel, ksud: add sulog (tiann/KernelSU#3360)
a86fc8478d0e kernel, ksud, manager: nuke old sulog impl from sukisu
b2f18ec6e0f7 manager: sync translation from Crowdin (#134)
d63ebb67dfef build(deps): bump libc from 0.2.183 to 0.2.184 in /userspace/ksuinit in the crates group (#138)
21754e820d22 build(deps): bump the crates group in /userspace/ksud with 12 updates (#139)
f587a254963e ksubot: add a delay
ec058e15d33e crowdin: enable skip_identical_translations
5d6925650b9f ksud: add `feature get --config`
f035650d8c0d kernel: fix manual hook check
815fe09cf26b ksud: Open susfs subcommand for non-arm64-v8a devices
5bee234587f1 ksud: add --kmi for ksud late-load
e85512f299cc ksud: Change uid references to appid (tiann/KernelSU#3388)
4f40e44797a1 ksud: fix daemonize
086e2caba42c [skip ci]ci: clean up unused scripts
fcac5f773685 Kernel: minify Kbuild (#129)
afdf237da8dd build(deps): bump the crates group in /userspace/ksud with 12 updates (#133)
1ed0b9cc9ebc kernel: fix multi manager not working with ddk

git-subtree-dir: drivers/sukisu
git-subtree-split: 81b42954daddaabe227c76936c736a4661772b68
Flopster101 added a commit to FlopKernel-Series/flop_s5e8825_kernel that referenced this pull request Apr 15, 2026
81b42954dadd kernel: Replace GFP_ATOMIC flags in throne tracker
6d47cf8db926 kernel: Fix OOB read caused by missing null terminator (tiann/KernelSU#3413)
ae631ffbc1e8 kernel: implement ksu_toolkit support
c9272c57bd64 manager: adb_root: load our ksurc if possible
42418d3ab641 kernel: infra: shim is_compat_syscall
12b523147a35 manager: don't play animation when SwipeToDismissBox reset
11e5ca6008e5 manager: make Snackbar don't share across every page, make Snackbar can be dismieed by swipe
71c618a4618b manager: stop show hook type when manager is not valid, stop show hook type in susfs version
c6b6bf5f74aa manager: bump minimal supported kernel version to 34795
79fc35b913e4 manager: use Icons.Filled.Adb for adb root feature icon
ea35b7172b98 manager: cleanup
2ee60a980d4d manager: disable adb root switch widget when kernel not support this feature
34e60f2270f4 ksud: fix late_load's type error
5a89f36776e4 userspace: improve module loading and ksud CLI (tiann/KernelSU#3406)
a53b0d29a97e manager: throw out these comment garbage
291e691a820e ksud: fix late-load mode can't reopen manager after EoP
315143cd9bd3 kernel: Fix building sulog on kernel 6.1 & x86_64 (tiann/KernelSU#3401)
32347a008d81 manager: show seccomp status on Home screen (tiann/KernelSU#3372)
4a216d78b540 syscall_hook: Fix building on kernel 6.6 and below (tiann/KernelSU#3383)
ea6d38c11435 kernel: remove asm/memory.h include in adb_root.c
759d6545dc0a kernel: Don't advertise webview zygote in umount list (tiann/KernelSU#3389)
0403aa98bc80 kernel, ksud, manager: adb root (tiann/KernelSU#3382)
1007dda3d135 manager: fix webui ime insets
a1411e960f93 fix: add CORS header to ksu://icon/ responses to allow programmatic image loading (#3402)
fdc27ed13622 ksud: add manager package name option to some commands
b290252f80b6 kernel: add sulog for ioctl grant root
fc9a2372609f kernel: fix build for armv7l, 4.9+ kernel
e75005fde476 manager: add sulog screen
70dc59494f1c ksud: format
422374fe1669 kernel: mark more functions as init/exit functions (tiann/KernelSU#3380)
935335d05ad1 ksud: remove ksud before update it
d9caa2397afa ksud: minor refactor (tiann/KernelSU#3377)
5d17fb2c07a0 kernel, ksud: add sulog (tiann/KernelSU#3360)
a86fc8478d0e kernel, ksud, manager: nuke old sulog impl from sukisu
b2f18ec6e0f7 manager: sync translation from Crowdin (#134)
d63ebb67dfef build(deps): bump libc from 0.2.183 to 0.2.184 in /userspace/ksuinit in the crates group (#138)
21754e820d22 build(deps): bump the crates group in /userspace/ksud with 12 updates (#139)
f587a254963e ksubot: add a delay
ec058e15d33e crowdin: enable skip_identical_translations
5d6925650b9f ksud: add `feature get --config`
f035650d8c0d kernel: fix manual hook check
815fe09cf26b ksud: Open susfs subcommand for non-arm64-v8a devices
5bee234587f1 ksud: add --kmi for ksud late-load
e85512f299cc ksud: Change uid references to appid (tiann/KernelSU#3388)
4f40e44797a1 ksud: fix daemonize
086e2caba42c [skip ci]ci: clean up unused scripts
fcac5f773685 Kernel: minify Kbuild (#129)
afdf237da8dd build(deps): bump the crates group in /userspace/ksud with 12 updates (#133)
1ed0b9cc9ebc kernel: fix multi manager not working with ddk

git-subtree-dir: drivers/sukisu
git-subtree-split: 81b42954daddaabe227c76936c736a4661772b68
rsuntk pushed a commit to rsuntk/KernelSU that referenced this pull request Apr 19, 2026
Users in jailbreak mode need this

Signed-off-by: ris <rissu.ntk@gmail.com>
rsuntk pushed a commit to rsuntk/KernelSU that referenced this pull request Apr 20, 2026
Users in jailbreak mode need this

Signed-off-by: ris <rissu.ntk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants