How to install firmware on Xiaomi Redmi Note 7: official and unofficial ways

The Xiaomi Redmi Note 7 is still one of the most popular budget smartphones, despite the release of new models, and owners of this device often face the need to reflash the device β€” whether it is a desire to get a fresh version of MIUI, fix software errors or install custom firmware for advanced features. However, improper installation of firmware can turn the phone into a β€œbrick”, so it is important to follow the instructions clearly.

In this article, we will analyze all the current ways of firmware Redmi Note 7 (codename lavender): from official updates via Ota Updater to manual installation through Fastboot and the Internet. TWRP. You'll also learn how to unlock the bootloader, avoid common errors, and restore the phone if something goes wrong. Updated for 2026 with the latest versions. MIUI and alternative firmware.

Preparation for firmware: what to do before the start

Before you start firmware, there are a few critical steps that need to be taken, and neglecting them can lead to data loss, phone malfunction, or even complete failure, starting with backup.

Backing up data is a must, and even if you install official firmware, there is a risk of resetting. Use Xiaomi’s built-in tools or third-party apps:

  • πŸ“± MIUI Backup: Go to Settings β†’ The phone. β†’ Backup and save data to Mi Cloud or locally.
  • πŸ–₯️ ADB Backup: for a full backup of the system via the computer (requires enabled debugging by USB).
  • ☁️ Google Photos/Contacts: Sync your media and contacts with your Google account.

Check your battery power, make sure it’s at least 60 percent charge level, which will prevent your phone from suddenly shutting down while you’re running your firmware, and prepare a USB cable (preferably original) and a computer with Xiaomi drivers installed.

πŸ“Š What kind of firmware you plan to use?
Officially OTA-update
Manual installation via Fastboot
Custom firmware (TWRP)
I don't know, I'll pick it after reading it.

Official firmware: Update via OTA and Mi Flash Tool

The safest way to upgrade to the Redmi Note 7 is to use the built-in OTA (Over-The-Air) system, which is suitable for installing stable and beta versions of MIUI officially released, to check for updates:

  1. Open Settings β†’ About the phone β†’ System update.
  2. Click on the three dots in the top right corner and select Download the latest version.
  3. If the update is available, confirm the download and wait until it is completed.

If OTA-Update is not available or you want to install a specific version MIUI, You can use the Mi Flash Tool. This method requires an unlocked bootloader and is suitable for clean installation:

Download Mi Flash Tool from Xiaomi official website|Download the firmware for lavender (Fastboot version)|Install Qualcomm drivers on PC|Unlock the bootloader (unless done earlier)-->

Step-by-step:

  1. Download the official firmware for Redmi Note 7 (choose the Fastboot version).
  2. Unpack the firmware archive in a folder without Cyrillic characters (for example, C:\MIUI\lavender).
  3. Turn off the phone and press Volume Down + Power to log into the Fastboot.
  4. Connect your phone to your PC, open the Mi Flash Tool and point the path to the firmware folder.
  5. Select Clean All or Save User Data and press Flash.

πŸ’‘

If the Mi Flash Tool gives you an error couldn’t find fastboot, try running the program on behalf of the administrator or reinstall the drivers through the Mi Unlock Tool.

Unlocking the bootloader: why it is necessary and how to do it

Xiaomi is locking the bootloader on all its devices to protect against unauthorized changes. To install custom firmware or modified restore (TWRP), you will have to unlock it. Note: this will lead to a complete reset of the phone and cancellation of the warranty.

Requirements for unlocking:

  • πŸ“± Mi Account linked to phone (mandatory confirmation by email and number).
  • πŸ”— Stable Internet connection on PC and phone.
  • ⏳ Wait 168 hours (7 days) after first linking your account to your device (Xiaomi rule for new devices).

Instructions for unlocking:

  1. Download the Mi Unlock Tool and install it on PC.
  2. Turn on the phone Debugging over USB (Settings β†’ About Phone β†’ MIUI Version β†’ 7 times click on the version, then go back to Additional β†’ For Developers).
  3. Connect your phone to your PC in Fastboot mode (clip Volume Down + Power).
  4. Launch the Mi Unlock Tool, log in to your Mi Account and follow the program instructions.

⚠️ Note: If you see a Couldn't unlock message when you unlock. Current account is different from the account info on the device, then the account on the phone and Mi Unlock Tool are not the same.

Installation of custom firmware through TWRP

If the official MIUI does not suit you, you can install alternative firmware, for example, LineageOS, Pixel Experience or Havoc OS. This will require custom recovery - TWRP.

Step 1: Installation of TWRP

  1. Download the latest version of TWRP for Redmi Note 7 (lavender) from the official website.
  2. Rename the file to twrp.img and place it in the folder with ADB.
  3. Connect your phone in Fastboot mode and execute the command: fastboot flash recovery twrp.img
  4. After successful installation, restart to TWRP by clamping Volume Up + Power.

Step 2: Firmware custom software

  • πŸ“ Download the firmware (for example, LineageOS-20-lavender.zip) GApps (if you need Google services).
  • πŸ”„ Move files to your phone or flash drive (better to use) OTG-cable if the internal memory is not readable).
  • 🧹 V TWRP run the Wipe β†’ Advanced Wipe and tag Dalvik, Cache, System, Data.
  • πŸ“₯ Click Install, select a firmware file and confirm installation.

