Obtaining superuser rights opens up unlimited possibilities for the smartphone owner, but often causes unstable operation of the system. Many users decide cancel root access on Androidto return the device to its factory condition, undergo verification of banking applications, or sell the gadget at full price. The de-rooting procedure can be either simple or complex, depending on which method you used to obtain privileges.

Incorrectly removing access rights can lead to the phone turning into a “brick” or losing some functionality. Modern protection systems, such as Google SafetyNet i Play Integrity API, instantly respond to traces of tampering with the system partition. That is why it is important not just to remove the manager application, but to completely clear the system files of modifications.

In this guide, we will look at all the current methods of returning to the stock state. Whether you have an old Magisk, old SuperSU or a custom recovery installed, you will find a working method for your situation. The main thing is to carefully follow the instructions and understand the risks of each step. TWRP, you will find a working method for your situation. The main thing is to carefully follow the instructions and understand the risks of each step.

Preparing the device before removing root

Before taking active steps, you need to perform a number of preparatory measures. Ignoring this step often leads to the loss of personal data or malfunctions of the OS. First of all, create a complete backup of all important files, contacts and messages, since some reset methods involve a complete wipe of data.

Make sure that the battery level is at least 60-70%. The process of removing root access can take time, and a sudden power outage at a critical moment of writing system partitions is fatal. Also enable USB debugging in the developer menu if you plan to use the computer for recovery.

⚠️ Attention: Removing root access does not always guarantee automatic restoration of the factory warranty. Some service centers record the fact that the bootloader has been opened in their databases, regardless of the current state of the software.

Check the model of your device and the installed firmware version. For different manufacturers, such as Xiaomi, Samsung or OnePlus, there may be specific nuances. For example, on some models Samsung a counter is triggered Knox, which cannot be reset programmatically even after completely removing root access.

☑️ Checklist for preparing to remove Root

Done: 0 / 4

Removal method through the Magisk application

The most popular tool for obtaining and managing rights in the modern Android ecosystem is Magisk. If you used it, then the process of returning to the original state has been simplified as much as possible by the developers. You do not need to connect your phone to your computer or reflash the device manually.

Open the application Magisk Manager on your smartphone. In the main menu, in the middle of the screen, you will see a button labeled “Delete” or “Uninstall”. Clicking on it will launch the built-in cleaning script. The system will offer two options: complete removal or restoration of the stock image. Select “Full removal” to remove all traces of modifications.

After confirming the action, the device will automatically begin the process of cleaning system files and reboot. It is important not to interrupt this process and not to press any buttons until the screen turns on completely. As a result, you will get a clean system without superuser rights, but with an unlocked bootloader.

What to do if the delete button is inactive?

If there is no delete button in the Magisk interface, the application may not be installed on the system partition or the sub-binary files are damaged. In this case, try reinstalling the current version of Magisk via Recovery and repeat the procedure again.

It is worth noting that after this procedure, the unlocked bootloader will remain active. For complete secrecy in front of banking applications, this may not be enough, since they often check the status of the bootloader, and not the presence of the su binary file.

💡

Magisk allows you to remove root access in one click, but leaves the bootloader unlocked, which can be seen by advanced security applications.

Recovery via TWRP Recovery

If standard removal through the app is not possible or you want to ensure that the system partition is cleared of all mods, use custom recovery TWRP. This method is more radical and requires a pre-downloaded stock firmware image or a special zip archive to remove root.

Boot the device into recovery mode, usually this is done by using a combination of the volume and power keys. In the menu TWRP go to the installation section. If you have a file unroot.zip or similar script for your model, select it and swipe to confirm the firmware. This will remove superuser files from the system folders.

A more reliable method is to completely flash the stock image. Find on the forum 4PDA or XDA the original firmware for your model. In TWRP clean the Dalvik, Cache, System and Data partitions, and then install the downloaded archive with the factory software. This will return the phone to its “out of the box” state.

  • 📂 Download the exact version of the stock firmware for your model.
  • 🔄 Perform a Full Wipe before installation.
  • ⚡ Do not interrupt the firmware process until the message appears “Success.”
  • 🔌 Connect your phone to the PC to quickly transfer firmware files.

After installation is complete, be sure to do the first startup of the system without an Internet connection to avoid security triggers during the initial setup. Then you can set up the device as new without restoring old backups, which may contain traces of root access.

Full reset and flashing

