Xiaomi mi4 64gb firmware. Firmware for Xiaomi Mi4c smartphone. Now let's install custom Recovery, which will allow you to install any firmware

The Xiaomi Mi line of devices is considered the flagship 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, among which there are Android Oreo with the 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 for the latest official version of MIUI 9.2 and 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. One more clarification: the Xiaomi Mi 4 smartphone does not require unlocking the bootloader to flash the firmware via MiFlash, which significantly speeds up and simplifies the process itself, so we can go straight to 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 MIUI installation and I would recommend just installing the latest version of MIUI and not bothering with custom firmware.

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 are posted at once latest versions official firmware based on Android.
  2. Custom modified options from xiaomi.eu and miui.su. You can download the version from miui.su at .

In addition, to reflash a 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.

Give gifts

Xiaomi Mi External Battery Power Bank 2i 10000 mAh

Silicone Case For a present

More details

External battery Xiaomi Mi Power Bank 2C 20000 mAh

Silicone Case For a present

More details

The firmware practically does not “eat up” the battery - in 8 hours at night the battery can lose a maximum of 1% of its charge. The operating system works quickly, which is incredibly pleasing - it seemed that it couldn’t get any better, but Xiaomi was pleasantly surprised by the increase in operating speed.

In general, new interesting “tricks” are increasingly appearing in new MIUI firmware, for example, cloning programs and so on. The operating system is very good, highly customizable, and its style is consistent and pleasing to the eye.

The flagship smartphone Xiaomi Mi4c, released at the end of 2015, due to its high technical characteristics is a very attractive offer today. To fully unlock the potential of the device, users from our country will have to resort to installing a localized MIUI firmware or a custom solution. This procedure is quite simple if you follow the instructions from the material below.

The powerful hardware platform from Qualcomm with a large performance reserve causes virtually no complaints among Mi4c users, but the software part may disappoint many fans of Xiaomi devices, because there is no official version for the model global version MIUI, since the flagship was intended for sale exclusively in China.

Lack of Russian interface language, Google services and other shortcomings of the Chinese MIUI, originally installed by the manufacturer, can be solved by installing one of the localized versions of the system from domestic developers. The main goal of this article is to tell you how to do this quickly and without problems. Initially, we will consider installing the official firmware to return the device to its factory state and restore “bricked” smartphones.

Responsibility for the result of following the instructions below lies entirely with the user, and only he, at his own peril and risk, decides to carry out certain manipulations with the device!

Regardless of the initial state of the Xiaomi Mi4c in software terms, before installing the desired version of Android, you should prepare the necessary tools and the device itself. Scrupulous implementation of the following steps largely determines the success of the firmware.

Drivers and special modes

There are several ways to equip the operating system with components that allow you to pair Mi4c and a PC in order to be able to manipulate the device’s memory through special software. The simplest and most quick way getting drivers means installing a proprietary Xiaomi tool for flashing branded devices - which contains everything you need.

Installing drivers


Operating modes

If the drivers are installed correctly, there should be no problems with the computer recognizing the device. Opening "Device Manager" and observe the devices displayed in its window. We connect the device in the following modes:

  1. The normal state of a phone running Android in file transfer mode. Enable the ability to share files, i.e. MTP mode, you can pull down the notification shade on the device screen and tap on the item that opens a list of options and modes for connecting the smartphone. In the list that opens, select "Media device (MTP)".

    IN "Dispatcher" we see the following:

  2. Connecting a smartphone with USB debugging enabled. To enable debugging, follow the path:

    "Device Manager" should display the following:

  3. Mode "FASTBOOT" . This mode work at Android installation in Mi4c, as in many other Xiaomi devices, it is used very often. To start the device in this mode:

    A device in this state is defined as "Android Bootloader interface".

  4. Emergency mode. In a situation where the Mi4c software is seriously damaged and the device does not boot into Android or even into "FASTBOOT", when connected to a PC, the device is detected as .

    When the phone shows no signs of life at all, and the PC does not respond when the device is connected, press the buttons on the smartphone connected to the USB port "Nutrition" And "Volume-", hold them for about 30 seconds until the operating system detects the device.

If the device is not detected correctly in any mode, you can use the files from the driver package for manual installation, available for download here:

Backup

