How to change firmware on Xiaomi Redmi 7: official and custom methods

Replacing the firmware with Xiaomi Redmi 7 is a challenge that may seem difficult to beginners, but with the right approach becomes quite feasible even for users with minimal experience. This smartphone, released in 2019, is still popular due to its balanced characteristics: a Qualcomm Snapdragon 632 processor, 2-4 GB of RAM and a battery of 4000 mAh. However, over time, official updates from Xiaomi cease to arrive, and users face slowdowns, errors or simply a desire to install a more recent version of Android.

In this article, weโ€™ll look at all the current ways Redmi 7 is running, from official updates via MIUI Updater to custom firmware installations like LineageOS or Pixel Experience. Weโ€™ll focus on unlocking the bootloader, a must-have for most unofficial firmware, and look at common bugs and solutions. If youโ€™ve never flashed a smartphone before, donโ€™t worry: weโ€™ll explain each step in detail, including tool preparation and data backup.

Before you start, consider that any manipulation of the firmware will void the Xiaomi warranty (if it is still valid) and can lead to the device failure if you do not act correctly. However, if you follow the instructions, the risks are minimal, and the result is stable operation of the smartphone on the current software.

1. Firmware Preparation: What to Do Before Starting

The first and most important step is preparation, and neglecting this step often results in a device being "bricked" or data lost, starting with checking the current firmware and smartphone model.

To find out the MIUI version and the code name of your Redmi 7, go to Settings โ†’ About Phone. In the MIUI version, you will see the current firmware (e.g. MIUI Global 12.5.4 Stable), and in the Device Model, the exact name. For Redmi 7, the code name is onc (important for finding custom firmware!).

  • ๐Ÿ”‹ Battery charge: Make sure the battery is at least 60% full. The firmware can take up to 30 minutes and a sudden power outage will interrupt the process.
  • ๐Ÿ“ฑ Backup: Save all important data (photos, contacts, messages) to your computer or cloud. Use Mi Cloud or third-party applications like Titanium Backup (requires root).
  • ๐Ÿ–ฅ๏ธ Tools: Prepare a Windows computer 10/11 (For the Mi Flash Tool), USB-cable (preferably original), and at least 4 GB of free space on the disk.
  • ๐Ÿ”‘ Unlocking the bootloader: If you plan to custom firmware, check the bootloader status with the command fastboot oem device-info. If Device unlocked: false, it needs to be unlocked (more about this below).

Also download the necessary files in advance:

  • ๐Ÿ“ Official firmware: From en.miui.com (select the version for onc).
  • ๐Ÿ› ๏ธ Mi Flash Tool: Official Firmware Tool via fastboot (download here).
  • ๐Ÿ”ง ADB and Fastboot: Google Utility for working with Android (link).
  • ๐Ÿ“ฑ TWRP Recovery: Castomic recavers for installation of unofficial firmware (download only for onc!).

โš ๏ธ Note: Do not use firmware for other models (e.g. Redmi Note 7 or Redmi). 7A) โ€” This is guaranteed to lead to a blink! The code name onc must match all downloaded files.

๐Ÿ“Š What kind of firmware do you plan to install?
Official MIUI
LineageOS (Pixel Experience)
Stock Android
Another.

2. Method 1: Update via MIUI Updater (official method)

The easiest and most secure way to upgrade is through the built-in MIUI Updater app, which is suitable for installing stable or beta versions of MIUI, if available for your region.

Instructions:

  1. Open Settings โ†’ About the phone โ†’ System update.
  2. Click on the icon. โ‹ฎ (three dots) in the upper right corner and select Select Service Package.
  3. Specify the path to the downloaded firmware file (.zip format).
  4. Confirm the installation and wait for the restart (it will take 5-15 minutes).

If the update is not automatically available, check:

  • ๐ŸŒ Firmware region: Your current version must match the region of the downloaded file (e.g. Global, China, EEA).
  • ๐Ÿ”„ Version. MIUI: You canโ€™t downgrade the version via Updater โ€“ only through fastboot.
  • ๐Ÿ“ถ Internet: You need stable Wi-Fi to download updates.

โš ๏ธ Note: If after the update, the smartphone stuck on the logo MI, Wait 10-15 minutes. If the problem persists, reset via Recovery (Volume Up). + Power).

