Xiaomi Redmi 7 firmware: official and custom methods from scratch

Xiaomi Redmi 7 (codenamed onc) is still a popular budget smartphone, despite the release of new models. However, over time, standard MIUI firmware begins to slow down and official updates stop coming out, in which cases, flashing becomes the only way to return the device to its previous performance or install the current version of Android.

In this guide, we will discuss all possible ways of firmware - from official updates through MIUI Updater to install custom firmware through TWRP and Fastboot. You will learn how to unlock the bootloader, where to download verified firmware files, and how to avoid typical errors leading to "bricking" the phone.

We warn you beforehand that firmware is a risky process. Redmi 7 with MIUI version below 12.0.3.0 may require you to force the bootloader to unlock through the Mi Unlock Tool, even if the device has previously been unlocked. This is due to Xiaomi's policy of tightening security. If you are not sure about yourself, contact a specialist.

1. Firmware Preparation: What to Do Before You Start

The first and most important step is data backup, which erases all the contents of internal memory, including photos, contacts and messages, and uses Mi Cloud or third-party apps like Swift Backup.

  • ๐Ÿ“ฑ IMEI (Type *#06# and write down both numbers)
  • ๐Ÿ”‘ Activation keys for banking applications (if you use them)
  • ๐Ÿ“ folder DCIM (photo)
  • ๐Ÿ“ž Call log and SMS (Export through Settings โ†’ Google โ†’ Backup)

Check the MIUI version and bootloader status:

  1. Go to Settings โ†’ About phone and tap the MIUI version 7 times to activate the developer mode.
  2. Return to Settings โ†’ Additional โ†’ For developers and enable USB Debugging and OEM Unlocking.
  3. Connect the phone to your PC and type in the command line: adb shell getprop ro.boot.verifiedbootstate If the answer is orange - bootloader is unlocked, if green - blocked.
๐Ÿ“Š What kind of firmware you plan to use?
Official Update via MIUI Updater
Firmware through Fastboot
Installation of custom firmware through TWRP
I haven't decided yet.

Also prepare:

  • ๐Ÿ’ป Computer on Windows 7/10/11 (Mi Flash Tool is best avoided macOS/Linux because of driver problems)
  • ๐Ÿ”Œ Original. USB-cable (cheap cables can interrupt the connection)
  • ๐Ÿ”‹ Battery charge โ‰ฅ 60% (when discharged during firmware, the phone can turn into a brickยป)
  • ๐Ÿ› ๏ธ Drivers: Mi USB Driver and ADB/Fastboot

๐Ÿ’ก

If you have a Redmi 7 with a Snapdragon 632 processor (not the 660 as in the Redmi Note 7), never use firmware for other models! 7A" It will not work, it is a guaranteed brick.

2. Official firmware via MIUI Updater (the safest method)

If your goal is simply to upgrade Redmi 7 to the latest official MIUI without risking data loss, use the built-in MIUI Updater.

  • ๐Ÿ”„ Updates by airยป (OTA)
  • ๐Ÿ“ฅ Install the full firmware package through the Choose update package
  • ๐Ÿ”’ All data retention (unless you choose Clean All)

Instructions:

  1. Download the latest stable firmware for Redmi 7 (onc) from the official website: ๐ŸŒ Global (for international versions) ๐Ÿ‡จ๐Ÿ‡ณ China (Chinese only) ROM)

The file should have a name like miui_ONCGlobal_V12.5.3.0.QFLMIXM_... (where QFL โ€” code 7).

Move the file to the root of the phoneโ€™s internal memory (not to folders!).

Settings โ†’ About the phone โ†’ System update

โ‹ฎ

Choose update package

Specify the path to the downloaded file and confirm the installation.

The process will take 5-15 minutes. The phone will restart several times - do not turn off the power or press buttons! If after the upgrade the device is getting stuck on the MI logo, wait 10-20 minutes or reset via Recovery (press Power + Vol+).

What if MIUI Updater doesnโ€™t see the firmware file?
Make sure: 1. The file has the correct name (no extra characters or spaces). 2. The file extension is.zip (sometimes Windows hides extensions). 3. The file is located at the root of the memory, not in the Download folder. 4. The firmware version is newer than the current one (otherwise the update will be blocked). If the problem persists, try renaming the file to update.zip.

3. Firmware through Fastboot (for unlocked bootloader)

