Fix Xposed Bootloop: Disable Modules Safely
In this article
If your Android device is stuck in a bootloop after installing an Xposed module, the fastest fix is to boot into Safe Mode (or TWRP recovery) and disable the problematic module. This guide walks you through both methods, plus how to permanently remove the module once you're back in. You'll need a device with Xposed installed (either the classic framework or EdXposed/LSPosed), and ideally a custom recovery like TWRP for the safest approach.
What You'll Need
- Your Android device (with Xposed framework installed)
- Access to Safe Mode (usually via power button menu) or a custom recovery like TWRP
- A computer with ADB and Fastboot (optional, but helpful if Safe Mode fails)
- Patience – don't panic, this is recoverable
Step-by-Step
Method 1: Using Safe Mode (No PC Required)
- Force reboot your device. Press and hold the Power button for 10–15 seconds until the screen turns off and it restarts. If it gets stuck again, proceed to step 2.
- Boot into Safe Mode. When the boot animation appears (the logo or spinning circle), press and hold the Volume Down button. Keep holding it until the home screen loads. On some devices (like Samsung), you may need to tap the “Safe Mode” option in the power menu after a forced restart. Safe Mode disables all third-party modules, including Xposed.
- Open the Xposed Installer app. Once in Safe Mode, find and open the Xposed Installer (or LSPosed/EdXposed Manager, depending on your framework).
- Disable the problematic module. Go to the “Modules” section (or “Modules” tab), find the module you installed last, and uncheck its checkbox. If you're not sure which one caused the bootloop, uncheck all modules.
- Reboot normally. Exit Safe Mode by restarting your device (hold Power, then tap Restart). Your device should boot normally now. If it does, re-enable modules one by one to find the culprit.
Method 2: Using TWRP Recovery (If Safe Mode Doesn't Work)
- Boot into TWRP. Turn off your device, then press and hold Volume Up + Power (or the key combo for your device) until the TWRP menu appears. If you don't have TWRP, skip to the ADB method below.
- Mount the system partition. In TWRP, tap “Mount” and ensure “System” is checked. This allows you to access system files.
- Open the file manager. Tap “Advanced” then “File Manager”. Navigate to
/data/data/de.robv.android.xposed.installer/conf/(for classic Xposed) or/data/adb/modules/(for Magisk-based LSPosed). - Disable modules. In the conf folder, you'll see a file named
modules.list. Tap it, then tap the pencil icon to edit. Delete the lines that correspond to the module(s) you want to disable (or clear the entire file). For LSPosed, navigate to/data/adb/modules/and rename the folder of the problematic module by adding.disabledto its name (e.g.,com.example.module→com.example.module.disabled). - Reboot. Go back to the TWRP main menu and tap “Reboot” > “System”. Your device should boot normally.
Method 3: Using ADB (If No Recovery)
- Install ADB on your computer. Download the official Android SDK Platform Tools and install them. Connect your phone to your PC via USB.
- Boot into recovery or fastboot. If your device is stuck, you can usually force it into fastboot by holding Power + Volume Down (varies by device). From there, you can issue ADB commands if you have a custom recovery, or use fastboot to flash a backup.
- Use ADB to disable modules. If you can boot into TWRP, open a command prompt on your PC and type
adb shell. Then run the same file editing commands as in Method 2. If you can't get into TWRP, you may need to reflash your ROM or restore a backup – this is a last resort.
Common Mistakes
- Holding Volume Down too late or too early. Safe Mode requires precise timing – start holding the volume button as soon as the boot animation appears, not before or after.
- Disabling the wrong module. If you disable a harmless module instead of the culprit, the bootloop persists. Always disable the most recently installed module first.
- Editing files incorrectly. In TWRP's file manager, accidentally deleting the entire
modules.listfile can cause issues. Instead, clear its contents but keep the file. - Forgetting to mount system. If you don't mount the system partition in TWRP, you won't see the files you need to edit.
Tips
- Always test one module at a time. After a successful boot, re-enable modules one by one, rebooting after each, to identify the offender.
- Keep a backup. Use TWRP to make a full Nandroid backup before installing any new Xposed module. This lets you restore in minutes.
- Use LSPosed's built-in “Disable all modules” option. If you're on LSPosed, you can boot into Safe Mode and open the manager – it often has a toggle to disable all modules at once.
- Check module compatibility. Before installing, read the module's XDA thread to see if it's compatible with your Android version and Xposed variant.
Troubleshooting
If none of the above methods work, try these in order:
- Wipe cache/dalvik. In TWRP, go to “Wipe” > “Advanced Wipe” and select “Dalvik/ART Cache” and “Cache”. Swipe to wipe, then reboot. This often fixes bootloops caused by corrupted cache.
- Restore a backup. If you have a TWRP backup from before the bootloop, restore it. This will revert your system to a working state, but you'll lose any changes made after the backup.
- Reinstall the Xposed framework. Sometimes the framework itself gets corrupted. In TWRP, flash the Xposed uninstaller ZIP (from the official Xposed thread), then reinstall the framework. This removes all modules.
- Factory reset (last resort). This erases all data, so only do this if you have nothing to lose. In TWRP, tap “Wipe” > “Factory Reset”, then reboot. This will remove Xposed entirely and restore your device to stock.
Frequently Asked Questions
Will Safe Mode disable all Xposed modules?
Yes, Safe Mode disables all third-party apps and modules, including Xposed modules. That's why it's the easiest way to get back in.
Can I fix a bootloop without a PC?
Yes, if your device supports Safe Mode, you can do it entirely on the phone. If not, you'll need a PC with ADB or a custom recovery.
What if I don't have TWRP?
You can still use Safe Mode. If that fails, you may need to flash a stock ROM via the manufacturer's tool (like Odin for Samsung) – but that's a last resort.
Will I lose my data?
No, disabling a module doesn't erase data. Only a factory reset or restoring a backup from before the backup point will lose data.
How do I know which module caused the bootloop?
After you boot successfully, re-enable modules one at a time, rebooting after each. The one that causes a bootloop is the culprit.
Is there a way to prevent this in the future?
Yes: always make a backup before installing a new module, and stick to well-known modules from reputable developers.