Temporary Root Without Unlocking the Bootloader
DirtyFrag and GhostLock can provide temporary root on specific vulnerable Android builds while the bootloader stays locked. Neither works on every device, and a full reboot ends the active root session.
CAUTION
Back up your data and check recovery options first. An exploit, incompatible module or failed recovery can cause crashes, bootloops or data loss. Do not downgrade or skip security updates just to keep root.
TIP
Our sister project Awesome Temporary Root (GitHub) maintains device/build lists, tool links and module reports. Use it alongside the loader's own instructions.
On this page
- DirtyFrag and GhostLock
- Check your device
- Find device and tool information
- Run a session safely
- Modules and managers
- If a run fails
- Temporary root vs normal root
- FAQ
What is temporary root?
A temporary-root tool uses a vulnerability to grant root for the current boot without flashing a boot image. Some tools set up a KernelSU-compatible manager for root apps and modules; others provide only a root shell. Shizuku or ADB may help run a tool, but shell access is not root by itself.
DirtyFrag and GhostLock
- DirtyFrag needs a vulnerable kernel. Tools that load KernelSU also need a compatible kernel module.
- GhostLock needs a loader matched to the device and kernel. Its exploit is a race, so a failed attempt can reboot the device.
Choose a tool that supports your device and firmware or kernel profile under its documented rules; a matching Android version alone is not enough. A compatibility check is useful, but passing it does not guarantee a successful root session.
Technical details and sources
DirtyFrag (CVE-2026-43284) uses a page-cache write. GhostLock (CVE-2026-43499) uses a futex priority-inheritance race. Kernel configuration, vendor backports and device-specific profiles affect both methods. See the sister project's overview for more details.
What temporary root can do
- Grant root to approved apps when the loader provides a compatible manager.
- Run some compatible modules during the session.
- Be run again after a full reboot if the exact build is still supported.
What temporary root cannot do
- Unlock the bootloader or allow unsigned custom ROMs, recoveries or kernels to be flashed.
- Guarantee that banking apps, Play Integrity or Knox services will work.
- Undo files, apps or settings changed during the session just by rebooting.
Soft reboot vs full reboot
A full reboot ends the active root session. Disable any loader's start-on-boot option first if you do not want it to run the exploit again. Files and settings changed while rooted may remain.
A soft reboot restarts Android without normally restarting the kernel, so it usually keeps a late-loaded root session. Some tools can fail or trigger a full reboot; follow the loader's instructions.
Check your device
Record your model, firmware build and full kernel release, then compare them with the loader's support rules. Some tools match an exact build; others use a documented kernel profile. Settings > About phone shows the model and build; a terminal or ADB can show the kernel. An update can change support, so check again before running a tool after an OTA.
Find the exact details with ADB
adb shell getprop ro.product.model
adb shell getprop ro.product.device
adb shell getprop ro.build.display.id
adb shell getprop ro.build.version.release
adb shell uname -rSave the output before starting. A kernel-interface label such as android14-6.1 does not necessarily mean the phone runs Android 14.
Find device and tool information
Use the maintained sections of Awesome Temporary Root to find support information and the original loader instructions.
| Looking for | Sister project sections |
|---|---|
| Device support | All devices · Live upstream tables |
| Samsung or Pixel | Samsung Galaxy · Google Pixel |
| OnePlus, OPPO or Realme | OnePlus, OPPO and Realme |
| vivo or iQOO | vivo and iQOO |
| Other manufacturers | Xiaomi, ASUS, Nothing and Honor · Amazon, NVIDIA and Meta |
| Tools and modules | Tools and managers · Modules |
| Help | Quick start · Troubleshooting and FAQ |
| Contribute | Report a result · Sources |
Device support at a glance
Read the testing status as well as the model name. A tested build, an experimental run and a generated profile are not interchangeable. Confirm that your firmware and kernel match the loader's current requirements; do not force a similar but unsupported profile.
Run a session safely
- Back up and plan recovery. Know how to reach your device's recovery or service options before starting.
- Install the documented tool and dependencies. Download from the project's own release page. Some loaders need Shizuku or ADB and a specific KernelSU-compatible manager; others provide a shell only.
- Run the tool for your exact target. Follow its instructions and do not force an unsupported profile. Do not launch another attempt while one is still running; follow its retry instructions.
- Verify root before adding modules. Use the loader or manager's check. If a tool provides
su, you can also verify it with ADB below. - Test modules one at a time. Leave autorun off until you know they work, and keep the loader's module-disable option available if it has one.
Verify a manager-based session with ADB
adb shell su -c idA successful result starts with uid=0(root). A shell-only loader may use a different verification command; follow its documentation.
Modules and managers
Use the manager named by your loader. A manager alone does not exploit the device, and not every module works with temporary root. See the module reports, but treat them as device-specific rather than guarantees.
CAUTION
Do not use a manager's install, flash or patch-boot-image action on a locked device. Writing a modified protected image can make it unbootable.
Why some modules do not work
A late-loaded KernelSU session starts after Android has booted, so modules that depend on early-boot stages may not run correctly. A compatible manager also needs the ksud binary expected by its loader; some loaders require it to be packaged as libksud.so.
If a run fails
- Unsupported or not vulnerable: stop and recheck the exact build. Do not downgrade firmware to force support.
- Panic or reboot: let the device start normally and follow the loader's retry instructions. A failed run is not proof that another attempt is safe in the same boot.
- Success reported but no root: check that the named manager is installed and follow the tool's troubleshooting instructions.
- Bootloop after a module: full reboot, disable loader autorun and use its module-disable option if available. Use safe mode if needed; if the device cannot start, follow its recovery instructions or seek service support. Do not delete
/data/adb; it contains ADB keys and other data and does not stop active root.
Temporary root vs normal root
Temporary root is an access method, not a separate root framework. Some loaders use KernelSU for the session.
| Normal Magisk, KernelSU or APatch install | DirtyFrag or GhostLock | |
|---|---|---|
| Bootloader | Normally unlocked | Can stay locked on supported builds |
| Setup | Patch and flash the appropriate image | Run a matching loader; no boot-image flash |
| Full reboot | Root normally returns | Active root ends; a loader can re-run it |
| Modules | Depend on the framework and device | Compatible session modules only; some loaders offer a shell only |
| Updates | May need a new patched image | May patch the vulnerability or break the loader |
Safety and security
Use tools only on devices you own or are authorized to modify. Check the project's release and recovery instructions, and verify published hashes or signatures when available. A locked bootloader does not guarantee fuse behavior, app compatibility or protection from a bad root module.
FAQ
Can I keep temporary root after an update?
Maybe. An OTA can patch the vulnerability or change the kernel profile. Check the loader's support list before updating and again before running it.
How do I stop temporary root?
Disable any automatic re-run in the loader, then perform a full reboot. Review and undo any files or settings changed during the session separately.
Do I need a computer?
It depends on the loader. Some work on-device; others need ADB, Shizuku or an initial computer setup.
Will banking apps or Knox work?
There is no guarantee. Results depend on the device, modifications and each app's checks.
Related pages
- Awesome Temporary Root (GitHub) - maintained support information and module reports
- Bootloader Mods & Temporary Root - compare temporary root with bootloader modifications
- Root Framework Comparison - compare standard root installations
- Legal & Safety · Troubleshooting