Home/Android Rooting, Fastboot & ROM Guides/Fix Magisk Bootloop After Installing a Module

Fix Magisk Bootloop After Installing a Module

If your phone bootloops right after installing a Magisk module, the module may be the cause. The safest first repair is usually to disable or remove modules, not to erase data or flash an unrelated boot image.

How to fix a Magisk module bootloop

Quick answer: if ADB was already enabled and authorized and the device becomes available during startup, Magisk documents the command adb wait-for-device shell magisk --remove-modules as a way to remove modules. If ADB is not available, Magisk also documents a Safe Mode method to disable modules. Neither route is guaranteed if the boot chain itself is damaged.

See Magisk's official FAQ for the original recovery guidance.

Method 1: remove Magisk modules with ADB

  1. Use the trusted computer. The phone must have already approved USB debugging where needed.
  2. Connect a data cable and open Platform-Tools. Confirm that you can launch adb from your terminal.
  3. Wait for an ADB connection during boot. Run adb wait-for-device shell magisk --remove-modules. Magisk documents this for module-related bootloops; it removes all modules and triggers a reboot.
  4. Test the phone without modules. Once the device boots, confirm normal functions and review each module before adding anything back.

This will not work if ADB is never available, the computer was not trusted, or the device is stuck before the debugging service starts. An unauthorized result cannot normally be approved if the phone never reaches an unlockable screen.

Method 2: try Magisk Safe Mode

Magisk's FAQ says that using Android's Safe Mode key combination during startup can make Magisk disable its modules. The correct button timing varies by device, and Magisk may detect Safe Mode at a different point from the Android system. Consult the exact model's Safe Mode instructions.

After the phone starts, inspect the Magisk app and remove the module that caused the failure. Reboot and check normal operation before turning modules back on.

What if removing modules does not help?

The issue may be an incompatible patched boot image, wrong firmware, kernel modification or broken system component rather than a module. Check whether the problem began after a full OS update or flashing boot.img/init_boot.img. Refer to which image Magisk patches and the official firmware recovery path for your exact model.

A factory reset may delete data without repairing a damaged boot image. Do not relock the bootloader while unofficial images are installed.

How to prevent Magisk module bootloops

  • Install one module at a time and test a full reboot.
  • Check that a module supports your Magisk and Android versions.
  • Keep matching stock firmware and recovery instructions ready.
  • Use authentic module sources; avoid unknown files that ask for unusual permissions.
  • Back up important data before rooting or a major firmware update.

Magisk bootloop FAQ

Does removing modules also unroot the phone?

Removing modules does not by itself uninstall Magisk from the patched boot image.

Does Magisk Safe Mode erase everything?

Magisk describes it as a way to disable modules, not as a factory reset.

Will this fix every Android bootloop?

No. It targets bootloops caused by Magisk modules; firmware, partition or hardware failures need different repairs.

Related Android troubleshooting

Match the solution to your exact device, firmware and error message before making changes.