How to put pure Android on Xiaomi Redmi Note 7: a complete guide with unlocking and firmware

Xiaomi Redmi Note 7 is one of the most popular smartphones in the budget segment, but its proprietary shell MIUI is not everyone likes. If you are tired of intrusive advertising, duplicate services and system slowdowns, the solution is: installing pure Android (AOSP) or custom firmware based on the stock interface. In this guide, we will analyze the entire process from unlocking the bootloader to the final configuration of the system, taking into account all the nuances of the Redmi Note 7 model (codename lavender).

Before you start, consider that the procedure requires technical training, you lose the warranty (if it is still valid), and if you make mistakes, you risk getting a brick, but you get a smartphone without extra software, with current security updates and the ability to fine-tune it. In this article, only proven methods for the Redmi Note 7 for 2026, given the changes in Xiaomi’s policy to unlock downloaders.

Why you should install a clean Android on the Redmi Note 7

The MIUI firmware has its advantages – regular updates, advanced camera features, close integration with the Xiaomi ecosystem – but for many users, its disadvantages outweigh the advantages:

  • πŸ“› Advertising in system applications – even in settings and file manager.
  • 🐒 Slowdown over time due to background processes MIUI and duplicate Google services.
  • πŸ”’ System-level limitations: It is not possible to disable some system applications and some functions (e.g, ADB Wi-Fi is not working smoothly.
  • ⏳ Update delays: Xiaomi often delays release of security patches for budget models.

Pure Android (or firmware based on it, like LineageOS, Pixel Experience) solves these problems:

  • βœ… No advertising and unnecessary services.
  • βœ… More smooth work thanks to optimized code.
  • βœ… Quick security updates (if you choose supported firmware).
  • βœ… Full control of the system: root access, the ability to disable any application, fine-tuning the interface.

However, there is a downside: some features of the Redmi Note 7 may not work properly. For example, the camera in custom firmware is often inferior in quality to the stock MIUI (due to closed Xiaomi drivers), and navigation gestures may be absent.

πŸ“Š Which firmware is more interesting to you?
Pure Android (AOSP)
LineageOS
Pixel Experience
Havoc OS
other

Preparation of the smartphone: unlocking the loader

The first and most important step is to unlock the bootloader, which is not necessary to install custom firmware. Xiaomi officially allows unlocking, but the process has become more complicated than in 2019-2020.

  1. Link your Mi Account to your device.
  2. Wait 168 hours (7 days) after the binding.
  3. Use the official Mi Unlock Tool utility.

Important: unlocking will reset all data on your phone! backup photos, contacts and apps.

Link Mi Account to your phone settings

Enable USB debugging in Settings β†’ About Phone β†’ MIUI version (7 times press)

Install ADB drivers on PC

Download Mi Unlock Tool from Xiaomi official website

Connect your phone to your PC in Fastboot mode (Off β†’ Hold Power + Volβˆ’)

-->

Step-by-step:

  1. Activate Developer Mode: Go to Settings β†’ About Phone β†’ MIUI Version and click on it 7 times.
  2. Back to Settings β†’ Additionally. β†’ For developers and include: πŸ”Œ Debugging by USB πŸ”“ Unlocking OEM (point!)

Mi Account

Settings β†’ Xiaomi Account β†’ Synchronization

Connect the phone to the PC, confirm the debugging permission.

Mi Unlock Tool

⚠️ Note: If the utility gives an error "Couldn't unlock" after 7 days of waiting, check: Mi Account is linked to the phone (in the settings displayed as "Device is connected"). The phone is enabled mobile Internet or Wi-Fi (unlocking requires verification through Xiaomi servers). You're using the original. USB-cable (poor cables may interrupt the connection).

Once successfully unlocked, the phone will reboot to the stock firmware reset to the factory settings, and you can now start installing custom software.

Firmware Choice: What's Best for Redmi Note 7

For Redmi Note 7 (lavender), there are several types of firmware based on pure Android.

Type of firmwareExamplesPlusesCons
AOSP (Pure Android)LineageOS, crDroidMaximum stability, minimalist interface, quick updatesThere may be no corporate functions (for example, IR-blaster)
Google firmwarePixel Experience, Havoc OSPixel-like interface, support for Google features (e.g. Now Playing)Higher battery consumption due to Google services
MIUI-modeMIUI Mix, Xiaomi.euKeep the branded features of Xiaomi, but without advertising and unnecessary servicesStill MIUI, so they don't solve the slowdown problem.

For most users, the best choice is the Pixel Experience or LineageOS. The first one offers a similar experience to Google Pixel smartphones, the second one provides maximum stability and minimalism. Both firmware are regularly updated and have an active community.

Where to download? Official sources only:

  • πŸ”— Pixel Experience – Choose a version for Lavender.
  • πŸ”— LineageOS – Check your model’s support.
  • πŸ”— XDA Developers – here lay out unofficial builds and patches.

⚠️ Warning: Do not download firmware from little-known sites! Risk of running into modified software with malware or spyware modules. Always check the hash amounts of files before installing them (they are listed on the official firmware pages).

πŸ’‘

Before choosing firmware, check out forum reviews (like 4PDA or XDA). Pay attention to bugs with camera, sensors and autonomy - these are common custom firmware issues for the Redmi Note 7.

Installation of custom recovery (TWRP)

To run a clean Android firmware, you'll need a custom recovery called TWRP, which replaces stock recovery and allows you to install informal firmware, backup and restore the system.

Steps to install TWRP:

  1. Download the latest version of TWRP for lavender from the official website: twrp.me. The file will be in.img format.
  2. Connect your phone to your PC in fastboot mode (hold Power + Volβˆ’ when turned on).
  3. Open the command line in the folder with ADB The command is: fastboot flash recovery. twrp-3.7.0_9-0-lavender.img (Replace the file name with the current one).
  4. After successful firmware reboot in TWRP Team: fastboot boot twrp-3.7.0_9-0-lavender.img

V TWRP First, make a full backup of the current firmware (Backup) β†’ Select Boot, System, Data partitions. That will save you if something goes wrong. SD-card.

What to do if TWRP does not start?
If after the firmware TWRP The phone is loaded into stock recovery, so Xiaomi's protection against custom recovery is working: 1. Please. TWRP again through fastboot. 2. Immediately after the firmware, execute the command: fastboot flash boot twrp-3.7.0_9-0-lavender.img (This will prevent replacement of recovery stock at boot). 3. Turn off signature verification in TWRP: After the first launch, go to Settings. β†’ Disable DM-Verity (if there is such a point).

Firmware of pure Android: step-by-step instructions

Now that the TWRP is installed, you can start the firmware.

  • πŸ“± Firmware file (e.g, PixelExperience_lavender-13.0-20260510.zip).
  • πŸ”‹ Battery charge of at least 60%.
  • πŸ’Ύ GApps (if the firmware is without Google services; download the version) arm64, Android 13).
  • πŸ” Magisk (optional, for root access).

