How to Install PBRP on Xiaomi: A Complete Guide from Unlock to Firmware

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.

πŸ“Š What Recovery Are You Using on Xiaomi?
TWRP
OrangeFox
PBRP
Stock Mi Recovery
Other

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.

  1. Link your Mi Account to your device in the settings: Settings β†’ Xiaomi Account β†’ Mi Cloud.
  2. Activate Developer Mode: Go to Settings β†’ About Phone and click on MIUI Version 7 times.
  3. Enable OEM Unlock and USB Debugging in Settings β†’ Additional β†’ For Developers.
  4. 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 deviceCode nameRecommended version of PBRPNotes
Redmi Note 10 Prosweetv4.0 (2023-11-15)You need to disable forceencrypt in the vendor
POCO X3 Provayuv3.8 (2023-09-08)Supports dynamic partitions
Mi 11 Ultrastarv4.1 (2023-12-01)A patch is needed to work with MIUI 14.
Redmi K40aliothv3.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:

  1. Turn off the phone and put it in Fastboot mode (clamp Volume down + Power).
  2. Connect the device to your PC and check the connection with the command: fastboot devices must display the serial number of the device.
  3. 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.img

This 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.

  1. Download the file. pbrp.zip (not.img!) and put it on your internal memory or SD-map.
  2. Reboot to TWRP (adb reboot recovery command or button combination).
  3. In TWRP, select Install β†’ Select pbrp.zip β†’ Swipe to Confirm Flash.
  4. 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?
1. Download the official firmware for your model from MIUI Downloads. 2. Remove the recovery.img file from the firmware archive (located in the images folder). 3. Sweep it through Fastboot: fastboot flash recovery.img fastboot reboot 4. Use the Mi Flash Tool with clean all option to return to stock firmware completely.

Common mistakes and their solutions

When installing PBRP, users often face the following problems:

Mistake.Reason.Decision
Invalid sparse file format at headerThe damaged pbrp.img fileDownload the file again, check the MD5 checksum
The device is loaded into Mi RecoveryThe loader re-recorded the RecoverySwipe PBRP to boot section or use fastboot boot pbrp.img
E: Unable to mount /dataFBE encryption or damaged partitionFormat /data or disable_forceencrypt.zip
The touch screen is not working.Incompatible version of PBRPUse 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:

  1. Press Volume Up + Power for 20 seconds for forced reboot.
  2. 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.

FAQ: Frequent questions about installing PBRP on Xiaomi

Can I install PBRP without unlocking the bootloader?
No, all Xiaomi devices (except the POCO F1 with exploit) require an unlocked bootloader to install a custom recover. Exploit bypass methods (such as DirtyCOW) only work on Android 8-9 and require root rights.
Once PBRP is installed, Magisk doesn't work. What do I do?
Please use the latest version of Magisk (26.1+) through PBRP In the boot section: Download Magisk-v26.1.zip GitHub. PBRP Choose Install β†’ Choose. Magisk.zip β†’ Swipe. Reboot to the system. If Magisk doesn't define a root, run it in both slots (boot_a and boot_b).
How to upgrade PBRP to the new version?
Update is done in the same way as installation: Download the new version of pbrp.zip.Reboot to the current receptacle.Select Install β†’ Update from ZIP. Important: Upgrade from 3.x to 4.x requires full /data formatting!
PBRP doesn't see internal memory. What's the problem?
This is a typical problem for Android devices. 11+ and encrypted FBE. Solutions: Format /data into PBRP (Wipe β†’ Format Data. Or you can file it. disable_forceencrypt.zip before first loading to the Recovery. on some models (e.g. Mi) 11 Lite helps rollback MIUI 12.5 before installation PBRP.
Can I return the warranty after installing PBRP?
Technically, no, because unlocking the bootloader will void the Xiaomi warranty. However, in practice, service centers often do not check the bootloader status during repairs for mechanical damage (screen, battery). To return the device to the "stock" state: Sweep the official firmware through the Mi Flash Tool with the clean all option. Close the bootloader command: fastboot oem lock Attention: This will lead to a complete data reset!