Home > Tips and Tricks

How to Unroot any Android Device: Uninstall Magisk/KernelSU

In this guide, we will show you the steps to unroot your Android device and uninstall Magisk/KernelSU. While stepping into custom development, gaining administrative privileges is usually the preferred choice for the tech enthusiast. While it does open the floodgates to a plethora of customizations, it also has its fair share of caveats as well. The primary among them is the tripping of SafetyNet. Once that happens, you won’t be able to use any banking apps.

Apart from that, the WideVine L1 Certification will be lowered to L3 thereby resulting in your inability to watch DRM content in Full HD. Likewise, the process of installing OTA updates would also become a rather complicated task. So while rooting does give us the option to welcome abode numerous mods, but after a while or so, having a clean stock non-rooted environment free from all issues becomes the need of the hour. So with that in mind, let’s get started.

How to Unroot any Android Device: Uninstall Magisk

YouTube video

Before starting, please take a backup of all the data on your device, just to be on the safer side. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps. NOTE: If you own a Samsung device, then scroll to the next section.

STEP 1: Unhide Magisk App

If you have hidden the Magisk app and renamed it to something else [mainly to pass the SafetyNet test], then it’s time you unhide it right away. Follow along.

  1. Launch Magisk, tap on the settings icon, and select Restore the Magisk App.
  2. Tap OK in the confirmation prompt that appears and wait for it to be restored.unroot android

STEP 2A: Remove LSPosed Modules

Next up, disable and remove all the LSPosed/Xposed modules installed on your device [if present]. Here’s how it could be done:

  1. Launch the LSPosed app, go to Modules, select the module, and disable the toggle next to it.
  2. Then go back a step, long-press the module, and select Uninstall. Do so for all the modules.unroot android

STEP 2B: Uninstall all Magisk Modules

Likewise, you should also disable and uninstall all the Magisk Modules from your device as well. Here’s how it could be done:

  1. Launch Magisk, go to Modules, disable the module, and then tap Remove.
  2. Do so for all the installed modules. Once done, restart your device.
  3. Once the device boots up, make sure all LSPosed and Magisk modules are removed.unroot android

STEP 3: Uninstall Magisk

Now comes the most important part of uninstalling the magisk app and removing the root from your device. Follow along:

  1. Launch Magisk and tap on Uninstall Magisk > Complete Uninstall.
  2. Wait for the process to complete. Once done, your device will restart.
  3. It will now boot to the non-rooted stock ecosystem with no mods installed.unroot android

STEP 4: Verify the Presence of Rooted Apps

Before rounding off the guide, let’s double-check that no rooted apps or system services are left behind. For that, do refer to our detailed guide on How to check if your device has any Root apps installed [Video].

unroot android

STEP 5: Flash Stock ROM or Boot/Init_Boot [Optional]

If you are still unsure whether the root has been removed from your device or not, then your best course of action is to flash the stock boot/init_boot.img file [if you had initially used boot for root, then use the stock boot, or else, init_boot. The general rule is to use boot for devices launched with Android 12 or older versions and init_boot for Android 13 and higher versions, with Poco F5 and Nothing Phone 2 being some of the exceptions as they still use boot.img even though they were launched with Android 13].

unroot android

Apart from that, you may take this process to the next level and flash the entire stock firmware as well. The process to do so varies, depending on the device you own [and it will also wipe off all the data from your device, so take a backup beforehand. Xiaomi/Redmi/Poco/Mi users could use the Mi Flash Tool, OnePlus users could try out the MSM Download Tool, Fastboot Enhance Tool, or Oppo Flash Tool whereas Pixel users could opt for the Android Flash Tool.

STEP 6: Relock Bootloader [Optional]

If you have removed all the rooted modules and are currently using the stock firmware, then you have the option to relock the bootloader as well [again, this will wipe off all the data, so take a backup beforehand]. The process is quite risky and may result in a bricked device if there is even one single rooted binary present. So if you are double sure that all the root files have been removed from your device, then only proceed with the steps. For that, you could refer to our guide on How to Relock the Bootloader on any Android Device.

unroot android

That’s it. These were the steps to unroot your Android device and uninstall/remove Magisk. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.

How to Unroot any Samsung Device

The process to unroot a Samsung device is somewhat different when compared with other Android devices. Therefore, we have made a separate guide and a video on the same, which has been linked below, do check it out:

How to Unroot any Samsung Device

How to Unroot any Android Device via KernelSU

unroot android

If you have obtained root via KernelSU, then here’s how you could unroot your Android device:

  1. Launch KernelSU, go to Modules, and disable and uninstall all of them.
  2. Then go to Home, tap on the Settings icon at the top right > tap Uninstall.uninstall kernelsu unroot android
  3. Now select Uninstall Permanently and tap OK in the prompt that appears.
  4. Finally, restart your device. KernelSU is removed and your device stands unrooted.

Share: