Unrooting Android removes root access and restores the phone to a stock, unmodified state. This guide covers the main methods—using the Magisk app, restoring a stock boot image, and flashing a factory firmware—so you can pass safety checks, receive OTA updates, or prepare the device for resale.
What You’ll Need
- Your Android phone with a working charge (above 50% recommended)
- A USB cable and a computer (for some methods)
- Backup of any data you want to keep (unrooting can wipe the device)
- ADB and Fastboot tools installed on your computer (for boot image method)
- Your phone’s stock boot image or full firmware file (download from the manufacturer’s support page or a trusted mirror)
Step-by-Step
Method 1: Unroot with the Magisk App (Easiest)
- Open the Magisk app on your phone.
- Tap the Uninstall button at the bottom of the home screen.
- Choose Complete Uninstall to remove root entirely (this restores the stock boot image).
- Confirm when prompted. The phone will reboot automatically.
- After reboot, open the Magisk app again—it should show “Magisk is not installed.”
- Check root status with a root checker app; it should report no root access.
Method 2: Restore the Stock Boot Image (Manual)
- Download the exact stock boot image for your phone model and current Android version.
- Enable Developer Options (Settings → About phone → tap Build number 7 times).
- Enable USB debugging in Developer Options.
- Connect your phone to the computer and verify ADB works:
adb devices - Reboot into bootloader/fastboot mode:
adb reboot bootloader - Flash the stock boot image:
fastboot flash boot boot.img - Reboot:
fastboot reboot - Verify root is gone with a root checker app.
Method 3: Flash Full Factory Firmware (Most Thorough)
- Back up all important data—this method wipes the phone completely.
- Download the full factory firmware for your exact model and region.
- Extract the firmware files to a folder on your computer.
- Boot your phone into fastboot mode (usually Power + Volume Down, or via
adb reboot bootloader). - Run the flash-all script (Windows:
flash-all.bat, Mac/Linux:flash-all.sh) from the extracted folder. - Wait for the script to finish; the phone reboots automatically.
- Set up the phone as new—root is completely gone, along with all data.
Common Mistakes
- Using the wrong boot image—a mismatch between model or Android version causes boot loops. Always match the exact build number.
- Skipping the backup—full firmware flashing erases everything. Back up photos, messages, and app data first.
- Not disabling USB debugging before resale—after unrooting, turn off USB debugging and OEM unlock in Developer Options to fully restore stock security.
- Assuming Magisk uninstall works for all root methods—if you rooted with SuperSU or another tool, use its own uninstaller or flash the stock boot image.
- Interrupting the flash process—a disconnected cable or low battery mid-flash can brick the phone. Keep the cable secure and charge above 50%.
Tips
- After unrooting, check for OTA updates immediately—many phones will offer the latest security patch once the system is verified as stock.
- If you plan to root again later, keep a copy of the stock boot image and the Magisk APK in a safe place.
- For Samsung phones, unrooting often trips Knox (a hardware fuse), which permanently voids warranty and disables some features. This cannot be reversed by unrooting.
- Use the Magisk Uninstall option before any manual method—it’s designed to restore the original boot image automatically.
- After unrooting, clear the cache partition from recovery mode to avoid any leftover system inconsistencies.
Troubleshooting
Phone stuck in a boot loop after unrooting
This usually means the boot image doesn’t match your system. Reboot into fastboot and flash the correct stock boot image again. If it persists, flash the full factory firmware—this will definitely fix it.
Magisk app still shows “Installed”
Open the app, tap Uninstall, and choose Complete Uninstall. If that fails, manually flash the stock boot image as described in Method 2.
OTA updates fail after unrooting
The system partition may still have remnants. Flash the full factory firmware (Method 3) to restore every partition to stock. Also check that the bootloader is locked—some OTA updates require it.
Fastboot doesn’t recognize the phone
Install the proper USB drivers for your phone brand. Try a different USB port or cable. On Windows, run the command prompt as administrator. Ensure USB debugging is enabled before entering fastboot.
Phone says “System UI has stopped” after unroot
This is often caused by leftover system modifications. Wipe the cache partition from recovery mode. If it continues, back up data and perform a factory reset (Settings → System → Reset options).
Can’t find the stock boot image
Search for your exact model number and build number (Settings → About phone). Use the manufacturer’s support page first. If unavailable, full firmware packages often contain the boot image inside—extract it with a ZIP tool.
Frequently Asked Questions
Will unrooting delete my apps and data?
Using the Magisk app’s uninstall option preserves your data. Restoring the stock boot image manually also keeps data. Only flashing full factory firmware wipes everything.
Can I still use banking apps after unrooting?
Yes, unrooting restores the system to a state where most banking apps and Google Pay will work again. If any app still detects root, clear its cache and data, or reinstall it.
Does unrooting void my warranty?
Unrooting itself doesn’t void the warranty, but the bootloader unlock process often does. On Samsung devices, the Knox fuse trips permanently and cannot be reset.
Will I receive OTA updates after unrooting?
Yes, once the system is fully stock and the bootloader is locked, OTA updates should arrive normally. If updates fail, flash the full factory firmware to ensure all partitions are stock.
How long does unrooting take?
Using the Magisk app takes about 2–3 minutes. Manual boot image flashing takes 5–10 minutes. Full firmware flashing can take 10–20 minutes depending on the file size and your computer’s speed.
Do I need to lock the bootloader after unrooting?
Locking the bootloader is recommended for full stock status, especially for OTA updates and security. However, locking it on some devices triggers a factory reset, so back up first. The command is fastboot oem lock (or fastboot flashing lock on newer devices).
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Shockwave Flash Crashes in Firefox
- Fix Microsoft Account Apps Notification in Windows 10
- Printer Problems With macOS Catalina: Fixes
- CSS min(), max(), clamp(): How to Use Them
- How to Partition an External Hard Drive
- How to Transfer PicsArt Stickers from Android to PC