Skip to content

Magisk vs KernelSU vs APatch

Root frameworks change quickly. Use this page to choose a method, then verify device-specific instructions and current requirements in the official docs before flashing anything.

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 recovery plan ready.

Quick recommendation โ€‹

If you want...ChooseWhy
The safest default for most devicesMagiskBroad compatibility, largest module ecosystem, easiest troubleshooting
Kernel-level root with strong per-app controlKernelSURoot runs in kernel space; App Profiles can restrict UID, groups, capabilities, and SELinux rules
A KernelPatch-based alternativeAPatchUseful on compatible ARM64 devices, especially when you want APModule/KPModule support
Maximum reliability for banking, wallet, enterprise, or anti-cheat appsNo rootNo framework can guarantee Play Integrity or app-specific checks

Quick comparison โ€‹

AreaMagiskKernelSUAPatch
Install modelPatches the correct boot-related image for your deviceUses a supported kernel path, usually GKI/LKM or a built kernelPatches the stock boot.img using KernelPatch
Best forBeginners, daily drivers, module-heavy setupsPower users, developers, supported GKI/custom kernelsAdvanced users and edge cases
Main requirementUnlocked bootloader + exact stock imageSupported kernel/KMI path; Manager must show supportARM64 + KernelPatch-compatible kernel + required KALLSYMS config
ModulesMagisk modules, Zygisk modulesMetamodule-based system; many Magisk modules need a compatible metamoduleAPModule plus KPModule for kernel-level code
Root controlApp-based MagiskSU promptsApp Profiles with fine-grained privilegesSuperKey-based access control
Hiding / integrityCommunity tooling only; no guaranteesOften less visible to apps, but no guaranteeOften less visible to apps, but no guarantee
OTA behaviorUsually needs restore/re-patch or inactive-slot flowLKM setups can be more OTA-friendly, but not guaranteedOTA support depends on device and install path
TroubleshootingEasiest; largest communityMedium; kernel knowledge helpsHardest; smaller ecosystem
Latest VersionGitHub ReleaseGitHub ReleaseGitHub Release

Framework notes โ€‹

Magisk โ€‹

Best default. Magisk is the most mature and widely documented root solution. It provides MagiskSU, Magisk modules, MagiskBoot, and optional Zygisk for running code in app processes.

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 want the simplest recovery path if a module bootloops the device.

Watch out for:

  • You must patch the correct image for your device (boot.img, init_boot.img, or recovery image depending on layout).
  • Do not flash patched images made by someone else.
  • Root hiding is not a built-in guarantee; Play Integrity and app detections change constantly.

KernelSU โ€‹

Best for supported kernels. KernelSU grants root from kernel space and lets only permitted apps access or see su. Its App Profiles allow tighter control than classic app-based superuser prompts.

Use KernelSU when:

  • Your device/kernel is supported, or you can build/use a trusted KernelSU-enabled kernel.
  • You want fine-grained root profiles and kernel-level control.
  • You are comfortable with KMI, boot images, and kernel-specific recovery.

Watch out for:

  • Module mounting is handled by metamodules, so fresh installs need a suitable metamodule for systemless modifications.
  • Kernel/KMI mismatch can bootloop.
  • Some OEM security stacks and kernels may block specific install modes.

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.

Use APatch when:

  • Your ARM64 device meets APatch requirements.
  • You specifically need APModule/KPModule or KernelPatch behavior.
  • Magisk or KernelSU is not a good fit for your firmware.

Watch out for:

  • APatch patches boot.img; do not patch init_boot.img or random images.
  • SuperKey is higher-risk than a normal root password: use a strong, private key.
  • Compatibility depends heavily on kernel config and device/OEM behavior.

Device guidance โ€‹

Choose by bootloader unlockability, firmware availability, kernel support, and recovery options - not by brand alone.

Device familyPractical guidance
Google PixelMagisk is usually easiest. KernelSU is good if a supported kernel path exists.
Samsung GalaxyResearch carefully. Installing root can permanently trip Knox-related protections, and some regional variants cannot unlock. KernelSU LKM may not work on Knox-protected devices.
Xiaomi / Redmi / POCOMagisk is the usual starting point. KernelSU/APatch depend on ROM, kernel, and bootloader status.
OnePlus / NothingGenerally root-friendly when unlockable; Magisk first, KernelSU if the kernel path is supported.
Motorola / ASUSUnlock policy and firmware access vary by model/region. Keep exact stock images before flashing.
OPPO / Realme / vivo / HonorBootloader access is often the main blocker. Verify current regional policy before planning root.