The most drastic method, which solves 99% of problems associated with system modification, is flashing via a computer using official utilities. For Samsung this is a app Odin, for XiaomiMi Flash Tool, for SonyFlashTool. This method completely overwrites all memory sections, including those where remnants of root access could be hidden.

The process begins by putting the smartphone into download mode (Download Mode or Fastboot). This is usually done by pressing a combination of buttons while the device is turned off. Connect the cable to your computer and launch the manufacturer's official utility. Download the firmware file and click the Start or Flash button.

Manufacturer PC Utility Download Mode Risk of data loss
Samsung Odin Download Mode High (full reset)
Xiaomi Mi Flash Tool Fastboot High (wipe all partitions)
OnePlus MSM Download Tool EDL Mode Critical (bricked recovery)
Google Pixel Android Flash Tool Bootloader/Fastboot Medium (depends on options)

It is important to understand that flashing through official tools often requires an unlocked bootloader, which you may have already unlocked to obtain root-right However, some manufacturers, for example Huawei or new models Xiaomimay require account authorization or a special code to re-lock.

⚠️ Attention: The interfaces of flashing apps and driver requirements change frequently. Before starting the procedure, check the current requirements on the official website of your smartphone manufacturer.
📊 How did you obtain root access?
Through Magisk
Via KingRoot/Towelroot
Through custom Recovery
I don’t remember/I found it already installed

Checking for the absence of superuser rights

After performing all the manipulations, you need to make sure that the rights are really removed and the system is clean. Simply not having a control app icon is not a guarantee. Use specialized diagnostic utilities, such as Root Checker from the Google Play store.

Launch the application and click the test button. If you see a green screen saying that root access was not detected, then the binaries were removed successfully. However, to be sure, try running the commands through the terminal. Install a terminal emulator and enter the command su.

adb shell

su

If you receive the message “permission denied” or “command not found” in response, then access is blocked. If a request to grant rights or a hash symbol appears # instead of a dollar sign $, then there are traces left in the system, and the procedure needs to be repeated more carefully.

💡

For a deep check, use the AIDA64 or Device Info HW application - they will show the status of the bootloader and the presence of a modified boot image (Boot Image).

Possible problems and ways to solve them

In the process of removing root access, users often encounter unexpected difficulties. One of the most common problems is a cyclic reboot (bootloop). This happens if the system files were damaged during the cleaning process or if you tried to unroot a device with an encrypted data partition without first decrypting it.

If the phone is stuck on the logo when booting, try entering Recovery mode again and doing a factory reset (Wipe Data/Factory Reset). In more complex cases, flashing via a computer will be required in Emergency Download (EDL) mode or similar, which may require disassembling the device to close the contacts.

Another common problem is banking applications not working even after root removal. This is due to the bootloader remaining unlocked. In this case, the only solution may be to re-lock the bootloader, but this operation is extremely dangerous and should be performed only on stock firmware, otherwise the device is guaranteed to turn into a brick.

  • 🚫 Bootloop: try resetting via Recovery or flashing it.
  • 🔒 Verification error: check the integrity of the bootloader image.
  • 📉 Resetting settings: sometimes a simple Wipe Data without flashing helps.
  • 🛠 Drivers: make sure that the PC sees the device in Fastboot/Download mode.
⚠️ Attention: An attempt to block the bootloader on custom firmware or if there is a modified boot partition, it will lead to irreversible damage to the device. Do this only on completely stock software.

Frequently asked questions (FAQ)

Will all information be deleted from the phone when you remove root access?

When using the “Full Delete” function in Magisk, the data is usually saved. However, when using methods via Recovery or flashing via a PC, the data is most often completely deleted. Always make a backup copy before starting work.

Can the warranty be returned after unrooting?

You can programmatically return the device to its factory state, but the physical warranty may be voided if the service center finds traces of tampering with the case or triggers (for example, Knox on Samsung) that are not reset by software.

Why does the banking application not work after removing root?

Most likely, your Bootloader remains unlocked. Banking applications check this setting. To solve this, you need to reflash the stock firmware and block the bootloader with the fastboot command, if the manufacturer allows it.

Is it necessary to connect the phone to the computer?

No, it is not necessary. If you have Magisk installed, you can remove permissions directly from your smartphone screen. Connecting to a PC is required only for complex cases, flashing stock software or recovering from errors.

What is the su binary file and where is it located?

This is an executable file that gives superuser rights. Usually it is located in directories /system/bin/, /system/xbin/ or /sbin/. If root is removed correctly, this file must be destroyed.