During the operation of any Android device, it accumulates a lot of different information that is valuable to the user. During the firmware update, all data will in most cases be destroyed, so to prevent irretrievable loss, you should create a backup copy as soon as possible.

You can learn about some methods for creating a backup before seriously interfering with the software part of your smartphone from the lesson at the link:

In addition to other methods, we can recommend the use of very effective tools for copying important information and its restoration subsequently, integrated into the official versions of MIUI, which are installed in Mi4c by the manufacturer. It is assumed that the Mi Account on the device is logged in.


Unlocking the bootloader

Before flashing the Mi4c firmware, you need to make sure that the device’s bootloader is not locked and, if necessary, carry out the unlocking procedure by following the steps in the instructions from the article:

Unlocking usually does not cause any problems, but checking the status and gaining confidence in unlocking the bootloader can be difficult. When releasing the model in question, Xiaomi did not block the bootloader of the latter, but the Mi4ts bootloader may be blocked if operating systems of higher versions were installed on the device 7.1.6.0 (stable), 6.1.7 (developer).

Among other things, it will not be possible to determine the status of the bootloader using the standard method described in the article at the link above, that is, it will not be possible, since for any state of the model’s bootloader, when the fastboot oem device-info command is executed, the same status is given.

Summarizing the above, we can say that you should carry out the unlocking procedure via MiUnlock in any case.

If the bootloader is not initially blocked, the official utility will display the following message:

Additionally

There is one more requirement that must be met before proceeding with the installation of system software in Mi4c. Disable graphic key and screen lock password!

When switching to some versions of the MIUI, failure to follow this recommendation may result in the inability to log into the system!

Firmware

Install operating system in Xiaomi Mi4c, as in all the manufacturer’s devices, you can use several official methods, as well as using universal tools from third-party developers. The choice of method depends on the state of the device in software terms, as well as the goal, that is, Android versions, under which the smartphone will operate after all manipulations are completed.

Method 1: Android application “Update”

Officially, Xiaomi offers to install system software on its devices using the built-in tool for installing updates in MIUI branded shell. By following the instructions below, you can install any official firmware for Xiaomi Mi4c. You can download the latest versions of the system on the manufacturer’s official website.

The package used for installation in the example below uses the MIUI development version 6.1.7 . You can download the package from the link:


Method 2: MiFlash

It is safe to say that for all Xiaomi Android devices it is possible to flash firmware using a proprietary tool created by the manufacturer. Details about working with the tool are described in the article at the link below. In this material, we will focus on the features of using the tool as a flasher for the Mi4c model.

For example, let's install the same official MIUI as in the method of installing the OS via the Android application "Update", but the package, which can be downloaded from the link below, is intended for installation via MiFlash in phone connection mode "FASTBOOT".


Additionally. Recovery

MiFlash can be used as a tool for restoring Mi4c to its factory state after installing a system that blocks the bootloader, as well as restoring smartphones after serious software failures. IN similar cases you should flash the developer MIUI firmware 6.1.7 in emergency mode "Qualcomm HS-USB Qloader 9008".

The procedure for overwriting Mi4c system partitions in emergency mode completely repeats the instructions for flashing firmware in fastboot mode, only in MiFlash it is not determined serial number device, and the COM port number.

You can put the device into mode, among other things, using a command sent via:
fastboot oem edl

Method 3: Fastboot

Experienced users who have repeatedly flashed firmware for Xiaomi smartphones know that MIUI packages posted on the manufacturer’s official website can be installed on the device without using MiFlash, but directly through Fastboot. The advantages of this method include the speed of the procedure, as well as the absence of the need to install any utilities.


Method 4: Recovery via QFIL

In the process of manipulating software part Xiaomi Mi4c, most often due to incorrect and thoughtless actions of the user, as well as as a result of serious software failures, the device can enter a state where it seems that the phone has “died”. The device does not turn on, does not respond to key presses, the indicators do not light up, is detected by the computer as "Qualcomm HS-USB Qloader 9008" or not defined at all, etc.

