How to completely reinstall Android on Xiaomi phone: from unlock to firmware

Introduction: When you need to reinstall Android on Xiaomi

Reinstallation of the operating system on Xiaomi smartphones is a procedure that can be required in a variety of situations, from trivial malfunctions to serious software errors, when the phone starts to โ€œglutโ€, slow to work or refuses to turn on at all. But before you start taking radical measures, it is worthwhile to understand: do you really need a complete firmware reflash, or can the problem be solved with more gentle methods?

In this article, weโ€™ll look at all the possible ways to reinstall Android on Xiaomi, Redmi and POCO devices, from simple resets to factory settings to manual firmware via Fastboot and custom TWRP recovery. Youโ€™ll learn how to properly prepare your phone, where to download official and informal firmware, and how to avoid the typical mistakes that can turn your smartphone into a โ€œbrick.โ€

Preparation for reinstallation: what to do before firmware

Before you start reinstalling Android, there are a few critical steps that need to be taken: neglecting it can lead to data loss, inability to restore the phone, or even a complete breakdown, starting with the obvious: backup.

Even if you plan to install the official firmware, there is always a risk of failure.

  • ๐Ÿ“ฑ Contacts (export to.vcf or sync with Google Account)
  • ๐Ÿ“ธ Photos and videos (copy to PC or cloud)
  • ๐Ÿ“ Messages (use) SMS Backup & Restore or analogues)
  • ๐ŸŽฎ Application data (game saves, settings)
  • ๐Ÿ”‘ Passwords and logins (if you store them in your browser or manager)

The next step is to check the phone model and the current firmware version, which will help you choose the right file to install. You can find out the model at Settings โ†’ About Phone โ†’ Model (for example, Redmi Note 11 Pro 5G or POCO X5 Pro). See the MIUI version in the same line - MIUI version (for example, MIUI 14.0.5 Global).

โš ๏ธ Note: If your phone is blocked by an operator (such as MTS or Beeline), flashing may remove this lock, but also voids the warranty.

It is equally important to charge the phone to at least 60-70%, and the firmware process can take anywhere from 10 minutes to an hour, and battery drain at this point is fraught with serious consequences.

  • ๐Ÿ–ฅ๏ธ Windows computer 10/11 (for Mac/Linux Additional drivers may be required)
  • ๐Ÿ”Œ Original. USB-cable (poor cables may interrupt the connection)
  • ๐Ÿ› ๏ธ Programs: Mi Flash Tool, ADB & Fastboot, Qualcomm or Mediatek drivers (depending on the processor)
๐Ÿ“Š What kind of Xiaomi phone is you?
Redmi (Note/Pro/series)
POCO (F/X/M-series)
Mi (11/12/13 episode)
Black Shark
Other

Method 1: Reset to factory settings (without loss of warranty)

If your goal is to get your phone back to a clean state without deleting system files, you start by resetting it through the recovery menu, which doesn't require unlocking the bootloader and retains the warranty, but it doesn't update the Android version, it just returns the current firmware to its original form.

To perform the discharge:

  1. Turn off the phone.
  2. Press the buttons Power + Volume up at the same time (on some models POCO - Power + Volume down).
  3. From the Recovery menu, select the language (usually English and Chinese)
  4. Go to Wipe Data โ†’ Wipe All Data.
  5. Confirm the action and wait for the completion (it will take 2-5 minutes).
  6. Choose Reboot. โ†’ Reboot to System.

Once rebooted, the phone will be like new โ€” with standard wallpaper, no apps installed (except pre-installed) and reset settings โ€” a method that helps 80 percent of the time when the problem is caused by an application conflict or virus infection.

โš ๏ธ Note: Some Xiaomi models (such as the Redmi Note 10 Pro) may require re-assignment of the Mi Account after a reset. If you forget your password, restore it in advance at account.xiaomi.com.

If the reset doesnโ€™t solve the problem (for example, the phone still slows down or doesnโ€™t turn on), move on to more radical methods โ€“ manual firmware.

Download the official firmware for your model|Install drivers ADB/Fastboot|Unlock the loader (if required)|Charge the phone before 70%+|Create a backup copy of the data-->

Method 2: Install the official firmware via Fastboot