โ˜‘๏ธ Preparations for formal renewal

Done: 0 / 4

Method 3: Fastboot (Mi Flash Tool)

If you want to install the official firmware from scratch (for example, after a crash) or upgrade to another regional version, use the Mi Flash Tool. This method requires an unlocked bootloader and is suitable for restoring the device to health.

Step-by-step:

  1. Install drivers: Download and install Mi USB Driver from Xiaomiโ€™s official website.
  2. Unpack the firmware: The firmware file for fastboot should be in.tgz or.zip format. Unpack it into a folder without Cyrillic characters (for example, C:\MIUI\onc).
  3. Start Mi Flash Tool: Open the program on behalf of the administrator.
  4. Connect your phone in Fastboot mode: 1. Turn off your smartphone. 2. Press Volume Down + Power before the appearance of the hare in the hat-eared (fastboot mode). 3. Connect USB-computer-wire.
  5. Select firmware: In the Mi Flash Tool, click Select and specify the folder with the unpacked firmware.
  6. Start firmware: Press Refresh (the device should appear), then select the firmware method: Clean all โ€“ complete cleaning (recommended when changing the region). Clean all and lock โ€“ cleaning + lock bootloader (only for official firmware!). Save user data โ€“ data storage (not always stable).

Wait for completion

Mistake.Reason.Decision
Can't find deviceNot installed drivers or problem with USB-connectionInstall drivers manually through Device Manager or try another cable/port
Flash not doneA damaged firmware file or model mismatchDownload the firmware again and check the code name (onc)
Anti-rollbackTrying to install an old version of MIUIUse only the new or same version of the firmware
Hanging on 99%Antivirus conflict or port blockingTurn off the antivirus and try again.

๐Ÿ’ก

If the Mi Flash Tool doesnโ€™t see the device, try running it in Windows 7 compatibility mode or disable driver signatures via the command line (bcdedit/set nointegritychecks on).

Method 3: Install custom firmware (TWRP + LineageOS)

Custom firmware such as LineageOS, Pixel Experience or Havoc OS allows you to get a clean Android without a MIUI shell, more recent versions of the OS and additional features.

  • ๐Ÿ”“ Unlocked loader (see Section 5).
  • ๐Ÿ“ฑ Established custom recaveri TWRP.
  • ๐Ÿ“ Compatible firmware for onc.

Instructions for installing LineageOS:

  1. Download files: LineageOS firmware for onc from lineageos.org. Open GApps (if you need Google services) - select arm64 โ†’ 10.0 โ†’ pico.Magisk (optional, for root rights).

Go to TWRP.

1. Turn off the phone.


2.Press Volume Up + Power before the TWRP logo appears.

Make a backup.

Backup

Boot

System

Data

Clear the sections.

Wipe โ†’ Advanced Wipe

Dalvik, System, Data, Cache

Install the firmware

  • Press Install and select the LineageOS file.
  • After installation, repeat the step for GApps (if necessary).
  • Install Magisk (optional).
  • Reboot: Press Reboot โ†’ System. The first run can take up to 10 minutes.

โš ๏ธ Note: Some custom firmware does not support VoLTE (calls on the Internet) 4G) Check the reviews on Redmi 7 before installing. XDA Developers.

How to check firmware compatibility with Redmi 7?
Before downloading custom firmware, make sure it is for the onc model. 1. See the theme name on XDA or firmware site โ€“ Redmi 7 (onc) should be specified. 2. Check the date of the last update โ€“ if the firmware hasnโ€™t been updated for more than a year, it may contain critical errors. 3. Study user comments: bugs are often mentioned there (for example, a broken camera or Wi-Fi).

5. Unlock the bootloader on Redmi 7

To install custom firmware or TWRP recovers, you need to unlock the bootloader. Xiaomi officially allows this, but the process requires waiting and a Mi Account account.

Steps to unlock:

  1. Link your Mi Account: Go to Settings โ†’ Xiaomi account and log in. โ†’ Additionally. โ†’ For developers, activate OEM-unlocking and debugging USB.

Download the Mi Unlock Tool

en.miui.com/unlock

Connect your phone in Fastboot mode

