How to upgrade Xiaomi Redmi 5 to MIUI 12: all working ways in 2026

Do you want to upgrade Redmi 5 to MIUI 12?

Xiaomi Redmi 5, released in late 2017, originally ran on MIUI 9 with a shell based on Android 7.1 Nougat. Over time, the device received official updates to MIUI 11 (Android 9 Pie), but MIUI 12 for this model never came out in standard firmware. However, it is possible to install the twelfth version of the shell - and there are both official workarounds and informal solutions from the community.

In this article, we will discuss all the current ways of updating, their pros and cons, and give clear instructions for each method. It is important to understand that Redmi 5 does not support MIUI 12 at the manufacturer level, so any manipulation of the firmware you do at your own risk. However, with the right approach, the process goes smoothly, and the result meets expectations: new design, improved performance and current security features.

Before you start, answer two key questions: 1. Are you ready for a possible loss of warranty (if it is still valid)? 2. Do you realize that unofficial firmware can contain bugs?

๐Ÿ“Š What is your experience with Xiaomi firmware?
Never stitched.
I've been stitching through official methods.
I've been installing custom firmware.
I know how to recover my phone after brick.

Device requirements before updating

Before you upgrade Redmi 5 to MIUI 12, you must meet several mandatory conditions, and ignoring them can lead to a "brick" (complete failure) of the device or data loss.

Minimum requirements:

  • ๐Ÿ”‹ Battery charge at least 60%. Better โ€” 80-100%, The process of updating may take up to 30 minute.
  • ๐Ÿ“ฑ Free space in internal memory: minimum 3 GB (for temporary firmware files).
  • ๐Ÿ”’ Unlocked bootloader (if you plan to install an informal firmware).
  • ๐Ÿ“ก Stable Internet connection (for downloading firmware files) Wi-Fi is preferable to mobile network.
  • ๐Ÿ”ง Backup data: Update can erase photos, contacts and apps.

On Redmi 5, it takes up to 72 hours because of Xiaomi's policy. If you've never unlocked the bootloader before, start the process beforehand:

โš ๏ธ Attention: Unlocking the bootloader will reset the phone to factory settings. All data will be deleted, including gallery photos and instant messaging messages. Use Mi Cloud or local backup.

Also check out the current version of MIUI and Android: Settings โ†’ About Phone โ†’ MIUI version and Android version.

If you have MIUI 10/11 running Android 8/9, you can proceed with the upgrade. If the version is lower, first upgrade to the latest official firmware via Settings โ†’ System Update.

How to check the status of unlocking the bootloader?
Open Settings โ†’ About Phone and 7 times click on the MIUI Version to activate Developer Mode. Then go to Settings โ†’ Additional โ†’ Developer Tool and find the Mi Unlock Status item. If it says Locked, the bootloader needs to be unlocked through the official Mi Unlock Tool app.

Method 1: Update via unofficial MIUI 12 (Castom firmware)

The most common method is to install unofficial (custom) firmware based on MIUI 12, adapted by enthusiasts for Redmi 5.

  • ๐Ÿ†• Full functionality MIUI 12, including new animations and control centers.
  • ๐Ÿ”„ Regular updates from the community (bug fixes, new features).
  • ๐Ÿ›  Ability to fine-tune the system (kernels, Magisk modules, etc.).

Of the minuses:

  • ๐Ÿšซ Loss of the official guarantee if it is still valid).
  • ๐Ÿ› Possible bugs (e.g., non-functioning) NFC or camera problems).
  • ๐Ÿ”’ The need to unlock the loader.

The installation will require:

  1. MIUI 12 firmware file for Redmi 5 (see XDA Developers or 4PDA forums). Popular builds: MIUI 12 by StableTeam or MIUI 12 AOSP.
  2. Utility. TWRP Recovery (Redmi version) 5 โ€” twrp-3.5.2_9-0-rosy.img).
  3. Mi Flash Tool (for Fastboot firmware) or ADB (for TWRP installation)

Download firmware MIUI 12 for Redmi 5|Install drivers ADB and Fastboot|Unlock the bootloader through the Mi Unlock Tool|Download TWRP Redmi 5 (version 3.5.2)|Make a backup of data using Mi Cloud or Titanum Backup-->

Step-by-step:

  1. Download the firmware file (usually in.zip format) and place it in the root directory of the phoneโ€™s internal memory.
  2. Install. TWRP Recovery with Fastboot: Fastboot Flash Recovery twrp-3.5.2_9-0-rosy.img fastboot boot twrp-3.5.2_9-0-rosy.img
  3. In TWRP, run Wipe (clean) partitions for Dalvik, Cache, System, Data.
  4. Install the firmware via Install โ†’ Select file.zip โ†’ Swipe to Confirm Flash.
  5. Once installed, restart the phone. The first launch can take up to 10 minutes.

