Removing root access and manager Magisk often becomes a necessary step for users who want to return their smartphone to its factory state. This may be required when selling a device, updating the firmware over the air (OTA), or passing security checks in banking applications. The uninstallation process is not always trivial, since Magisk makes changes to the boot partition of the system.
Incorrect actions when trying to reset can lead to the device stopping booting, turning into a “brick”. However, if you follow the sequence of actions, returning Android to the original state is quite possible even without deep knowledge of programming. In this article we will analyze all available methods, from standard deletion to manual recovery via fastboot.
Before you begin any manipulations, you need to understand the risks. Any interference with system partitions poses a potential threat to data integrity. We strongly advise you to make a complete backup of your important files before starting the procedure.
Preparing the device for de-rooting
The success of the removal operation Magisk Manager 90% depends on proper preparation. Chaotic actions without preliminary diagnostics often lead to a cyclic reboot (bootloop). First of all, make sure that the battery charge level is at least 60-70%. Interruption of the firmware process due to low battery is the most common cause of fatal errors.
You will also need an original USB cable and a computer with ADB and Fastboot drivers installed. Without these tools, restoring the boot image may become impossible if the standard method does not work. Check to see if USB debugging is enabled in the developer menu, although some methods may not require it.
⚠️ Warning: If your device is encrypted, make sure you remember the password or pattern. After resetting root access, the system may require you to enter credentials to decrypt the data.
Download the original stock firmware image specifically for your model and build version. Using an image from a different model or another version of Android is guaranteed to result in the gadget not working. You can find such files on the official websites of manufacturers or specialized forums like XDA Developers.
☑️ Preparation checklist
Regular removal method via the Magisk application
The easiest and safest way to get rid of root access - use the built-in complete removal function inside the application itself Magisk. This method was developed by the author of the app and involves automatic cleaning of system changes without the need to flash the entire image manually.
Run the application Magisk Manager on your device. In the main menu, usually in the center of the screen or in the settings section, find a button labeled “Uninstall”. Clicking on this button will bring up a pop-up window with a choice of action.
You will be offered two options: “Complete Uninstall” and “Restore Stock Boot Image”. For complete uninstallation, select the first option. The system will ask for confirmation, after which the cleaning process will begin.
If the uninstall button is inactive or the application crashes, try renaming the APK file to magisk.apk and installing it again over the existing version.
After the script completes, the device will automatically reboot. The next time you turn it on, you will find that there are no root access, and the manager application has disappeared from the list of apps. This is the most preferred scenario, as it minimizes the risk of damage to other partitions of the system.
Regular removal through an application only works if the system boots stably and the Magisk application itself functions correctly.
Removal through Recovery mode (TWRP)
If the application Magisk damaged or does not start, you can use custom recovery, such as TWRP. This method requires a modified recovery mode to be installed, which is typical for rooted devices.
Boot the device into Recovery mode by holding down the key combination (usually Volume Up + Power). In the TWRP menu, go to the “Cleaning” section (Wipe) and select “Advanced Wipe”. However, to remove Magisk, installing a special zip script is more often used.
Download the file Magisk_Uninstaller.zip and copy it to the internal memory of the phone. In the TWRP menu, select “Install”, find the downloaded archive and swipe to confirm the firmware. The script will automatically remove all traces of modification from the partition boot.
- 📂 Make sure that the unlocker file is compatible with your version of Magisk.
- 🔄 After flashing the firmware, be sure to clear the Dalvik/ART cache.
- 🔌 Do not remove the USB cable during the writing process memory.
When the operation is complete, reboot the system. If everything went well, the phone will boot into a clean state. This method is effective when the manager software interface is not available, but requires TWRP to be pre-installed.
⚠️ Attention: Using TWRP to remove Magisk is only possible if you already have a custom recovery installed. Trying to flash a zip archive via stock recovery will result in a signature error.
Restoring a stock image via Fastboot
The most radical and reliable method is to manually replace the boot image (boot.img) with the original one using a computer. This is necessary if the previous methods did not work or the device has been bootlapped. You will need to extract the file boot.img from the official firmware for your model.
Connect the phone to the PC in fastbootmode. To do this, you usually need to turn off your smartphone and hold down Volume Down + Power. Make sure that the computer sees the device by running the check command in the terminal.
fastboot devices
If the device is displayed in the list, you can start flashing the firmware. The command for recording the original image is as follows. Replace path/to/file with the real location of your stock boot.img.
fastboot flash boot path/to/file/boot.img
After successfully burning the image, you must reboot the device. Execute the command fastboot reboot or hold down the power button. When loading, the system will detect the absence of modifications and will start in standard mode without root access.
What to do if fastboot does not see the device?
Install universal Google USB Drivers through Windows Device Manager. Try a different USB cable or a USB 2.0 port, as 3.0 ports sometimes cause compatibility issues with older bootloaders.
Comparison of uninstallation methods
The choice of a specific method depends on the current state of your smartphone and your technical skills. Below is a table that will help determine the optimal way to solve the problem.
| Method | Complexity | Risk of data loss | Required conditions |
|---|---|---|---|
| through the app | Low | Minimum | Working Android and Magisk |
| Via TWRP | Medium | Low | Installed TWRP |
| Via Fastboot | High | Medium | PC, drivers, stock boot.img |
| Full flashing | High | High (all data) | Full firmware dump |
As can be seen from the table, the method through the app is the most gentle. However, if the system is so damaged that it cannot launch the manager, using fastboot becomes the only chance of salvation without completely clearing the user partition data.
Full flashing through tools like Odin (for Samsung) or SP Flash Tool (for MediaTek) guarantees a 100% return to factory state, but inevitably entails deleting all photos, contacts and applications.
Using Fastboot allows you to save user data, unlike a complete flashing, but requires precise selection of the_boot.img_ version.
Solving problems after removing Magisk
After successfully removing root access, users may encounter a number of unexpected problems. For example, some applications may still consider the device to be compromised due to residual traces in the cache or other partitions.
A common situation is when Google Pay or banking applications refuse to work. In this case, it is recommended to clear application data Google Play Services and Google Pay, and also check the status SafetyNet or new Play Integrity API.
If the device is stuck on the logo when booting, try entering Recovery mode again and performing a factory reset (Wipe Data/Factory Reset). This will delete all data, but should eliminate the conflict of files remaining from modifications.
- 🧹 Clear the cache of all system services after removing the root.
- 🔒 Check if the bootloader is re-locked (if this was a warranty condition).
- 📡 Make sure the network and IMEI are displayed correctly after manipulating the boot partition.
⚠️ Attention: The interfaces of the Recovery menu and Fastboot commands may differ depending on the processor manufacturer (Qualcomm, MediaTek, Exynos). Always check the documentation for your specific model before entering commands.
In rare cases, antivirus software may block changes to system files even after removing Magisk. If you are planning to sell your phone, make sure that you are signed out of all Google and Samsung/Xiaomi Mi Accounts so that the FRP anti-theft protection does not work.
Before selling the device, after removing the root access, perform a full factory reset (Factory Reset) from the Android menu. This will remove the remaining Magisk configuration files from the user partition.
Frequently asked questions (FAQ)
Will uninstalling Magisk delete all my photos and applications?
When using the method through the Magisk application or through TWRP with an unlock script, user data is usually preserved. However, the Fastboot method or a complete flashing often requires clearing the data partition, which will lead to loss of information.
Is it possible to update over the air (OTA) immediately after deletion?
Yes, this is one of the main reasons for deletion. After returning the stock boot image (boot.img) and completely uninstalling the manager, the system again undergoes an integrity check and allows you to install official updates.
What to do if the phone does not turn on after attempting to uninstall?
Try to enter Fastboot mode and reflash the original one boot.img once again. If this does not help, you will need to flash a full dump of the factory firmware through the manufacturer's special utilities, which will erase all data.
Will the warranty remain after removing Magisk?
Formally, the presence of traces of root access will void the warranty. If you uninstalled Magisk using the standard method and reset the phone to factory settings, it is difficult to detect the interference programmatically. However, the physical state of the seals and Knox counters (on Samsung) can give away the fact of tampering.
Do I need to unlock the bootloader again after removing Magisk?
No, removing Magisk does not lock the bootloader back. If it was unlocked before rooting, it will remain in the same state. To completely return to the factory state, sometimes you need to lock the bootloader again, but this is dangerous without stock firmware.