The Xiaomi Redmi 7A, released in 2019, is still a popular budget smartphone due to its reliability and custom firmware installation. However, standard MIUI software eventually slows down and official updates stop coming out, and flashing the device can return to its former performance, add new features or even install Android without the Xiaomi shell.
In this article, you will find three current flashing methods (via Fastboot, Recovery and MiFlash), detailed instructions for unlocking the bootloader, and solutions to typical errors encountered by Redmi 7A users (codenamed pine). All methods are tested on firmware 2023-2026 and are suitable for models with global (MIUI Global), Chinese (MIUI China) and custom builds.
1. Preparation for flashing: what to do before the beginning
Flashing is not just an update through the settings menu, it is a complete overwriting of system files that can lead to data loss, device blinking, or even IMEI blocking. To minimize risks, follow the mandatory steps:
- π± Backup all important data (photos, contacts, messages) through Settings β Additionally. β Backup copying or by means of TWRP (if established).
- π Charge the battery to at least 60% β when discharged during firmware, the phone can turn into a βbrickΒ».
- π₯οΈ Install drivers for Xiaomi on PC: download Mi PC Suite or Xiaomi package USB Drivers manually.
- π Unlock the bootloader (if not done earlier) - without this custom firmware and even official through Fastboot will not be installed.
Pay special attention to the firmware versions. The Redmi 7A has two main branches:
- π Global (pine_global) β International market support for Google Services.
- π¨π³ China (pine) β Chinese version without Google services, but with more recent updates MIUI.
You can install Global on the Chinese model, but you will need a complete reset via Fastboot with the removal of all partitions (flash_all_lock.bat won't fit!).
β οΈ Attention: If your Redmi is 7A It was purchased in China and has a firmware V12.0.3.0.PCNCNXM or later, unlocking the bootloader can take up to 720 hours (30 days) due to Xiaomi's policy.Check the lock status by the fastboot oem device-info command - if Device unlocked: false, start the process in advance.
2. Unlocking the bootloader: step-by-step instructions for 2026
Xiaomi blocks the bootloader on all devices, including the Redmi 7A, to prevent unofficial software from being installed.
- π Installation of custom firmware (LineageOS, Pixel Experience).
- π οΈ Firmware via Fastboot or TWRP.
- π Restore the device after a soft breeze.
The process consists of three stages:
- Linking your Mi Account to your device: Go to Settings β The phone. β Version. MIUI and tap 7 times to activate Developer Mode. Then go back to Settings. β Additionally. β For developers and include: π OEM-Unlocking (Enable) OEM Unlocking). π Debugging by USB (USB Debugging).
Connect your phone to your PC and execute the command:
adb reboot bootloaderUnlocking with Mi Unlock Tool
Download the latest version of the Mi Unlock Tool (at 2026 v6.5.224.32 or later). Launch the program, log in to your Mi-account (should match the one on your phone!) and follow the instructions.
If you see a message saying "Couldn't unlock. Wait 168/720 hours" it's OK. Xiaomi imposes a temporary lock for new accounts. Wait for the specified time (usually 7 days for global versions and 30 days for Chinese ones).
Final unlock
After the timer expires, repeat the process in Mi Unlock Tool. Successful unlocking is confirmed by the message "Unlocked successfully" and the green tick in the program.
β οΈ Note: If you are buying a Redmi 7A The previous owner could have tied his Mi-account, in which case unlocking is impossible without his data! get_uid β if UID Not matching your account, contact the seller.
Linked to Mi-account phone|On. OEM-unlock|Xiaomi drivers installed|Phone's charged. >60%|Download the Mi Unlock Tool of the latest version-->
3. Method 1: Fastboot firmware (official MIUI)
This method is suitable for installing stock firmware from Xiaomi if:
- π² The phone is not turned on or stuck on the logo.
- π You need to return the official software after custom firmware.
- π The bootloader is already unlocked (or you are flashing the fastboot version without unlocking it).
There are three types of fastboot firmware available for Redmi 7A:
| Type of firmware | Description | When to use |
|---|---|---|
| flash_all.bat | Complete firmware without data cleaning | Update without resetting settings |
| flash_all_lock.bat | Full firmware + lock loader | Recovery after custom firmware |
| flash_all_except_data_storage.bat | Firmware without formatting /data and /storage | Saving user data |
Step-by-step:
- Download fastboot firmware for your model from the official website. 7A Global search for tagged files pine_global.
- Unpack the archive in a folder on the C:\ disk (the path should not contain Cyrillic!).
- Connect your phone in Fastboot mode (clip Volume Down + Power when the device is off).
- Launch the file. flash_all.bat (or other, depending on the task).
- Wait until it is completed (the process will take 5-10 minutes).
If the process is suspended during the Waiting for device step, check:
- π Connection to USB (Try another port or cable).
- π₯οΈ Drivers installed (Device Manager should display Android Bootloader Interface).
- π If the bootloader is unlocked (if not, use MiFlash with authorization).
π‘
If after firmware the phone is getting stuck on the screensaver MIUI, reset via Recovery: press Volume up + Power, select Wipe Data and restart.
Method 2: Firmware through Recovery (without PC)
This method is suitable for setting official OTA-customization ZIP-firmware (e.g. OrangeFox or TWRP) No connection to a computer, the main condition is the availability of an unlocked bootloader and working Recovery.
What you need:
- π± Firmware file in.zip format (for example, miui_PINEGlobal_V12.0.4.0.QCMIXM_....zip).
- π Battery charge >50%.
- π Unlocked bootloader (for custom firmware).
Instructions:
- Download the firmware and move it to the root folder of the phoneβs internal memory (not to folders!).
- Turn off the device and press Volume Up + Power to enter Recovery.
- In standard MI-Recovery, select the language, then: π Install update.zip to System One - for official updates. π Choose update package β for manual selection ZIP-file.
Confirm the installation and wait until the process is completed (donβt interrupt!).
Reboot to System
To install custom firmware (for example, LineageOS 18.1), you first need to flash TWRP:
- Download. TWRP for Redmi 7A (version 3.6.2_9-0 or newer).
- Fastboot: Fastboot Flash Recovery twrp-3.6.2_9-0-pine.img fastboot boot twrp-3.6.2_9-0-pine.img
- In TWRP, run Wipe β Format Data (required!), then install ZIP firmware.
β οΈ Note: When installing custom firmware on Redmi 7A Often there is an error "Error 7" due to kernel incompatibility. Solution: edit the updater-script file in the ZIP-archive by deleting line check models, or use firmware adapted specifically for pine.
How to beat Error 7 in TWRP?
5. Method 3: Firmware via MiFlash (for power users)
MiFlash is Xiaomiβs official tool for flashing devices in EDL (Emergency Download Mode) mode.
- π The phone has become a βbrickβ (does not respond to buttons, does not turn on).
- π§ You need to sew completely stock firmware with restoration IMEI.
- π bootloader is blocked, but there is an authorized Xiaomi account.
Important: For Redmi 7A EDL-The mode is activated by a combination of buttons Volume up + Loudness down + Power (hold 10-15 seconds) or testpoint (if the phone doesn't respond).
Step-by-step:
- Download the firmware for MiFlash (file with the extension.tgz or.tar).
- Unpack the archive in a folder without spaces and Cyrillic (for example, C:\pine_global_images\).
- Download and install the MiFlash Tool (version 2020.3.14.0 or later).
- Connect your phone in EDL mode (the screen should be black, without any button response).
- In MiFlash: Press Select and specify the firmware folder. Select Clean all or Clean all and lock. Press Refresh, the COMX device should appear in the list. Click Flash and wait for completion (the process will take 10-20 minutes).
If MiFlash is saying "critical partition doesn't exist" it means:
- π Incorrect mode (try Clean All instead of Flash all).
- π The firmware is not suitable for your model (check the codename pine or the codename). pine_global).
- π§ You need to log in to Mi-account via MiFlash (in the Account menu). β Login).
π‘
MiFlash is the only way to recover the brick without unlocking the bootloader, but requires authorization in the Mi-account tied to the device.
Typical errors and their solutions
Even with strict adherence to the instructions, Redmi 7A users often encounter problems, and here are the most common errors and ways to fix them:
| Mistake. | Reason. | Decision |
|---|---|---|
| Fastboot: FAILED (remote: 'Flashing is not allowed in Lock State') | bootloader locked | Unlock the bootloader through the Mi Unlock Tool (see Section 2) |
| Error: Cannot receive hello packet | Problems with drivers or USB-connection | Install drivers manually through Device Manager or try another cable/port |
| phone is stuck on startup MIUI logo after firmware | Firmware incompatibility or incomplete data cleanup | Run Wipe Data in Recovery or run the full version through MiFlash |
| E: Footers is wrong in TWRP | Damaged. ZIP-firmware | Download the firmware, check the checksum (MD5) |
| Loss of IMEI after firmware | Removing the modem partition or incorrect firmware | Restore. IMEI through QCN-file SN Write Tool (requires authorization) |
If the network signal or IMEI is missing after firmware, use this recovery method:
- Download QCN Rebuilder and firmware for your model.
- Remove the nvram.img file from the firmware (located in the images folder).
- Generate. QCN-file IMEI (You can find it on a box or under a battery).
- Fly QCN via QPST or MiFlash in EDL mode.
β οΈ Attention: Recovery IMEI through SN Write Tool or QCN requires authorization to the Mi-account associated with the device, and the wrong actions can lead to permanent loss of the network!
7. How to choose firmware for Redmi 7A: official vs custom
The choice of firmware depends on your goals:
- π Official. MIUI: Pros: stability, support OTA-Updates, guarantee (unlocked bootloader) Cons: advertising, restrictions MIUI, Slow updates for older models. Where to download: official Xiaomi website (select pine_global global version).
- π οΈ LineageOS, Pixel Experience, HavocOS: Pros: clean Android, regular updates, advanced settings. Cons: possible bugs (for example, broken) NFC second slot SIM), There's no official support: XDA Developers or Telegram chats.
Selection recommendations:
- π± For everyday use: MIUI Global (last stable version).
- π For maximum performance: Pixel Experience (Android) 12/13 shellless).
- π§ LineageOS (community-supported but may not have Google Apps).
Before installing custom firmware, check:
- π Compatibility with your model (pine or pine_global).
- π Assembly date (current versions are released at least 1 time in 2-3 months).
- π User reviews on forums (especially about camera, network and battery performance).
π‘
For the Redmi 7A, the best custom firmware for 2026 is the Pixel Experience Plus (Android 13) and ArrowOS (Android 14).Both support VoLTE and have minimal bugs.