Getting root access on Android opens up wide opportunities for customizing the system, but users are often faced with the need to remove them. The reasons may vary: from problems with banking applications to preparing the device for sale. However, simply deleting a root application (for example, Magisk or SuperSU) is not always enough - traces of modifications remain in system files, which can lead to crashes or blocking of the gadget.
In this article we will look into 5 working methods complete removal of root access, including software methods and hard reset. We will pay special attention to the nuances for devices with a locked bootloader (bootloader) and models Samsung, Xiaomi, Google Pixel, where the process has specifics. You will also learn how to check whether superuser rights have really been removed, and what to do if, after removing root, the phone stops booting.
Why you need to remove root access correctly
Many users mistakenly believe that it is enough to uninstall Magisk Manager or SuperSU via standard settings. In fact, this only removes the management interface, while the changes themselves in the system partition (/system, /vendor) remain. Consequences of incomplete removal:
- ๐ซ Blocking banking applications (Sberbank, Tinkoff, Google Pay) due to detection of a modified environment.
- ๐ Inability to install OTA updates โthe system detects changes and refuses to update.
- ๐ ๏ธ Problems during operation some functions (for example Widevine L1 for watching HD content on Netflix).
- ๐ฑ Problems during sale - the new owner may encounter errors during the reset.
On devices with an unlocked bootloader (for example, after use fastboot oem unlock), even after removing root, traces remain in the partition boot or recovery. This may lead to denial of warranty service.
โ ๏ธ Attention: On some models Samsung (series Galaxy S/A 2020+ years) and Google Pixel incorrect root removal may activate the flagKNOX 0x1orTAMPERED, which forever voids the device's warranty and useability Samsung Pay.
Method 1: Removing root via Magisk (the safest method)
If you got root using Magisk (the most popular method in 2023โ2026 years), then it is better to delete it through the same application. This method saves data and does not require resetting the settings.
Instructions:
- Open Magisk Manager (if deleted, download the latest version from official GitHub).
- Go to section
Settings(โ๏ธ) โDelete Magisk. - Select
Full removal(Complete Uninstall) and confirm. - After reboot, check root status through the app Root Checker.
If Magisk Manager does not start:
- ๐ฑ Install the APK file again (for example,
Magisk-v26.4.apk). - ๐ง Manually delete the files via TWRP (instructions in the next section).
โ๏ธ Preparing to remove Magisk
โ ๏ธ Attention: On devices with Dynamic Partition (Android 10+) after uninstalling Magisk, flashing may be requiredboot.imgthroughfastboot. Otherwise the system will boot into bootloop.
Method 2: Removal via TWRP (for experienced users)
If Magisk or SuperSU were installed via custom recovery (TWRP), then it is more reliable to delete them via This method is suitable for devices with unlocked bootloader.
Step-by-step guide:
- Boot into TWRP (usually by pressing
Power + Volume Up). - Go to
Advanced โ File Manager. - Delete files:
/system/bin/su/system/xbin/su/system/app/SuperSU(if there was one)/system/priv-app/SuperSU
Wipe โ Format Data (optional if you need to clear traces).For complete cleaning, it is also recommended to flash the original boot.img:
fastboot flash boot stock_boot.img
fastboot reboot
| Device model | Section for firmware | Fastboot command |
|---|---|---|
| Samsung Galaxy | boot i recovery |
fastboot flash boot boot.imgfastboot flash recovery recovery.img |
| Xiaomi Redmi/POCO | boot + dtbo (for new models) |
fastboot flash boot boot.imgfastboot flash dtbo dtbo.img |
| Google Pixel | boot + vendor_boot |
fastboot flash boot boot.imgfastboot flash vendor_boot vendor_boot.img |
What to do if TWRP does not see system files?
If the File Manager in TWRP does not display the /system folders, then you have read-only mounted. To fix it, run the command in the TWRP terminal:
mount -o rw,remount /system
After this, the files will become available for deletion.
Method 3: Complete reset (Hard Reset)
If the previous methods did not work or you are not sure of your actions, the most radical method is hard reset (Hard Reset). It deletes all data, including traces of root, but requires a backup.
How to do:
- Go to
Settings โ System โ Reset settings. - Select
Delete all data (factory reset). - Confirm the action (entering may be required PIN code).
- ๐ Boot into TWRP.
- ๐งน Select
Wipe โ Advanced Wipe. - ๐ Check the boxes:
Dalvik / ART Cache,System,Data,Internal Storage. - ๐ฅ Swipe
Swipe to Wipe.
For devices with custom recovery:
โ ๏ธ Attention: On some devices (for example, Huawei or Honor) after the reset, you may need to re-unlock the bootloader through official tools (for example, without this phone). will not boot. Huawei eRecovery). Without this, the phone will not boot.
Method 4: Removing SuperSU (for old devices)
If you used SuperSU (popular until 2019), then the removal process is different. This method is relevant for devices on Android 7โ9.
Instructions:
- Open SuperSU and go to
Settings. - Select
Full root removal(Full unroot). - Confirm and wait for the reboot.
- Delete the APK file SuperSU through the settings.
If the application does not start:
- ๐ Delete the files manually through Root Explorer or TWRP:
/system/bin/.ext/.su/system/etc/init.d/99SuperSUDaemon
- ๐ Reflash the original
boot.img(see Method 2).
After removing SuperSU, check for the presence of the file /system/.supersu โit also needs to be deleted, otherwise some applications (for example, Pokรฉmon GO) will detect root.
Method 5: Flashing stock firmware (100% cleaning)
The most reliable, but also the most time-consuming method is flashing the original firmware via Odin (for Samsung), Mi Flash Tool (for Xiaomi) or fastboot. This completely erases all modifications, including traces of root.
General algorithm:
- Download the stock firmware for your model from the official website:
- ๐ Samsung: SamFW or Samsung-Firmware.org
- ๐ Xiaomi: Miui Download
- ๐ Google Pixel: Google Factory Images
AP, BL, CP, CSC for Odin; flash-all.bat for fastboot).- For Samsung:
Odin3 v3.14.4(flagAuto Rebootmust be enabled). - For Xiaomi:
Mi Flash Toolin modeClean All. - For Pixel:
flash-all.bat(unlock first bootloader).
After flashing:
- ๐ The bootloader will be automatically locked (on Samsung i Pixel).
- ๐ฑ The device will be like new, with all factory settings.
- ๐ The first boot may take 10โ15 minutes - do not interrupt the process!
โ ๏ธ Attention: Flashing non-original firmware (for example, from third party sites) may lead to k hard brick. Always check the MD5 hash of downloaded files!
Flashing stock firmware is the only way to return the warranty on devices with the KNOX 0x1 (Samsung) or TAMPERED (Pixel) flag.
How to check that root has been completely removed
Even after removing root traces may remain in system logs or partitions. To make sure the device is clean, perform the following checks:
- Applications for verification:
- ๐ฑ Root Checker (should show
Root access is not properly installed). - ๐ก๏ธ SafetyNet Test (must pass
ctsProfile: true).
- ๐ฑ Root Checker (should show
adb shell ls -la /system/bin/su
adb shell ls -la /system/xbin/su
(if files exist - root is not deleted).
fastboot getvar all
Look for the lines:
unlocked: yesโ bootloader is unlocked.tampered: trueโ device is modified.
If SafetyNet fails:
- ๐ง Install the module MagiskHide Props Config (if you still have Magisk) or flash the stock firmware.
- ๐ฑ On Samsung you may need to reset the flag
KNOXvia a service center (not always possible).
What to do if after unrooting the phone does not turn on
If the device is stuck on the logo (bootloop) or does not respond to buttons, try the following steps:
- Hard reboot:
- ๐ Press
Power + Volume Downfor 10-15 seconds. - ๐ฑ On Samsung the combination may be required
Power + Volume Down + Bixby.
- ๐ Press
- Recovery via TWRP:
- ๐ง Flash
boot.imgfrom stock firmware. - ๐งน Run
Wipe โ Format Data(will delete all data!).
- ๐ง Flash
- ๐ Connect the phone to the PC in Emergency Download Mode mode (usually by pressing
Volume Up + Volume Down + USB). - ๐ฅ๏ธ Use QFil (for Qualcomm) or SP Flash Tool (for Mediatek).
If all else fails:
- ๐ ๏ธ Contact the service center with a request to flash the device via JTAG or ISP.
- ๐ For Samsung you can try the official tool Smart Switch Emergency Recovery.
โ ๏ธ Attention: On devices with a chipset Mediatek (many models Xiaomi Redmi, Realme), incorrect firmware via SP Flash Tool can lead to loss of IMEI. Always make a backup copy. data-i="240">FAQ: Frequently asked questions about deleting root NVRAM!
FAQ: Frequently asked questions about root removal
Is it possible to delete root without losing data?
Yes, if you use Magisk (Method 1) or manually deleting files via TWRP (Method 2). 100% cleaning is recommended to reset the settings or flash the stock firmware.
Why do banking applications still not work after removing root?
The reasons may be the following:
- ๐ There are traces left in
/system(check through Root Checker). - ๐ก๏ธ Does not pass SafetyNet (use MagiskHide Props Config or flash the stock).
- ๐ฑ The bootloader remains unlocked (you need to block it through
fastboot oem lock, but this may lead to a reset!).
How to remove root on Samsung with KNOX 0x1?
The flag KNOX 0x1 is reset only by firmware original firmware via Odin s mark Re-Partition. However, even after this the warranty is not restored, and Samsung Pay and Secure Folder will not work.
Is it possible to remove root on a locked device? bootloader?
No. If the bootloader is locked and root was obtained through exploits (for example, DirtyCOW on old Androids), then you can only remove it by resetting or flashing the bootloader. In this case, unlocking the bootloader will lead to a complete reset.
What to do if the root is lost after removal. IMEI?
This is a typical problem for devices with Mediatek. You can restore IMEI:
- Through the engineering menu: enter
##3646633##โConnectivity โ CDS Information โ Radio Informationโ enter AT commands to restore. - Via Maui META or SN Writer Tool (requires a backup copy
NVRAM).
If there is no backup copy, contact the service center.