How to reflash Xiaomi Redmi 7: official and custom methods

Why do you want to re-watch Redmi 7 and what are the risks?

Smartphone Xiaomi Redmi 7 (codename onc) was released in 2019 with MIUI 10 based on Android 9 Pie. For 5 years of support, the device has received several major updates, but the official updates have long been discontinued.

βœ… Return the β€œlife” to the old device with a modern version of Android (to Android 12 through custom firmware). βœ… Remove built-in Bloatware (pre-installed Chinese apps). βœ… Improve performance with optimized builds like Pixel Experience or LineageOS. βœ… Fix critical bugs if official software is unstable.

However, the process has risks ranging from a brick (an inoperable device) to a loss of warranty (if it was still in effect). Redmi 7’s main problem is the blocked bootloader by default, which requires official unlock through the Mi Account. Without this, most firmware methods simply won’t work.

In this guide, we will analyze all the current methods: from secure updates through MIUI Updater to install custom firmware through TWRP. Each method is accompanied by warnings about possible errors and ways to solve them.

Preparation for firmware: what to do before the beginning

Regardless of the method chosen, the preparation is the same, and skipping at least one item can lead to data loss or firmware failure.

  • πŸ”‹ Battery charge at least 60 percent, and when discharged during the process, the phone may shut down, causing a failure.
  • πŸ“± Backup of all data (photos, contacts, SMS). Use Mi Mover or Google Account Sync.
  • πŸ” Unlock the bootloader (if you plan to custom firmware). TWRP They won't be able to write files.
  • πŸ’» Installation of drivers: Mi Flash Tool (for Windows) or adb/fastboot (for Linux/macOS).
  • πŸ“‘ Stable Internet connection (if you download the firmware directly from your phone).

Xiaomi requires you to link the device to your Mi Account and wait 7-15 days (2026) if you haven’t done this before, start the process in advance:

  1. Go to Settings β†’ About Phone β†’ MIUI version (click 7 times to activate Developer Mode).
  2. Return to Settings β†’ Additional β†’ For developers and enable OEM Unlock.
  3. Connect your phone to your PC, open the command line and type: adb reboot bootloader Then: fastboot oem unlock
πŸ“Š You have already unlocked the bootloader on your Xiaomi?
Yeah, long ago.
Yeah, but I don't remember how.
No, just planning.
I don't know what it is.

⚠️ Warning: Once the bootloader is unlocked, the phone will perform a full reset (wipe). All data will be deleted, even if you backup the memory card.

Method 1: Update via MIUI Updater (official method)

The safest option is if you need to update the official firmware without risking data loss, suitable for switching from MIUI 10/11 to MIUI 12/13 (maximum possible for Redmi 7).

Steps:

  1. Open the Update app on your phone.
  2. Click on the three dots in the upper right corner β†’ Select the service pack.
  3. Specify the path to the downloaded firmware file (the.zip format, the name should contain onc – the code name of the model).
  4. Confirm installation. The phone will reboot and update automatically.

Where to get official firmware? Only download from Xiaomi's official website (choose Global or EEA for Europe). China versions may not support Google Services.

Type of firmwareAndroid versionThe latest version of MIUIDownload link
Stable (Global)Android 9MIUI 12.5.8Download
Stable (EEA)Android 9MIUI 12.5.6Download
Beta (China)Android 10MIUI 21.12.29Download

