First, you need to find and download the file with the firmware itself. You can take it:

  1. On the official Xiaomi website - http://en.miui.com/download-240.html, where several latest versions of official Android-based firmware are posted at once.
  2. Custom modified options from xiaomi.eu and miui.su. You can download the version from miui.su at .

In addition, to reflash your smartphone, you will need root rights (we discussed how to get them in a separate article), as well as a program for automatic flashing and TWRP Recovery.

Xiaomi Mi4 firmware: procedure

Reflashing Xiaomi Mi 4 is quite simple. For comparison, with smartphones from HTC you often need to fool your head for much longer. With Xiaomi Mi4 the procedure is as follows:

  1. Install custom recovery:
  • Turn off your phone and start it in fastboot mode (press the power key + volume down button at the same time).
  • Connect your computer to your phone via the original USB cable, run the required file with *.bat resolution, and first unpack it yourself. The files cwm.bat and twrp.bat will install the required recovery, and stock.bat will allow you to later return to the native recovery of the phone. Follow the instructions written on the screen.
  • Boot into the installed custom recovery by simultaneously pressing the power and volume up buttons.

  1. Flash your smartphone after backing up all data: boot into custom recovery (in this case TWRP), select "Install" and find the required firmware archive with .zip permission for installation. Attention! Before doing this, you may need to merge two system partitions into one (in the case of Marshmallow firmware).

Also, in order to avoid errors during the firmware process, we recommend doing the following:

  • In Recovery, select "Wipe" or "Advanced Wipe".
  • Next, check "Cache", "Data», "Dalvik/ART Cache", "System", "Internal Storage" (last action will delete all user data from the microSD card).
  • Select "Advanced""Fix Contexts".

Sometimes, in order to fix an error that popped up at the wrong time, you can fix it by renaming the firmware to "miui.zip”, however, it is best to follow the steps described above.

While all system files are being flashed, the phone cannot be disconnected from the PC and generally it is advisable not to touch it. After the operation is completed, turning on the phone for the first time may take quite a long time - don’t be afraid. The process may take 15, 20 or even 30 minutes, and there may be several reboots during the phone startup - this is quite normal.

If you easily coped with the previous points, this one will seem quite simple to you. You need to download the archive onto the memory card, which we also flash via Recovery.

We give gifts

External battery Xiaomi Mi Power Bank 2i 10000 mAh

Silicone case as a gift

More details

External Xiaomi battery Mi Power Bank 2C 20000 mAh

Silicone case as a gift

More details

It is considered the flagship of the Chinese manufacturer, so all devices that come out under the name Xiaomi Mi can be considered flagships. One of the worst smartphones in this line can be considered Xiaomi Mi 4, which was released in the not-so-distant 2014. The phone's characteristics were not inferior to the flagships of that time - Samsung Galaxy S5, Galaxy Alpha, Nexus 5, LG G3 and so on, but at the same time it was significantly cheaper than the listed models, which made it a good buy. You can even say that even now the phone will look no worse than modern budget phones, and in some ways even better. Even now, in 2018, the phone continues to receive MIUI updates, not to mention custom firmware, including Android Oreo from the very latest version 8.1. And just like that, we smoothly approached the topic of this article - Xiaomi Mi 4 firmware. We will analyze the device firmware to the latest official version MIUI 9.2 and we’ll tell you a little about custom firmware and how to install them. Let’s stop delaying the introduction and move directly to the instructions for flashing the Xiaomi Mi 4 firmware.

Firmware for Xiaomi Mi 4 to official MIUI

It is worth giving credit to Xiaomi, because flashing the Xiaomi Mi 4 firmware is a very simple process that anyone can handle. Of course, if this is your first time using a computer and you don’t even know what drivers are, then you shouldn’t do this right away, but if you more or less understand how everything works on your computer, then you’re welcome. Flashing Xiaomi firmware is not only an easy process, but also a unified one! Almost all Xiaomi smartphones are flashed with the same program and require the same drivers. Mi 4, like any other Xiaomi smartphone, can be flashed to the official MIUI through the MIUI Rom Flashing Tool program or MiFlash for short and this is very convenient program. At least in that it installs all the necessary drivers on its own and all you have to do is connect the phone to the computer in fastboot mode and press the “Flash” button. Another clarification: the Xiaomi Mi 4 smartphone does not require unlocking the bootloader for flashing firmware via MiFlash, which significantly speeds up and simplifies the process itself, so we can go straight to flashing the firmware. All that remains is to download the firmware itself, and to do this, follow the link and download the latest firmware.

The process itself

First, we need to turn off the phone and boot it into fastboot mode; to do this, we need to hold down the “power” and “volume -” buttons at the same time. After this, the phone will boot into fastboot mode, showing a similar picture:

We connect the phone to the computer (it is advisable to do this via the supplied cable) and wait for the system to detect the phone. Afterwards, in the MiFlash program, click on the “Refresh” button (highlighted in yellow) and your device should appear in the list of devices.

