Many smartphone users at one time decided to take a risky step - obtain root access for complete control over the system. This opened up opportunities for removing system garbage, installing custom kernels, and fine-tuning the interface. However, over time, the situation changes: banking applications stop working, OTA updates do not arrive, and account security is at risk.

Removing superuser rights and returning the device to its original state is a completely doable task, but requires care. The process depends on the method by which privileges were obtained and what version of the operating system you are using. In this article we will look at all the current methods of decoupling root, from simple settings in the menu to complete flashing of the device via Fastboot.

Restoring the factory state is often necessary before selling the gadget or to pass bank security checks. Incorrect actions can lead to โ€œbrickingโ€ the phone, so follow the instructions sequentially.

Reasons for giving up superuser rights

The decision to remove root accessis rarely spontaneous. Most often, it is dictated by tightening security policies on the part of application manufacturers and banking institutions. Modern financial services use complex algorithms for detecting modified firmware.

If your device has access at the kernel level, the bank application will simply refuse to launch, citing a compromised environment. This is done to protect your funds from potential data interception by malware that could be installed along with rooting utilities.

In addition to financial restrictions, there are other compelling reasons to return everything as it was:

  • ๐Ÿ”’ Data security: the presence of vulnerabilities in custom kernels can give hackers access to your passwords and correspondence.
  • ๐Ÿ“‰ Loss of warranty: many service centers refuse free repairs if traces of tampering with the system partition are detected.
  • ๐Ÿ”„ Operation stability: custom recovery and modified system files often cause crashes, freezes and rapid battery drain.
  • ๐Ÿšซ Blocking streaming services: Netflix and other platforms may reduce playback quality to SD due to violation of DRM standards.
โš ๏ธ Attention: The procedure for removing rights can lead to the loss of all user data. Before starting any manipulations, be sure to create a complete backup copy of contacts, photos and documents on external media or in the cloud.
๐Ÿ“Š What is your main reason for removing root access?
Banking applications do not work
I want to sell phone
The system is unstable
I just want to return the warranty

Preparing the smartphone for the unbinding procedure

Before you begin removing administrator rights, you need to make sure the device is ready. Chaotic actions without preliminary preparation are a sure way to obtaining a non-working โ€œbrickโ€. Make sure that the battery charge is at least 60-70%, as a sudden power outage while writing system partitions is fatal.

You will need to check the current status of the bootloader. In most cases, to completely clear root traces, an unlocked bootloaderis required, but sometimes it needs to be locked back for banking apps to work correctly. Find out your processor model, as the tools for Snapdragon and MediaTek are different.

Download and install the ADB and Fastboot drivers on your computer. Without them, interaction with the phone in debugging mode will be impossible. Also find the original firmware for your specific model on the manufacturerโ€™s official website - you may need it as a last resort.

โ˜‘๏ธ Preparing to remove root access

Done: 0 / 5

Do not forget to disable all antiviruses on your PC, as they may falsely respond to system utilities for working with the bootloader. Connect the cable only to the USB 2.0 ports on the rear panel of the system unit to avoid voltage problems.

Removing root through application settings (SuperSU and Magisk)

The easiest and safest way to remove root accessis available to those who have used popular managers like SuperSU or Magisk. These apps have built-in functions for completely removing themselves from the system, which automatically deprives the phone of superuser privileges.

For users SuperSU the process is as transparent as possible. You need to go to the application settings, scroll to the bottom of the list and find the item โ€œFull Unrootโ€. After confirming the action, the app will delete the su binary files and restore the stock boot image.

Owners Magisk should act differently. In the main menu of the application, opposite the "Magisk" item, the "Uninstall" button is often displayed. When clicked, select the "Complete removal" option. The manager will clear all modifications and reboot the device to a clean state.

What to do if there is no delete button?

If there is no delete button in the Magisk interface, you may have an old version or a modified build installed. Try downloading the latest stable version from the official GitHub repository of the developer topjohnwu and install it over the current one, after which the uninstall function should become available.

It is important to understand that this method only works if the system partition has not been damaged by third-party mods. If you installed custom kernels or modified system libraries manually, simply removing the manager may not return the system to its original state.

Manual removal via file manager and ADB

If standard utilities do not help or were removed earlier, you will have to use more in-depth methods. This method involves manually deleting executable files responsible for privilege escalation through the console or an advanced file manager with access to the system partition.

You will need a file manager with access to root, for example Root Explorer or ES Explorer (in older versions). Go to the directory /system/bin/ and find files named su. Also check the folder /system/xbin/. These files must be permanently deleted.