Samsung Knox

On Knox-protected Samsung devices, rooting/custom binaries can permanently break Knox-dependent features such as Samsung Wallet/Pay, Secure Folder, and Samsung Pass. Relocking or flashing stock firmware normally does not restore them.

Play Integrity and root detection โ€‹

No root framework can promise that banking, wallet, streaming, work-profile, or anti-cheat apps will keep working.

  • Basic checks may pass or fail depending on ROM, fingerprint, root traces, and current detections.
  • Device/strong integrity are much harder because they depend on Google/OEM trust signals such as verified boot state, certified firmware, and hardware-backed proof.
  • Community modules may help temporarily, but they are a cat-and-mouse game. Do not buy a device or choose a framework based only on bypass claims.

If those apps matter more than root, keep one unrooted phone.

Safe install checklist โ€‹

Before installing or migrating:

  • [ ] Back up internal storage and app data.
  • [ ] Download the exact current firmware for your build.
  • [ ] Save stock boot.img, init_boot.img, vendor_boot.img, vbmeta.img, and recovery image if present.
  • [ ] Confirm bootloader unlock steps and whether unlock wipes data.
  • [ ] Confirm fastboot/download-mode access and restore commands.
  • [ ] Read your device forum/group for known bootloops, slot issues, and OTA quirks.
  • [ ] Install only one root framework at a time.

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 โ†’ KernelSU โ€‹

  1. Export module list and app root settings.
  2. Disable/uninstall risky modules.
  3. Restore stock boot-related image or fully uninstall Magisk.
  4. Install the KernelSU-compatible kernel/LKM path for your device.
  5. Install KernelSU Manager.
  6. Install a compatible metamodule if you need systemless modules.
  7. Reinstall modules one at a time and configure App Profiles.

Magisk โ†’ APatch โ€‹

  1. Back up and keep your current stock boot.img.
  2. Fully uninstall Magisk or restore stock boot image.
  3. Patch the stock boot.img with APatch Manager.
  4. Set a strong SuperKey and keep it private.
  5. Flash the patched boot.img.
  6. Test root before adding modules.

KernelSU/APatch โ†’ Magisk โ€‹

  1. Remove modules and document app permissions.
  2. Restore stock boot-related images or flash the ROM's clean kernel/boot image.
  3. Patch the correct image with Magisk on the target device.
  4. Flash, boot, then reinstall only needed modules.

Decision checklist โ€‹

Pick Magisk if any of these are true:

  • You are new to rooting.
  • You rely on many Magisk/Zygisk modules.
  • You want the largest support community.
  • You are unsure what kernel your device uses.

Pick KernelSU if all of these are true:

  • Your device has a known-good supported kernel path.
  • You understand KMI/kernel compatibility.
  • You want stronger per-app root isolation and profiles.

Pick APatch if all of these are true:

  • Your device is ARM64 and APatch-compatible.
  • You understand the SuperKey risk.
  • You need APModule/KPModule or KernelPatch features.

Pick no root if:

  • Banking/wallet/enterprise/anti-cheat reliability matters more than customization.
  • You cannot restore stock firmware yourself.
  • Losing data or warranty is unacceptable.

FAQ โ€‹

Which is best overall?
Magisk for most users. KernelSU for supported-kernel power users. APatch for advanced KernelPatch use cases.

Which hides root best?
None reliably. Kernel-level approaches can reduce some userspace traces, but modern apps use many signals beyond su visibility.

Do Magisk modules work on KernelSU/APatch?
Some do, some do not. Mounting method, Zygisk needs, SELinux changes, and service scripts matter. Test one module at a time.

Will OTA updates work?
Sometimes. Always assume root may need to be restored after OTA and keep stock images for both slots when relevant.

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 - unless your device community specifically recommends KernelSU or APatch for your exact model, ROM, and kernel.