Xiaomiβs current smartphones have a huge potential that is often hidden behind the limitations of the standard MIUI shell. One of the most popular ways to extend the functionality of the device is to install a custom recovery, and the TWRP (Team Win Recovery Project) is at the forefront. For owners of the Redmi 7 (codenamed onclite), this procedure provides access to full backup, installation of modified firmware and deep cleaning of debris.
The process of software modification always comes with certain risks, so it needs to be approached prepared. You will need not only a computer with Windows or Linux, but also an understanding of the basic principles of Android Debug Bridge (ADB). In this article, we will discuss in detail each step, from unlocking the bootloader to the first successful download to the new recovery menu.
It is worth noting that the Redmi 7 is based on the Snapdragon 632 processor, which makes the firmware procedure quite standard for the Xiaomi ecosystem. However, there are nuances associated with (partitions) of memory that require carefulness when choosing an image file. For Redmi 7, it is critical to use a version of the TWRP labeled βoncliteβ, since the firmware from Redmi Note 7 (βoncliteβ vs βoncliteβ) can lead to the inoperability of the touchscreen.
Preparation of tools and necessary files
Before any manipulation of the system partition can begin, a complete arsenal of software must be assembled. The absence of even one component can stop the process halfway or cause errors when connecting the device. All files must be downloaded from trusted sources, such as the official XDA Developers forum or the site miui.com.
You'll need to install ADB and Fastboot drivers on your computer, without which the system won't be able to correctly identify your smartphone in debugging mode, and you'll need a recovery file with the.img extension, tailored to your model, and make a full backup of important data, because unlocking the bootloader will cause the device to reset completely.
The list of required software is as follows:
- π Fresh version of Platform Tools (ADB and Fastboot for your OS.
- π± Image file twrp-3.x.x-x-onclite.img (check the compatibility!).
- π Original. USB-cable to minimize the risk of connection breakdown.
- π» Installed Xiaomi drivers USB Driver (for Windows).
After downloading all components, it is recommended to unpack the archive from ADB to the root folder of the disk, for example, in C:\adb, so that the paths to the files are short and clear, this will simplify the input of commands in the terminal and reduce the likelihood of syntax errors when working with the command line.
Unlocking the Bootloader bootloader
Without an unlocked bootloader, installing third-party software is not possible. Xiaomi has implemented this security measure, so the first step is to obtain official permission to unlock. The procedure takes from a few hours to several days of waiting, since the Mi Account must be linked to the device.
To start, activate Developer Mode. Go to Settings β About Phone and quickly press 7 times on MIUI Version. After the notification appears, go to the advanced settings and find Mi Unlock Status. Here you need to link your account to your device by turning on mobile Internet.
β οΈ Warning: The process of unlocking the bootloader will completely remove all user data from the internal memory of the smartphone. Pre-save photos, contacts and documents to the cloud storage or computer.
Then download the Mi Unlock Tool from the official website. Launch the program on your PC, log in to your account and put your phone into Fastboot mode, holding the Volume Down and Power buttons simultaneously. Connect the device with a cable and press the Unlock button in the utility. If the account status allows, the bootloader will be unlocked and the phone will reboot.
Once you successfully unlock it, you'll see an image of the open lock when you turn on the phone, which is the standard behavior of the system, confirming that the path for installing TWRP is open, and now you can go directly to the firmware of the recovery image.
TWRP firmware via Fastboot mode
The main installation step requires the smartphone to be put into Fastboot mode. Make sure the cable is securely connected and the drivers are installed correctly. Open the command line or terminal in the ADB tool folder and enter the connection check command: fastboot devices. If the device serial number is displayed in response, the connection is established.
It is important to understand that modern Xiaomi devices use an A/B partition scheme or have protection against overwriting recovery, so the standard command may require an addition or immediate download. In the case of Redmi 7, the command looks standard, but immediately after it is executed, you can not just restart the phone with a power button.
fastboot flash recovery twrp-3.3.1-0-onclite.imgOnce the recording process is complete and the Finished message appears, you need to immediately, without letting go of the cable, press the combination of the Up Volume and Power buttons. Hold them until the TWRP logo appears on the screen. If you release the buttons earlier or restart the device in the usual way, the stock loader can rewrite the custom Recovery back to the factory.
βοΈ Firmware checklist
Primary tuning and Russification
After the first download, you'll see the TWRP menu, which by default can be in English and have the status of "Unencrypted" or require a password. The first thing you need to do is allow system modifications. Swipe the Allow Modifications slider to get full access to the features.
To change the language, go to the Settings menu, select Language and find the Russian interface immediately. However, if the internal memory is encrypted, you may need to enter a pattern lock or pin code that was used on the locked Android screen.
An important step is to check the touchscreen and display. Some TWRP builds for Redmi 7 may have color inversion or a broken touch. If the touchscreen does not respond, try reflashing an alternative version of the recover (for example, from Pikan or Nebrassy), as the display drivers may differ in different builds.
What to do if TWRP asks for a password?
Installation of custom firmware and patches
One of the main objectives of the installation TWRP It is possible to install custom firmware such as LineageOS, Pixel Experience or lightweight versions. MIUI. To do this, the downloaded firmware archive (usually in.zip format) must be placed in the internal memory of the phone or on the phone. SD-Also often required is a patch firmware to unlock the second SIM card or VoLTE.
Before installing the new system, it is recommended to clean the Dalvik/ART Cache, Cache, System and Data partitions. This is done through the Cleanup β Advanced Cleanup menu. Do not choose the Internal Storage partition unless you want to lose the firmware installation files you just downloaded.
Table of cleaning sections before installation:
| Section | Description | Need to clean? |
|---|---|---|
| Dalvik / ART | Cash of the virtual machine | Yes. |
| System | OS system files | Yes. |
| Data | User data and applications | Yes. |
| Internal Storage | Internal memory (photos, files) | No. |
After cleaning, go to the Installation menu, select the firmware archive, and confirm the swipe. The process will take a few minutes. If you install Magisk to obtain superuser rights, this should be done in a separate step after installing the main firmware, but before you first download to the system.
Possible errors and methods of their elimination
When modifying Redmi 7, users often experience a bootloop or a device burrow. If the phone is stuck on the Xiaomi or Android logo, try going to TWRP and resetting the settings (Wipe β Format Data). Type the word yes to confirm. This action removes encryption and often solves the startup problem.
If the device stopped responding to buttons and does not turn on (EDL mode), you will need to use an authorized account to firmware through the Mi Flash Pro utility. This is an extreme measure, so always have stock firmware on hand for quick recovery.
β οΈ Warning: Never interrupt the firmware process by removing the cable or turning off the computer. Interrupting the write to the boot or system partition can cause a physical malfunction of the logical part of the device that cannot be fixed software without special equipment.
Also common is the inoperable proximity sensor after flashing. MIUI Often a special patch is required. Fix_Dsensor.zip Or calibrate the sensor through an engineering menu (AOSP) This problem is less common due to the use of standard drivers.
π‘
Save stock firmware: Before any experiment, download the full ROM for your version of the region (Global, China, Russia) and save it on your computer. This is your critical error insurance.
π‘
The key to success is version compatibility. Don't try to flash recovery from Redmi Note 7 on Redmi 7, even if the processors are similar.