Users often get root access on their devices to expand functionality, install custom firmware or block ads. However, over time, the need for elevated privileges may no longer exist, or there may be a need to return the smartphone to its factory condition for sale or warranty service. The reverse process of rooting is called โunrootingโ and requires a careful approach to the file system.
Simply removing the icon of a manager application, such as SuperSU or Magisk Manager, from the desktop is not enough to completely disable superuser rights. Binary files of the modified bootloader and system libraries remain in the device's memory, which can lead to errors in the operation of banking applications or the inability to pass security checks SafetyNet. In this material we will look at all the current methods for completely removing root access.
โ ๏ธ Attention: Any manipulations with system rights and the bootloader carry the risk of turning the device into a โbrickโ. Before starting the procedure, be sure to create a complete backup of your important data and make sure that the battery is charged at least 60%.
Why do you need to remove root access at all
The main reason why smartphone owners want to remove root access is to restore the manufacturer's warranty. Most service centers refuse free repairs if they find traces of software tampering. The presence of a modified bootloader or system files is sufficient grounds for denial of service.
In addition, many modern applications, especially banking (Sberbank Online, Tinkoff) and payment systems (Google Pay, Mir Pay), categorically refuse to work on rooted devices. Developers are implementing complex security mechanisms that block software from launching when third-party access to the system core is detected. Removing the root is often the only way to return the usual functionality.
It is also worth noting the issue of security. Having open access to the system partition increases the device's vulnerability to malware. If you no longer use specific tweaks, it is better to close this โdoorโ to attackers. Returning to stock firmware ensures operating system stability Android and receiving official security updates.
Preparing the device for the unroot procedure
Before you begin the process of removing superuser rights, you need to perform a number of preparatory steps. This will minimize the risk of data loss and allow you to roll back changes in case of unexpected failures. Ignoring this step may result in a cyclic reboot of the device.
First of all, make sure that you have access to a computer and a working USB cable. You will also need to download official drivers for your smartphone model from the manufacturer (for example Samsung USB Drivers or Xiaomi ADB/Fastboot Tools). Without the correct drivers, the computer will not be able to interact correctly with the phone in recovery mode.
Be sure to enable USB debugging mode. To do this, go to Settings โ About phone and click 7 times on the item Build numberto activate the developer menu. Then in the menu that appears For developers activate the switch USB debugging. This is critical for using ADB tools.
- ๐ฑ Make a complete backup of your contacts, photos and documents to an external drive or to the cloud.
- ๐ Charge your smartphone battery to a level of at least 70-80%.
- ๐ป Install the platform Android SDK Platform-tools on your computer to work with ADB.
โ ๏ธ Attention: Menu interfaces and item names may vary depending on the Android versions and manufacturer's shell (MIUI, OneUI, ColorOS). If you do not find the item you need, check the official documentation for your specific model.
Removing root access through the SuperSU application
If your smartphone was rooted using the classic manager SuperSU, the removal process is as automated as possible. The developer has provided a built-in function to completely clean the device from traces of rooting. This method is suitable for devices with an unlocked bootloader, but wishing to return to stock state.
Launch the application SuperSU on your device. Go to the Settings (Settings) tab. Scroll down the list to the โCleanupโ section and select Full unroot. The system will ask for confirmation of the action, since this process is irreversible without re-flashing.
After confirmation, the application will delete the binary file su, delete the SuperSU application itself and restore the original boot image (boot image) if it was saved during installation. The device will automatically reboot. To check the result, you can install the application Root Checker from the Google Play store - it should report that you do not have superuser rights.
If, after using the "Full unroot" function, the phone goes into an endless reboot (bootloop), you will need to reflash the device via Recovery or Fastboot mode using the official stock image.
How to remove Magisk and return the original bootloader
On modern devices, the de facto standard is to use Magisk. This solution works in a systemless manner, which makes the complete removal process more difficult than older methods. Simply deleting the application is not enough, since the patched boot image remains in the boot.
Open application Magisksection. On the main screen, in the center, you will see a button labeled Remove Magisk (Uninstall). Click on it. In the menu that appears, select the option Full removal (Complete Uninstall). The manager will automatically find the original boot image in the backup or download it, replace the modified file and remove all root access components.
After the process is completed, the smartphone will reboot. If you modified the bootloader manually via Fastboot using the command fastboot flash boot magisk_patched.img, then removal through the app may not work correctly. In this case, you need to manually flash the stock one, extracted from the official firmware for your software version. boot.img, extracted from the official firmware for your software version.
fastboot flash boot stock_boot.img
fastboot reboot
It is important to understand that after this procedure, the Unlocked Bootloader may remain in this state if you do not lock it back. To perform a full factory reset on some devices (for example Pixel or Xiaomi), a separate lock command is required which will erase all data.
โ๏ธ Magisk Uninstall Checklist
Resetting to factory settings and its effectiveness
Many users mistakenly believe that a regular factory reset (Factory Reset) completely removes root access. This is wrong. Resetting clears only the user data section (/data), removing apps, photos and settings. However, the system files and the modified bootloader remain intact.
However, performing a reset is a mandatory step after using specialized unroot utilities. This allows you to remove remnants of privilege manager configuration files and clear caches that may contain old permissions data. You can perform a reset through the settings menu or through Recovery mode.
To enter Recovery mode, you usually use a key combination when the phone is turned off (most often Volume Up + Power). In the recovery menu, select Wipe data/factory reset. Confirm the action and wait for the process to complete. After that, select Reboot system now.
| Removal method | Deletes the su binary | Restores boot.img | Requires a PC | Risk of data loss |
|---|---|---|---|---|
| SuperSU (Full Unroot) | Yes | Yes (automatically) | No | No (but backup is recommended) |
| Magisk (Uninstall) | Yes | Yes (automatically) | No | No |
| Manual firmware (Fastboot) | Yes | Yes (manually) | Yes | High (for errors) |
| Factory Reset | No | No | No | Yes (deletes user files) |
โ ๏ธ Attention: Performing a Factory Reset does not replace the unroot procedure. If you sell the phone after a normal reset, the new owner will easily restore root access, since system vulnerabilities will remain in place.
Returning stock firmware via Fastboot and ODIN
The most reliable and radical way to remove any traces of root access is to completely flash the device with official software. This method guarantees the restoration of the bootloader, recovery and all system partitions to the factory state. It is necessary if automatic methods do not work or the device has been seriously modified.
For processor-based devices Samsung Exynos the app is used Odin. You need to download the official firmware (four files: BL, AP, CP, CSC) for your specific model and region. Connect your phone in Download Mode (usually Volume Down + Power with a cable connected) and upload files to the appropriate fields of the Odin app.
For devices from other manufacturers (Xiaomi, Pixel, OnePlus), the mode is used Fastboot. Download the firmware image (Fastboot ROM), unpack it and connect the phone in bootloader mode. Run the firmware script (often called flash_all.bat for Windows or flash_all.sh for Linux/Mac). This process will completely erase the modified partition boot and return the stock one. Recovery.
What is CSC in Samsung firmware?
The CSC (Consumer Software Customization) file contains regional settings and operator data. When flashing via Odin, selecting the HOME_CSC file will save your data, and the usual CSC will completely clear the device. To guarantee the cleanliness of the system, it is better to use a full reset via CSC.
After the firmware is completed, the device will reboot into a clean system. Checking through adb shell command su should produce an access error or the message โcommand not foundโ, which confirms the successful removal of superuser rights.
Full flashing with stock image is the only way to reliably hide the fact of rooting from service centers and restore the warranty on 100%.
Frequent problems and questions when disabling root
In the process of removing superuser rights, users often encounter various difficulties. Understanding the nature of these problems helps you avoid panic and choose the right solution. Below are answers to the most common questions that arise when unrooting.
Why does the Root Checker application still show the presence of root access?
This can happen for two reasons. First, you only removed the manager application, but did not restore the original boot image (boot.img). Secondly, there are residual binary files in the system su in folders /system/bin or /system/xbin. In the first case, you need to reflash the boot image, in the second, use a file manager with rights (if you still have them) or reflash the system completely.
Is it possible to remove the root without losing data on the phone?
Theoretically, yes, methods through SuperSU and Magisk (Uninstall button) do not erase user data. However, in practice there is always a risk of failure, which will lead to the need to reset the settings. Therefore, having a backup copy is critical, even if the instructions promise to save the data.
Is the bootloader locked after uninstalling Magisk?
No, uninstalling Magisk does not automatically lock the bootloader. The bootloader status (Locked/Unlocked) and the presence of root access is two different things. To block the bootloader, you need to run the command fastboot oem lock or fastboot flashing lock, but this action will definitely delete all data from the device.
Will banking applications stop working immediately after removing the root?
In most cases, yes, but sometimes additional data clearing of the banking applications themselves is required. Go to Settings โ Applications, find the bank, select Memory and click Clear data. After that, launch the application again.
What to do if the phone went into bootloop after attempting to unroot?
If the device is cyclic reboots, try entering Recovery mode and doing Wipe Cache/Dalvik. If this does not help, the only way out is connecting to a PC and flashing the stock image via Fastboot or Odin in emergency mode.