Rooting is reversible — mostly, and in degrees. Whether you are selling the phone, visiting a service centre, fighting an app that will not tolerate any trace of modification, or simply done tinkering, this guide walks through the three levels of unrooting and what each one actually restores.
Level 1: Remove root itself (Magisk uninstall)
Magisk keeps a copy of your stock boot image and its 'Complete Uninstall' option restores it, removing root, modules, and the su daemon in one step. After a reboot the system runs unmodified software again. KernelSU equivalently disappears when the stock kernel is reflashed.
What this fixes: root-detecting apps that only check for su and Magisk packages, OTA updates that refused to install, and general 'return to normal' desires. What it does not fix: the bootloader is still unlocked, the boot-time unlock warning still shows, Play Integrity's device verdict still fails, and any service centre that checks bootloader state will still see it.
Level 2: Full stock firmware restore
Flashing the complete factory firmware package for your exact model wipes away every trace of modification at the software level: custom recovery gone, all partitions back to signed factory images, storage optionally wiped. Use the vendor tool — Odin for Samsung, Mi Flash or fastboot for Xiaomi, fastboot factory images for Pixels — and the firmware matching your region and an equal-or-newer version than currently installed (anti-rollback).
Do this when the phone is being sold, when a repair visit is coming, or when accumulated modifications have made the software flaky and you want a clean slate. On most brands a full restore with a data wipe leaves the device software-identical to factory except for one thing: the bootloader state.
Level 3: Re-lock the bootloader
Re-locking re-enables full Verified Boot enforcement and, on most brands, restores the phone to a state ordinary checks cannot distinguish from never-modified. The command is typically 'fastboot flashing lock' (Xiaomi routes it through Mi Flash's 'clean all and lock' option); the process wipes the device again, and — critically — must only ever be done on complete, correctly flashed stock firmware. Re-locking a bootloader on top of modified or partial firmware is one of the few genuine hard-brick recipes, because the phone will refuse to boot the unsigned software and refuse to unlock again without a booted system.
After re-locking: the boot warning disappears, Play Integrity device verdicts pass again natively, OTAs flow normally, and warranty checks come back clean — with the one permanent exception below.
What unrooting cannot undo
- Samsung Knox: the e-fuse tripped at first unofficial flash reads 0x1 forever; no unroot, reflash, or re-lock resets it.
- Anti-rollback counters: you can restore stock, but not stock older than your current rollback index.
- Unlock history on some brands: Xiaomi's servers remember that an account unlocked a device, even after re-locking.
- Hardware attestation history is not a thing to worry about — strong integrity passes again once properly re-locked on certified firmware.
Which level do you need?
App being difficult? Level 1, plus clearing the app's data. Selling the phone or clean slate? Level 2 with a wipe. Warranty visit or full return-to-factory? Level 3 — done carefully. If the phrase 'hard-brick recipe' above gave you pause, that caution is healthy: re-locking is the one unroot step where a mistake is expensive, and it is included in our unroot and firmware services precisely because of that.
Related Services
Firmware Flashing Service
Remote stock firmware flashing: fix bootloops, remove failed root attempts, change region firmware, upgrade or downgrade Android. Odin, Fastboot, Mi Flash and EDL supported.
Magisk Root Installation Service
Remote Magisk root installation with Play Integrity setup, module configuration, and banking-app support. Systemless root for Samsung, Xiaomi, OnePlus, Pixel and more.
Keep Reading
Does Rooting Void Your Warranty? Brand-by-Brand Reality in 2026
Whether rooting voids your warranty depends on brand and region: Samsung Knox, EU consumer law, Xiaomi and OnePlus policies, and how unrooting before a claim actually works.
OTA Updates After Rooting: How to Update Without Losing Root
Why OTA updates fail or unroot rooted phones, the correct restore-and-repatch routine for Magisk, A/B slot tricks, and what to do when an update already broke root.
Want this done for you?
Our technicians perform everything in this guide remotely while you watch — with a free compatibility check first and a refund if your device is unsupported.
Contact Support