mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
ae36e2085ccffe2a13d2c9771cc0b44cc2e1f32a
Cherry pick from https://github.com/backslashxx/KernelSU/commit/8bb9518060b06152b99f11465e20febc45359d3c https://github.com/backslashxx/KernelSU/commit/a4a7db7f40556287bfe53b65e998283c06363dd9 Backporting is cool, but not everyone has the skills for it. This commit does NOT make it required, but it will allow compiler to use whats in-kernel if it exists. The following are backportable: - kernel_read / kernel_write < 4.14, backport chain, tested on 4.9 https://github.com/torvalds/linux/commit/e13ec939e96b13e664bb6cee361cc976a0ee621a https://github.com/torvalds/linux/commit/bdd1d2d3d251c65b74ac4493e08db18971c09240 https://github.com/torvalds/linux/commit/c41fbad015dabb0a40ecca50c3ff5658eb6471ff https://github.com/torvalds/linux/commit/ac452acae1caa1a451142a30b4e1ea09cfac4410 - strncpy_from_user_nofault for 5.4, apply: https://github.com/torvalds/linux/commit/bd88bb5d4007949be7154deae7cef7173c751a95 for 4.x, apply: https://github.com/xiaomi-sdm678/android_kernel_xiaomi_mojito/commit/424e21f3b01ddaeb86cef7efd3f519a7e342fb67 for any failures, just SKIP THIS or check dependency chain of, https://github.com/gregkh/linux/commit/3d7081822f7f9eab867d9bcc8fd635208ec438e0 this got backported to v4.4.236, v4.9.236, v4.14.197, v4.19.144 - hint, `curl $url.patch | git am` Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
English | 简体中文 | 繁體中文 | Türkçe | Português (Brasil) | 한국어 | Français | Bahasa Indonesia | Русский | ภาษาไทย
KernelSU Next
A Kernel-based root solution for Android devices.
Features
- Kernel-based
suand root access management. - Module system based on dynamic mount system Magic Mount / OverlayFS.
- App Profile: Lock up the root power in a cage.
Compatibility State
KernelSU Next officially supports most Android kernels starting from 4.4 up to 6.6.
- GKI 2.0 (5.10+) kernels can run pre-built images and LKM/KMI.
- GKI 1.0 (4.19 - 5.4) kernels need to rebuilt with KernelSU driver.
- EOL (<4.14) kernels also need to be rebuilt with KernelSU driver (3.18+ is experimental and may need some function backports).
Currently, only arm64-v8a is supported.
Usage
Security
For information on reporting security vulnerabilities in KernelSU, see SECURITY.md.
License
- Files under the
kerneldirectory are GPL-2.0-only. - All other parts except the
kerneldirectory are GPL-3.0-or-later.
Donations
-
0x12b5224b7aca0121c2f003240a901e1d064371c1 [ USDT BEP20 ]
-
TYUVMWGTcnR5svnDoX85DWHyqUAeyQcdjh [ USDT TRC20 ]
-
0x12b5224b7aca0121c2f003240a901e1d064371c1 [ USDT ERC20 ]
-
0x12b5224b7aca0121c2f003240a901e1d064371c1 [ ETH ERC20 ]
-
Ld238uYBuRQdZB5YwdbkuU6ektBAAUByoL [ LTC ]
-
19QgifcjMjSr1wB2DJcea5cxitvWVcXMT6 [ BTC ]
Credits
- kernel-assisted-superuser: the KernelSU idea.
- Magisk: the powerful root tool.
- genuine: apk v2 signature validation.
- Diamorphine: some rootkit skills.
- KernelSU: thanks to tiann, or else KernelSU Next wouldn't even exist.
- Magic Mount Port: 💜 5ec1cff for saving KernelSU!