Now you need to extract the downloaded firmware, it is advisable to do this through the WinRAR or 7Zip program. Create a folder in the root of the C: drive and extract the firmware there. Copy the address to the folder with the firmware and paste it into the field highlighted in blue.

Now click on the “flash” button to start the firmware. The process may take several minutes, and the first boot of the device from 5 to 15 minutes, please be patient.

As you can see, the process is very easy and does not take much time; most likely it will take you longer to download the firmware than to directly flash it.

Custom firmware for Xiaomi Mi 4

Here everything will not be so simple, but I will try to explain everything as clearly as possible. You will need to download the archive (link) with the necessary tools and unpack it to the root of the C: drive.

You need to start the phone in fastboot mode (power + volume down), and connect the phone to the computer.

First you need to flash a custom recovery, and for this we will use the command command Windows string. You can launch it through the Run program; to launch it, press Win + R and enter “cmd”. Since the necessary tools are located in the root of drive C in the Android folder, we need to go there, and to do this we enter the command CD C:\Android

To check the connection of your smartphone, you can enter the command fastboot devices and your phone should appear in the window.

To flash the recovery firmware you need to enter the command fastboot flash recovery recovery.img, where “recovery.img” is the name of the recovery file, which you can replace with your own.

After installing custom recovery, you must boot into it. To do this, hold down the “volume +” and “power” buttons.

To flash the firmware in the recovery itself, you need to make wipe data, wipe cache and wipe dalvik cache and only after that install custom firmware in the “Install” section.

As you can see, the process of installing custom firmware is much more complicated than installing MIUI, and I would recommend just installing the latest version of MIUI and not bothering with custom firmware.

Not all owners Xiaomi smartphone Mi4c is happy with MIUI installed at the factory. For some, the presence of the Russian language is critical, while others want to acquire new functions or simply change the design. In this case, you should use third-party firmware. For Xiaomi Mi4c, flashing the firmware is a simple process, but requires following the instructions.

Firmware for custom TWRP recovery

Most popular installation method new firmware Xiaomi - use custom recovery TWRP version 3.1.1-1 for Android 7, 3.0.2-0 for Android 5 or universal TWRP Multi for Xiaomi. After downloading, you need to copy it to a folder on your computer, the path to which does not contain Russian letters, and rename it to twrp_mi4c with the img extension.

You should also install Mi PC Suite, having first disabled the scan digital signature drivers in Windows. Since the bootloader on the Xiaomi Mi4c is not locked from the factory, the firmware does not require official unlocking using Mi Unlock.

Installing TWRP in Fastboot mode:

  1. Switch the phone to Fastboot mode (turn it off by holding down the “Volume -” and “Power” keys, release them when a hare with earflaps appears on the screen).
  2. Run Command Prompt in the folder with the unpacked TWRP recovery
  3. Enter the command fastboot flash recovery twrp_mi4c.img into the command line and press Enter. This command starts the installation of custom recovery from the twrp_mi4c img file obtained earlier, so the name may be different.
  4. Restart the phone by holding the power button. If the TWRP menu opens, it is recommended to select Reboot > Recovery and only after rebooting again, use Reboot > System in the menu (if you plan to install the firmware later).

After installing the custom recovery, you can proceed to downloading the firmware package.

Installing firmware on Xiaomi MI4c

The procedure for installing the firmware package depends on the type of software downloaded. For example, official firmware can be installed through the built-in Update application. If third-party firmware from the same Android versions, as the current one, you must adhere to the following sequence of actions:

  1. Create a backup using the standard application. It can be done using TWRP, but there is a risk of problems with firmware from another developer.
  2. Copy the downloaded firmware to a memory card or internal phone memory. She should be in zip format(not tgz).
  3. Boot into the custom recovery menu by holding down both volume keys and the Power button on the turned off smartphone. Select Wipe > Swipe to Factory Reset.
  4. Using the Install item, specify the path to the firmware file and swipe from left to right to start the package installation procedure.

It is a little more difficult to switch from one version of Android to another: from 5 to 7 or back. To do this you will need:

  1. Download the installation package in zip and SuperSU format.
  2. If the device does not use a universal recovery, then you will need to download the recovery for the version of Android you are installing, since custom recovery for Android 5 and 7 is incompatible.
  3. Copy to your phone what you downloaded according to steps 1 and 2.
  4. Boot into recovery.
  5. Execute Wipe > swipe from left to right (clearing Data, Dalvik/Art Cache and Cache).
  6. Reboot into recovery (Reboot > Recovery).
  7. Install, start the installation.

Once the installation is complete, the bootloader will be locked and the current TWRP will become unusable for further use. Therefore, you need to immediately (without reboot) install SuperSU, and then install a new recovery. Then run Reboot > Recovery.

