How to flash Xiaomi Redmi Note 5 (m1805d1sg): Full Guide

The Xiaomi Redmi Note 5, codenamed Whyred and model number m1805d1sg, remains one of the most popular devices for software experiments. Owners often face the need to change the regional version of the firmware, for example, when buying a device from China or India, where Google services or the necessary communication frequencies are missing. The process of updating or completely reinstalling the system allows not only to Russify the interface, but also to improve performance, as well as install the latest versions of Android security.

The m1805d1sg flashing procedure requires careful and rigorous sequence of actions, as an error at any stage can lead to a software failure. There are several basic methods: updating through the built-in menu, using the Mi Flash Tool in Fastboot mode for clean installation, and manually installing Recovery archives. The choice of the specific method depends on the current state of your device and the final goals, such as obtaining root rights or simply changing the interface language.

Before you start taking action, you need to understand that any manipulation of the system partition carries certain risks. For the m1805d1sg model, it is critical to use firmware labeled as Global or EEA, since installing the Chinese version on a global device without deep modification can cause bands problems. In this article, we will discuss in detail the preparatory stage, the necessary tools and step-by-step algorithm for successful software installation.

Preparation of the device and collection of necessary tools

The success of the operation depends on 90% of the quality of the workspace and software. You will need a computer running Windows, as the main utilities from Xiaomi, such as Mi Flash Tool and Mi Unlock, do not have official versions for macOS or Linux. USB-A cable, preferably original, that can transmit data, not just charge the battery. Bad contact can interrupt the recording of memory sectors, which will lead to a "brickle" smartphone.

On the smartphone you need to install all available updates to the drivers ADB and Fastboot. Often connection problems arise precisely because of the lack of the right drivers in the Windows Device Manager. It is recommended to download the universal driver package Qualcomm HS-USB QDLoader or use an automatic installer that comes with official utilities of the firmware. Without properly working drivers, the computer simply will not see the phone in the desired mode.

โ˜‘๏ธ Checklist for firmware preparation

Done: 0 / 4

Make sure to back up all your important data. The Fastboot firmware process, which we'll consider as the primary, involves completely erasing user information. Contacts, photos, instant messengers will all be destroyed. Use the built-in sync function with Mi Cloud or Google Account, or copy files to an external medium manually.

Unlocking the loader: a mandatory stage

Most global and Chinese firmware versions for the Redmi Note 5 come with a Locked Bootloader, a security mechanism that prevents changes to the system partition. To flash a device through Fastboot or install customized recaps (TWRP), the bootloader must be unlocked. This is an official procedure from Xiaomi, but it takes time and account binding.

The first step is to apply in the Mi Unlock Status app. SIM-card, connect to Wi-Fi and log into your Mi-account. After activating the developer mode (click 7 times on the build number in the About Phone section) and activating the Factory Unlock item, the application will show the status. If you are โ€œUnlockedโ€ you are lucky, but you will usually have to wait 7 to 168 hours.

โš ๏ธ Warning: The bootloader unlock process automatically performs a full Wipe Data reset. If there is important information on the phone, copy it before the unlock procedure begins, otherwise it will be impossible to restore files.

Once you're "Unlocked" in the app, you need to download the Mi Unlock Tool to your computer, log in with the same account you used on your smartphone, put your phone into Fastboot mode and connect it to your PC, you can start the unlocking process, and the utility will alert you to the risks once again, after which the phone will reboot with clean memory.

๐Ÿ“Š Have you ever encountered a locking of Xiaomi bootloader?
Yeah, waited 168 hours.
Yeah, it unlocked right away.
No, the phone was already unlocked.
I'm afraid to try.

Finding and selecting the right version of the firmware

Choosing the right firmware file is a key point for the m1805d1sg model. Firmware is divided into two main types: Recovery (upgrade or clean) and Fastboot (complete system reinstallation). For our purposes, when you need a major version change or system restoration, we need Fastboot ROM. Files of this type have the.tgz extension, unlike Recovery versions, which are archived in.zip.

It is important to pay attention to the region for which the firmware is intended. For the Redmi Note 5 Global model, versions labeled Global or Global are suitable. EEA (Europe). Indian (IN) or Chinese (CN) The versions may have a set of pre-installed apps and support for frequencies, such as the Chinese version may not have a Band 20, which is critical for the band to be able to use. LTE-Connections in some regions of Russia and Europe.

You should only download files from trusted sources, such as the official website miui.com or authoritative mirrors like XiaomiFirmwareUpdater. The firmware file must be unpacked after download. You will see many folders and files inside the archive, but the overall structure is important for the firmware. The path to the folder must not contain Cyrillic characters, otherwise the utility may give an error.

What is the difference between the Developer version and the Stable version?
The Stable version of the firmware is less common, but it undergoes rigorous testing and is recommended for everyday use. The Developer version contains the latest features and fixes, but may have bugs and require weekly updates. For the m1805d1sg model, given its age, it is recommended to install the latest available Stable version of Android 9 (MIUI 11 or 12).

Firmware via Mi Flash Tool in Fastboot mode

