The project's README from github.com/LSPosed/LSPrivilege. As one markdown file: README.md.
LSPrivilege is a modular Android kernel privilege-escalation app for gaining temporary root on supported kernels and loading root managers such as KernelSU or APatch. It is designed to support multiple exploit backends rather than targeting a single vulnerability (currently shipping CVE-2026-43499, with additional backends planned).
Support requires an exact uname -r match. Check the supported devices for your kernel build.
If Shizuku is enabled, start it with ADB before running LSPrivilege. Tap LSPrivilege's status card to grant access.
Any root manager that ships libksud.so or libapd.so provides ksud/apd for module loading. The built-in list (KernelSU, SukiSU Ultra, ReSukiSU, BakaSU, KowSU, APatch) is auto-detected, and other managers can be picked in Settings → Root manager. Without ksud/apd, W1/W2 still grant uid 0 but no module is loaded.
You can import a profile without rebuilding the app:
boot.img and an optional xbl_config.img.Extractor output is an unverified candidate. The app checks missing or invalid fields before execution. Generating a profile does not prove device support. See the porting guide for validation and built-in registration.
See the MediaTek guide for image-based address recovery and the rooted-device fallback.
Requires the Android NDK, make, Gradle, and ADB. An adb shell run skips the app's seccomp bypass stage.
make -C src lsprivilege
./gradlew exportKernelProfiles
adb push build/native/lsprivilege /data/local/tmp/lsprivilege
adb push "build/kernel-profiles/<release>.bin" /data/local/tmp/profile.bin
adb shell chmod 755 /data/local/tmp/lsprivilege
adb shell /data/local/tmp/lsprivilege --load-prebuilt-profile /data/local/tmp/profile.bin
Requires Rust. The extractor accepts a boot image, a full OTA ZIP, or an HTTP(S) URL.
(cd tools/extract_rs && cargo build --release)
build/extract/release/lsprivilege-extract boot.img --xbl-config xbl_config.img --format conf --out profile.conf
build/extract/release/lsprivilege-extract OTA.zip --format conf --out profile.conf
Import profile.conf in the app. Omit --xbl-config if you do not have that image. The extractor rejects a patched remove_waiter() with exit code 6.
Licensed under Apache License 2.0. Based on: