TVs. Consoles. Projectors and accessories. Technologies. Digital TV

Recovery and Fastboot modes on Xiaomi. How to enter and exit them? Installing twrp recovery on Xiaomi Firmware for xiaomi devices via recovery mode

Recovery Mode is a special device boot mode that allows you to reset to factory settings, backups and other system actions.

Most often it is used for when there is no access to standard settings systems. The procedure for logging into Recovery is different for each manufacturer. For example, on Samsung smartphones You need to hold down the “Power button + Home + volume rocker up.” On Nexus devices - “power button + volume down button”. Control in the recovery itself is carried out using the volume buttons and the power button.

Attention! Opening Recovery is not a dangerous procedure and does not void the user's warranty, but further actions may lead to various consequences, for which you are solely responsible.

There are several types of recovery mode: stock and custom. Let's look at them in more detail.

Stock

The stock Recovery Mode comes with the device initially and does not have much functionality. In most cases, it contains the following items:

  • Apply update from SD-card or Install zip from SD-card (installing an archive with a system update).
  • (reset to factory settings).
  • (clearing device cache).
  • Backup and restore ( backup and data recovery).
  • Many smartphones running Android 7.0 Nougat Recovery menu The following functions have appeared:

    • Reboot to bootloader (direct download of mobile operating system to access recovery mode and start normal OS operation).
    • (checking the signatures of all root files and their integrity).
    • Mount / System (mounting the system and its partitions).
    • View Recovery Logs.
    • Run Graphics Test.
    • Power Off (turning off the device).

    Custom

    Custom recovery includes much more functions. Most often it is used to install and create a system recovery image (nandroid backup), it is also possible to wipe (clear) individual partitions, for example, data, dalvik cache, return the phone to initial state without data loss, restore rights system applications and so on. The most popular are CWM and TWRP.

    Xiaomi phones have excellent support from the manufacturer and constantly receive new updates. But it is not always possible to update via " Three dots» (update menu). And here there is an ideal solution - flashing using TWRP. Unfortunately, not all users know how to flash Xiaomi via Recovery correctly and quickly. We'll talk about this today.

    Navigation

    What is needed for firmware

    There is a similar option -, but if this method does not suit you, you can safely try recovery. Xiaomi smartphones and tablets (at the time of writing) have stock Mi Recovery 3.0 installed, which does not have the option to install the firmware.

    Instructions for flashing firmware via Recovery

    4 will be described in detail below. simple steps To install the required firmware on your Xiaomi or Redmi phone, carefully follow each step.

    Downloading firmware for your model

    The beginning of the procedure is to select the correct firmware for the phone. You can choose: , or . In this case, give preference to a stable build.

    The firmware must be selected on the official MIUI forum. The archive must be in the format .zip. After successful downloading, place it in any folder on your computer.

    Installing Recovery


    And the most important pointavailability on mobile device custom recovery. Detailed instructions for this topic you can find it in . For now, briefly what you need:

    1. Unlocked bootloader.
    2. Installed and unpacked root system disk ADB drivers.
    3. The correct Recovery.img file for your Xiaomi or Redmi model.
    4. Regular drivers so that the PC sees the device turned on in FastBoot mode.

    Logging into Recovery and installing firmware


    Let's return to installing the firmware via Recovery. As soon as the above points are completed, we launch this mode on the smartphone. To do this:

    1. Turn off the smartphone.
    2. We're waiting a minute for everything system processes stopped.
    3. Press the volume rocker up and the power button. Release the power button immediately after vibration, and keep the volume up until you enter TWRP.

    After a few seconds, a vibration is heard and a corresponding message appears. If the word “Recovery” appears on the screen, This means we have successfully entered the menu. Next we see a black screen and eight sections.

    Be sure to reset the data without touching onlySD-storage andOTG.

    1. Select " Wipe"(Cleaning) - format data - enter the word yes.
    2. We return to the primary menu: reboot - recovery.
    3. Now we perform advanced cleaning: “ Wipe» — « Advanced Wipe" Check the following files: Dalvik, Cache, System, Data, Internal Storage (optional).
    4. Again we go back to the root of the menu and click « Reboot recovery» (reboot TWRP).
    5. We connect the phone to the PC, it should be detected (if all drivers are available). We transfer the archive with the firmware to the root of the system memory.
    6. Click on "Install" And select the firmware file. The update begins. If, for example, you chose Masik X, then during installation a menu will open with a choice of downloading the necessary applications and files.
    7. When all system processes stop, this will indicate the completion of the flashing.
    8. Reboot the system using the command "Reboot system". Ready.

    You can understand that the firmware has been successfully installed by the running ellipses that will blink when you first start the phone.

    Possible problems and their solutions

    Now let's figure out what could be causing the problems that have arisen. Below you will find a list of the most common problems:

    • TWRP is missing. To prevent TWRP from closing with stock recovery after rebooting the system, you need to patch the kernel, how to do this - read in the thread of your model on w3bsit3-dns.com.
    • Error 7: incorrectly selected firmware. For example, if you are the owner of a Redmi Note 3 phone, the assembly designed for Redmi Note 3 Pro is absolutely not suitable for you. Also, the shell may not install due to a damaged file.
    • Error 255: wrong selected updater-binary file. Just replace this element by first disabling the antivirus.
    • The computer does not see the phone when it is in Recovery mode: perhaps there are not enough special drivers, which we wrote about in the article about TWRP. There could also be a rather trivial reason: dirty USB connectors or a broken cable.
    • As you can see, install the firmware via Recovery on Xiaomi phone It’s quite simple, the main thing is to carefully follow the instructions and download files only from trusted sources.

    More experienced users Xiaomi devices under Android control You already know what Recovery and Fastboot modes are and what they are needed for. That's why, this instruction, is aimed more at beginners who want to learn a little more about the technical side of the device or who have decided to update the firmware. So what is it Recovery and Fastboot on Xiaomi, how to turn them on and off?

    1. Recovery mode

    Recovery mode, or recovery mode, is a special menu that allows you to perform certain actions with your smartphone. There are two types of them: stock and custom.

    Stock Recovery

    Installed with official, factory firmware. It is quite meager in its capabilities. Usually there are only 3 functions: (clearing the Data partition) and connecting to Mi-assistant(Connect with MIAssistant).

    Custom Recovery or TWRP

    This is Recovey from third party developers. Installed by you yourself, instead of stock (sometimes sellers do not install official firmware, for example from MIUI Pro and therefore, most likely, you already have a custom Recovery).

    It looks completely different. Usually, when loading into it, a language selection menu first appears, which includes English. Actually, you need to choose it, unless, of course, you speak Chinese. The selection might look like this:

    Or like this (here we can perform several tests, and also immediately get into recovery or fastboot):

    Here are the wipes of various sections ( Wipe), and the ability to create a backup ( Backup) any information on your smartphone (including IMEI), and most importantly, what it is used for most often is firmware ( Install). And in general, there are still a lot of interesting things. We will not go into detail, because... This is a very broad topic. Perhaps we will make a separate instruction on it.

    How to log into Recovery?

    This is done very simply:

    1. Turn off the smartphone
    2. Press and hold the volume up and power buttons. Hold it until the download starts.

    Navigation through this menu is done using the volume keys. Confirm your choice with the power button. Custom Recovery also supports touches.

    How to exit Recovery?

    1. Finding the point Reboot, select it and confirm with the power button.
    2. If for some reason the first step did not work, then simply hold the power button for a long time.

    2. Fastboot mode

    Fastboot mode - necessary for connecting your device to a PC for the purpose of flashing firmware, installing custom Recovery, etc. One might say, a technical mode for deeper work with a smartphone.

    How to enter Fastboot?

    To enter fastboot mode on smartphones Xiaomi, necessary:

    1. Turn off device
    2. Press the volume down and power button. Wait until the smartphone vibrates and release them. A rabbit wearing a hat with earflaps should appear.

    How to exit Fastboot?

    1. You must hold the power button for 15-20 seconds. The phone will begin to reboot and your normal desktop will appear.

    We hope that this instruction will help beginners deepen their knowledge about the technical side of a smartphone.

    During the firmware process, all important information will be deleted, so save it in . Make sure that the battery is charged at least 75%.

    Important! If you want to flash the update (Incremental ROM pack), first erase all information in Recovery mode. If you want to rollback, that is, install more earlier version, you need to download the full assembly (MIUI full ROM pack). Due to the differences in recovery mode interface, this method not quite suitable for some Redmi series smartphones with MediaTek processors, as well as devices with a locked bootloader.

    Step 1: download xiaomi firmware

    Visit official resource MIUI, select your model and download the latest or current firmware version for you. Change the name of the file you downloaded to “update.zip”.

    Step 2.

    Connect your device to your computer or laptop using the included USB cable. Copy or move the downloaded firmware to internal memory devices. It is important not to place it in a folder, let it be in the root directory.

    Go to recovery mode on your device in any way convenient for you:

    1. Open the “Updater” application, click on the icon in the upper right corner as shown in the picture and select “Reboot to Recovery mode» (Reboot into recovery mode) and enter it.
    2. Turn off your device completely by holding down the power button and selecting the appropriate item, then simultaneously hold down the power button and the volume “+” button, and then hold it for a while and enter Recovery.
    3. Some applications, like ROM Toolbox, allow you to reboot and enter various modes, including recovery mode.

    Step 4: flash xiaomi firmware

    While in recovery mode, use the +\- keys to toggle up/down and the power button to confirm.

    After logging into Recovery, select a convenient interface language, then click on “Install update.zip to System One” and confirm the action. The device will start updating automatically, and when everything is completed, you will only need to select “Reboot to System One” and wait for the operating system to load.

    Was the article useful to you?

    Rate it and support the project!

    Sooner or later, the standard firmware begins to get annoying or glitchy, which is why most users begin to “comb” mobile forums in search of a solution. There, an understanding already comes to mind: to change the firmware, you must first reinstall the recovery. Forum members advise installing TWRP, citing its most stable operation and the ability to work with touch control. Therefore, it is worth telling how to install twrp recovery on Xiaomi, what problems may arise in this case and reveal options for solving them.

    In general, this is an abbreviation, and it stands for team Win Recovery Project, thereby saying what the project is: a modified recovery that allows you to do much more than factory utilities. First of all, it is installed by those who want to install custom firmware on their device, which is why TWRP has the same purpose: full backup systems, installation of software, firmware, kernels, full wipes and a bunch of everything that hides the “stock” (factory) menu from the user.

    With Xiaomi, the situation is standard: the basic recovery is not suitable for installing custom firmware, because the first one simply does not allow this, which is why people come to TWRP. In addition to everything previously mentioned, Team Win can completely restore the firmware from a recovery file. So, this is an excellent tool for those who like to play it safe: even if the smartphone “dies” after changing the firmware, it can be “revived” without any problems.

    In addition to such killer features, TWRP can provide full-fledged work with device files, creating partitions in memory, approximately like on the HDD of your desktop, connecting to a PC in flash card mode, while starting the system will not be required. It’s very convenient, for example, the wipes have already been made, but no one has transferred the firmware to the storage device, which has happened to your humble servant more than once.

    Installing TWRP Recovery

    Via the official application

    It’s worth starting with the fact that there are several ways. The first, simplest one is to use a proprietary application or its analogues, just remember: for correct operation you need . In Xiaomi, as a rule, advanced users already have them, all that remains is to give them to the application. Otherwise, you will have to first obtain those same rights, and then think about installing recovery.

    The action itself takes place in just a few steps:

    • Find the application on Google Play;
    • Install it and run it;
    • Agree to all permissions, grant root access if this has not been done before;
    • Select your device and download the file using the "Download TWRP" button;
    • Select the downloaded img file and install it through the "flash to recovery" button.

    Here, perhaps, it is worth making a reservation: the name of the IMG file must correspond to the program: usually it is recovery.img, but proprietary applications, like TWRP, may require files to be named in a special way. In the case of Team Win, this is twrp.img, however, before installation, you should carefully read the description of the program, where, most likely, the required name will be indicated.

    After such an installation on Xiaomi Mi3, for example, the smartphone will automatically start in Recovery mode, from which all necessary for the user manipulation. It should be noted: stock firmware When installing a custom menu, it will not “fly” in any case, and this applies not only to Xiaomi.

    Via fastboot

    The second method is a little more complicated: it will require the most basic skills in working with the console and ADB, since the option is recovery installation via fastboot. Your device must be . So, the installation itself is carried out in several stages.

    1. The first is downloading ADB drivers and unpacking them. Here you should make sure that the path to the file contains only Latin characters, otherwise the console will throw an error.
    1. We install drivers for your device, taken from .
    2. The next step is to enable USB debugging. This is very easy to do: first, open the “about phone” item on your smartphone, after which you need to click 8 times on MIUI version. The message “You are a developer” should appear. If this does not happen, then you either already have access to the developer settings, or the firmware simply does not allow you to do this.
    3. The next step will be to directly enable debugging, which is done in the “for developers” settings item.

    1. We run the command.bat file from the ADB folder, issue the command “adb devices” and check whether the smartphone is connected correctly, which may require authorization confirmation on the smartphone screen. If nothing happens during such manipulations, check the device connection and reinstall the drivers. It's better to be safe here.

    1. We launch Fastboot Mode on the smartphone using the “adb reboot bootloader” command. After the command, the smartphone should automatically reboot and enter bootloader mode. Now we are ready to install custom recovery.

    1. Now you need to download the TWRP recovery file. Find your device and go to the "Download Links" section and select "Primary (Recommended)".

    1. The whole essence of the installation comes down to entering the command “fastboot flash recovery twrp.img”. It is worth noting the following: the firmware file you downloaded should be called twrp.img or recovery.img, depending on the ADB version. You can find out where you download the corresponding programs or by reading the readme file, or just try both options.

    That's all, actually, installing twrp on xiaomi redmi note 3 pro (in our case) is completed. However, there is no need to rush: you need to start the smartphone in TWRP, for which we press the power and volume down keys. Hold the power button until there is a vibration response, then release it and wait for the installed utility to start.

    From here you can boot into the system or start installing custom firmware. All the methods described on the Internet are variations of the first and second described here, especially since there is usually no description of how to log into TWRP, so there is no point in describing them again.

    Possible problems

    And there is, in fact, only one problem: after the firmware, if the custom is installed on top of MIUI 8 version and newer, many users intensively googled the phrase “how to log into twrp recovery xiaomi”, because the ability to log in normally simply disappeared. This happened due to a conflict between the utility code and the firmware: the file emmc_appsboot.mbn, corresponding to MIUI, the overwriting of which simply does not make it possible to enter TvRP.

    The solution is quite simple: you can simply reinstall the recovery. There is only one problem: this action will help for exactly one flashing, which is why the guys from w3bsit3-dns.com found a more reasonable and durable fix.

    So, to fix the bug you need to download this file (only suitable for redmi 3, use at your own risk), turn off the phone, press the power and volume down buttons, connect USB cable to the phone and computer, run the file “1 run me.bat” from the archive, which, if executed successfully, should write “OKAY. Finished". After that, disconnect the cable and hold both volume and power buttons for 15 seconds, waiting for vibration. That's all, TWRP should work fine after such manipulations.

    Conclusions

    You should install the Team Win project only if it is really necessary. It is extremely difficult to ruin a phone with such a thing, but it is possible. By the way, you cannot do without the standard mention that you carry out all manipulations with your devices at your own peril and risk. I hope we were able to convey to you information about Team Win Recovery Project and how to install it. The method, by the way, is relevant for any Redmi and Mi models, even for Mi5 and Mi5s.



    Related publications