Install TWRP on Huawei Ascend G7
In this article
This guide walks you through installing TWRP (Team Win Recovery Project) on the Huawei Ascend G7. TWRP is a custom recovery that lets you flash custom ROMs, create full backups, and perform advanced system maintenance. Before starting, you'll need to unlock your bootloader and have a Windows PC with the necessary drivers and tools.
What You'll Need
- Huawei Ascend G7 (any variant: L01, L02, L03, L07, L09)
- Windows PC
- USB cable
- Huawei USB drivers (install via HiSuite or the drivers from Huawei's site)
- ADB and Fastboot tools (platform-tools from Google)
- An unlocked bootloader (see note below)
- TWRP image file for the Ascend G7 (e.g., twrp-3.x.x-x-msm8916.img)
Bootloader unlock: Huawei officially provided unlock codes for this device. You need to request one from Huawei's unlock portal (it was available via their website or through the DC-Unlocker service). If you haven't unlocked the bootloader, do that first—TWRP installation will fail otherwise. Keep your unlock code handy; you'll need it during the unlock process.
Step-by-Step
- Back up your data. This process will wipe your device. Copy any important files to your PC or cloud.
- Enable Developer Options. Go to Settings > About phone and tap “Build number” 7 times until you see “You are now a developer”.
- Enable USB debugging and OEM unlock. In Settings > Developer options, turn on “USB debugging” and “OEM unlock” (if present).
- Install ADB and Fastboot. Download the platform-tools from Google and extract them to a folder like
C:\platform-tools. Open a command prompt in that folder (Shift+right-click > “Open command window here”). - Install Huawei USB drivers. Install HiSuite or the standalone drivers so your PC recognizes the phone.
- Connect your phone. Plug in the USB cable. On your phone, allow the RSA fingerprint prompt when it appears.
- Verify ADB connection. In the command prompt, type
adb devices. You should see your device listed as “device”. If not, reinstall drivers or try a different USB port. - Reboot to bootloader. Type
adb reboot bootloader. The phone will restart into fastboot mode (a black screen with a logo). - Unlock the bootloader (if not already done). Type
fastboot oem unlock YOUR_UNLOCK_CODE(replace with your actual code). Confirm on the phone screen. This wipes your data. - Verify fastboot connection. Type
fastboot devices. You should see your device listed. - Flash TWRP. Place the TWRP image file (e.g.,
twrp.img) in the same folder as fastboot. Typefastboot flash recovery twrp.img. Wait for the “OKAY” message. - Reboot into recovery. Type
fastboot reboot. As soon as the screen turns off, hold Volume Up + Power until the TWRP logo appears. Alternatively, typefastboot boot twrp.imgto boot TWRP temporarily without flashing. - First boot into TWRP. If TWRP asks to allow system modifications, swipe to allow. This prevents the stock recovery from overwriting TWRP on reboot.
Common Mistakes
- Using the wrong TWRP file. The Ascend G7 uses the MSM8916 chipset, but not all MSM8916 TWRP builds work. Use a build specifically for the G7 (codename usually “msm8916” but check XDA for the exact file).
- Skipping bootloader unlock. Flashing TWRP without unlocking will fail or brick the device.
- Not allowing system modifications. If you don't swipe to allow, the stock recovery may overwrite TWRP on next boot.
- Wrong fastboot command. Some guides use
fastboot flash recovery_ramdisk—on the G7, it's usuallyfastboot flash recovery. Double-check the device's partition layout. - Using a USB hub. Connect directly to a USB port on your PC to avoid connection issues.
Tips
- After flashing, always boot directly into TWRP once before booting the system. This prevents the stock recovery from being restored.
- Make a full Nandroid backup in TWRP before flashing any ROM or mod.
- Keep the TWRP image on your phone's internal storage or SD card so you can reflash it if needed.
- If you plan to root, flash Magisk or SuperSU via TWRP after installation.
- Write down your bootloader unlock code and keep it in a safe place—you may need it again.
Troubleshooting
- Device not detected in fastboot. Ensure drivers are installed. Try a different USB port or cable. In Device Manager, check for “Android Bootloader Interface” or similar. If there's a yellow exclamation, right-click and update driver manually to the Google USB driver.
- “FAILED (remote: command not allowed)” means the bootloader is locked. Unlock it first.
- “FAILED (remote: partition not found)” means you're using the wrong partition name. Try
fastboot flash recovery_ramdiskor check the correct partition for your variant. - TWRP boots but touchscreen doesn't work. This can happen with a mismatched TWRP build. Try a different version (older or newer) from the device-specific forum thread.
- Stock recovery comes back after reboot. You didn't boot into TWRP first after flashing. Reflash TWRP and immediately boot into recovery using the key combo.
- Bootloop after flashing. If the phone stays on the boot logo, boot into TWRP (Volume Up + Power) and wipe cache/dalvik. If that fails, restore your backup or reflash the stock ROM via dload method.
Frequently Asked Questions
Do I need to unlock the bootloader?
Yes. Without an unlocked bootloader, the fastboot flash command will be rejected. Unlocking wipes your data, so back up first.
Will installing TWRP void my warranty?
Yes, it typically voids the warranty. You can usually restore the stock recovery and relock the bootloader to regain warranty, but it's not guaranteed.
Can I install TWRP without a PC?
No, the standard method requires a PC with fastboot. You could use an app like Flashify if you're already rooted, but that's riskier.
What if I don't have the unlock code anymore?
Huawei's official unlock service was discontinued. You may be able to use third-party services like DC-Unlocker, but they charge a fee. Without the code, you cannot unlock the bootloader.
Will TWRP work on all G7 variants?
Most TWRP builds for the G7 are universal across L01/L02/L03/L07/L09, but always check the specific thread for your model. Using a wrong build can cause touch or boot issues.
Can I uninstall TWRP later?
Yes. You can flash the stock recovery image using the same fastboot command (fastboot flash recovery stock-recovery.img) or reinstall the full stock ROM via the dload method.