How to Fix Bootloop After Installing a Magisk Module

Magisk is a powerful tool for rooting Android devices, allowing users to install modules that enhance functionality. However, sometimes installing an incompatible or faulty module can result in a bootloop, where your device gets stuck in a continuous restart cycle. This can be frustrating, but don’t worry—there are multiple ways to fix this issue.

In this guide, we’ll explore different methods to recover your device from a bootloop caused by a Magisk module. Whether you have TWRP recovery, ADB access, or just basic fastboot commands, there’s a solution for you. Let’s dive in and get your device back to normal!

How to Fix Bootloop After Installing a Magisk Module
How to Fix Bootloop After Installing a Magisk Module

Method 1: Using Safe Mode (Quickest Fix)

Some devices allow booting into Safe Mode, which disables third-party apps and modules.

Steps:

  1. Press and hold the power button until the restart menu appears.
  2. Tap and hold the “Restart” option until you see a prompt to boot into Safe Mode.
  3. If your device boots successfully, open Magisk Manager and uninstall the problematic module.
  4. Restart your device normally.

Method 2: Using ADB Commands

If Safe Mode doesn’t work, you can use ADB (Android Debug Bridge) to disable Magisk modules manually.

Steps:

  1. Connect your device to a PC via USB.
  2. Boot into recovery mode (usually by holding Power + Volume Up/Down).
  3. On your PC, open a command prompt and enter:
adb devices

Ensure your device is detected.

  1. Run the following command to disable all Magisk modules:
adb shell magisk --remove-modules
  1. Restart your device.

Method 3: Using TWRP Recovery (File Manager)

If your device has TWRP recovery, you can manually delete the module files.

Steps:

  1. Boot into TWRP recovery (Power + Volume Up/Down).
  2. Go to Advanced > File Manager.
  3. Navigate to:
/data/adb/modules/
  1. Locate the folder of the problematic module and delete it.
  2. Reboot your device.

Method 4: Flashing Magisk Uninstaller

If none of the above methods work, you may need to completely uninstall Magisk.

Steps:

  1. Download the Magisk Uninstaller ZIP from the official Magisk GitHub.
  2. Boot into TWRP recovery.
  3. Flash the Magisk Uninstaller ZIP.
  4. Reboot your device.
  5. Reinstall Magisk and avoid installing the problematic module again.

Method 5: Restoring Stock Boot Image

If your device is still stuck, restoring the stock boot image can help.

Steps:

  1. Download the stock boot.img for your device.
  2. Boot into fastboot mode.
  3. Open a command prompt and enter:
fastboot flash boot boot.img
  1. Reboot your device.

Method 6: Factory Reset (Last Resort)

If nothing works, a factory reset may be necessary.

Steps:

  1. Boot into TWRP recovery.
  2. Go to Wipe > Factory Reset.
  3. Confirm the reset.
  4. Reboot your device.
⚠️ Warning: This will erase all data on your device.

Preventing Bootloops in the Future

To avoid bootloops, follow these tips:

  • Use Anti-Bootloop Magisk Modules – Some modules automatically prevent bootloops.
  • Test Modules One by One – Install modules individually to identify issues early.
  • Keep a Backup – Always create a Nandroid backup before installing new modules.
  • Check Compatibility – Ensure the module is compatible with your device and Magisk version.

FAQs

What causes a bootloop after installing a Magisk module?

A bootloop occurs when a module modifies system files incorrectly, preventing the device from booting properly.

Can I fix a bootloop without a PC?

Yes! If your device supports Safe Mode, you can disable modules without using a PC.

Will uninstalling Magisk remove root?

Yes, but you can reinstall Magisk after fixing the issue.

How do I know which module caused the bootloop?

If you installed multiple modules, try disabling them one by one using ADB or TWRP.

Conclusion

Bootloops can be frustrating, but with the right approach, they are fixable. Whether you use Safe Mode, ADB, TWRP, or fastboot, there’s a method that works for your situation. Always be cautious when installing Magisk modules, and keep backups to avoid future issues.

If you found this guide helpful, share it with others who might need it!

Bishal Pokhrel

Bishal Pokhrel is an Android enthusiast specializing in rooting, custom ROMs, and Magisk modules. His easy-to-follow guides help users unlock the full potential of their Android devices.

Leave a Comment