If the MI icon appears after a reboot, this means that an error was made. In this case, you will have to install Root Explorer and Flashify (for root users) from under the system, give permission to use superuser rights (root) and flash TWRP with their help.

  1. Reboot into recovery. Run Wipe > Advanced Wipe > check the Dalvik/Art Cache and Cache checkboxes > swipe from left to right to start cleaning.
  2. The installation is complete, it's time to boot into the system. The first launch lasts about 10 minutes.

To install official Fastboot firmware with the tgz extension, MiFlash is used. Using this method removes everything from internal memory phone and blocks the bootloader, so you will have to create a backup on external media.

Flashing in Fastboot mode with using MiFlash is done as follows:

  1. Download the firmware, install Mi PC Suite and MiFlash on your computer. Disabling driver digital signature verification is mandatory.
  2. Unzip the tgz file to a folder on the disk, the path to which does not contain Cyrillic characters or spaces.
  3. Put your smartphone into Fastboot mode.
  4. Go to MiFlash and click Refresh until the device appears in the list.
  5. Click Browse in the MiFlash window and select the folder with the unzipped firmware. You need to select the folder that contains the images directory.
  6. By clicking on the triangle next to the Browse button, select Advanced.
  7. Next to the FastBoot Script field, click Browse and specify the path to the flash_all.bat file in the folder with the unzipped firmware.
  8. Press Enter on the keyboard, then Refresh and then Flash in the MiFlash window.
  9. When the process is complete, the phone will reboot. The first launch lasts 7-10 minutes.

Reflashing your smartphone allows you to gain access to new features, customize it according to your wishes, and get rid of the shortcomings of the standard software.

Detailed instructions for installing the official firmware on Xiaomi Mi 4S (Aqua) via the MiFlash application with an unlocked bootloader.

    Drivers and programs

Attention!

To install the official firmware via Fastboot, you need .

Installation instructions

    Do backups all necessary data and files and save them to your computer, removable media or cloud.

    Create a folder named “Android” in the root of the C:\ drive.

    Disable driver authentication.
    Windows 7
    When you turn on the computer, after BIOS boot, you must press the F8 key. In the menu that appears " Additional options Download" select "Disable mandatory driver signature". This method may not work the first time, so you should repeat the action or open a command prompt as an administrator and enter two commands:
    "bcdedit.exe /set loadoptions DDISABLE_INTEGRITY_CHECKS"
    "bcdedit.exe /set TESTSIGNING ON"
    Windows 8
    You need to press the Win+I key combination, hold down the Shift key and select “Shutdown” > “Restart”. When you turn on your computer, select Diagnostics > Advanced Options > Boot Options > Restart. When loading, select the “Disable mandatory driver signature verification” mode by pressing the F7 key.
    Windows 10
    You must hold down the Shift key and select the Start menu > Shutdown > Restart. After booting, select Troubleshooting > Advanced Options > Boot Options > Restart. Then select “Disable mandatory driver signature verification” by pressing F7.

    Download official firmware for installation and unpack the archive to any folder.
    It is recommended to use the folder path without Cyrillic characters. For example, “C:\Android\firmware_name”.

    Activate the “USB Debugging” and “Factory Unlock” items on your smartphone in the “For Developers” section (located in “Settings” → “Advanced”).
    To open this section, you need to go to “Settings” → “About phone” and click on “MIUI version” several times.

    Connect the phone to the computer via a USB cable and change the connection type from “Charge only” to “File transfer (MTP)”.
    It is recommended to use the original or cable good quality, and also USB port 2.0, located on motherboard(for PC).

    Open a command prompt and go to the created folder Android team“cd c:\Android\” (commands are written without quotes).

    Make sure that the computer finds the device via ADB.
    To do this, you need to enter “adb devices” into the command line. When a request appears on the phone for permission to debug via ADB on this computer You must click “Ok” and select “Always allow from this computer.” If the device is visible, the text “List of devices attached” and a list of all devices (for example, xxxxxxx device) will be displayed. If instead of “device” it says “offline” or the list is empty, then you need to update ADB, check the drivers/cord, change the USB port/computer.

    Reboot your smartphone into Fastboot mode.
    For this it is necessary to command line enter “adb reboot bootloader” or turn it off, then turn it on while holding down the Volume Down key. A hare wearing a hat with earflaps should appear on the screen.

    Make sure that the computer finds the device in Fastboot mode.
    To do this, enter the command “fastboot devices”. If the response is “xxxxxxx fastboot”, then the phone is connected correctly. If “waiting for device” or nothing at all is displayed, you need to check the status of the USB connection or reinstall the drivers.

    Launch the MiFlash utility. Then click the “Refresh” button, then “Browse...” and specify the path to the folder with the firmware. At the bottom of the screen, select “Flash all except storage” to save files in the device’s memory or “Flash all” to format the internal memory and press the “Flash” button. The firmware installation process will begin.

    After the operation is completed, the phone should reboot itself.
    If this does not happen, you need to enter “fastboot reboot” in the command line or hold down the Power button for 10 seconds until the Mi logo appears. The cable can now be disconnected. After a few minutes, the device will boot up and be ready for further work.

    Copy