Xiaomi Redmi 4 Pro, also known globally as Redmi 4 Prime, has been a budget legend for several years with its metal body and robust processor. However, the standard MIUI shell eventually stops receiving security updates and new Android features, forcing enthusiasts to look for ways to revive the device. Installing the custom TWRP (Team Win Recovery Project) recovery becomes a key step in this process, opening up access to full control of the system.
The modified bootloader allows not only custom firmware, but also complete backups, clear the cache without losing data and obtain superuser rights. The firmware procedure on this device has its own nuances related to the features of the Snapdragon 625 platform and Mi Account protection. It is critical to use the version of the recovery that is built specifically for the code name guaiqin, since firmware from other Redmi 4 models can lead to the inoperability of the touchscreen.
In this guide, we will take a detailed look at the entire journey from unlocking the bootloader to the first start of the modified system, and you will need to be careful and follow the steps precisely, as any manipulation of system partitions carries certain risks. Let's prepare your gadget for transformation and expansion.
Preparation of the device and necessary tools
Before you start any manipulation of the system partition recovery, you need to make sure that you have all the required components and software. The process is not in a hurry, so assemble all the tools in advance so that you do not interrupt at the most critical moment. The main tool for interacting with the device at a low level will be the ADB utility and Fastboot, which should be installed on the computer.
You will also need a certified or certified quality USB-Cheap charging-only cables can cause an unstable connection, leading to a data error at a critical time. Make sure that the drivers for Xiaomi are properly installed in your Windows operating system's Device Manager.
- 📱 Redmi 4 Pro with a battery charge of at least 60%.
- 💻 Computer or laptop with Windows operating system.
- 🔌 Correct. USB-data-couple.
- 📁 Downloaded image file twrp-guaiqin.img.
Remember to make a full backup of all important data, photos and contacts.The process of unlocking the bootloader, which is a prerequisite, completely clears the internal memory of the device. MIUI will leave no chance to restore files without prior backup to the cloud or to external media.
⚠️ Attention: All actions you perform at your own risk.The author of the article is not responsible for the possible failure of the device (brick) as a result of improper execution of instructions.
☑️ Firmware preparation
Unlocking the Bootloader bootloader
Without the unlocked bootloader, installing a modified recavator is impossible, as Xiaomi’s security system will check the digital signature and refuse to download the unofficial code.This is the first and longest stage, which can take anywhere from days to a week depending on the company’s policy at the moment.
First, you need to link your Mi Account to your device and get developer status. Go to your phone's settings, select About Phone, and click on MIUI several times until you notice that you've become a developer. Then, in advanced settings, activate USB debugging and USB installation permission.
Then download the official Mi Unlock Tool to your computer. Launch the program, log in to your account and follow the instructions on the screen. You'll need to turn your smartphone into Fastboot mode by clamping down the volume button and connecting the cable to your PC. If it's successful, the utility will tell you to wait.
There is a nuance associated with waiting time: it is usually 168 hours (7 days), but in some cases it can be increased to 360 hours. Do not try to circumvent this restriction with third-party paid services immediately, it is better to wait for the official time, so as not to complicate the situation with the account binding.
- 🔑 The Mi Account must be linked to SIM-card inserted into the phone.
- 📶 Unlocking requires a stable Internet connection (Wi-Fi or mobile network).
- ⏳ After obtaining the status “Unlocked” in the utility, the phone will automatically restart and clear the data.
Download and install ADB and Fastboot drivers
Successful communication of your computer with your Redmi 4 Pro in bootloader mode requires the correct drivers. Standard Windows tools often cannot automatically identify the device in Fastboot or EDL mode, so it is recommended to use a universal driver package.
There are several versions of platform tools. Minimalist sets that do not conflict with other Android drivers are best suited for working with Snapdragon-based devices. Once you install the package, check the Device Manager: When you connect your phone in bootloader mode, the Android Bootloader Interface section should appear there.
adb devices
fastboot devicesThese commands allow you to check the visibility of the device. If you see the serial number and the word fastboot in response to the command of fastboot devices, then the connection is established correctly. If the list is empty or an unknown device is displayed, the problem should be searched for in the drivers or in the drivers. USB-port.
What if your computer doesn’t see your phone in Fastboot?
It's important to understand the difference between modes of operation. ADB is used when the system is started and debugging is enabled, and Fastboot is a low-level protocol for partitioning when the OS is not loaded or you are in special mode. To install TWRP, we need the second option.
The process of installing TWRP Recovery via Fastboot
Now, to the most important step, write the image of the recovery in the appropriate partition of memory. Make sure that the file twrp-guaiqin.img is in the same folder where the executable files adb.exe and fastboot.exe, or specify the full path to the file in the command line.
Put your smartphone in Fastboot mode. To do this, turn off the device completely, and then press the volume button and, holding it, connect it. USB-The screen should show a picture of a hare repairing an android and a sign that says FASTBOOT.
Open the command line in the tool folder and enter the firmware command:
fastboot flash recovery twrp-guaiqin.imgAfter successfully executing a command that takes a few seconds, take your time to boot the system in the usual way.The standard Android boot procedure can automatically replace the modified recavator with a stock one if the data partition has not been pre-cleaned or if the system detects changes.
- 🚀 Immediately after the firmware is completed, press the "Loudness Up" and "Power" buttons at the same time».
- 🔄 Hold them until the Mi logo appears, then release the power button, but keep the volume up.
- ✅ You have to get on the menu. TWRP, not in the normal system.
⚠️ WARNING: If you just reboot your phone with the power button or through the Fastboot menu, stock MIUI may rub TWRP. The first entrance to the Recovery is mandatory immediately after the firmware!
💡
If the TWRP doesn’t start and the phone goes into a cyclical reboot, try flashing the version of the TWRP built for the Redmi 4X, as the devices have a similar hardware platform, but this is an experimental method.
Primary setup and backup creation
Once you enter the TWRP menu, you will see an interface adapted for touch control. The first thing the system can do is request permission to make changes (Modify System), and you need to confirm this by swiping the slider so that the Recovery are not overwritten when the OS is first booted.
Next, it is strongly recommended to clean the Data partition, which is necessary to properly work the encryption and prevent conflicts between the old and new file system. Select Wipe, then Format Data and enter Yes.
Once formatted, go back to the main menu and select Backup, where you can create a full copy of your current system by selecting Boot, System, Data, and Vendor. This is your insurance policy: If the new firmware is unstable, you can roll back to its original state in a couple of minutes.
| Section | Description | Needs a backup. |
|---|---|---|
| Boot | Core system and recaveri | Yes (required) |
| System | Files of the Android operating system | Yes. |
| Data | User data and applications | Yes (if there's room) |
| Vendor | Drivers and specific settings | Preferably. |
Keep backup copies on the external SD-The internal memory when formatting Data will be cleared, and backup files may be lost if not moved in time.
Installation of custom firmware and obtaining Root-rights
The main purpose of installing TWRP is to install custom firmware such as LineageOS, Pixel Experience or Xiaomi.eu. To do this, download the firmware archive (zip format) and, if necessary, the GApps package (Google services), and place them on a memory card or internal storage.
From the Recovery menu, select Install, search for the downloaded archive, and confirm the swipe installation. The process will take 2 to 5 minutes. If you want to get superuser rights, additionally scroll through the Magisk archive after installing the main firmware, but before the first download.
💡
The order of the firmware is important: first Wipe (clean), then Install ROM (system firmware), then GApps (services) and at the end of Magisk (root), and a breakdown of order can lead to errors.
After all operations are complete, press Reboot System. It can take up to 10-15 minutes for the new system to start up for the first time, as it optimizes applications and creates cache. Don't panic if the screen is lit with the download logo for a long time - this is normal behavior.
- 📦 Custom firmware often works faster and more stable than stockware on older devices.
- 🔒 Magisk allows you to hide the presence of root rights from banking applications.
- 🧹 Regular cleaning of Dalwick's cache through TWRP helps to maintain speed.
Now your Redmi 4 Pro has modern tools for modification, you have full control over the device, the ability to remove system debris and install current versions of Android, which the manufacturer no longer provides officially.