The Fastboot method is suitable if:

  • ๐Ÿ”“ You already have an unlocked bootloader (orange status)
  • ๐Ÿ“ฆ You need to install a full firmware (for example, after a failure)
  • ๐Ÿ”„ You need to revert to an older version. MIUI

Redmi 7 is critical to use the correct version of the Mi Flash Tool:

  • For Android 9/10 (MIUI 11-12) firmware, MiFlash 2020.3.14
  • For Android 11 (MIUI 12.5+) โ€“ MiFlash 2021.5.21

Older versions of the tool may not recognize Redmi 7 or cause an anti-rollback error.

Step-by-step:

โ˜‘๏ธ Firmware through Fastboot

Done: 0 / 7

Important nuances for Redmi 7:

  • โš ๏ธ If you choose Clean all and lock, the bootloader will lock and the next firmware will require re-unlocking via the Mi Unlock Tool.
  • โš ๏ธ Do not use firmware marked EEA (Europe on global devices โ€“ this could lead to network loss.
  • โš ๏ธ At the stage of unpacking the firmware (.tgz) โ†’ File folder, make sure that there is a file in the folder flash_all.bat. If it is not, the firmware is damaged.

๐Ÿ’ก

On Redmi 7 with MIUI below 12.0.2.0, the Fastboot firmware may end up with an "anti-rollback 4" error, which requires you to upgrade to MIUI 12.0.2.0+ via Recovery first, and then use Fastboot.

4. Unlock the loader: without it can not do

If the bootloader is locked (green status), it must be unlocked through the official Mi Unlock Tool. Xiaomi has tightened the rules, and the following restrictions apply to the Redmi 7:

  • ๐Ÿ•’ Wait 72โ€“168 hours after linking your Mi Account to your device (even if youโ€™ve previously unlocked it).
  • ๐Ÿ“ฑ Mandatory SIM-card in the phone during unlocking (network checks).
  • ๐Ÿ”— Link to Mi Account โ€“ without it, the tool will not allow unlocking.

Instructions:

  1. Download Mi Unlock Tool (at least 5.5.224.24 for Redmi 7).
  2. Sign in to your Mi Account on your phone and the tool on your PC (should be the same account!).
  3. Connect your phone in Fastboot mode (press Power + Vol- when the device is off).
  4. In the tool, press Unlock. If a Couldn't unlock error appears, wait for the specified time (usually 72 hours) and try again.

Frequent mistakes and decisions:

Mistake.Reason.Decision
Couldnโ€™t unlock 86006It has not been 72 hours since the account was linked.Wait and repeat
Current account is different from the account info on the deviceDifferent accounts on the phone and in the Mi Unlock ToolReauthorize
Device is locked. Unable to verifyPhone is not in Fastboot modeReboot to Fastboot (Power + Vol-)
Mi cloud service is unavailableProblems with Xiaomi serversTry it later or use a VPN

๐Ÿ’ก

If the Mi Unlock Tool gives you an error, "This device is not supported," download a modified version of the tool from XDA-Developers. It bypasses Xiaomi's limitations on older models.

5. custom firmware installation (TWRP + LineageOS/Pixel Experience)

If you are not satisfied with the standard MIUI, you can install custom firmware based on Android 11/12. For Redmi 7 available:

  • ๐Ÿ“ฑ LineageOS 18.1 (Android 11)
  • ๐Ÿ“ฑ Pixel Experience (Android 12)
  • ๐Ÿ“ฑ crDroid (Android 11)

The installation will require:

  1. Unlocked boot loader (see section 4).
  2. Installed custom TWRP Recovery (official version for onc: twrp.me).
  3. Firmware in.zip and GApps format (if you need Google services).

Step-by-step:

  1. Download. TWRP for Redmi 7 Fastboot: Fastboot Flash Recovery twrp-3.7.0_9-0-onc.img fastboot boot twrp-3.7.0_9-0-onc.img
  2. In TWRP, run Wipe โ†’ Advanced Wipe and mark Dalvik / ART Cache System Data Cache

Don't touch it.

Internal Storage

MicroSD

Install โ†’ Choose.zip โ†’ Swipe to confirm

GApps

Magisk

Reboot to the system.

How to return MIUI after custom firmware?
1. Download the official firmware in.tgz format for Fastboot. 2. Download to Fastboot (Power + Vol. 3. Squeeze through Mi Flash Tool with Clean all. 4 option. If the phone doesn't boot, repeat the procedure with the Clean all and lock option.

Warnings for custom firmware on Redmi 7:

โš ๏ธ Attention: On the firmware Android 12+ The camera module may not work (due to Sonyโ€™s closed source driver code) IMX486). Use modified GCam from BSG.

โš ๏ธ Note: If after installing custom firmware disappeared 4G/LTE, check the settings APN Or run the modem from stock firmware through TWRP (file modem.img from the image folder).

Typical errors and their solutions

Even if you follow the instructions accurately, you can have problems.

Error: 'This package is for 'onc' devices; this is a'

Reason: The firmware is not designed for your model. Solution: Download the firmware specifically for onc (Redmi 7), not for olive (Redmi 8) or lavender (Redmi Note 7).

The error is "Anti-rollback check fail."

Reason: Trying to install an older version of MIUI than the current.Solution: Upgrade first to the latest official version via Recovery, then use Fastboot.

The phone does not turn on after firmware (black screen)

Causes and solutions:

  • ๐Ÿ”‹ Battery's gone. โ†’ Charge 30.+ Then try to download to Fastboot (Power). + Vol-).
  • ๐Ÿ”„ Wrong firmware โ†’ Sweep through the official version via the Mi Flash Tool with the Clean All option.
  • ๐Ÿ”“ The loader blocked. โ†’ Re-unlock with the Mi Unlock Tool.

No network after firmware

Reasons:

  • ๐Ÿ“ก Inconsistency of the firmware region (for example, China installed) ROM globalize).
  • ๐Ÿ“ถ Damaged Modem settings.