Procedure:

  1. Copy firmware, GApps, and Magisk files to your phone’s internal memory or SD-map.
  2. Download to TWRP (Off β†’ Hold Power + Vol+).
  3. Run a full reset (Wipe β†’ Advanced Wipe) by selecting the Dalvik / ART Cache System Data Cache partitions.

⚠️ Note: Do not erase the Internal Storage section, otherwise you will lose the copied firmware files!

Install β†’ Choose. ZIP-file β†’ Swipe to Confirm Flash

GApps

Magisk

Reboot β†’ System

The firmware for the Redmi Note 7 and Redmi Note 7 Pro (codename violet) is incompatible. Make sure you download the version for the lavender.

πŸ’‘

If the phone is stuck on the logo after firmware or has gone into a bootloop (cyclical reboot), repeat the steps, but before firmware, format the Data partition into TWRP (not to be confused with wipe!).

Set up the system after firmware

After the first run, you'll have to set up a basic setup of pure Android, and depending on the firmware, the interface may be different, but the common steps are:

  1. Language and region: Choose Russian (Russia) or another language you want. In some firmware, Russian localization may not be complete, which is normal for custom builds.
  2. Network Connection: Set up Wi-Fi or mobile internet. If mobile isn't working, check APN settings in Settings β†’ Network & Internet β†’ Mobile Network β†’ Access Points (APN).
  3. Google Account: Link your account to access the Play Market and sync your data. If you don’t plan to use Google services, you can skip this step.
  4. Security: Turn on the screen lock (PIN or pattern lock) The fingerprint may not work - it depends on the firmware.

Frequent problems and their solutions

Even after a successful firmware, there may be problems, and here are the most common ones and how to fix them:

Problem.Possible causeDecision
The camera's not working.There are no proprietary Xiaomi driversInstall GCam or a patch for the camera (look for XDA)
Not catching the mobile network.Incorrect APN or modem settingsCheck the APN or scrolle separately from the stock firmware modem
Fast battery dischargeGoogle Background Processes or Unoptimized CoreDisable unnecessary Google services or install the kernel with optimizations
Fingerprints are not working.There is no support in the firmwareTry another firmware (e.g. Havoc OS often supports scanner)

If the problem is not solved, go back to the stock firmware through the Mi Flash Tool and try a different custom build. Sometimes it helps to change the version of TWRP or firmware older / newer firmware.

πŸ’‘

Before you ask for help on forums, collect an error log. In TWRP, you can do this through Advanced β†’ Copy Log. The log will help firmware developers understand the cause of the problem faster.

Can I return stock MIUI after installing pure Android?
Yes, but it will require: Download the official MIUI firmware for the Redmi Note 7 from Xiaomi, unarchive it and flash it through the Mi Flash Tool in clean all mode. Unlock the bootloader will remain, but the phone will return to the drain state. Importantly, after returning to MIUI, you will have to wait 7 days again to unlock the bootloader if you want to put the custom firmware again.
Will Google Pay work after the firmware?
This depends on the firmware and the availability of root rights: If you have unrooted firmware (without Magisk), Google Pay will work if the firmware has been certified by Google (Pixel Experience is usually certified). If you install Magisk, you will need to hide the root using the MagiskHide Props Config module and enable MagiskHide for the Google Pay app. Check SafetyNet through the Magisk or SafetyNet Test app.
How to update custom firmware?
Update depends on the type of firmware: Official builds (LineageOS, Pixel Experience): updates come through the built-in updater (Settings) β†’ System system β†’ Updates. Download and install them directly from your phone. Unofficial builds: updates must be downloaded manually from the forum and stitched through the Internet. TWRP (without wipe unless otherwise stated. Always back up before upgrading TWRP!
Lost the data after the firmware. Can it be recovered?
If you haven’t backed up in TWRP, the odds are slim: Photos and files on internal memory can be tried with DiskDigger or Recuva (by connecting memory as an external drive via a card reader). Application data (messages, games) is almost impossible to recover – they are stored in an encrypted /data partition. In the future, use cloud backups or sync with your PC before firmware.
Which firmware is better for autonomy?
The most energy-efficient options for Redmi Note 7: LineageOS without GApps (minimal consumption, but no Google services). crDroid with StormBreaker core (optimized battery core). DerpFest with Google background processes disabled. AOD (Always on Display. Use dark themes (AMOLED-Redmi Note 7 saves black charge, limiting application background activity in battery settings.