This is the most reliable and clean way to install the system. Mi Flash Tool allows you to completely rewrite partitions of memory of the smartphone, eliminating file conflicts and registry errors. Before you start, make sure that the Qualcomm or Xiaomi USB Driver drivers are installed correctly. The device manager when connecting the phone in Fastboot mode should display the Android Bootloader Interface device.

Launch the program on behalf of the administrator. Press Flash (or Refresh) to detect the connected device. If the serial number appears in the status field, then the connection with the phone is established. At the top of the window, select the path to the unpacked firmware folder. Notice the three firmware modes in the corner of the window: clean all, save user data and clean all and lock.

Clean all mode completely clears the memory and leaves the bootloader unlocked โ€“ this is the recommended option for changing the region. Clean all and lock mode does the same, but blocks the bootloader back; you can only use it if you flash the original firmware for the same region, otherwise the phone will go into a bootloop. Save user data mode tries to save files, but when you change region (for example, from China to Global) it often causes errors, so it is better to sacrifice data for stability.

fastboot devices


fastboot getvar all

Once you select the mode, press Flash. You start writing in 200 to 600 seconds. You'll see progress messages in the log. At the end, you'll see "Success" in green. The phone automatically reboots. The first download can take up to 10 minutes -- that's OK, the system optimizes files.

ParameterValue for m1805d1sgNote
Code nameWhyredUsed in file names
ProcessorSnapdragon 636Requires specific drivers
Firmware modeFastbootThe most stable method
Max, version of AndroidAndroid 9 (Pie)Official support completed

Installation of TWRP and custom firmware

For advanced users who want to install Android 10, 11 or even 12 through LineageOS or Pixel Experience projects, you will need to install a custom TWRP recavator. Standard recovery will not allow you to install unsigned Xiaomi digital key images. The TWRP installation process is possible only after unlocking the bootloader.

Download the current twrp-whyred.img image and rename it for convenience. Place the file in the ADB tool folder. Put your smartphone into Fastboot mode and connect it to your PC. Open the command line in this folder. We need to temporarily download the receptacles so that we can then flash it permanently.

Enter fastboot boot twrp-whyred.img. The phone will reboot to the TWRP menu. Since the system is not yet changed, TWRP may ask for a password โ€” enter the password from the lock screen or swipe if there is no password. Now, while in TWRP, you can flash the archive with the firmware itself or the root rights patch (Magisk).

๐Ÿ’ก

So TWRP not overwritten back to stock at the first boot of the system, immediately after entering the TWRP file"Disable_Force_Encryption" Or install Magisk, which modifies the boot partition.

To install custom firmware, copy its zip archive to your phone (via MTP mode in TWRP or in advance to a memory card). In the Recovery menu, select Install, find the archive and confirm the swipe installation. Once completed, click Reboot System. If you cast your first run can be a long one.

Solving errors and problems in firmware

When you run the Xiaomi Redmi Note 5 firmware, users often encounter specific bugs. One of the most popular is Error: Missmatching image and device. It occurs when you try to flash firmware for one model (like the Redmi Note 5 Pro) to another (Redmi Note 5), or global firmware to Chinese without first unlocking. The solution is one: check the model and download the correct archive.

Another common problem is that it freezes 5% or 55% in the Mi Flash Tool. USB-cable, faulty port USB 3.0 (try it out) USB 2.0) or driver conflict: Try reinstalling drivers by manually selecting them in Device Manager, or using another computer.

โš ๏ธ Warning: If your phone goes into an endless Bootloop after you've firmware, don't panic. Try doing Wipe Data through Recovery. + If that doesn't work, repeat the firmware procedure in Clear All mode".

A lack of network or VoLTE after a region change may be due to the wrong version of the modem, which may require flashing the modem separately or using an engineering menu to configure bands. However, for most users, installing an official Global ROM solves all communication problems.

๐Ÿ’ก

The main reason for firmware errors is inattention to the device model and the choice of the wrong mode (Save Data instead of Clean All) when changing the region.

Questions and Answers (FAQ)

Can I flash Redmi Note 5 without unlocking the bootloader?
Officially, no, if you want to change region (like China to Globalka) or roll back to an older version. In-region (OTA) upgrades are possible without unlocking. However, there are workarounds through EDL mode, but they require an authorized Mi Account (paid) and do not guarantee success.
Is the warranty reset after the firmware?
Technically, unlocking the bootloader and installing custom software will void the manufacturer's warranty. However, if you return the stock firmware and lock the bootloader back (with the fastboot oem lock command), visually detecting the intervention in the service center will be extremely difficult, unless you damage (iron).
What is the latest official firmware for m1805d1sg?
Official support for the model is complete.The latest stable version is MIUI 11 or MIUI 12 (Global/EEA) based on Android 9. Further security updates are not officially released, so custom firmware will have to be installed to get new versions of Android.
What if the Mi Flash Tool can't see the phone?
Check the Windows Device Manager. If there's a "Unknown Device" or an exclamation point device, you need to update the driver manually, and also make sure the cable is working and the phone is in Fastboot mode.