If the reset didnโ€™t help or you want to upgrade/downgrade the Android version, youโ€™ll need a full Fastboot flash.

  • ๐Ÿ”„ Updates to the new version MIUI (if OTA-update)
  • ๐Ÿ”™ Reverse to the old version (for example, with the MIUI 14 on MIUI 13)
  • ๐Ÿ› ๏ธ Recovery after a crash (if the phone doesn't turn on or gets stuck on the logo)
  • ๐ŸŒ Changes in the firmware region (from Chinese to global or vice versa)

For this method you will need:

  1. Official firmware in.tgz or.zip format (download only from the official Xiaomi website).
  2. Mi Flash Tool (the latest version can be found on the 4PDA or XDA Developers forums).
  3. Unlocked boot loader (more on this below).

Instructions for firmware through Fastboot:

  1. Unpack the downloaded firmware in a folder on your computer (for example, C:\miui_rom).
  2. Install the Mi Flash Tool and run it on behalf of the administrator.
  3. Turn off the phone and put it in Fastboot mode: pinch Power + Volume down for 5-10 seconds.
  4. Connect your phone to your computer. In the Mi Flash Tool, you have to decide. COM-port.
  5. In the program, click Select and specify the path to the folder with the firmware.
  6. Select firmware mode: Clean all โ€“ complete cleaning (recommended in case of failures) Clean all and lock โ€“ cleaning + lock bootloader (only for experienced users!) Save user data โ€“ saving user data (not always stable)

Flash

Model phoneType of firmwareDownload linkNotes
Redmi Note 12 Pro+Global StableDownloadSupports Android 13
POCO X5 ProEEA StableDownloadFor Europe, without Google services in the Chinese version
Xiaomi 13 UltraChina StableDownloadRequires manual installation of Google services
Redmi 10CGlobal RecoveryDownloadSuitable for recovery through TWRP

Important: Fastboot firmware with the "Clean all and lock" option will block the bootloader, making it impossible to install custom firmware in the future without re-unlocking. Use this mode only if you are sure that you will not experiment with the software anymore.

๐Ÿ’ก

If the Mi Flash Tool gives you a โ€œcouldnโ€™t find fastbootโ€ error, try reinstalling drivers manually through Windows Device Manager. To do this, find the device with an exclamation mark in the Manager menu, click โ€œUpdate driverโ€ โ†’ โ€œSearch on this computerโ€ โ†’ specify the folder with ADB drivers.

Method 3: Unlocking the bootloader is a must for deep firmware

If you plan to install custom firmware (like LineageOS or Pixel Experience) or modified versions of MIUI, you will need to unlock the bootloader. On new Xiaomi models (released after 2022), this procedure is complicated, but still possible.

The official way to unlock through the Mi Unlock Tool:

  1. Download Mi Unlock Tool from the official website.
  2. Sign in to your Mi Account on your phone and in the program on your PC (should be one account!).
  3. On your phone, go to Settings โ†’ About Phone โ†’ MIUI version and tap 7 times on the line to activate Developer Mode.
  4. Return to Settings โ†’ More โ†’ For developers and enable: Debugging by USB Unlock OEM (an important item!)

Mi Unlock Tool

After successful unlocking, the phone will restart with all data cleared.

Newer models (such as the Xiaomi 14 or Redmi Note 13 Pro+) may require waiting 7-15 days after an account is linked to the device, a security measure from Xiaomi to reduce theft and fraud.

โš ๏ธ Warning: Unlocking the bootloader will permanently void the warranty on most Xiaomi models, and after this procedure, some features such as Mi Pay or Find Device may stop working.

If the official method does not work (for example, the program gives an error Couldn't unlock), you can try alternative methods through the system. EDL-However, this requires special equipment (Deep Flash Cable) and knowledge, so it is better to consult a specialist.

What if the Mi Unlock Tool can't see the phone?
1. Check if the debugging is included USB and unlock OEM. 2. Try another one. USB-cable (preferably original). 3. Install drivers manually through Device Manager (select "Installation from the list" โ†’ "All devices" โ†’ specify the driver folder ADB). 4. Launch Mi Unlock Tool on behalf of the administrator. 5. If the phone is new, wait. 7-15 days after the account is linked (Xiaomiโ€™s requirement for new devices).

Method 4: Install custom firmware through TWRP

If you are not satisfied with the standard MIUI, You can install alternative firmware, like LineageOS, Pixel Experience or ArrowOS โ€” TWRP.

Instructions for installing TWRP and custom firmware:

  1. Download the latest version TWRP for your model from the site twrp.me (for example, for POCO F5 It'll be a file. twrp-3.7.0_12-redwood.img).
  2. Turn your phone into Fastboot mode (Power + Volume Down).
  3. Connect to your PC and execute the command: fastboot flash recovery twrp-3.7.0_12-redwood.img
  4. Without turning off the phone, go to TWRP via command: fastboot boot twrp-3.7.0_12-redwood.img
  5. In TWRP, make a backup of the current firmware (Backup โ†’ Select Partitions โ†’ System, Data, Boot).
  6. Download custom firmware (for example, from XDA Developers) and transfer it to your phone.
  7. In TWRP, select Wipe โ†’ Advanced Wipe and select Dalvik, Cache, System, Data.
  8. Press Install, select a firmware file and confirm the installation.
  9. Once completed, install GApps (Google Services) if they are not included in the firmware.
  10. Reboot your phone (Reboot โ†’ System)

โš ๏ธ Attention: Castom firmware may contain bugs, especially on newer models. Check forum reviews before installing (e.g., forum reviews, 4PDA or XDA) for your particular model.

๐Ÿ’ก

Installing custom firmware requires an unlocked bootloader and TWRP. Without these two components, the process is impossible.

Solving problems after reinstalling Android

Even if you followed the instructions, there may be some problems after the firmware is installed, and let's look at the most common ones and how to fix them.

Problem.Possible causeDecision
Phone not turned on (black screen)Incorrect firmware or interrupted processRepeat the firmware through Fastboot with the correct file
Hanging on the MI logoModule conflict or incompatible firmwareRun Wipe Cache/Dalvik in TWRP or re-sweeten
No net (no catch) SIM-map)Firmware for another region or damaged modemInstall firmware with the correct region or sew modem separately
Google services are not workingInstalled firmware without GApps or Chinese versionInstall GApps via TWRP or run a global version
Fast battery dischargeBackground processes of custom firmwareCalibrate the battery or return to the stock firmware

If the phone stopped seeing after the firmware SIM-The cards, most likely, you installed firmware for another region, for example, Chinese firmware (China Stable) does not support European or Russian operators:

  1. Download the correct firmware (e.g. Global or EEA).
  2. Repeat the firmware process through Fastboot.
  3. If the problem persists, please go through modem and nvram files separately (you can find them on thematic forums).

For other errors, use logs. In TWRP, they are in /sdcard/TWRP/Logs, and in Android, they are in the MatLog app or the adb logcat command.

FAQ: Frequent questions about reinstalling Android on Xiaomi

Can I reinstall Android without a computer?
Yes, but with limitations. You can reset through Recovery (as described in Method 1) or install an official reset. OTA-Update through Settings โ†’ System updates: However, a computer is required to completely flash or install custom versions.
Will I lose my warranty after unlocking the bootloader?
Yes, unlocking the bootloader voids the warranty on most Xiaomi models, except for official updates via the Mi Flash Tool without unlocking (e.g., Fastboot recovery with Save user data option).
How to return the official firmware after custom?
To get back to stock MIUI: Download the official Fastboot firmware for your model. Sweat it through the Mi Flash Tool with the Clean all option. If necessary, lock the bootloader back (fastboot oem lock command).
What if the Mi Flash Tool gives you a Flash Not Done error?
This error is usually associated with: Incorrect firmware version (download it for your model!) Lack of drivers (install Qualcomm Drivers or Mediatek). VCOM). Closed ports (try another one) USB-Connect or disable the antivirus.Cable damage (use the original one).Also try running the Mi Flash Tool in Windows 7 compatibility mode.
Can I use Xiaomi to help you? OTG-cable?
Technically, yes, but it's a very unreliable method. Some users manage to flash their phone through OTG by plugging in a flash drive with firmware and using TWRP. However: There's a high risk of interruption (e.g., if the flash drive goes off). Not all versions of TWRP support OTG. You can't flash Fastboot firmware without a PC. We recommend using this method only as a last resort.