Unrooting a modern Android phone means removing Magisk (or another root solution) and putting the phone’s original, factory-signed boot image back. Done correctly, it takes a few minutes, keeps your data, and restores normal OTA updates. Done carelessly — with the wrong firmware or a random “unroot app” — it can leave the phone bootlooping or still failing app integrity checks. This guide covers the safe methods for the Magisk era, in the order you should try them.

Before you start: back up and identify your setup
Unrooting normally does not erase your data, but any firmware flashing carries risk, so back up photos, chats, and important files first — our complete Android backup guide walks through it. Then note three things: your exact phone model, your current build number (Settings > About phone), and which root tool you use. This guide assumes Magisk, by far the most common. KernelSU and APatch users should use their own app’s uninstall option or flash the stock boot image as described in Method 3. Also disable or remove any modules that modify system behaviour before you begin, and make sure the battery is comfortably charged.
Method 1: Magisk app — Complete uninstall (recommended)
If the Magisk app still opens, this is the cleanest route. Magisk stores a backup of your original boot image when it is first installed, and Complete uninstall writes that stock image back, removes all modules, and reboots the phone without root.
- Open the Magisk app.
- Tap Uninstall Magisk.
- Choose Complete uninstall and confirm the warning that modules and root will be removed.
- Let the phone reboot (restart it yourself if it does not).
- Verify: the Magisk app should be gone or report that Magisk is not installed, and a root checker should show no root access.
Do not confuse this with Restore images, the other option in the same menu. Restore images only puts the stock boot image back temporarily — it exists so you can take an OTA update and then reinstall Magisk to the inactive slot. If your goal is to stay unrooted, Complete uninstall is the one you want. If Magisk shows “Stock backup doesn’t exist!”, its saved stock image is missing (common after manual flashing or a factory reset); skip to Method 3. Background on how Magisk works is in our Magisk guide.
Method 2: Flash the uninstaller from a custom recovery
If the Magisk app will not open but you have a custom recovery such as TWRP, you can rename the Magisk APK to uninstall.zip and flash it from recovery. This runs Magisk’s own uninstaller, which restores the backed-up stock images and removes Magisk’s files. Only use the APK from Magisk’s official GitHub releases — never a copy from an APK site. If you do not have a custom recovery, do not install one just for this; Method 3 is safer.
Method 3: Flash the stock boot image manually
This is the universal fallback. Download the official factory firmware that exactly matches your phone’s model and current build, extract the stock boot image, and flash it with fastboot. Phones that launched with Android 13 or later keep the ramdisk in init_boot.img instead of boot.img, so flash the image your device actually uses — Magisk’s install screen tells you which partition it patched. The command is typically fastboot flash boot boot.img (or init_boot), followed by a reboot. Matching the build matters: a boot image from a different software version can cause a bootloop.
Samsung exception: Magisk’s documentation warns Galaxy owners never to restore single partitions (boot, init_boot, recovery, vbmeta) to stock, because it can brick the device. On Samsung, flash the complete official firmware with Odin instead. Our guide to Samsung download mode covers getting the phone ready for Odin.
Method 4: Full stock firmware flash (the nuclear option)
If the phone is unstable, modified beyond Magisk (custom kernel, edited system files, leftover modules), or the methods above fail, flash the complete stock firmware for your exact model and build. This returns every partition to factory state. Tools differ by brand — Odin for Samsung, fastboot with factory images for Pixel, brand flash tools elsewhere. A full flash usually preserves user data if you use the non-wiping option, but treat it as destructive anyway and keep your backup current. Never flash firmware meant for a different model or region variant; that is the most common way people brick phones during unrooting.
What does NOT unroot your phone
- A factory reset alone. Magisk lives in the boot image, not your data partition, so resetting erases your files and leaves root fully intact.
- Deleting the Magisk app. The app is just the manager; the patched boot image keeps granting root.
- “Unroot” apps from the Play Store. One-tap unroot apps date from the SuperSU era and cannot restore a Magisk-patched boot image. Avoid them.
- Manually deleting su files with a root file manager. This corrupts the setup and can cause bootloops without restoring stock signatures.
After unrooting: OTA updates, Play Integrity and banking apps
Once the stock boot image is back and Magisk is fully removed, OTA updates work normally again — check Settings > Software update. Play Integrity is more nuanced. Unrooting restores stock images, which fixes the checks that root itself was failing, and many banking and payment apps will work again. But an unlocked bootloader still fails the strongest Play Integrity verdicts, and some finance apps enforce those. If a banking app still refuses to run on an unrooted phone, the remaining cause is usually the unlocked bootloader, not leftover root. Relocking the bootloader is a separate, riskier step: it wipes the phone and can permanently brick it if any partition is still modified, so only relock after a verified full stock flash — and only if you truly need strong integrity. If you are unrooting temporarily to take an update, Magisk’s Restore images + install-to-inactive-slot flow is the intended path; our rooting guide explains the other side of that process.
FAQ
Will unrooting delete my data? Complete uninstall and a stock boot flash keep your data. A full firmware flash with a wipe, or relocking the bootloader, does not — back up first either way.
My phone bootloops after unrooting. What now? Re-flash the stock boot/init_boot image that matches your exact build, or do a full stock firmware flash. A mismatched image is the usual cause.
Can I root again later? Yes. Unrooting is reversible; you can reinstall Magisk whenever you like, as long as your bootloader remains unlocked.
Bottom line
Start with Magisk’s Complete uninstall, fall back to a stock boot image flash if the backup is missing, and reserve full firmware flashing for messy setups. Skip factory resets and unroot apps — they do not touch the boot image where root actually lives. Unrooted and on stock images, your phone updates normally again, and most apps that objected to root will accept it.