Repository navigation
Releases
A12 GhostLock v1.0.0 - one-click root for SM-A125F
A12 GhostLock v1.0.0 — one-click root for the Samsung Galaxy A12
First public release. Everything here was produced on a physical SM-A125F
(Android 12, kernel 4.19.188) by the shipped payload.
What it does
Double-click OneClickRoot.bat. It reboots the phone, exploits
CVE-2026-43499 (GhostLock) for kernel uid 0 + forged capabilities, installs
a KernelSU-compatible userspace stack, then installs and verifies three real
root apps through a KernelSU-style grant dialog.
L1 SELinux permissive
L2 box alive and sane
L3 uid=0 euid=0 CapEff=ffffff8009ea09b2 (su -c id → uid=0(root))
Verified in this release
| Check | Result |
|---|---|
| Kernel root | uid=0 euid=0 gid=2000 egid=2000 CapEff=ffffff8009ea09b2 |
su -c id from adb shell |
uid=0(root) |
su -v / su -V |
v3.3.1:KernelSU / 33001 |
ksud --version |
v3.3.1 (uapi: 2) |
magisk -v / -V / --path |
25.2:MAGISK / 25200 / /data/adb/ksu/bin |
su 2000 -c 'id -u' |
2000 (target-uid frame) |
resetprop debug.* |
round-trips |
| Hot module install | a12mod_test installed without reboot, overlay file visible, service.sh ran with KSU=true |
| Neo Backup 8.3.18 | grant dialog → allow → ran toybox ls -ld / + its root plugin, no ROOT missing |
| App Manager 4.1.1 | grant dialog → allow → libsu + su <uid> -c keystore_cli_v2 list, no Root access is not available |
| Shizuku 13.6.0 | grant dialog → allow → Start (for rooted devices) → shizuku_server running with Uid: 0, manager reports Version …, root |
Final verified run: boot d7c937ec-49e6-4f38-ba2c-a760c05cb262, first attempt.
Reliability: 9 of 12 first boots reached L3 (75%); 12 of 12 within three
attempts. Every miss is a kernel panic inside rb_erase_cached ← remove_waiter ← rt_mutex_cleanup_proxy_lock, the box auto-reboots, /data is intact, and the
harness retries on the fresh boot.
Contents
A12-OneShotRoot/
OneClickRoot.bat double-click entry
root.ps1 orchestration + verification
README.md usage, PASS criteria, troubleshooting
payload/
exploit GhostLock exploit + su daemon (aarch64, PIE)
su ksud magisk resetprop a12mod.sh
SuApp.apk A12 Root Manager + grant dialog (1.2)
a12mod_test.zip test module (overlay + service.sh)
apps/NeoBackup.apk Neo Backup 8.3.18
apps/AppManager.apk App Manager 4.1.1
apps/Shizuku.apk Shizuku 13.6.0
tools/ adb.exe + DLLs (no separate install needed)
evidence/ logs, screenshots and three captured panics
Requirements
- Windows 10/11, PowerShell 5.1+
- USB debugging on, RSA prompt accepted
- Phone unlocked at least once after boot
- No internet needed — adb and every APK are bundled
Known limits
- Memory-only. Reboot = root gone. No persistence, no custom kernel, no TWRP
(bootloader is locked). - One firmware. Addresses are hard-coded for
4.19.188on SM-A125F Android
12. - Partial capability mask. No
CAP_SETGID,CAP_NET_ADMIN,CAP_NET_RAW,
CAP_SYS_MODULE— gid stays 2000 and iptables apps (AFWall+) do not work. - Official root managers do not work with this stack (no kernel driver, no
prctl(0xdeadbeef), no module loading). Use the bundled A12 Root Manager.
Credits
- NebuSec — discovery and original exploitation of GhostLock
(CVE-2026-43499), disclosed 2026-07-07. - George Hotz (geohot) — the original futex requeue-PI fake-lock
constrained-write technique (Towelroot, CVE-2014-3153). - KernelSU (tiann), Magisk (topjohnwu) — the CLI and module contracts
this userspace layer emulates. - RikkaApps/Shizuku, NeoApplications/Neo-Backup,
MuntashirAkon/AppManager — the apps used to prove root works.
SHA-256
BFA86F9C1EDDFA24D4A51CA8E51E1A22F5FF6C42BE3D9FD1FDA2E9110831505B A12-OneShotRoot-v1.0.0.zip
452E4EBAD5A930878C457B532EB510848FE290AAFEA0278245C0196CBA81CBB7 payload/exploit
B436AD5B57702508BDB6DAB1AE778233DA6019A1ADDA0464C50C5480F2866895 payload/su
811C3179D486027615C16B6477E05896EBB5B2BFE6771EEDAB4B4CAEEB66B9CA payload/SuApp.apk
For research on hardware you own. CVE-2026-43499 is fixed upstream; this
repository does not disclose a new vulnerability.