Solution: Sweat modem.img file from stock firmware via Fastboot:

fastboot flash modem modem.img

or reset the network settings to Settings โ†’ SIM-maps and mobile networks โ†’ Resetting settings.

7. Where to download firmware and tools for Redmi 7

Official sources:

  • ๐ŸŒ MIUI Global Stable (Global Stable)
  • ๐Ÿ‡ช๐Ÿ‡บ MIUI Europe (region) EEA)
  • ๐Ÿ‡จ๐Ÿ‡ณ MIUI China (Chinese versions only)
  • ๐Ÿ“ฆ Bigota (archive of all versions, including beta)

Custom firmware and tools:

ResourceDescriptionReference
TWRPCastomic recavers for installing firmwaretwrp.me
LineageOSPure Android without MIUIlineageos.org
Pixel ExperienceFirmware with Pixel interfacepixelexperience.org
Mi Flash ToolOfficial Firmware Tool Through Fastbootmiui.com
XDA-DevelopersForum with mods, fixes and discussionsforum.xda-developers.com

Warning:

โš ๏ธ Warning: Never download firmware from torrent trackers or obscure sites! In 2023, there were cases when files with viruses or spyware were distributed under the guise of firmware for Redmi 7. XDA.

FAQ: Answers to Frequent Questions

โ“ Can I flash Redmi 7 without unlocking the bootloader?
Xiaomi blocks installation of any firmware (except for the OTA-Unlocking through the Mi Unlock Tool is mandatory for Fastboot and TWRP.
โ“ How to check if the bootloader is unlocked?
Turn off the phone, then press Power + Vol-. If you see the Mi Bunny logo that says Unlocked, the bootloader is unlocked. You can also check the fastboot oem device-info command (see Device unlocked: true).
โ“ Why the camera doesnโ€™t work after the firmware?
Custom firmware (especially Android 12+) often breaks the camera's stock app because of closed drivers.Solutions: Install BSG's GCam. Mod MiuiCamera via TWRP (look for XDA). Return to stock MIUI if the camera is critical.
โ“ How to Reverse to an Older Version MIUI?
Due to the mechanism of Anti-Rollback on Redmi 7 rollback is possible only within one branch (for example, with the main branch). MIUI 12.5.3 by 12.5.1). To roll back to an older version (e.g. with MIUI 12 on MIUI 11) will be required: Unlock the bootloader. Swipe through the Fastboot a special firmware with anti-Rollback bypass (see for the XDA Redmi 7 anti-rollback bypass, set the target version MIUI. โš ๏ธ The risk of bricks in the wrong actions is extremely high!
โ“ Can I use Redmi 7 to help you? SD-map?
Yes, but only if you have it installed. TWRP. Algorithm: Download the firmware (.zip) and place it on SD-Load up in the map. TWRP (Power + Vol+). Choose Install. โ†’ Select Storage โ†’ Micro SD โ†’ select the file โ†’ Swipe to confirm. Xiaomi's standard Recovery does not support installation with SD-map.