Computers Windows Internet

Xiaomi redmi 4 pro firmware update. Where to download the global firmware

  1. Before flashing the phone, carefully read the proposed instructions.
  2. If after reading you did not understand anything, do not continue, it is better to ask someone who knows how to do this.
  3. The code name of our device is “Markw”, as a rule, this is indicated in the firmware names, pay attention to this.
  4. Suddenly, something went wrong - do not panic, re-read the instructions and try again, if you do everything carefully, you will succeed.

    Method number 1 (the easiest):

  1. Downloading firmware and move it to the phone's memory or to an SD card using a cable.
  2. In the phone, go along the path "Settings" -\u003e "About device" -\u003e "Update" (at the very bottom).
  3. In the menu that opens, in the upper right corner, click on the three dots -> "Select firmware file"; select the file that you previously downloaded and moved to your phone -> "OK".

    Note:

  1. An active internet connection is required.
  2. Your data (contacts, calls, SMS, settings) will be deleted, get a clean system.
  3. For various reasons, this method may not work. If this is about you, go to method number 2.

    Method number 2 (harder):

    1. Preparation:

  • Requires Windows 7, 8, 8.1, 10 (Windows XP is not supported by the flasher);
  • Download and install Mi PC Suite- this program will install everything required drivers. We also download and install the flash driver Xiaomi Mi Flash Tool;

    Important: If, during installation, a driver signature verification window appears, click "Install anyway".

  • Downloading firmware archive and extract it to C drive.
  • We turn on “USB debugging” on the phone: “Settings” -> “About device” -> tap (press) several times in a row on the “MIUI” field until an inscription appears that you have become a developer; then return to the menu "Settings" -> "Advanced" -> "For Developers" and check the box next to "USB Debugging"
  • We load the phone into EDL (Emergency Download) mode:

    Easy way: We connect the switched off phone to the PC and immediately hold down the volume buttons + and -. We are in EDL mode (the LED is flashing red and Qualcomm HS-USB QDLoader 9008 device has appeared in the device manager), if this does not happen, try again or

    The method is more difficult: We connect the included phone to the computer. In the folder with the Xiaomi Mi Flash program, along the way C:\XiaoMi\XiaoMiFlash\Source\ThirdParty\Google\Android, hold down SHIFT on the keyboard and click, from scratch, right click Mouse -> Open command window. In the opened command line we write: adb devices-> click OK in the window that appears on the phone screen. After that, enter the command: adb reboot edl -> we are in EDL mode (the LED flashes red and the Qualcomm HS-USB QDLoader 9008 device appears in the device manager.

    2. Firmware:

  • Run the file xiaomi flash.exe from a folder C:\XiaoMi\XiaoMiFlash, as administrator (the phone is connected to the computer in EDL mode).
  • In the program window, press the button " refresh", make sure that the program sees the phone (in the column" device» the device should be displayed)
  • Next, press "select" and specify the path to the folder with the firmware that you unpacked in paragraphs. 1.3. (C: / folder name with firmware).
  • At the bottom of the program window, put a tick in the “clean all” item (user data will be cleared, otherwise the stable operation of the new firmware is not guaranteed.
  • Press the "flash" button and wait for a while, the successful completion of the operation. Everything!

We haveStable Global Firmware with over-the-air (OTA) update capability

From MIUI 8 version 8.2.10.0 (Android 6.0.1) to MIUI 9 (Android 7.1.2). We also compare the performance of a smartphone on different Android versions using various programs for synthetic tests.

CHARACTERISTICS OF XIAOMI REDMI 4X

Processor type Qualcomm Snapdragon 435
Number of Cores 8, ARM Cortex-A53 at 1400MHz
Process technology 28 nm
Screen size 5.0″
Screen type IPS
Screen resolution 720 x 1280 (HD)
video accelerator Adreno 505
Frequencies 2G: GSM B2/B3/B5/B8
3G: WCDMA B1/B2/B5/B8, TD-SCDMA
B34/B39, CDMA2000/1X BC0
4G: FDD-LTE B1/B3/B5/B7/B8, TD-LTE B38/B39/B40/B41
Main camera 13MP f/2.0
Front-camera 5 MP f/2.2
RAM 3 GB
Built-in memory 32 GB
WiFi 802.11(b,g,n) 2.4GHz
Bluetooth 4.2
GPS GPS, AGPS, GLONASS, BeiDou
Sensors illumination
Approximations
Accelerometer
Gyroscope
Other The fingerprint scanner
autofocus
digital compass
photo flash
Headphone output 3.5
IR transmitter
digital compass
OTG There is
Dual SIM support Yes, combo slot (or Nano-
SIM or MicroSD)
Supported cards microSD, microSDHC, microSDXC
Dimensions (WxHxD) 70×139.2×8.7 mm
Weight 150 g
Battery Lithium polymer
Battery capacity 4100 mAh
Year of issue 2017


Initially, the smartphone was flashed on Android 6.0.1., version MIUI 8.2.10.0 (MAMMIEA).

At the moment, the new firmware is global, but updates to the beta version over the air do not automatically come. This will be possible only after the release of the global stable firmware version. Go to new version currently only possible in manual mode.

The easiest way is to install the latest version of the "For Developer" firmware on Android 6.0 MIUI 8, namely: MIUI 7.6.8. Why is this the easiest way? With this option of switching to Android 7 and MIUI 9, you do not need to unlock the bootloader (by default it is blocked on all new Xiaomi devices), as well as installing a third-party TWRP bootloader.

Important: The system partition is cleared during flashing, so you need to transfer the information you are interested in to a memory card or PC (photos, documents, etc.). Also make a backup of contacts if synchronization with Google and MI account is disabled.

INSTALL MIUI 7.6.8 FIRMWARE THROUGH THREE POINTS:
1. Required download from the link from the official MIUI forum the firmware file and transfer it to the root of the smartphone's memory card.
2. Then go to "Settings" - "About phone" - "System update".
3. After checking for updates, the system will display "No updates" (if you have the latest version installed)

4. You must click "3 dots" in the upper right corner of the screen.

5. In the drop-down menu, select the "Select firmware file" item.

6. Next, go to the firmware file saved on the memory card, select it and click "OK". Agree to install more old version firmware, after which the smartphone will automatically reboot and proceed to unpack and install the firmware. After the installation is completed, the standard MIUI 8 shell welcome window will appear. initial setup(language selection, region selection, theme selection, etc.), the desktop appears.

At the initial setup stage, to speed up the process, you can skip the MI settings and Google accounts, as we have yet another update to a more recent firmware version. This data will still not be saved, and the next time you set up your smartphone, you will have to enter the data again.

The About Phone section will now display the following:

Now that we have installed the "For Developer" firmware version, the so-called "Weekly", we can update to a newer version of the MIUI 9 7.9.7 firmware, including "over the air". What does it mean? If you now press the bottom of the screen "Check for updates", the system will automatically find a newer version of the firmware and offer to install it.

We now have two options for upgrading to current version. First, this is described above, when switching to version MIUI 7.6.8 (preliminary download of the firmware, transfer to a memory card and further installation through "3 points" in the "System Update" section). Second- this is just an over-the-air update, for this, we simply agree to install the update by clicking the "Update" button, after which the firmware will be downloaded and the installation process will begin.

ABOUT MIUI KINDS
We talked in detail about the types of MIUI, but here we will tell a little repetition for the sake of it.

What does MIUI 9 7.9.7 mean? The first digit is the MIUI version (7, 8, 9, etc.). The following numbers are the release date, in this example 7.9.7, the first digit 7 is the year (2017), the second digit is the month (9 = September), the third digit is the day (7th). Knowing how the firmware version is correctly decrypted, it is easy to understand which firmware is more relevant at the moment (if you download the firmware yourself from the Internet). For instance, previous firmware was this: MIUI 9 7.8.31 - MIUI version 9 of August 31, 2017.

It should be understood that the firmware is a beta version, although it is called Global (Global means the presence of a large number of supported languages, except for Chinese and English, as implemented in the Chinese (China) version of the firmware), updates will be released weekly .
At the time of the flashing and further testing of the smartphone, the current firmware version was 7.9.7, so this index will appear on the screenshots.

Now relevant is 7.9.15. On September 14, it was released under the index 7.9.14, as it should have been, with an interval of 7 days, but on September 15, the developer, for some reason, renamed it to 7.9.15, apparently, some other fixes (FIX) of the system were added. Next update should be expected on September 21 or 22.

After rolling back to MIUI 7.6.8 and checking available updates At the moment, it will be prompted to install the MIUI 7.9.15 version.

PERFORMANCE TESTING

MIUI 8.2.10.0
Android 6.0.1
MIUI 9 7.9.7
Android 7.1.2

AnTuTu Benchmark

Geekbench






PC Mark
Work 2.0 Performance

PC Mark
computer vision


PC Mark
Storage


Andro Benchmark



OS Platform Benchmark

RL Benchmark SQL


epic citadel
high quality


Ultra High Quality

AnTuTu Battery Test

Battery testing was carried out on only one firmware. From the screenshot, you can see that it took 26 minutes to drain the battery by 4% (the fastest test). The test was conducted with the maximum brightness of the screen, with Wi-Fi turned on (no SIM cards installed). Based on these indicators, the smartphone boasts more than 10 hours of screen operation (at maximum brightness) on a single battery charge - this is a very good indicator!

CONCLUSION:

As expected, the performance of the device after flashing to Android 7 did not become significantly better or worse. All tests passed with the same results, although it is worth noting that on new firmware, in most tests, the smartphone performs better, though not by much.

Also, the MIUI 9 firmware is now in the Beta stage, which means that it is constantly being tested and improved, and it is possible that with the release of a more recent version, system performance, interface speed, battery life and other points will be improved. .

Whether it is worth switching to the beta version of the MIUI 9 firmware now is up to you. Small flaws in the firmware are found, for example, on version 7.9.7 there was a problem with the settings touch buttons under the screen, when trying to assign an additional action, the application crashed with an error. In version 7.9.15, this problem has been eliminated. There are not translated menu items in the firmware ( English language), but this will most likely be fixed in future firmware versions.

Our first impressions of the firmware are only positive. The speed of the interface has become higher, applications run faster. Added icon animation (only works with the default theme). The system for setting up the desktop and sorting shortcuts has been redesigned. The "Security" section has changed, new features have been added. The standard calculator began to work correctly.

Buy Xiaomi Redmi 4X is available in the Rumicom online store with delivery throughout Russia →

"This instruction recommended for use by experienced and knowledgeable users or professionals. This manual will describe the process of flashing a smartphone, it is important to understand that during flashing all data on your smartphone will be deleted, we are also not responsible for the possible harm that you can cause to your smartphone, you do all actions at your own peril and risk. "

Please note that if the phone does not yet have a global firmware, then you can enter the EDL mode (firmware mode) without an engineering cable, but if the global firmware is installed, only with an engineering cable.

DOWNLOADING SPECIAL SOFTWARE FOR SMARTPHONE FIRMWARE

1. Follow the link to download the program for flashing the MiFlash smartphone
2. Follow the link to download the “ADB Driver” Android adb-USB UnifL Driver is a driver for connecting a smartphone to a computer
3. Follow the link to download QDLoader + HS-USB + Driver - this is a driver for connecting a smartphone to a computer
4. Follow the link to find Redmi 4 Prime Latest Global Stable Version Fastboot from the list and download the firmware for Xiaomi smartphone Redmi 4 Pro

Download all these files and unzip them. Unzip the firmware to disk C on the computer, or to another place convenient for you, it is important that the path to the folder with the firmware does not contain Russian letters and spaces

COMPUTER PREPARATION

Disable Driver Signature Verification

1. Open "Start", and there is already "Settings"

2. Go to the settings section "Update and security"

3. Go to the "Recovery" menu

4. After restarting the computer, we get to the menu in which we select "Diagnostics" in other versions of "Troubleshooting"

5. After restarting the computer, we get to the menu in which we select "Diagnostics" in other versions of "Troubleshooting"

6. Select "Advanced Options"

7. Select the item "Download Options"

8. And click the "Restart" button

9. In the appeared item, select item 7, to select it, press the F7 key on the keyboard

After that, the computer will restart, and you will be taken to your "desktop".

Software installation

1. Install MiFlash

Open the folder unpacked from the archive, and run the file MiPhones.exe

Next, specify the folder where we want to install the program and click "next" (next)

During installation, warning windows may appear, but we ignore them and click "Install this driver anyway"

At the end of the installation, click "finish" (end). We installed the MiFlash program

2. Install ADB driver

Open the folder with the downloaded driver and find there two files with the extension .exe

Setup.exe - for 64-bit operating systems
Setup_x86.exe - for 32-bit operating systems

We launch one of the files corresponding to the bitness operating system and the installation menu will open.
To start the installation, click "Next"

The program will start the installation and ask whether to install the software for this device.
We mark with a "bird" the item "Always trust software and click "Install"

At the end of the installation, click "Finish" in the window that appears.
Drivers installed.

3. Installing the QDLoader Driver

Open the folder with the unpacked driver and find there two files with the .exe extension and run the file corresponding to the bitness of your operating system

PHONE PREPARATION, EDL MODE

For flashing, you need to put the phone in the "EDL" mode.
1. First we turn off the phone. On the phone turned off, hold down the volume key up ("volume up") and the "Lock" (Power) key at the same time, the "MI" logo will appear, release the lock key and continue to hold the volume key until the menu in Chinese opens


2. In the menu that opens, click on Download and the phone screen should go out. In this form, we connect it to USB port computer or laptop

PHONE FIRMWARE

1. Run the MiFlash program (from the folder where you installed it earlier)
2. After we click on the button "Update" (Refresh)

3. Our device COM 10 should appear (the figure may be different)

4. Click "Browse" (Browse ...) and specify the path to the folder where the firmware is located. Then set the marker in front of "Flash all"

5. After that, press the "Flash" button and the device will start flashing

6. At the end of the firmware, we will see the following:

The device has been updated!

EXIT DOWNLOAD MODE AND TURN ON YOUR SMARTPHONE

1. Disconnect the phone from USB cable
2. Press the lock button until the phone vibrates (20-30 seconds), after which the mi.com logo appears on the screen and the phone starts to start
3. After updating the firmware, the first start of the phone will take a long time about 5-10 minutes
4. When the phone turns on, you will have to go through the "First Power On" procedure

Instructions on how to flash a Xiaomi Redmi 4X smartphone, unlocking the phone, unlocking the bootloader (bootloader), instructions on how to flash custom recovery TWRP recovery and installing custom or official firmware, getting root rights of a super user. The Xiaomi Redmi 4X smartphone is in great demand due to the successful symbiosis of characteristics and prices, therefore it is not surprising that this phone has a wide variety of firmware and mods to decorate the device and expand its functionality, there are also firmware for improve work stability. Therefore, I present to your attention detailed instructions how to reflash smartphone xiaomi redmi 4x.

Stock original firmware Xiaomi Redmi 4X

The first method is to update the system through the built-in program in the smartphone firmware

Download latest version firmware from site xiaomi
Connect your smartphone to your computer and use micro USB cable copy the firmware file to the 'downloaded_rom' folder in the internal memory of the device.

Launch the ‘Updater’ app on your smartphone. Click on the “…” icon (three dots) in the upper right corner. Click on ”Choose update package” and select the firmware you put in the ‘downloaded_rom’ folder
(silverrick's note: you need to turn on the internet, otherwise the update will not start)

After selection desired file firmware, the device will start upgrading. When the update is completed, the device will automatically boot with the new firmware.

In order to flash Xiaomi Redmi 4X with a modified firmware, you need to download and then install the drivers for Xiaomi Redmi 4X and the Minimal ADB and Fastboot program for flashing.

We unpack the downloaded archive into any folder on your PC, after which we go to this folder, hold down the Shift key and right-click in any empty place in the folder, in the appeared context menu select "Open Command Prompt".

The next step is to turn off your Xiaomi Redmi 4X smartphone and boot it into fastboot mode, for this you need to press the “-” volume button and the power button on the switched off phone, hold until “FastBoot” appears on the smartphone screen.

Now connect your smartphone to your computer USB help cable, (you can use any, the main thing is that it should be working). After connecting to a PC, the drivers should be automatically configured. When the computer recognizes your Xiaomi Redmi 4X, run the following command in the command line on the computer (write the following text and press Enter on the keyboard)

fastboot devices

You will see a list of connected devices, which should include a smartphone. If mobile device not found, you need to reinstall the adb driver.

In order to check the status of Bootloader on a Xiaomi smartphone, run the command:

fastboot oem device info

If you see the line Device Unlocked: True, it means that Bootloader is unlocked. The inscription Device Unlocked: False indicates that the Bootloader is locked.

If your device is locked, here

Installing TWRP recovery on saomi redmi 4x

You have unlocked the bootloader on your smartphone, and now to install custom firmware you need to install custom TWRP recovery for xiaomi redmi 4X.

Download setup file TWRP recovery for TWRP 3.1 for Redmi 4X, after downloading the archive, you need to move it to the adb folder and it is advisable to rename it, for example twrp.img

In the folder with ADB, launch the command line (hold down Shift and right-click - launch the command line)

Turn on the phone and boot it into fastboot mode (hold down the volume key “-” and the power button), and connect it to the computer

On the command line write:

fastboot devices - see your phone
fastboot flash recovery twrp.img - install twrp in the phone
fastboot boot twrp.img - there will be a reboot into the installed twrp

All upon completion of the firmware process, a new custom recovery TWRP recovery will be installed on your Xiaomi Redmi 4X.

There is a second way to install TWRP 3.1 recovery on Xiaomi Redmi 4X, it is easier but less reliable. When flashing a smartphone with this method, possible glitches.

Reboot the smartphone in bootloader mode (simultaneously press the power button and the volume down button).

On the PC, in the folder where you unzipped the downloaded twrp recovery, run the twrp-installer.bat file as an administrator. And press any key.

Wait for the end (reboot)

When you first start TWRP will ask about granting the right to modify the system. This point must be considered carefully.

a) If you select Allow Modifications, TWRP will modify the system partition and you will be able to root and install modified firmware, but will not be able to receive updates over the air (OTA).
b) Keep Read Only will leave the system partition unchanged, you will NOT be able to root and you will receive updates over the air (OTA Over The Air).

If installing TWRP produced without changing the firmware

We allow you to modify the System if you are asked about it when starting TWRP!

Advanced - Disable Verify (or install SuperSU 2.65 if you need root)
Reboot-System

Installing custom firmware on Xiaomi Redmi 4X

In order to install custom firmware on a smartphone, on this phone The bootloader must be unlocked and custom TWRP Recovery installed. If there is no 1 and 2 - read above.

And so, to install the modified firmware on Xiaomi redmi 4X, you need:
Download any TWRP firmware you like for Xiaomi redmi 4X, for example:

Firmware Lineage OS 14.1 for redmi 4X download
NucleaRom-V-UNOFFICIAL redmi 4X download
Firmware MiUi Pro V9 download
AOSP Extended v4.4 for Redmi 4X download

or any other firmware for xiaomi redmi 4x for installation via custom recovery TWRP recovery.

Reboot your phone in TWRP mode recovery mode in one of the following ways:
a) Turn off your phone. When the phone is turned off, press and hold the Volume up (+) and Power rocker until recovery is loaded.

In TWRP Recovery, wipe everything except SD and OTG. In the main menu: Wipe > Advanced Wipe > tick Dalvic, Cache, System, Data, Internal Storage. Attention: all data will be deleted, the phone will become absolutely clean!

Tap Back (Back), Tap Reboot recovery and swipe right.

Connect your phone with a USB cable and transfer the firmware archive to your phone. If you have a flash drive (sd-card / usb otg-flash), then I recommend uploading the firmware to the flash drive (if you upload the firmware to the internal memory of the phone and flash it from TWRP, then in Advanced Settings - Memory - Other will be clogged with this firmware.
I recommend throwing the firmware on a USB flash drive or otg flash drive. in this case, the size of the Other will remain the same, but anyway, at least 200 MB is always occupied there.
also applies to backups from TWRP. I recommend making them on a flash drive or otg flash drive).

Press the Install button, select the archive with the firmware and swipe to the right to confirm the desire to flash the archive. We are waiting, nothing can change on the screen for a long time. Quietly, you can go make yourself a cup of tea with cookies, we are waiting for the end of the firmware.

After the firmware, you need to clean up the garbage behind you, for this we press the Wipe cache / dalvik button, after which we boldly reboot the smartphone by clicking Reboot System for this.

A good sign of successful firmware is the running three dots under the Mi logo. The first loading can last about 10 minutes, we continue to eat cookies with tea.

Obtaining Root superuser rights on Xiaomi redmi 4x

In order to get root (root) on a Xiaomi redmi 4X phone with official firmware, for any you need to unlock the bootloader (bootloader) and install custom recovery TWRP recovery, therefore, since you have already tuned in to root, I recommend that you immediately reflash smart to custom firmware ( you can pick up a doped one that is more stable or with a lot of “ruffles - trinkets”).

If you have a stock phone, according to the instructions above, first unlock the phone (unlock bootloader xiaomi redmi note 5A), then flash custom recovery TWRP recovery.

You already have TWRP.

We connect the smartphone to the laptop and copy to the SD memory card (or internal memory smart) archive SuperSU 2.79

Reboot your phone in TWRP mode and Reboot – Recovery

In TWRP recovery, select the Install section - then specify the path to the SuperSU archive - check the box to reboot after the firmware and click on Start.

We are waiting for the end of the process, it usually lasts 5 - 10 seconds. After installing the archive, we reboot the smartphone, it will boot from the already received root rights super user.

Instructions for flashing a Xiaomi Redmi 4 / redmi 4A smartphone to the official stable or developer firmware, unlocking the bootloader, flashing the phone to custom firmware, installing custom TWRP recovery and getting Root

Xiaomi Redmi 4 / 4A official firmware

Download the official firmware for Xiaomi Redmi 4, just do not forget that during the official update, you cannot switch from Chinese to global (or vice versa) only China - china, Global - global
Download official firmware for Xiaomi Redmi 4 China stable 8.1.20 , China developer 6.12. 22

Download official firmware for Xiaomi Redmi 4A V8.1.2.0.I (MIUI8)
Connect the device to the computer and copy the firmware file to the smartphone's memory in the 'downloaded_rom' folder.
Launch the Updater app on your phone
Click on the ‘…’ icon in the upper right corner of the screen, select ‘Select upgrade package’, and select the previously downloaded firmware file that you copied to the downloaded_rom folder

After selecting which, the smartphone will start updating the firmware. Upon completion of the firmware installation, the smartphone will reboot itself.

Unlock bootloader Xiaomi Redmi 4 and flash localized or custom firmware

How to know if the bootloader is locked on Xiaomi Redmi 4 / 4A?

If you receive a Device unlocked response: true feel free to continue.

I had a phone with the official Chinese firmware MIUI 8.0 Stable 8.0.5.0 and the check naturally gave the result - false.

To unlock the bootloader, you need Chinese developer firmware for Redmi 4 China developer 6.12.22, for Redmi 4A China Developer 8.1.2.0

When you try to install the firmware immediately in a fastboot through mi flash, the error “Flash error” flies out, so let's look further:

It is necessary to send the phone to download mode from fastboot - to do this, turn off the phone, hold down the Volume- and Power keys, after loading the rabbit in the earflap will appear again, connect the cable. We go to the adb folder on drive C. After that, in the command line (shift + right-click, then open the command window), you need to enter the following:
C:/adb fastboot oem edl
Of course, you can try to enter the download mode like this - hold down the volume + and power, select download on the screen
The screen will go out - this means the phone has entered the download. To prevent the phone from turning on by itself, unplug the cable.
In MiFlash I chose the firmware, at the bottom there is a tick All clean, and on the right All flash, connect the phone and press Refresh and then only Flash.

We enter the account, we synchronize. We go into the settings, tap on the firmware version - activate the developer mode. we go there, find the factory unlock permission slider and turn on usb debugging.
Download MiUnlock and go to your account. We turn off the phone and enter the fastboot, connect the phone, press the unlock, it can freeze by 50% and stand for a long time.

Installing custom TWRP recovery and root + SuperSU on Xiaomi Redmi 4

If you have reached this moment then all drivers and ADB must be installed on the computer, if not, then download and install.
Next, we need the custom recovery itself, download cofface twrp recovery Xiaomi Redmi 4 is also suitable for miui 7 and miui 8
Download SuperSU for Redmi 4
In the smartphone settings, turn on “USB debugging” (click on the “build number” 7 times, the “for developers” menu will appear and there the switch is on.)
The downloaded TWRP is placed in the ADB folder, renaming it to “recovery.img” The ADB folder should look like this or something like this
Now go to the c ADB folder and open the terminal by pressing and holding shift key, and right click anywhere in that folder, and in the menu “open command prompt window”
Then we connect the phone to the computer and reboot the device into fastboot mode, on the switched off phone, holding down the button “ Power + Volume down"At the same time. A hare and the inscription fastboot will appear on the body screen.
We check the connection of the phone with the computer, for this we enter the fastboot devices command in the terminal and press enter.

If so, let's sew. To do this, enter the fastboot flash recovery recovery.img command in the terminal and press enter. The window should look like this

Everything, TWRP is stitched. During the initial boot, the phone may not enter TWRP using the buttons. Exit - enter the command in the terminal - fastboot boot recovery.img press enter and the phone will reboot into TWRP, well, or try to hold and hold the power + volume up buttons, release when the “Mi” icon appears.

Choose a language in TWRP recovery that you understand. If it asks for a password, click cancel. Further, the “date” section is locked and is not mounted in TWRP recovery, so if there are firmware files or something else on the body, TWRP recovery simply will not see them. To check this, in trvp we go to the mount and put a tick on data. If the checkbox is checked, go to the recovery section, find the sdcard, open it, if you see your folders and files (I didn’t see it), then you don’t need to format the data. Copy the “supersu” application to the memory of the smartphone and install it.

In TWRP recovery, go to the Wipe section and click “format data” and in the window that opens “yes”
After all these procedures, in order to avoid bugs, many advise you to restart TWRP. To do this, go to the main recovery screen and press reboot, then press reboot in Recovery. You will restart in recovery.

Installing custom firmware on Xiaomi Redmi 4 via TWRP recovery

First you need to download the firmware for Xiaomi Redmi 4 under TWRP in ***.zip format, for example:

Download custom firmware for Redmi 4 – GreatSlon ROM 6.12.8 (MIUI 8) , MultiRom (MIUI 8) , Xiaomi.eu 6.12.15 (MIUI 8)

We boot into TVRP (on the phone turned off, we simultaneously hold down the power and volume buttons +. When the Mi logo appears, release the buttons and wait for the boot to TWRP). Connect in TWRP recovery mode Xiaomi phone Redmi 4 to a PC, he should see it, we throw on it, a pre-downloaded firmware for trvp.

Next, the “Install” button (Install), and specify the path to the firmware in .zip format (should be in the / sdcard directory, this is the internal storage of the phone) and confirm the start of the installation with a swipe. Usually the installation lasts 3-4 minutes, sometimes it can take up to 10 (depending on the firmware).

At the end of the installation, if everything went well, two buttons will appear. We first click on “Wipe cache / dalvik”, then on “boot to the system”, and wait. The initial download can take 5-10 minutes.

In most cases, the firmware for TWRP is already rooted and SuperSU is installed. We check, if not, then we flash through TWRPzip SuperSU