Launch the Mi Unlock Tool

  • Log in to the same Mi Account as on your phone.
  • Connect the device - the program will determine it.
  • Press Unlock.
  • Wait. SMS-Code: The associated number will receive a confirmation message. Enter the code into the program.
  • Wait 72-360 hours: Xiaomi blocks unlocking for 3-15 days for new accounts.
  • Re-unlock: After the deadline, reconnect the phone and press Unlock. the bootloader will be unlocked.

Once unlocked, every time you turn on your phone, you'll see a warning, This device is unlocked. This is normal and doesn't affect your work.

๐Ÿ’ก

Unlocking the bootloader erases all data from the device! be sure to make a backup before starting the process.

Typical errors and their solutions

Even if you follow the instructions, you can get errors, and let's look at the most common problems and how to fix them.

Problem.Possible causeDecision
The phone does not turn on after the firmwareIncompatible firmware or interrupted processRepeat the firmware through fastboot with a full cleanup (Clean all)
Hanging on the MI or LineageOS logoModule conflict or lack of GAppsGo for a Dalvik/Cache cleanup or install firmware without GApps
Error 7 Error in TWRPThe firmware is not intended for oncDownload the correct firmware version for Redmi 7
Network is not working (no signal)There are no modems or incorrect version of the firmwareInstall firmware with support for your region or reflash the modem via fastboot
Fast battery discharge after firmwareBackground processes or unoptimized coreCalibrate the battery (discharge to 0% and charge to 100% without interruption)

If none of these methods worked, try:

  • ๐Ÿ”„ Return to official firmware via Mi Flash Tool with full cleanup.
  • ๐Ÿ“ž Contact the forum XDA โ€” They often make patches for specific errors.
  • ๐Ÿ› ๏ธ Check the hardware: If the phone doesnโ€™t respond to the firmware, there may be a memory or processor problem (requires diagnosis at the service center).

7.How to return the official firmware after custom

If custom firmware was unstable or you decided to return to MIUI, you can do it in two ways: via fastboot or TWRP.

Method 1: Mi Flash Tool (recommended)

  1. Download the official firmware for onc in.tgz format.
  2. Unpack it in a folder without spaces and Cyrillic.
  3. Start the Mi Flash Tool and connect your phone in fastboot mode.
  4. Select the firmware folder and press Refresh.
  5. Select the Clean All method and start the firmware.

Method 2: TWRP (if fastboot is not available)

  1. Download the official firmware in.zip format (not for fastboot!).
  2. Rename the file to update.zip and put it on SD-map.
  3. Download to TWRP and select Install.
  4. Please specify the path to update.zip and confirm the installation.
  5. After completion, run Wipe โ†’ Format Data (enter yes for confirmation).

โš ๏ธ Note: When returning to the MIUI After custom firmware, Anti-Rollback can work, which is protection against rollbacks on older versions. Always use the latest official firmware for Redmi 7.

FAQ: Frequent questions about Redmi firmware 7

Can I flash Redmi 7 without unlocking the bootloader?
No, custom firmware or TWRP is required to be unlocked, but official updates via MIUI Updater or fastboot (with a locked bootloader) are possible if the firmware is signed by Xiaomi.
How to check if the bootloader is unlocked?
Turn off your phone and press Volume Down + Power to log in to fastboot. Connect it to your computer and type in the command: fastboot oem device-info If Device unlocked: true is unlocked in the answer.
Which custom firmware is better to choose for Redmi 7?
The most stable options are LineageOS, which is pure Android with regular updates; Pixel Experience, which is the interface on Google Pixel; Havoc OS, which is a lot of customization, but may be less stable; Check XDA reviews before choosing - some firmware may not support the camera or NFC.
What if the touchscreen doesnโ€™t work after the firmware?
This is a typical problem when installing firmware not designed for onc. Solution: Install the correct firmware version for Redmi 7. If touchscreen is partially working, try to snoop through fastboot. Check if the screen plume is damaged (may need repair).
Can I get root rights to Redmi 7 without custom firmware?
Yes, with Magisk. To do this: Unlock the bootloader. Install TWRP. Download Magisk.zip from the official website and stream it through TWRP. Install Magisk Manager for rights management. Note that some banking applications (e.g. Sberbank Online) may block work on rooted devices.