The Xiaomi Redmi 7 remains a popular budget smartphone even years after its release, but its performance and functionality can be significantly improved with firmware. Fastboot firmware is one of the most reliable ways to install official or custom firmware when standard methods through Recovery do not work or require a complete system reset. OTA-This method gives the user full control over the process, but also requires accuracy: an error at any stage can turn the phone into a brickΒ».
In this article, we will take a look at the step-by-step instructions for Redmi 7 firmware (codename onc) via Fastboot, including driver preparation, bootloader unlocking, firmware selection and typical problems. We will focus on the nouns of working with MIUI 12/13 and custom firmware based on Android 10/11, since these are the versions most often installed by Redmi 7 owners in 2026. If you have never flashed a smartphone before, donβt worry: the manual is adapted for beginners, but with all the technical details.
1. Firmware Preparation: What to Do Before Starting
Fastboot firmware isn't just about copying files to your phone; it's a process that affects system parts of the device, so you have to approach it responsibly. The first thing you need to do is back up all the data. Even if you plan to flash the official MIUI without resetting, errors when unlocking the bootloader or firmware incompatibility can lead to loss of information.
Hereβs what you should check before you start:
- π Battery charge at least 60%. Firmware can take up to 30 minutes, and discharging in the process is fraught with failures.
- π₯οΈ Computer on Windows 7/10/11 (or Linux/macOS supportive ADB). Virtual machines are not recommended due to driver issues.
- π Original. USB-Cheap cables don't have to transmit data in Fastboot mode.
- π± Unlocked bootloader (if you are stitching through an unofficial firmware). MIUI-Firmware can also be installed on a blocked loader.
Also make sure your computer has turned off antivirus (it can block tools like MiFlash) and has USB debugging mode on your phone. To activate it, go to Settings β About Phone β MIUI Version and 7 times click on the line with the version. Then in Settings β Additional β For developers, the option will be Debugging over USB.
2. Unlock the bootloader on Xiaomi Redmi 7
If you are flashing an informal firmware (like LineageOS or Pixel Experience), the Redmi 7 bootloader must be unlocked. Official MIUI firmware can be installed on the locked bootloader, but unlocking gives you more room for modifications. The process takes up to 72 hours due to Xiaomi's policy, so start in advance.
Instructions for unlocking:
- Download the official Mi Unlock tool from Xiaomiβs website and install it on your PC.
- Log in to Mi Account on your phone and link it to your device in Settings β Xiaomi Account.
- Turn off the phone, then press Volume Down + Power to log into the Fastboot.
- Connect your phone to your PC, start Mi Unlock, and follow the instructions. The system will request confirmation via SMS.
β οΈ Note: If Mi Unlock shows a "Couldn't unlock" error with a timer, you've recently linked your account to your device. Wait for the specified time (usually 168 hours) and try again. You can't speed up the process - this is a limitation of Xiaomi.
Once successfully unlocked, the phone will automatically reset to factory settings. That's OK, because Xiaomi protects the user's data. Now you can start firmware.
What if Mi Unlock canβt see the device?
3. firmware selection: official MIUI vs custom builds
The type of firmware depends not only on the functionality, but also the stability of the Redmi 7. Official firmware MIUI is divided into:
- π Global β optimized for the international market, support Google Services, but update less frequently.
- π¨π³ China β Gets updates first, but without Google services (manual installation required).
- π§ͺ Beta (Developer) β New features, but bugs are possible.
Custom firmware (e.g. LineageOS, Pixel Experience, Havoc-OS) offers:
- π± Pure Android without a branded shell MIUI.
- β‘ Longer support (e.g. Android 11 for Redmi 7, while official support) MIUI stopped on Android 9).
- π§ Advanced settings (e.g., kernel management, Substratum themes).
However, custom firmware has disadvantages: there may be problems with the camera, sensors or NFC module (if you have one in your Redmi 7 modification).
| Criteria | Official MIUI | Custom firmware |
|---|---|---|
| Stability | βββββ | βββ (build-dependent) |
| Support for Google Services | Yes (in Global) | Yes (set separately) |
| Android version | Android 9 (last) | Up to Android 11. |
| Unlocking the loader | Not necessarily. | Required. |
| Updates | Regular (OTA) | Handheld (via Recovery) |
For beginners, we recommend starting with the official global firmware. If you want new versions of Android, choose custom builds from trusted developers (for example, LineageOS from konstaT or Pixel Experience from jhenrique09).
π‘
Before installing custom firmware, check on the XDA-Developers forum if it supports all the features of your Redmi 7 modification (for example, some builds do not work with the software). NFC-module).
4. Step-by-step instruction: firmware via Fastboot
Now, let's get to the process. You'll need to get the firmware in.
- π» MiFlash program (you can download here).
- π Firmware in.tgz or.zip format (for official use) MIUI) or.img files (for customization).
- π§ Qualcomm drivers (usually installed automatically with MiFlash).
Instructions:
- Download the firmware for Redmi 7 (codename onc) from the official Xiaomi website or XDA-Developers (for custom), unpack the archive in a folder without Cyrillic characters (for example, C:\Redmi7_Fastboot).
- Turn off your phone and press Volume Down + Power to log into the Fastboot. Connect it to your PC.
- Launch MiFlash, press Select and point the way to the firmware folder. At the bottom, select firmware mode: clean all β complete cleanup (recommended for changing the version of MIUI). clean all and lock β clean + lock the bootloader (only for official firmware!). save user data β save data (not always stable).
Refresh
Redmi 7
Flash
Qualcomm drivers installed | Downloaded the correct firmware for the onc| model Phone in Fastboot | Antivirus Disabled | Battery Charge > 60%-->
If the firmware is successful, the phone will boot into the system. The first boot can take up to 10 minutes - do not interrupt the process. If the screen has been getting stuck on the MI logo for more than 20 minutes, then an error has occurred (see section 6).
5. Custom Recovery firmware (TWRP) for custom firmware installation
Custom firmware (like LineageOS) will require custom Recovery β usually TWRP. Xiaomiβs official Recovery doesnβt allow uncertified files to be stitched.
Instructions for installing TWRP:
- Download the latest version of TWRP for Redmi 7 (onc) from the official website.
- Rename it to twrp.img and place it in a folder with platform-tools (where adb and fastboot lie).
- Open the command prompt in this folder (Shift + right mouse button β βOpen PowerShell window hereβ).
- Enter commands in order: fastboot devices (should display a serial number of the phone) fastboot flash recovery twrp.img fastboot boot twrp.img
β οΈ Attention: After installation TWRP formal OTA-update MIUI To return standard Recovery, run the official firmware through MiFlash with the clean all and lock option.
Typical errors and their solutions
Even with the correct instructions, errors can occur, and here are the most common ways to correct them:
| Mistake. | Reason. | Decision |
|---|---|---|
| fastboot: error: Failed to boot into fastbootd | Incompatible version of fastboot or drivers. | Update the platform-tools to the latest version or use MiFlash. |
| Phone is not defined in MiFlash | Qualcomm drivers are missing. | Install drivers manually through Device Manager (look for QDLoader 9008). |
| Invalid sparse file format at header | A firmware file or an incorrect version for the model is damaged. | Download the firmware again and check the code name (onc for Redmi 7). |
| Hanging on the MI logo after firmware | Firmware incompatibility or error when writing partitions. | Repeat the firmware with the clean all option or sift through another version. |
| Anti-rollback check fail | Trying to sew an older version of MIUI. | Sweat the new version or use the Xiaomi Anti-Rollback Bypass tool (risky!). |
If your phone has turned into a brick (it doesnβt turn on, doesnβt respond to buttons), try:
- Press Volume up + Power for 20 seconds (hard reset).
- Connect to a PC and try to flash again through MiFlash.
- If it doesn't help, use it. EDL-Mode (requires an authorized Xiaomi account and a special cable).
π‘
The most common mistake when running a Redmi 7 firmware is not matching the firmware codename (onc) with the phone model. Always make sure youβre downloading files for the Redmi 7, not the Redmi Note 7 or any other device!
7.Optimization after firmware: what to do first
After successful firmware, the system may not work well for the first few hours.
- π Reset settings (if you have been stitched without clean all). Go to Settings β Additionally. β Resetting settings.
- π Disable unnecessary services (for custom firmware): many builds include background processes that drain the battery.Use Greenify or built-in settings.
- πΆ Set up a network: if after firmware lost mobile Internet, check APN-operator settings.
- π Calibrate the battery: discharge the phone to 0%, then charge to 100% without interruption (relevant after resetting).
For official firmware MIUI is also useful:
- Disable Advertising: Settings β Special Opportunities β Remove Advertising.
- Activate the Extended Energy Saving Mode to increase the operating time.
- Update Google Services via Play Market (if youβve been streaming the Chinese version).
If you have a custom firmware, install:
- Magisk for root rights (via TWRP).
- Google Services (GApps) β Choose a pico or nano option to save space.
- Kernel Adiutor for fine-tuning performance.