โš ๏ธ Note: If after firmware the phone is stuck on the logo MI For more than 15 minutes, try to re-enter the TWRP (clamp down the Power + Volume Up) and run Wipe Cache. If that doesn't work, re-sweeve the Data partition before you format it. TWRP: Wipe โ†’ Format Data โ†’ enter").

Method 2: Update via the ported Global Stable (official workaround)

If you donโ€™t want to install fully customized firmware, you can try a ported version of MIUI 12, which is based on official files for other Xiaomi devices, a method that is less risky because it uses the original MIUI components, but still requires an unlocked bootloader.

Advantages of Ported Firmware:

  • ๐Ÿ”„ More stable work compared to fully custom assemblies.
  • ๐Ÿ“ฑ Maintaining the basic functions of the phone (camera, sensors, mobile network).
  • ๐Ÿ”’ Less risk of "brika" when installed correctly.

Disadvantages:

  • ๐Ÿ“ต Small bugs are possible (for example, incorrect gestures or animations).
  • ๐Ÿ”„ Updates come out less often than custom firmware.

Where to look for ported firmware:

SourceReferenceFeatures
4PDA (Russian-speaking community)Reference to the topicUp-to-date assemblies, support, instructions in Russian
XDA DevelopersReference to the forumInternational assemblies, frequent updates
Telegram channelsSearch for MIUI 12 Redmi 5Quick answers from developers, but the risk of running into viruses

The process of installing ported firmware is similar to custom, but there are nuances:

  1. Download the firmware file (usually weighing 1.5โ€“2 GB) and check its checksum (MD5) to avoid corrupted files.
  2. In TWRP, only run Wipe Cache and Wipe Dalvik. Data formatting is optional (but it is recommended if you switch from a different version of Android).
  3. Install the firmware and don't restart immediately. First, run Magisk (if root is needed) or Disable_Dm-Verity_ForceEncrypt (avoid getting stuck in the logo).

๐Ÿ’ก

If, after installation, ported MIUI 12 mobile network is not working, go to Settings โ†’ SIM-maps and mobile networks โ†’ Network settings and manually select operator. Network settings resetting (Settings) sometimes helps. โ†’ System system โ†’ Reset โ†’ Resetting network settings).

Method 3: Update via MIUI bootloader (semi-official method)

For those who donโ€™t want to mess with TWRP and unlock the bootloader, thereโ€™s a semi-official way to do it: use the MIUI bootloader app, which lets you download and install firmware for other Xiaomi devices if their configuration is compatible with Redmi 5.

How it works:

  1. Install MIUI bootloader from Google Play.
  2. In the app, select the Redmi Note 5 model (codenamed whyred) โ€“ its firmware is often compatible with Redmi 5 (rosy).
  3. Download Stable or Weekly version of MIUI 12 (note the Android version โ€“ should match your current one).
  4. Transfer the firmware file (.zip) to the folder downloaded_rom internal.
  5. Go to Settings โ†’ About Phone โ†’ System Update and click on the three dots in the upper right corner โ†’ Select a firmware file.

Warnings:

  • ๐Ÿ”ด This method may not work if the Android versions donโ€™t match (for example, you have Android 8 and the firmware for Android 9).
  • ๐Ÿ”ด There is a risk of getting a โ€œbootloopโ€ if the firmware is incompatible.

โš ๏ธ Note: If after selecting a firmware file, an error appears in the update menu saying "This update is not intended for your device", then the firmware is incompatible. ADB โ€” Instead, look for a firmware that's ported specifically for Redmi 5.

๐Ÿ’ก

MIUI bootloader is the easiest way, but it only works if the firmware is Android- and hardware-compatible. Always check other users' reviews on forums before installing.

Solving problems after upgrading to MIUI 12

Even if you successfully install MIUI 12 on Redmi 5, you may have problems, and here are some of the most common ways to fix them:

