Installing the custom Pitch Black Recovery Project (PBRP) on Xiaomi smartphones provides access to advanced backup, unofficial ROM firmware and fine-tuning. Unlike the standard Mi Recovery, PBRP supports touch control, design themes and work with /data partitions without formatting. However, the installation process requires pre-unlocking the bootloader and adherence to a strict sequence of actions β an error at any stage can lead to a βbrickβ of the device.
In this guide, we will discuss two main installation methods: via Fastboot (for devices with a locked bootloader) and through Fastboot. TWRP (Particular attention is paid to the nuances for the popular models of the Redmi Note 10 Pro, POCO X3 Pro and Mi 11, where the process may differ due to the specifics of Qualcomm and Mediatek hardware platforms. PBRP and relevant references to official resources.
What is PBRP and why is it chosen instead of TWRP?
Pitch Black Recovery is a TWRP fork with improved interface and additional features.
- π¨ Dark theme by default with customization support (you can install third-party themes in.tzip format).
- π§ Advanced partition management: the ability to change size /system, /vendor and /data data-free.
- π Built-in support OTG Backup to external storage.
- π‘οΈ Protection against random formatting β requires confirmation before critical operations.
Compared to OrangeFox Recovery, PBRP stands out for more stable work on Xiaomi devices with Snapdragon 8xx chipsets (such as the Mi 10T Pro or Black Shark 4).However, some models on Mediatek Helio (such as the Redmi Note 9T) may require manual editing of the recovery.fstab file to work properly with partitions.
Important: PBRP does not support File-Based Encryption (FBE) encryption on Android 11+. If your device uses this type of encryption, you will need to format /data after installing the recovery, which will result in loss of user data.
Preparation of the device: unlocking the loader
Before installing PBRP, you need to unlock the bootloader through the official Mi Unlock Tool, a process that takes between 7 and 360 hours depending on Xiaomiβs policy for your model.
- Link your Mi Account to your device in the settings: Settings β Xiaomi Account β Mi Cloud.
- Activate Developer Mode: Go to Settings β About Phone and click on MIUI Version 7 times.
- Enable OEM Unlock and USB Debugging in Settings β Additional β For Developers.
- Connect your phone to your PC, launch the Mi Unlock Tool, and follow the instructions. On 2023 devices+ year of release may require a binding SIM-cards to Xiaomi account.
Once successfully unlocked, the bootloader will go to Unlocked state, and you can check this by turning off the phone and holding Volume Down + Power, and the screen will show the message This device is unlocked.
π‘
If the Mi Unlock Tool gives you a βCouldnβt unlockβ error, try using the 5.5.224.24 version of the tool, which bypasses the restrictions on new devices.
Selecting a PBRP version for your Xiaomi model
Not all versions of PBRP are compatible with Xiaomi devices, and here is a table of proven builds for popular models:
| Model of the device | Code name | Recommended version of PBRP | Notes |
|---|---|---|---|
| Redmi Note 10 Pro | sweet | v4.0 (2023-11-15) | You need to disable forceencrypt in the vendor |
| POCO X3 Pro | vayu | v3.8 (2023-09-08) | Supports dynamic partitions |
| Mi 11 Ultra | star | v4.1 (2023-12-01) | A patch is needed to work with MIUI 14. |
| Redmi K40 | alioth | v3.9 (2023-10-22) | It is a conflict with Magisk 26+. |
Up-to-date versions can be downloaded on the official PBRP website or via the telegram channel @PitchBlackRecovery. Please note: files for devices on Mediatek (for example, Redmi Note 11) are often marked with the suffix -mtk.
β οΈ Attention: Installation PBRP Android-based 13+ and dynamic partitions (super.img) It requires a pre-conversion to fastbootd, otherwise the recaveri won't see the system partitions.
Install PBRP via Fastboot (the Beginner Method)
This is a good way to do this if you don't have a customized Recovery on the device.
- π₯οΈ PC with installed drivers ADB/Fastboot and Mi Flash Tool.
- π± Unlocked bootloader (see section above).
- π File. pbrp.img for your model.
Step-by-step:
- Turn off the phone and put it in Fastboot mode (clamp Volume down + Power).
- Connect the device to your PC and check the connection with the command: fastboot devices must display the serial number of the device.
- Fastboot flash recovery pbrp.img fastboot reboot recovery
If the device automatically switches to Mi Recovery after restarting, follow the additional command:
fastboot flash boot pbrp.imgThis is due to the features of the bootloader protection on new Xiaomi devices (starting with the Redmi Note 12).
Downloaded the correct pbrp.img file for the device codename |
ADB/Fastboot drivers installed (version 1.4.3+)|
Check driver signatures in Windows| disabled
Backup of important data (photos, contacts) |
Battery charge > 50%-->
Installation of PBRP via TWRP (alternative method)
If you already have TWRP installed on your device, the process is simplified.
- Download the file. pbrp.zip (not.img!) and put it on your internal memory or SD-map.
- Reboot to TWRP (adb reboot recovery command or button combination).
- In TWRP, select Install β Select pbrp.zip β Swipe to Confirm Flash.
- After installation, run Reboot β Recovery to go to PBRP.
On certain devices (e.g, POCO F3) After installation, you may need to patch disable_forceencrypt.zip, avoid getting stuck in the logo MI. You can download the patch on the forum XDA Developers in the theme of your model.
β οΈ Attention: If after installation PBRP through TWRP The device is not loaded into the system, check the integrity of the partition /data. V 30% This is done by formatting via Wipe. β Format Data β enter".
Setup PBRP after installation
After the first download to PBRP, it is recommended to perform a basic configuration:
- π Interface Language: Go to Settings β Language and select Russian (if available).
- π Disabling encryption: For Android 10+ run the Wipe β Format Data to remove encryption FDE/FBE.
- π Backup Creation: In the main menu, select Backup and select Boot, System, Data and Vendor sections.
- π§ Setting up OTG: Connect the flash drive through the adapter and check its display in Mount.
To eliminate possible interface lags on weak devices (e.g. Redmi 9A), go to Settings β Advanced β Disable Bluster. This will disable background blur and speed up the recovery.
How to restore stock recavator Xiaomi?
Common mistakes and their solutions
When installing PBRP, users often face the following problems:
| Mistake. | Reason. | Decision |
|---|---|---|
| Invalid sparse file format at header | The damaged pbrp.img file | Download the file again, check the MD5 checksum |
| The device is loaded into Mi Recovery | The loader re-recorded the Recovery | Swipe PBRP to boot section or use fastboot boot pbrp.img |
| E: Unable to mount /data | FBE encryption or damaged partition | Format /data or disable_forceencrypt.zip |
| The touch screen is not working. | Incompatible version of PBRP | Use the build marked -unified for your chipset |
If the Xiaomi device does not turn on after installing the PBRP (black screen or logo hover), try the following steps:
- Press Volume Up + Power for 20 seconds for forced reboot.
- Connect to your PC and check the output command: fastboot getvar current-slot If the answer is a or b, please click here. PBRP In both slots: fastboot flash recovery_a pbrp.img fastboot flash recovery_b pbrp.img
π‘
On dynamic partition devices (Android 12+), you must convert super.img to fastbootd using the fastboot reboot fastboot command before installing PBRP.