⚠️ Note: If you update via Updater with a "Can't verify update" error, check the integrity of the downloaded file (MD5-The amount must match the amount listed on the site, and make sure that the file name does not contain Cyrillic or spaces.

πŸ’‘

Update via MIUI Updater does not require unlocking the bootloader and saves all data, but is limited to official versions of MIUI.

Method 2: Fastboot (Mi Flash Tool)

This method is suitable for recovering your phone after a crash or installing a clean official firmware. It requires an unlocked bootloader and a Windows PC.

Instructions:

  1. Download the Mi Flash Tool from the official website and install it.
  2. Unpack the downloaded firmware (.tgz format) into a folder without spaces in the path (for example, C:\MIUI\onc_global_images...).
  3. Turn off the phone, press Volume Down + Power to log into the Fastboot.
  4. Connect your phone to your PC, launch the Mi Flash Tool, and press Refresh.
  5. Select the firmware folder, select Clean all (full clean) or Clean all and lock (if you want to lock the bootloader back).
  6. Press Flash and wait until it is completed (5-10 minutes).

If the process is 99% frozen or there is an anti rollback error, it means:

  • πŸ”„ You are trying to install an older version. MIUI, What is already there (forbidden by Xiaomi policy).
  • πŸ”§ You need to download a new firmware or reset your phone via Fastboot with the command: fastboot erase userdata

Download the Mi Flash Tool|Unpack the firmware into the root of the disk|Check the drivers (Mi Phone Manager)|Disable the antivirus (can block the process)|Charge the phone to 100%-->

Method 3: Install custom firmware (TWRP + Custom ROM)

For enthusiasts who want Android 11/12 or pure Android without a MIUI shell.

  • πŸ”“ Unlocked loader.
  • πŸ“± Established custom recovery TWRP.
  • πŸ“¦ Onc-compatible firmware (e.g. Pixel Experience, LineageOS 19).

Steps:

  1. Download TWRP for Redmi 7 from the official website (version must be at least 3.6.0).
  2. Go to Fastboot and run recovery: fastboot flash recovery twrp-3.6.0-onc.img fastboot boot twrp-3.6.0-onc.img
  3. In TWRP, make a backup of the persist partition (important for IMEI!).
  4. Sweat the custom firmware (for example, PixelExperience_onc-12.0-20230510.zip) GApps (if you need Google services).
  5. Clear the cache (Wipe β†’ Format Data) and restart.

The following are the Redmi 7 Firmware:

FirmwareAndroid versionFeaturesReference
Pixel Experience12Pure Android with Pixel chipsDownload
LineageOS 1912Stable, no BloatwareDownload
Havoc-OS11Maximum customizationDownload

⚠️ Note: After installing custom firmware does not work: πŸ“· Wide-angle camera (no drivers in the AOSP-firmware). πŸ”‹ Fast charging (may be limited) 10W instead 18W). πŸ“‘ VoLTE/VoWiFi (It depends on operator and build. Check the forum reviews before installing. 4PDA or XDA firmware.

How to return MIUI after custom firmware?
1. Download the official firmware in.tgz format for your region. 2. Sweep it through the Mi Flash Tool in Clean all and lock. 3. If the phone doesn't turn on, try going to Fastboot and repeat the firmware. 4. Use it as a last resort. EDL-Mode (requires an authorized Xiaomi account).

Solving common errors in firmware

Even with the correct following of the instructions, problems can arise, and here are the most common ways to solve them:

  • 🚫 Anti-Rollback Error: The Reason: Trying to roll back to an older version MIUI. The solution is to flash a new firmware or reset the counter through Fastboot: fastboot erase anti
  • πŸ”„ Hanging on the logo MI: Probably incompatible firmware or not cleared cache. TWRP And do the Wipe. β†’ Format Data.
  • πŸ”Œ Phone is not defined in Fastboot: Check the drivers (install Mi Phone Manager), change USB-Linux can be used by a command: sudo fastboot devices
  • πŸ“± Touch doesn't work after firmware: Typical problem for custom firmware on Redmi 7.The solution is to flash the kernel from another build or return it MIUI.

If your phone has turned into a brick (it doesn’t turn on, doesn’t respond to buttons), try:

  1. Press Volume up + Power for 20-30 seconds (forced reboot).
  2. Connect to your PC and check if Fastboot or EDL (Emergency Firmware Mode) is defined.
  3. If nothing helps, contact the service center (for Redmi 7 recovery through the service center). EDL worth ~1500–2000 β‚½).

πŸ’‘

Before you run custom ROM, check on the forum if it supports 4K video decoding. On some Redmi 7 builds, hardware acceleration only works at 1080p.

How to check the success of the firmware?

After flashing it, it's important to make sure everything works correctly.

  • πŸ“ž Calls and mobile internet: call another number, check your speed 4G.
  • πŸ“· Cameras: Take a photo on the main and front camera.
  • πŸ”Š Sound: Test the speaker, microphone and 3.5mm connector.
  • πŸ”‹ Charging: Connect the charger and make sure that charging is underway.
  • 🌐 Wi-Fi and Bluetooth: connect to the network and pair headphones.
  • πŸ“± IMEI: Enter *#06# and yours should be displayed. IMEI (If you are missing, recover from the backup persist).

If something doesn’t work, go back to the previous firmware or ask for help on thematic forums:

  • 4PDA: The Redmi 7 Theme
  • XDA Developers β€” Redmi 7

FAQ: Frequent questions about Redmi firmware 7

Can I flash Redmi 7 without unlocking the bootloader?
No. All methods except for upgrading through MIUI Updater require an unlocked bootloader, without which you can't install TWRP or flash custom ROM.
How do I know if the boot loader is unlocked?
Turn off your phone, press Volume Down + Power to log into the Fastboot. If there's "Unlocked" on the bottom of the screen, the bootloader is unlocked. If "Locked" isn't.
Which firmware is best for Redmi 7 in 2026?
Depending on the objectives: Stability: official MIUI 12.5 (Android 9); Modern Android: Pixel Experience (Android 12); Performance: LineageOS 19 (minimalist, no unnecessary services).
Can I return the warranty after the firmware?
Technically, no, because unlocking the bootloader voids the warranty, but if you return the MIUI and lock the bootloader (fastboot oem lock), the service center may not notice the interference (but this is not guaranteed).
Why is the mobile network not working after the firmware?
Probable causes: Incompatible firmware (e.g. China ROM without your carrier support); IMEI missing (restore from the persist backup or via Maui META); APN incorrect settings (check in Settings β†’ Mobile Network β†’ Access Points).