1.The phone does not turn on or hovers on the MI logo

    2. Mobile network or Wi-Fi is not working

    • ๐Ÿ“ถ Go to Settings. โ†’ SIM-maps and mobile networks โ†’ Network settings and select the mode Only 3G (sometimes 4G unstable).
    • ๐Ÿ”„ Reset network settings: Settings โ†’ System system โ†’ Reset โ†’ Resetting network settings.
    • ๐Ÿ›  If the problem is IMEI, Restore it with Engineer Mode (#3646633##).

    3. Fast battery discharge

    • ๐Ÿ”‹ Turn off Auto Brightness and set the brightness manually on 50-60%.
    • ๐Ÿ“ต Enable Charge Saving Mode in Battery Settings.
    • ๐Ÿ›  Check Active Applications in Settings โ†’ Battery โ†’ Battery use and forcefully stop suspicious.

    Interface lags and brakes

    • ๐Ÿ”„ Restart your phone โ€“ sometimes it solves the problem.
    • ๐Ÿ—‘ Clear the app cache: Settings โ†’ Annexes โ†’ Application management โ†’ Clear the cache.
    • ๐Ÿ›  Turn off animations: activate Developer Mode and install Windows animation = 0.5x, Animation of transitions = 0.5x.

    If neither method worked, go to the 4PDA or XDA forums with error logs, and add screenshots and a description of the problem, and the community can help you find a solution.

    How to collect logs to diagnose problems?
    1. Install the MatLog app from Google Play. 2. Play the problem (e.g., try to connect to Wi-Fi). 3. Open MatLog and click Start recording. 4. Repeat the actions causing the error. 5. Stop recording and save the log to file. 6. Download the log to pastebin.com and share the link on the forum.

    Reverse to the previous version of MIUI

    If MIUI 12 is unstable or you don't like the changes, you can return the previous firmware version.

    Step 1 Download the official firmware

    • ๐Ÿ“ฅ Download the latest stable version MIUI 11 for Redmi 5 from Xiaomi official website.
    • ๐Ÿ” Choose the Fastboot version (.tgz file) if you plan to flash through the Mi Flash Tool or the Recovery version (.zip) if you use it. TWRP.

    Step 2. Install the firmware

    • ๐Ÿ”ง For Fastboot: Unpack the.tgz archive into a folder. Connect your phone in Fastboot (Power) mode. + Volume Down. Launch the Mi Flash Tool, select the firmware folder and click Flash.

    Recovery

    1. Place the.zip file in the phoneโ€™s memory.
    2. Download to TWRP and select Install โ†’ firmware โ†’ Swipe to Confirm.

    โš ๏ธ Note: When you roll back to an older version MIUI This can trigger anti-rollback protection, which will cause a device to "brick" -- so to avoid problems, don't go to a version older than the one you originally installed, for example, if your phone was coming from a computer. MIUI 10, roll back on MIUI 9 not allowed.

    FAQ: Frequent questions about Redmi updates 5 before MIUI 12

    Can I upgrade Redmi 5 to MIUI 12 without unlocking the bootloader?
    No, Xiaomi hasn't officially released MIUI 12 for Redmi 5, so all methods require unlocking the bootloader, except the semi-official way through MIUI bootloader (but it doesn't always work).If the bootloader is locked, the maximum available version is MIUI 11.
    Will Google Pay work after upgrading to MIUI 12?
    Google Pay requires a certified firmware and a locked bootloader. Once custom firmware is installed, the app will either refuse to work or will give an error, "Device not certified." Solutions: Use alternatives (Samsung Pay, Garmin Pay). Install Magisk module with Universal SafetyNet Fix (not always working).
    How to check if MIUI 12 is suitable for Redmi 5?
    Before installing, check: Device codename: firmware should be for rosy (this is Redmi 5 code). Android version: if you have Android 8, don't install firmware for Android 9/10. Firmware type: Redmi 5 is only suitable for ported or custom builds. Official firmware for other models will not work. User reviews: forums usually indicate whether the firmware works on Redmi 5.
    Can I upgrade Redmi 5 to MIUI 12.5 or MIUI 13?
    Technically yes, but with even greater risks. MIUI 12.5 and MIUI 13 Android requires 10/11, Redmi. 5 Officially supports maximum Android 9. Unofficial ports of these versions exist, but they are highly unstable: ๐Ÿ“ต The mobile network is not working. 30% user-user. ๐ŸŽฎ Strong lags in games and applications. ๐Ÿ”‹ Battery sits down for 3-4 We recommend you stay at the MIUI 12 โ€” It is the best balance between new functions and stability.
    What if IMEI disappeared after the update?
    This is a common problem when running unofficial versions of the firmware. Solution: Make sure you have a backup of the folder. /data/nvram (You need to make it before the firmware! If there's no backup, try to restore it. IMEI via Engineer Mode: 1. Dial it ##3646633## 2. Go to Connectivity โ†’ CDS Information โ†’ Radio Information 3. In the field AT+ enter: AT +EGMR=1,7,"IMEI_1" AT +EGMR=1,10,"IMEI_2" (substitute IMEI_1 and IMEI_2 to your original numbers) 4. If nothing helps, run the original firmware through the Mi Flash Tool.