Magisk guides
Rooting with Magisk follows the same path on every phone: unlock, patch, flash, then keep it working through updates. Start at the step you are on. Each guide follows Magisk's own documentation and says where it comes from.
Last updated 4 sourcesHow we check pages
The path at a glance
The path from a stock phone to a rooted one, and after
- 1Check your phoneCan it be unlocked?
- 2Unlock the bootloaderErases the phone
- 3Patch and flash
init_boot,bootorAP - 4Set upSuperuser, modules, Play Integrity
- 5Keep it workingUpdates, fixes, uninstall
Rooting for the first time
You need an unlocked bootloader, a computer with adb and fastboot, and the stock firmware for the exact build on your phone. Get the Magisk app from its official GitHub release.
-
Find your phone's brand
Whether your phone can be unlocked at all, how to unlock it, where its firmware comes from and which image it uses: guides by brand. Samsung phones on One UI 8 or later, and US and Canada Galaxy models, can't be unlocked.
-
Pick the install method
Three questions decide whether you patch
init_boot.img,boot.img,recovery.imgor a SamsungAPfile: root method checker, or read how to install Magisk. -
Patch a boot image with Magisk
The main install method in Magisk's documentation; no custom recovery needed. Covers finding the stock image, A/B slots and fastboot errors: step-by-step guide.
Which guide do I need?
| If you want to… | Read |
|---|---|
| Root a phone for the first time | Install Magisk, then patch a boot image |
| Find the right firmware and unlock steps for your brand | Device guides |
| Update Magisk, or install an Android update without losing root | Update Magisk and keep root |
| Use banking apps or Google Wallet | Play Integrity and root |
| Recover from a bootloop | Fix a Magisk bootloop |
| Fix "Not Installed", "N/A" or apps not getting root | Root not detected |
| Go back to stock and relock the bootloader | Uninstall Magisk |
After rooting
Update Magisk and keep root after a system update
How to update Magisk with Direct Install, and how to install an Android system update (OTA) without losing root on A/B phones, non-A/B phones and Samsung.
Magisk modules: a maintained catalog and how to use them safely
A catalog of popular Magisk modules with their maintainer, latest release and status, how to install modules safely, and how to recover from a bad one.
Can a Magisk-rooted phone pass Play Integrity?
How Play Integrity verdicts work on a rooted phone: which apps check them, why BASIC can pass, and why Android 13+ DEVICE and STRONG need a locked bootloader.
Banking apps and Google Wallet that detect root
Why banking apps detect a Magisk-rooted phone: app root checks vs Play Integrity, what DenyList and hiding modules can do, and what they can't.
When something goes wrong
Magisk troubleshooting
Fixes for common Magisk problems and error messages: bootloops, Not Installed or N/A, root not granted, patching errors, Zygisk, Play Integrity, lost root.
How to fix a Magisk bootloop
Recover from a Magisk bootloop: automatic Safe Mode, removing modules over ADB, the Safe Mode key timing, or restoring the stock image (not on Samsung).
Magisk installed but root not working
Why Magisk shows Not Installed or N/A, or apps can't get root, and how to fix it: wrong image, hidden stub app, v31.1's removed root prompts, settings.
How to uninstall Magisk
How to remove Magisk completely from the Magisk app, what to do if the app is missing or the phone won't boot, and how to relock the bootloader safely.
Understanding Magisk
How Magisk works
How Magisk works inside: magiskinit, the boot stages and scripts, Safe Mode, module folders and magic mount, Zygisk loading, SELinux, and what v31 changes.
What is Zygisk?
What Zygisk is, how it runs module code inside app processes, how it relates to the DenyList, and how Zygisk Next, ReZygisk and NeoZygisk compare.
Magisk command-line tools
Magisk's command-line tools: which one does what and when to use it, plus the full magisk command reference with DenyList, module and recovery examples.
Magisk compared with KernelSU, APatch and Shizuku
How Magisk compares with KernelSU, APatch and Shizuku: where each one runs, what it needs, modules, Zygisk, OTA updates, and which to pick for your phone.
Magisk support by Android version (Android 6 to 17)
Which Magisk version each Android release needs, from Android 6.0 to 16 QPR2 and 17, with API levels, boot image changes and the exact Magisk changelog line.
Magisk and Zygisk module development
Build a Magisk module: folder layout, module.prop, boot scripts, customize.sh, and the Zygisk API v5 with a minimal C++ module and build steps.
Sources
This page is written from the sources below. If anything here disagrees with them, the upstream source is correct.
- Magisk documentation (topjohnwu)
- Magisk installation guide (topjohnwu)
- Magisk OTA upgrade guide (topjohnwu)
- Magisk FAQ (topjohnwu)
Found a mistake or something out of date? Tell us and we will check it against the source and fix the page. Confirmed corrections are listed in the corrections log.
Report a problem with this page