Next, you should delete the manager application itself. Find the superuser apk file in the /system/app/ or /system/priv-app/folder. It is usually called Superuser.apk or SuperSU.apk. After removing all components, be sure to restart the device.

adb shell

su

mount -o remount,rw /system

rm /system/bin/su

rm /system/xbin/su

chmod -x /system/bin/busybox

reboot

This method requires caution. An error in the file name or the removal of an unnecessary system component can lead to a cyclic reboot (bootloop). Use this method only if you are confident in your actions and understand the structure of the file system Android.

โš ๏ธ Attention: Never delete files whose purpose you do not know. The system partition is critical to running the OS. Damage to access rights (chmod) to system folders can make the phone unusable.
๐Ÿ’ก

Before deleting files via ADB, take a screenshot of the list of files in the /system/bin folder, so that in case of an error you will know which files were deleted and try to restore them from the firmware.

Full reset via flashing the stock image

The most radical, but also the most reliable method of removing root access is a complete flashing of the device in an official manner. This method is guaranteed to remove any traces of interference, including custom recovery, unlocked bootloader and modified partitions.

For devices based on Samsung the app is used Odin and firmware files in the format .tar.md5. For Xiaomi and OnePlus the utility Fastboot and images .imgare often required. Owners MediaTek may need SP Flash Tool.

The process begins by putting the smartphone into a special download mode. This is usually done by holding down a combination of buttons (for example, Volume Down + Power) while the device is turned off. After connecting to the PC, run the firmware app and load the downloaded official image.

Manufacturer Tool Mode downloads Firmware format
Samsung Odin Download Mode .tar / .tar.md5
Xiaomi / Poco Fastboot / Mi Flash Fastboot .tgz (images)
Sony Flashtool / Newflasher Flashmode .ftf / .sin
Pixel / OnePlus Android SDK Platform Tools Bootloader / Fastboot .img / .zip

It is important to select the option to completely clear data (Wipe Data) when flashing the firmware. This will remove all user files but keep the system clean. After the process is completed, the phone will reboot, and you will receive the device in the form in which it left the factory.

Locking the bootloader after removing rights

Many users forget about an important nuance: even after deleting files su, the bootloader status (bootloader) can remain unlocked. For some banking applications and Google Pay (now Google Wallet) services, this is a signal that the device is unsafe.

To completely hide the fact of previous rooting, you need to lock the bootloader back. This is done through the mode Fastboot using a command on the computer. However, please note that this procedure will again erase all data from the internal drive.

Enter the following instructions at the PC command line:

fastboot oem lock

Or, for some newer devices:

fastboot flashing lock

A warning will appear on the phone screen indicating that all data will be deleted. Confirm the action with the volume buttons. After rebooting, the device status will change to "Locked", which increases the level of trust from protected applications.

๐Ÿ’ก

Locking the bootloader is a mandatory final step for those who want to use contactless payment and banking applications without restrictions after removing root.

โš ๏ธ Attention: If you lock the bootloader on a device with custom firmware installed or modified kernel, the phone will not boot. First, make sure that 100% stock firmware from the manufacturer is installed.

Frequently asked questions (FAQ)

Will root access be removed after resetting to factory settings?

Normal reset via the settings menu (Settings โ†’ Reset) does not remove root access, since they are located in the system partition, which is not affected when resetting user data. However, if you flash the phone in an official way via a PC with all partitions cleared, the rights will be removed.

Is it possible to remove root if the phone goes into an eternal reboot?

Yes, but only through flashing. If the device does not boot into the system, you need to enter the mode Recovery (if it is stock) or Fastboot/Download Mode and upload a clean firmware image from your computer. This is the only way to revive the phone in this state.

Does removing root access affect the return of the warranty?

Formally, removing superuser rights and locking the bootloader returns the software to its factory state. However, some manufacturers have a counter (for example, Knox from Samsung), which records the fact of intervention forever. In such cases, the warranty may be void regardless of the current settings.

Will Magisk be completely uninstalled after the Uninstall command?

Yes, the Full Uninstall feature in Magisk is designed to clean up all traces. But if you used modules that change the boot image, it is recommended that after removing Magisk you still reflash the stock one via Fastboot for 100% cleanliness. boot.img via Fastboot for 100% cleanliness.

Why does the bank still write about the danger, although I removed the root?

Perhaps yours remains unlocked bootloader, or there are traces of custom recovery (TWRP) in the system. Also, some applications detect the presence of manager applications in the installation history. Try performing a full reset with the bootloader locked.