Install Xposed on LG G4 & G Flex 2 (Locked Bootloader)
In this article
Yes, you can install Xposed on the LG G4 and LG G Flex 2 even with a locked bootloader, using a systemless method that works without rooting. This guide uses the official Xposed Installer app and a custom recovery (TWRP) that can be flashed via the locked bootloader's fastboot mode. You'll need a Windows PC, a USB cable, and about 30 minutes. The process does not require unlocking the bootloader, which keeps your warranty intact.
What You'll Need
- LG G4 (any variant) or LG G Flex 2 (any variant) with a locked bootloader
- Windows PC with USB drivers installed (LG USB drivers from LG's official site)
- USB cable (preferably the original one)
- Download the following files (all from official or trusted sources):
- Xposed Installer APK (from the official Xposed repository)
- Xposed framework ZIP (systemless version, e.g., xposed-v87-sdk23-arm64.zip for Android 5.1/6.0)
- TWRP recovery image for your exact LG model (from the official TWRP site)
- ADB and Fastboot tools (from Google's official platform-tools)
- Backup your data: this process wipes your phone, so back up contacts, photos, and app data before starting.
Step-by-Step
- Enable Developer Options and USB Debugging – On your phone, go to Settings > About phone and tap “Build number” 7 times. Then go to Settings > Developer options and enable “USB debugging”.
- Install ADB and Fastboot on your PC – Extract the platform-tools ZIP to a folder, e.g.,
C:\adb. Open a command prompt in that folder (Shift+Right-click > “Open command window here”). - Connect your phone to the PC – Plug in your phone via USB. When prompted on the phone, allow USB debugging. In the command prompt, type
adb devicesand confirm your device appears with “device” status. - Boot into Fastboot mode – Turn off your phone. Press and hold Volume Down + Power for about 10 seconds until the fastboot screen appears (it shows “fastboot” and a green robot). Connect the USB cable if not already connected.
- Flash TWRP recovery – In the command prompt, type
fastboot flash recovery twrp.img(replacetwrp.imgwith the actual filename). Wait for the “OKAY” message. Then typefastboot reboot. - Boot into TWRP – Immediately after the reboot, press and hold Volume Down + Power again until the TWRP logo appears. If you miss it, repeat the fastboot boot and use
fastboot boot twrp.imginstead (this temporarily boots TWRP without flashing). - Wipe data (factory reset) – In TWRP, tap “Wipe” > “Format Data” and type “yes”. This is required to remove encryption and allow the systemless Xposed to work. This wipes all your data – that's why you backed up.
- Copy the Xposed ZIP to your phone – While still in TWRP, go to “Mount” and ensure “Data” is checked. Then use the “Advanced” > “ADB Sideload” option, or simply connect your phone to the PC and copy the ZIP file to the internal storage using the file manager (if MTP works). Alternatively, use
adb push xposed.zip /sdcard/from the command prompt. - Install the Xposed framework ZIP – In TWRP, tap “Install”, select the Xposed ZIP file, and swipe to confirm. Wait for the installation to finish.
- Reboot and install the Xposed Installer APK – Tap “Reboot System”. After boot, open the file manager and install the Xposed Installer APK (you may need to allow “Unknown sources” in Settings > Security).
- Activate the framework – Open the Xposed Installer app. It should show “Framework is active”. If not, tap “Install/Update” and follow the prompts, then reboot again.
- Install Xposed modules – Download modules from the Xposed repository within the app, or from trusted sources. Enable them in the “Modules” section and reboot to apply.
Common Mistakes
- Using the wrong Xposed ZIP for your Android version – the G4 and G Flex 2 run Android 5.1 or 6.0, so you need the SDK23 (Android 6.0) or SDK22 (Android 5.1) version, and the ARM64 architecture. Double-check your device's exact model and Android version.
- Not wiping data – if you skip the factory reset, the phone may bootloop or Xposed won't work due to encryption.
- Flashing the recovery incorrectly – ensure you use the correct TWRP image for your exact model (e.g., H815 for G4, H950 for G Flex 2). Using the wrong one can hard-brick.
- Missing the fastboot window – the key combination can be tricky. Practice entering fastboot before you flash anything.
- Not backing up – if something goes wrong, you'll lose everything.
Tips
- Keep your phone charged above 70% to avoid power loss during flashing.
- Use a high-quality USB cable and a direct USB port on your PC (not a hub).
- After flashing TWRP, you can make a full backup in TWRP (Backup option) – this is a safety net.
- If you ever need to uninstall Xposed, just reflash the original boot image or do a factory reset from TWRP.
- Always download Xposed framework ZIPs from the official Xposed repository (xposed.info) to avoid malware.
Troubleshooting
If the phone bootloops after installing Xposed, the most common cause is a mismatched framework version. Reboot into TWRP (same key combo) and reflash the correct ZIP, or restore your backup. If that fails, wipe data again and reinstall the framework from scratch.
If TWRP doesn't stick (you get the stock recovery after reboot), you may need to use the fastboot boot command each time, or reflash TWRP and immediately boot into it before the system overwrites it.
If ADB doesn't recognize your phone, reinstall the LG USB drivers and ensure USB debugging is enabled. Try a different USB port or cable.
If the Xposed Installer says “Framework not installed”, you may have flashed the wrong ZIP. Check the architecture: the G4 and G Flex 2 use ARM64, so the ZIP must contain “arm64” in the name.
Frequently Asked Questions
Will this void my warranty?
No, because the bootloader remains locked. However, flashing a custom recovery may still be detected by LG if you send it for repair, so proceed at your own risk.
Can I uninstall Xposed later?
Yes, you can reflash the original boot image or do a factory reset from TWRP. This will remove the framework and all modules.
Does this work on all LG G4 and G Flex 2 variants?
It works on most variants that have a locked bootloader and are running Android 5.1 or 6.0. Some carrier-specific models may have additional restrictions, but the fastboot method generally works.
Will Xposed affect battery life?
Only if you install modules that run in the background. The framework itself has minimal overhead.
Can I install Xposed modules that require root?
Yes, but some modules also need root access. This guide does not root the device, so those modules won't work. You can separately root using a systemless method (like Magisk) if needed, but that's beyond this guide.
What if my phone is already rooted?
If you're rooted, you can follow the same steps, but you may skip the factory reset if you already have a custom recovery. However, the systemless Xposed method is still recommended.