Skip to content

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 ​

ProjectLatest releaseLast commitWhat to know
MagiskMagisk stable Magisk including betasMagisk last commitImage and firmware patching, built-in Zygisk and explicit Superuser grants; check release notes for support
KernelSUKernelSU releaseKernelSU last commitManager, tools and KMI-specific LKM assets; check release assets for the target architecture and kernel
KernelSU NextKernelSU Next releaseKernelSU Next last commitCheck the fork's kernel requirements and available SUSFS LKM assets
SukiSU NovaSukiSU Nova releaseSukiSU Nova last commitFormerly SukiSU-Ultra; non-GKI and GKI 1.0 backports, KPM support, built-in SUSFS controls
APatchAPatch release KernelPatch releaseAPatch last commitSlow 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...ChooseWhy
A broadly documented starting pointMagiskBroad compatibility and a large module ecosystem; recovery still depends on the device
Fewer root traces on a supported deviceKernelSU or a variantKernel root, only permitted apps see su, easier SUSFS access
Kernel-level root with per-app control on a GKI 2.0 deviceKernelSURoot in kernel space, App Profiles restrict UID, groups, capabilities, SELinux
Kernel root on a non-GKI or older kernelResearch KernelSU Next or SukiSU NovaCheck each fork's device and kernel requirements; a compatible build is not guaranteed
KernelPatch features such as KPM kernel hooksAPatchARM64 only, kernel 3.18 to 6.12, needs a strong SuperKey
Root without unlocking the bootloader (temporarily)DirtyFrag or GhostLockSession-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 appsNo rootNo 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.

AreaMagiskKernelSUAPatchTemporary root (e.g. DirtyFrag / GhostLock)
Install modelPatches boot.img, init_boot.img, recovery, or vendor_boot.imgLKM module into the stock kernel, or a KernelSU-enabled kernelPatches the stock boot.img with KernelPatchRuns a compatible exploit loader; some late-load KernelSU
BootloaderNormally unlockedNormally unlocked for standard installationNormally unlockedCan stay locked on supported builds
Best forBeginners, daily drivers, module-heavy setupsPower users on GKI devicesKernelPatch use cases and edge casesSession root on a specific vulnerable build
Main requirementUnlocked bootloader; check upstream Android supportGKI 2.0 (kernel 5.10+) officially; 4.14+ needs a manual kernel buildARM64, kernel 3.18 to 6.12, CONFIG_KALLSYMSExact vulnerable kernel and compatible loader, profile or module
Android 17 (API 37)Check release notes for Android and Zygisk support, plus device compatibilityCheck release assets for the target KMI and architectureCovers 6.12 kernels; 6.18 kernels are out of rangeDepends on the exact device and build, not Android version alone
Full rebootRoot returns with the required boot sequence; recovery installs need special stepsRoot normally returns after standard installationRoot normally returnsActive root ends; some loaders can re-run it
ModulesMagisk modules, Zygisk modulesMetamodule-based since v3.0; many Magisk modules need a compatible metamoduleAPModule 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 controlExplicit MagiskSU grants in the Superuser tabApp Profiles with fine-grained privilegesSuperKey-based access controlDepends on loader and manager; some offer only a root shell
Hiding / integrityNo built-in hiding (upstream FAQ states this directly)App Profiles and optional tools; no guaranteeKernel-level, but no guaranteeLocked bootloader does not guarantee Integrity or app compatibility
OTA behaviorRe-patch or use the inactive-slot flowDepends on device and installation modeDepends on device and install pathUpdate may patch the vulnerability or break the loader
TroubleshootingEasiest, largest communityMedium, kernel knowledge helpsHardest, smallest ecosystemDevice- and loader-specific; failed exploits can crash or reboot
Latest VersionMagisk releaseKernelSU releaseAPatch releaseVaries 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 Magisk stable or the beta line Magisk including betas. 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-modules have 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.18 are 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 patch init_boot.img or 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 familyPractical guidance
Google PixelEasiest path. Retail, non-carrier-locked units unlock with fastboot flashing unlock. Magisk for most users, KernelSU if the KMI is supported.
Samsung GalaxyInstalling 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 / POCOUnlocking 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.
OnePlusGlobal 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.
NothingUnlockable with fastboot on retail units. Magisk first, KernelSU if the kernel path is supported.
Motorola / ASUSUnlock policy and firmware access vary by model and region. Get the exact stock images before flashing.
OPPO / Realme / vivo / HonorBootloader 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 ​

  1. Export your module list and app root settings.
  2. Disable or uninstall risky modules.
  3. 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.
  4. Install KernelSU using the verified ramdisk image and partition, or a trusted device-compatible KernelSU-enabled kernel.
  5. Install KernelSU Manager.
  6. Install a compatible metamodule if your modules need system-file mounts.
  7. Reinstall modules one at a time and configure App Profiles.

Magisk to APatch ​

  1. Back up your current stock boot.img.
  2. Fully uninstall Magisk or restore the affected stock images using the device-specific procedure. On Samsung, follow Magisk's full-firmware instructions.
  3. Confirm kernel support first: ARM64, kernel 3.18 to 6.12, CONFIG_KALLSYMS.
  4. Patch the stock boot.img with APatch Manager (not init_boot.img).
  5. Set a strong SuperKey and keep it private.
  6. Flash the patched boot.img and test root before adding modules.

KernelSU/APatch to Magisk ​

  1. Remove modules and document app permissions.
  2. 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.
  3. Patch the correct image with Magisk on the target device; Samsung uses its separate AP-tar workflow.
  4. 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 Magisk stable and beta-inclusive Magisk including betas 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 ​

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.