In such a situation, restoration is required, which is carried out through proprietary utility from the manufacturer Qualcomm for installing the system in Android devices built on the hardware platform of the same name. The tool is called QFIL and is integral part QPST software package.

  1. Unpack the archive with QPST and install the application following the installer's instructions.
  2. Unpack the fastboot firmware. It is recommended to use the development version of MIUI 6.1.7 for recovery
  3. Let's launch QFIL. This can be done by finding the program in the Windows Main Menu

    or by clicking on the utility icon in the directory where QPST was installed.

  4. Switch "Select Build Type" set to position "Flat Build".
  5. We connect the “bricked” Xiaomi Mi4c to the USB port of the PC. Ideally, the device will be detected in the program - the inscription "No port aviable" at the top of the window will change to "Qualcomm HS-USB Qloader 9008".

    If the smartphone is not detected, click "Lower volume" And "Inclusion" at the same time, hold the combination until "Device Manager" The corresponding COM port will appear.

  6. In field "Programmer path" add the file prog_emmc_firehose_8992_ddr.mbn from the catalog "images", located in the folder with the unpacked firmware. The Explorer window in which you need to specify the path to the file opens by clicking the button "Browse...".
  7. Click "Load XML...", which will open two Explorer windows in turn, in which you need to mark the files offered by the program rawprogram0.xml,

    and then patch0.xml and press the button "Open" twice.

  8. Everything is ready to begin the procedure for overwriting device memory partitions, press the button "Download".
  9. The file transfer process is logged in the field "Status". In addition, the progress bar is filled.
  10. We are waiting for the completion of the procedures. After the inscription appears in the log field "Finish download" disconnect the cable from the phone and start the device.

Method 5: Localized and custom firmware

Having installed the official version of the system using one of the methods described above, you can proceed to the procedure for bringing Xiaomi Mi4c into a state that fully reveals the potential of this high-level device.

As mentioned above, full use All the capabilities of a smartphone by users from the Russian-speaking region are only possible as a result of installing localized MIUI. You can learn about the features of such solutions from the article at the link below. The proposed material also contains links to the resources of the development teams, where you can download the latest versions of translated shells.

Installation of modified recovery

To equip Mi4c with localized MIUI or a modified system from third-party developers, the capabilities of a custom recovery environment are used.

For the model in question, there are many versions of TWRP, and when downloading recovery, you should take into account the version of Android that is installed in the device before installing the environment. For example, an image designed for Android 5 will not work if the phone is running Android 7 and vice versa.

Installing an inappropriate recovery image may make it impossible to start the device!

Let's install universal version of Android TWRP for Xiaomi Mi4c. The image used in the example and available for download from the link below can be installed on any version of Android, and when using other images you should pay attention to the purpose of the file!

  1. The easiest way to install a modified recovery environment in the model in question is through Fastboot. Download the toolkit from the link below and unpack it to the root of the C: drive.
  2. Place the file TWRP_Mi4c.img, obtained as a result of unpacking the archive downloaded from the link above into the directory "ADB_Fastboot".
  3. Fastboot flash recovery TWRP_Mi4c.img

    The successful completion of the operation is confirmed by the output of a message “writing ‘recovery’… OKAY” in the console.

  4. We disconnect the device from the PC and boot into recovery by pressing and holding the combination on the smartphone "Volume-" + "Nutrition" until the TWRP logo appears on the screen.
  5. Important! After each boot into the recovery environment installed as a result of completing the previous steps of this instruction, you should wait a three-minute pause before using the recovery. During this time after launch, the touchscreen will not work - this is a feature of the proposed version of the environment.

  6. After the first launch, select the Russian language of the recovery interface by pressing the button "Select language" and allow changes to the system partition of the device’s memory by sliding the corresponding switch to the right.

Installing translated firmware

After receiving a custom TWRP recovery, the user of the device has all the opportunities to change the firmware. Localized MIUIs are distributed in the form of zip packages that can be easily installed using a modified recovery environment. Work in TWRP is described in detail in the following material, we recommend that you read it.

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 after disabling driver digital signature verification 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 you will be using third-party firmware of the same version of Android 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. It must 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, from under the system you will have to install Root Explorer and Flashify (for root users), 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 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 using MiFlash is performed 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 “Advanced boot options” menu that appears, select “Disable mandatory driver signing.” 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 the official firmware for installation and unpack the archive into 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 USB port 2.0, located on motherboard(for PC).

    Open a command line and go to the created one Android folder with the command “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