Levi Zim cbb98a1de9
Copy one extra byte from userspace filename (#958)
Otherwise we will rewrite paths for filenames that begins with
`/system/bin/su`.

This fix copies one extra byte from userspace filename so that when we
encounter filenames like `/system/bin/suasf`,
`/system/bin/su\0` gets compared with `/system/bin/sua`, which correctly
prevents the `su -> sh` path rewriting.

Close #957
2023-09-16 12:23:04 +08:00
2023-09-11 00:06:35 +08:00
2023-09-01 14:23:45 +08:00
2022-12-09 22:03:55 +08:00

English | Español | 简体中文 | 繁體中文 | 日本語 | Polski | Portuguese-Brazil | Türkçe | Русский | Tiếng Việt | Indonesia

KernelSU

A Kernel-based root solution for Android devices.

Features

  1. Kernel-based su and root access management.
  2. Module system based on overlayfs.
  3. App Profile: Lock up the root power in a cage.

Compatibility State

KernelSU officially supports Android GKI 2.0 devices(with kernel 5.10+), old kernels(4.14+) are also compatible, but you need to build the kernel yourself.

WSA, ChromeOS and container-based Android can also work with KernelSU integrated.

And the current supported ABIs are: arm64-v8a and x86_64

Usage

Translation

To translate KernelSU into your language or improve an existing translation, please use Weblate.

Discussion

License

  • Files under the kernel directory are GPL-2
  • All other parts except the kernel directory are GPL-3

Credits

Description
A Kernel based root solution for Android
Readme GPL-3.0 28 MiB
Languages
Kotlin 43.8%
Rust 21%
C 19.8%
Java 6.4%
TypeScript 2.7%
Other 6.1%