⚠️ Note: Some custom firmware does not support encryption /data. If the phone does not load after installation, return to the TWRP and execute Format Data β†’ Yes (this will delete all data!).

What if TWRP doesn’t see internal memory?
If TWRP Does not display files in internal memory, most likely a partition /data It's encrypted: 1. Connect. OTG-firmware. 2. Use the team in ADB: adb pull /sdcard/ copying files to a PC. 3. Format Data (Loss of all data!).

Recovery after a failed firmware

If the Redmi Note 7 doesn't turn on after the firmware, if it's stuck on the Xiaomi logo or if it's gone to the bootloop, don't panic. In most cases, the phone can be brought back to life.

Symptoms.Possible causeDecision
The phone doesn't respond to the buttons.Full battery discharge or hardware failureConnect to charging for 30+ minutes, try to pinch Power + Volume up for 20 seconds
Hanging on the MI logo.Incompatible firmware or interrupted installationLog in to Fastboot and run the official firmware through the Mi Flash Tool
Bootloop (Cyclical Reboot)Damaged System or Boot PartitionsInstall TWRP and flash the firmware again with full wipe
The Invalid IMEI errorLoss of IMEI after firmwareRestore the IMEI via Maui META or SN Write Tool (requires backup)

If the phone is not defined by the computer in Fastboot, try:

  1. Use the other USB-cable (preferably original).
  2. Connect to another USB-port (better) USB 2.0 on the back of the PC).
  3. Install drivers manually through Device Manager (select Qualcomm HS-USB QDLoader 9008).

πŸ’‘

If the phone is defined as Qualcomm HS-USB QDLoader 9008, which means the firmware has completely gone off, and in this case, only the firmware through the EDL-Mode using an authorized Xiaomi account (for example, through a service center).

Firmware selection: official MIUI vs custom builds

Before you flash the Redmi Note 7, decide which firmware you need. Each option has pros and cons:

Official MIUI:

  • βœ… Stable work and support of Xiaomi.
  • βœ… Regular security updates.
  • βœ… Compatible with Mi Account and Mi Cloud.
  • ❌ Lots of pre-installed software and advertising (in global versions).
  • ❌ Limited Customization Opportunities.

Custom firmware (LineageOS, Pixel Experience, etc.):

  • βœ… Clean Android without unnecessary apps.
  • βœ… Advanced settings and themes.
  • βœ… Newer versions of Android (for example, Android 13 instead of Android 10 in the latest version) MIUI For the Redmi Note 7).
  • ❌ Possible bugs with camera, sensors or mobile communication.
  • ❌ No official support (updates depend on community).

For most users, the best choice would be an official MIUI with rooting through Magisk (if you need superuser rights), and custom firmware will suit enthusiasts willing to put up with possible shortcomings.

Frequent Mistakes and How to Avoid Them

Even experienced users sometimes experience firmware problems, and here are the most common bugs and ways to prevent them:

1. Anti-rollback error:

If you try to install an old version of MIUI after a new one, the phone will lock with the message Anti-rollback protection.This is Xiaomi protection from rollback to vulnerable versions. Solution: only run a newer or the same firmware version.

2. the phone does not boot after installing GApps:

Some GApps builds (like OpenGapps) may conflict with firmware.Solution: Use a minimum pico or nano package, and check compatibility with the Android version.

Loss of IMEI or serial number:

This happens when modem partitions are not properly firmwareed. Solution: restore IMEI through the engineering menu (#4636##) or specialized utilities like Maui META.

Error 7 in TWRP when firmware:

Solution: download the firmware for lavender (not violet β€” this is Redmi Note 7 Pro!).

πŸ’‘

Always check the hash amount (MD5 or SHA1) of the downloaded file before you run it, which will help you avoid installing corrupted firmware. Compare the hash to what you see on the developer's website.

FAQ: Answers to Frequent Questions

Can I flash Redmi Note 7 without unlocking the bootloader?
No, custom firmware or TWRP is required to be unlocked, but official updates via OTA or Mi Flash Tool (in Save user data mode) can also be installed with the bootloader locked.
How to find out the MIUI version and the phone model?
Go to Settings β†’ About Phone. The MIUI version shows the current firmware, and the device model has the code name (must be M1901F7G or lavender for the Redmi Note 7).
What if the camera doesn’t work after the firmware?
This is a typical custom firmware problem. Solutions: Install an alternative camera app (like GCam). Patch the camera (look for the XDA Developers forum for your firmware). Return to the official MIUI if the camera is critical.
How long does it take to use the Mi Flash Tool?
The average process takes 5-15 minutes, depending on the speed USB-port and firmware size, if the process is more than 20 Check the cable connection and try again.
Can I get root rights to the Redmi Note 7 without firmware?
Yes, you can get root on the official MIUI with Magisk. To do this, unlock the bootloader. Install Magisk with TWRP or boot.img. Don't update the phone through OTA, it will cause root loss.