Fix bootloop caused by modules
SpikeIf you've encountered a bootloop after flashing a module on Magisk / KernelSU, don't worry! Here's a simple guide to get your device back up and running provided you have a custom recovery installed:
Step 1: Access a custom recovery like OrangeFox
- Ensure you have OrangeFox Recovery installed on your device. If not, install it first from fastboot:
fastboot flash recovery <ofox-recovery.img>
Step 2: Use Terminal in OrangeFox (only for KSU)
NOTE: Magisk users must skip to step 3
- Open the terminal within OrangeFox Recovery.- Execute the following command to mount the necessary partition:
mount /data/adb/ksu/modules.img /data/adb/modules
Step 3: Delete the Problematic Module
- Navigate to /data/adb/modules using the terminal or a file manager within OrangeFox.
- Locate and delete the folder corresponding to the module that caused the bootloop.
Step 4: Restart Your Device
- Once the problematic module is deleted, simply restart your device as you normally would.
Your device should now boot up normally, free from the bootloop caused by the problematic module :)