ShirkNeko 320e08b8fb new supercall impl (#511)
* refactor: replace throne tracker with ksud token

* use snprintf

* refactor: new supercall impl

- Import the sukisu command

* disable seccomp for supercall users

* kernel: fmt clear

* kernel: Enable macro protection for sulog

- Only enabled on kernel versions greater than 5.10.245

* kernel: Refactor kprobe hooks and implement LSM hooks for improved security handling

* debug mode

* kernel: Add functionality to generate and validate authentication tokens for cmd_su

* kernel: Simplified manual SU command processing for code

* kernel: replace renameat hook with fsnotify

* Revert "refactor: replace throne tracker with ksud token"

This reverts commit aa2cbbf9cd.

* kernel: fix compile

* kernel: fix compile below 6.0

* Fix compile err; Add become_manager

* kernel: install fd for manager automaticlly

- extend to import the corresponding command

* manager: new supercall impl

* temp changes for ksud

* ksud: fix compile

* fix wrong opcode

* kernel: fix compile

* kernel: Fixed hook type and KPM status retrieval errors

* kernel: Fixed potential null pointer issue with current->mm in kernel version 5.10

When calling get_full_comm() within system call hooks, current->mm may be null (prctl). A fallback mechanism for current->comm must be added beforehand to prevent null pointer dereferences when accessing mm->arg_start/arg_end.

Signed-off-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com>

* ksud: fix cargo check

* manager: Fixed an issue where the KSUD release and user-mode scanning switch failed to function correctly.

- kernel: fix spin lock mutual

kernel: Fixed potential null pointer issue with current->mm in kernel version 5.10

When calling get_full_comm() within system call hooks, current->mm may be null (prctl). A fallback mechanism for current->comm must be added beforehand to prevent null pointer dereferences when accessing mm->arg_start/arg_end.

kernel: try introduce like susfs's method to fix prctl delay

* seccomp: allow reboot

* use u32

* update clang-format

* 4 spaces save the world

* ksud: Fix build on macOS

* manager: bump minimal supported kernel.

- When get_hook_type is empty, display “Unknown”.


* Fix ksud build (#2841)

* try fix ksud

* fix for macos

* remove any

* Fix ksud build, take 3

* try fix allowlist

* bring lsm hook back

* fix: a lot again

* Fix ksud build, take 4 (#2846)

Remove init_driver_fd function for non-linux/android targets

* manager: Return to the native method via KSUd installation

* Merge with susfs-mian format

---------

Signed-off-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com>
Co-authored-by: Ylarod <me@ylarod.cn>
Co-authored-by: weishu <twsxtd@gmail.com>
Co-authored-by: AlexLiuDev233 <wzylin11@outlook.com>
Co-authored-by: Wang Han <416810799@qq.com>
2025-11-01 23:30:30 +08:00
2025-10-06 21:08:23 +08:00
2025-11-01 23:30:30 +08:00
2025-11-01 23:30:30 +08:00
2025-11-01 23:30:30 +08:00
2025-09-24 19:53:52 +05:30
2024-03-08 10:31:41 +08:00
2025-11-01 23:30:30 +08:00
2024-02-29 20:35:03 +08:00
2022-12-09 22:03:55 +08:00
2023-10-09 22:53:21 +08:00

SukiSU Ultra

sukisu logo

English | 简体中文 | 日本語 | Türkçe

A kernel-based root solution for Android devices, forked from tiann/KernelSU, and added some interesting changes.

Latest release Channel License: GPL v2 GitHub License

Features

  1. Kernel-based su and root access management
  2. Module system based on Magic Mount
  3. App Profile: Lock up the root power in a cage
  4. Support non-GKI and GKI 1.0
  5. KPM Support
  6. Tweaks to the manager theme and the built-in susfs management tool.

Compatibility Status

  • KernelSU (before v1.0.0) officially supports Android GKI 2.0 devices (kernel 5.10+).

  • Older kernels (4.4+) are also compatible, but the kernel will have to be built manually.

  • With more backports, KernelSU can supports 3.x kernel (3.4-3.18).

  • Currently, only arm64-v8a, armeabi-v7a (bare) and X86_64(some) are supported.

Installation

See guide/installation.md

Integration

See guide/how-to-integrate.md

Translation

If you need to submit a translation for the manager, please go to Crowdin.

KPM Support

  • Based on KernelPatch, we removed features redundant with KSU and retained only KPM support.
  • Work in Progress: Expanding APatch compatibility by integrating additional functions to ensure compatibility across different implementations.

Open-source repository: https://github.com/ShirkNeko/SukiSU_KernelPatch_patch

KPM template: https://github.com/udochina/KPM-Build-Anywhere

Note

  1. Requires CONFIG_KPM=y
  2. Non-GKI devices requires CONFIG_KALLSYMS=y and CONFIG_KALLSYMS_ALL=y
  3. For kernels below 4.19, backporting from set_memory.h from 4.19 is required.

Troubleshooting

  1. Device stuck upon manager app uninstallation? Uninstall com.sony.playmemories.mobile

Sponsor

ShirkNeko's sponsorship list

License

  • The file in the “kernel” directory is under GPL-2.0-only license.
  • The images of the files ic_launcher(?!.*alt.*).* with anime character sticker are copyrighted by 怡子曰曰, the Brand Intellectual Property in the images is owned by 明风 OuO, and the vectorization is done by @MiRinChan. Before using these files, in addition to complying with Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International, you also need to comply with the authorization of the two authors to use these artistic contents.
  • Except for the files or directories mentioned above, all other parts are under GPL-3.0 or later license.

Credit

  • KernelSU: upstream
  • MKSU: Magic Mount
  • RKSU: support non-GKI
  • susfs: An addon root hiding kernel patches and userspace module for KernelSU.
  • KernelPatch: KernelPatch is a key part of the APatch implementation of the kernel module
KernelSU's credit
Description
No description provided
Readme GPL-3.0 60 MiB
Languages
Kotlin 67.1%
C 20%
Rust 11.1%
Shell 0.9%
Makefile 0.4%
Other 0.4%