Root Frameworks & Temporary Root
Root methods change fast. Version and activity badges on this page come from GitHub; check the current upstream documentation and device-specific instructions before making changes.
Related guides:
Before you root
Unlocking the bootloader usually wipes data, weakens device security, and can break OTA, warranty, DRM, wallet, banking, and work-profile apps. Keep a stock firmware package and a recovery plan ready.
Current status
| Project | Latest release | Last commit | What to know |
|---|---|---|---|
| Magisk | Image and firmware patching, built-in Zygisk and explicit Superuser grants; check release notes for support | ||
| KernelSU | Manager, tools and KMI-specific LKM assets; check release assets for the target architecture and kernel | ||
| KernelSU Next | Check the fork's kernel requirements and available SUSFS LKM assets | ||
| SukiSU Nova | Formerly SukiSU-Ultra; non-GKI and GKI 1.0 backports, KPM support, built-in SUSFS controls | ||
| APatch | Slow release cadence, Samsung Knox support still listed as "planned" |
Read the badges as a health check: a recent "last commit" means the project is alive, while months of inactivity or a version badge reporting no releases means you should check the repository before trusting any guide that recommends it.
Quick recommendation
| If you want... | Choose | Why |
|---|---|---|
| A broadly documented starting point | Magisk | Broad compatibility and a large module ecosystem; recovery still depends on the device |
| Fewer root traces on a supported device | KernelSU or a variant | Kernel root, only permitted apps see su, easier SUSFS access |
| Kernel-level root with per-app control on a GKI 2.0 device | KernelSU | Root in kernel space, App Profiles restrict UID, groups, capabilities, SELinux |
| Kernel root on a non-GKI or older kernel | Research KernelSU Next or SukiSU Nova | Check each fork's device and kernel requirements; a compatible build is not guaranteed |
| KernelPatch features such as KPM kernel hooks | APatch | ARM64 only, kernel 3.18 to 6.12, needs a strong SuperKey |
| Root without unlocking the bootloader (temporarily) | DirtyFrag or GhostLock | Session-only root on exact vulnerable builds; modified files may persist, and Knox behavior is not guaranteed |
| Maximum reliability for banking, wallet, enterprise, or anti-cheat apps | No root | No framework can guarantee Play Integrity or app-specific checks |
Quick comparison
Temporary root is a method, not a fourth framework. Some loaders use KernelSU by late-loading a compatible module on a supported locked-bootloader build.
| Area | Magisk | KernelSU | APatch | Temporary root (e.g. DirtyFrag / GhostLock) |
|---|---|---|---|---|
| Install model | Patches boot.img, init_boot.img, recovery, or vendor_boot.img | LKM module into the stock kernel, or a KernelSU-enabled kernel | Patches the stock boot.img with KernelPatch | Runs a compatible exploit loader; some late-load KernelSU |
| Bootloader | Normally unlocked | Normally unlocked for standard installation | Normally unlocked | Can stay locked on supported builds |
| Best for | Beginners, daily drivers, module-heavy setups | Power users on GKI devices | KernelPatch use cases and edge cases | Session root on a specific vulnerable build |
| Main requirement | Unlocked bootloader; check upstream Android support | GKI 2.0 (kernel 5.10+) officially; 4.14+ needs a manual kernel build | ARM64, kernel 3.18 to 6.12, CONFIG_KALLSYMS | Exact vulnerable kernel and compatible loader, profile or module |
| Android 17 (API 37) | Check release notes for Android and Zygisk support, plus device compatibility | Check release assets for the target KMI and architecture | Covers 6.12 kernels; 6.18 kernels are out of range | Depends on the exact device and build, not Android version alone |
| Full reboot | Root returns with the required boot sequence; recovery installs need special steps | Root normally returns after standard installation | Root normally returns | Active root ends; some loaders can re-run it |
| Modules | Magisk modules, Zygisk modules | Metamodule-based since v3.0; many Magisk modules need a compatible metamodule | APModule plus KPModule for kernel-level code (metamodule support added to apd) | Compatible session modules if the loader supports them; some provide a shell only |
| Root control | Explicit MagiskSU grants in the Superuser tab | App Profiles with fine-grained privileges | SuperKey-based access control | Depends on loader and manager; some offer only a root shell |
| Hiding / integrity | No built-in hiding (upstream FAQ states this directly) | App Profiles and optional tools; no guarantee | Kernel-level, but no guarantee | Locked bootloader does not guarantee Integrity or app compatibility |
| OTA behavior | Re-patch or use the inactive-slot flow | Depends on device and installation mode | Depends on device and install path | Update may patch the vulnerability or break the loader |
| Troubleshooting | Easiest, largest community | Medium, kernel knowledge helps | Hardest, smallest ecosystem | Device- and loader-specific; failed exploits can crash or reboot |
| Latest Version | Varies by loader |
A full reboot ends active temporary root, but files and settings changed during the session can remain. Check the loader's current target list and back up before use.
Framework notes
Magisk
Best default. Magisk is the most mature and widely documented root solution: MagiskSU, Magisk modules, MagiskBoot, and optional Zygisk for code in app processes.
Choose a channel deliberately: stable or the beta line
. Check the release notes for Android and Zygisk support. The current app can patch supported firmware packages and grants superuser access ahead of time rather than showing interactive root prompts.
Use Magisk when:
- You are rooting for the first time.
- You need the highest chance that guides, modules, and fixes already exist for your device.
- You value a documented module recovery path. Magisk Safe Mode and
adb shell magisk --remove-moduleshave different prerequisites; the command removes all modules and reboots.
Watch out for:
- Patch the correct image for your device on that same device. Never flash a patched image made by someone else.
- Upstream does not hide root. The official FAQ says "Magisk no longer handles root hiding", so hiding is entirely a community-module concern.
- On Samsung, Magisk trips Knox and the first install requires a full data wipe.
KernelSU
Best for supported kernels. KernelSU grants root from kernel space, only permitted apps can see su, and App Profiles allow tighter control than classic superuser prompts.
Install model: LKM keeps the existing kernel and patches the device's verified ramdisk image, often boot or init_boot. Do not choose the partition from the Android version alone. GKI mode replaces the kernel; check the release assets and device-specific instructions before choosing a compatible build. Upstream's GKI build guide is archived.
Variants matter: if the official Manager reports Unsupported, research a device-compatible kernel or variant instead of forcing installation. A different variant is not automatically compatible.
- KernelSU Next: check the fork's requirements and available SUSFS LKM assets for your kernel.
- SukiSU Nova: formerly SukiSU-Ultra; non-GKI and GKI 1.0 backports, a bundled mount engine with optional metamodules, KPM support with compatible kernel configuration, and SUSFS controls.
- BakaSU: metamodule-based, non-GKI hooks, built-in SUSFS management.
Watch out for:
- Official KernelSU uses a metamodule for systemless file mounts; scripts, properties and policy rules can work without one.
- KMI or security-patch-level mismatch can bootloop. Match both.
- Knox protections may block LKM on Samsung. A compatible custom kernel is not guaranteed and installing one may permanently trip Knox.
APatch
Best as an advanced alternative. APatch is KernelPatch-based, runs root control in kernel space, and supports APModule plus KPModule for kernel code injection (inline-hook and syscall-table-hook).
Hard limits, from the upstream README and install docs:
- ARM64 only. Kernel versions 3.18 to 6.12 only, so Android 17 devices on
android17-6.18are not covered. - Kernel 6.6 support is documented as tested only on Xiaomi and OnePlus devices.
- Support for Samsung devices with security protection (Knox) is still listed as "planned".
Use APatch when:
- Your ARM64 device is within the supported kernel range and you need KPM or KernelPatch behavior.
- Magisk and KernelSU are a poor fit for your firmware.
Watch out for:
- APatch always patches
boot.img. Do not patchinit_boot.imgor other partitions. - SuperKey has higher privileges than root. Use a strong key (8 to 63 characters, letters and numbers, no weak keys).
- Release cadence is slow compared with the other two projects.
Device guidance
Choose by bootloader unlockability, firmware availability, kernel support, and recovery options, not by brand alone.
| Device family | Practical guidance |
|---|---|
| Google Pixel | Easiest path. Retail, non-carrier-locked units unlock with fastboot flashing unlock. Magisk for most users, KernelSU if the KMI is supported. |
| Samsung Galaxy | Installing custom boot images can trip Knox permanently. US/Canada variants often lack an unlock option. Samsung protections can complicate standard KernelSU LKM installs, while some exact-build temporary-root loaders use adapted modules. Magisk's first install requires a full data wipe. |
| Xiaomi / Redmi / POCO | Unlocking requires permission through the Mi Community flow. Xiaomi removed the bootloader-unlock application entry from Mi Community (reported December 2025), so confirm the current status for your region and model before relying on it. Magisk remains the usual starting point. |
| OnePlus | Global retail units unlock with a single fastboot oem unlock. Avoid ColorOS/OxygenOS builds ending in .500, .501, or .503: reports from January 2026 say these trip a hardware anti-rollback fuse that permanently blocks downgrades and most unbricking methods. Units converted from ColorOS to OxygenOS generally cannot be unlocked. |
| Nothing | Unlockable with fastboot on retail units. Magisk first, KernelSU if the kernel path is supported. |
| Motorola / ASUS | Unlock policy and firmware access vary by model and region. Get the exact stock images before flashing. |
| OPPO / Realme / vivo / Honor | Bootloader access is the main blocker. OPPO and Realme use a discretionary Deep Test approval app; many models have no official unlock at all. Verify current regional policy before planning root. |
Samsung Knox
On Knox-protected Samsung devices, installing custom binaries can trip the irreversible warranty fuse and break Knox-dependent features such as Samsung Wallet/Pay, Secure Folder, and Samsung Pass. Relocking or flashing stock firmware normally does not restore them. Locked-bootloader temporary root does not guarantee fuse or service behavior.
Play Integrity and root detection
No root framework can promise that banking, wallet, streaming, work-profile, or anti-cheat apps keep working.
- MEETS_BASIC_INTEGRITY can still pass on rooted devices with a clean hiding setup. Many low-risk apps only need this.
- MEETS_DEVICE_INTEGRITY is the verdict most banks and Wallet check. Since May 2025 it requires hardware-backed proof of a locked bootloader on Android 13+, so an unlocked bootloader fails it by design.
- MEETS_STRONG_INTEGRITY adds hardware key attestation plus a security patch from the last 12 months. Treat it as unavailable on an unlocked bootloader.
- Google rotated the platform attestation root in February 2026, which caused new failures in some older app builds.
Community hiding stacks (Zygisk, SUSFS, keybox-based spoofing) are a cat-and-mouse game. See the SUSFS Root Hiding Guide for the current kernel-side approach. If these apps matter more than root, keep one unrooted phone.
SUSFS support depends on the kernel and variant. Switching frameworks or stacking more modules does not guarantee app compatibility; check device support and the risks before making changes.
Sideloading and app installs (2026)
Root users install managers, modules, and tools as APKs, so Google's developer verification rollout matters:
- Enforcement started 30 September 2026 in Brazil, Indonesia, Singapore, and Thailand, across Google Play and several OEM stores. Global expansion across certified devices is planned for 2027.
- In enforced regions, apps from unverified developers no longer install through the normal path. Two paths remain: ADB installs are exempt, and the "advanced flow" (Developer Options, allow apps from unverified developers, restart, one-time 24 hour wait) keeps normal sideloading working.
- Custom ROMs without Google Play Services are not affected.
Practically: keep ADB working on your device, and expect an extra step when installing APKs from GitHub or F-Droid on certified firmware.
Safe install checklist
Before installing or migrating:
Migration guide
Do not stack root frameworks
Switch cleanly. Mixing patched images, modules, and managers from multiple frameworks is a common cause of bootloops and broken OTAs.
Magisk to KernelSU
- Export your module list and app root settings.
- Disable or uninstall risky modules.
- Fully uninstall Magisk or restore the affected stock images using the device-specific procedure. On Samsung, follow Magisk's full-firmware instructions rather than restoring individual partitions.
- Install KernelSU using the verified ramdisk image and partition, or a trusted device-compatible KernelSU-enabled kernel.
- Install KernelSU Manager.
- Install a compatible metamodule if your modules need system-file mounts.
- Reinstall modules one at a time and configure App Profiles.
Magisk to APatch
- Back up your current stock
boot.img. - Fully uninstall Magisk or restore the affected stock images using the device-specific procedure. On Samsung, follow Magisk's full-firmware instructions.
- Confirm kernel support first: ARM64, kernel 3.18 to 6.12,
CONFIG_KALLSYMS. - Patch the stock
boot.imgwith APatch Manager (notinit_boot.img). - Set a strong SuperKey and keep it private.
- Flash the patched
boot.imgand test root before adding modules.
KernelSU/APatch to Magisk
- Remove modules and document app permissions.
- Restore the matching stock images for each affected partition and slot using the device's instructions. If Magisk was previously installed on Samsung, follow its full-firmware recovery procedure instead of restoring individual partitions.
- Patch the correct image with Magisk on the target device; Samsung uses its separate AP-tar workflow.
- Flash, boot, then reinstall only the modules you need.
Decision checklist
Pick Magisk if you are new to rooting, rely on many Magisk or Zygisk modules, or do not know your kernel version.
Pick KernelSU if your device is GKI 2.0 (kernel 5.10+) or has a trusted KernelSU-enabled kernel, you can match KMI and security patch level, and you want App Profiles.
Consider KernelSU Next or SukiSU Nova if official KernelSU does not support your kernel or you want SUSFS. Verify the fork and available builds for your exact device first.
Pick APatch if your device is ARM64 with a 3.18 to 6.12 kernel, you accept the SuperKey risk, and you need KPModule or KernelPatch features.
Pick no root if banking, wallet, enterprise, or anti-cheat reliability matters more than customization, or you cannot restore stock firmware yourself.
FAQ
Which is best overall? Magisk for most users. KernelSU for GKI power users. KernelSU Next or SukiSU Nova for non-GKI kernels. APatch for KernelPatch use cases.
Is Magisk still maintained? Yes. Compare the stable and beta-inclusive
channels with the release notes before updating.
Does Android 17 change the choice? Check each project's release notes and the actual device kernel. Magisk supports Android 17 Zygisk in releases that include that change; KernelSU LKM support depends on the KMI and architecture. APatch's documented kernel ceiling is 6.12, so devices using 6.18 are out of scope.
Which hides root best? None reliably. Magisk upstream explicitly does not handle hiding. Kernel-level solutions plus SUSFS reduce userspace traces, but modern apps use many signals beyond su visibility.
Do Magisk modules work on KernelSU or APatch? Some do, some do not. Mounting method, Zygisk needs, SELinux changes, and service scripts all matter. Test one module at a time.
Will OTA updates work? Sometimes. Keep exact-build stock images and follow the device and framework OTA instructions. A supported A/B update may allow an inactive-slot installation before reboot; root persistence is not guaranteed.
Can I relock the bootloader after rooting? Usually no. Relocking with modified partitions can brick or wipe the device. Return fully stock first and follow device-specific instructions.
Official resources
- Magisk: GitHub · Docs · Install guide · FAQ
- KernelSU: GitHub · Docs · Installation · Metamodules
- KernelSU Next: GitHub
- APatch: GitHub · Docs · Installation · KernelPatch
- Google: Play Integrity verdicts · GKI release builds
- In this repo: SUSFS Root Hiding Guide · Temporary Root Solutions
Final rule
When in doubt, start with Magisk. Pick KernelSU or a variant only if your exact build is supported and hiding or per-app control matters more than module choice.