We at MIUI Blog love MIUI ROM so much. However, part of us tends to also love Android One ROM. Hence, we bring some of tips and tricks related to Xiaomi Mi series running Android One to you our fellow readers.
This time we show you the appropriate steps on how to flash Pitch Black TWRP on Xiaomi Mi A2. Pitch Black Recovery Project in which so-called PBRP is the forked version of TWRP.
PBRP brings all the key features of official TWRP while also adding advanced functions. A number of tweaks come built-in within the PBRP Recovery such as Magisk, DM-Verity Disabler, MTP Fix, Camera2 API Enabler, and so on.
Such custom tweaks usually come to be flashed as a standalone package.
PBRP receives positive feedbacks among flashing maniacs. Those who love TWRP will love PBRP more.
Xiaomi Mi A2, on the other hand, is a cool Android phone manufactured by Xiaomi under the Google Android One project. Google is solely in charge of the development and maintenance of the Android ROM ecosystem running on devices under this project.
Xiaomi Mi A2 with PitchBlack Recovery is a perfect combination. You can flash any custom ROMs conveniently while also taking and restoring full backups of your phone.
Simply follow steps below to install PBRP on Mi A2, a device with codename Jasmine_sprout.
Make sure you have following stuff ready:
- A Xiaomi Mi A2 phone.
- Make sure it has 60% remaining battery juice.
- A USB data cable. Use the one shipped with the device.
- A Windows-based computer. We prefer to use Windows 10 or 8.1 64-bit operating system.
- Xiaomi ADB Fastboot Drivers.
- The latest version of Android Platform Tools.
- Download Pitch Black Recovery for Mi A2. Download both the .img and the .zip files.
- A cup of coffee (optional).
Before we step into further parts, we strongly suggest you create backups of important data and files. We hold no responsibility for any damage of a bricked device, thermo-nuclear war, or you getting fired because the alarm app failed.
Please proceed responsibly.
How to Flash Pitch Black Recovery on Mi A2
Step 1, 2, and 3 have a main focus on the driver installation process. You can skip and jump directly to step 4 if you have it installed already.
Step 1. Extract Xiaomi ADB Fastboot Driver zip file (miui-ADB-Driver-Installer-v1.4.3.zip) and install it on your computer. This step is necessary to install ADB Fastboot system-wide. Make sure you install it on C:\adb\.
Step 2. Extract the Android Platform Tools zip file (platform-tools_r29.0.4-windows.zip). There is nothing to install here. You’ll just get a folder named “platform-tools”.
Step 3. Unlock the bootloader of your phone. Read the full guide on how to unlock the bootloader of Android One here. Please be aware that the process requires you to reset your phone. All your data will be lost. Unlocked already? Jump to the next step.
Step 4. Enable USB Debugging option on your phone. Basically, you enabled this if you followed our tutorial. However, it is better to double-check it.
Settings >> System >> Developer Options >> enable the "USB Debugging" option.
Couldn’t find the Developer Options? Go to:
Settings >> System >> About phone >> Tap the Build Number several times >> congratulation you are a developer.
Step 5. Connect your Xiaomi Mi A2 phone to the computer using its USB cable.
Step 6. Copy both the PBRP image file and zip file to the “platform-tools” folder. You should now have pbrp-mia2-recovery.img and PitchBlack-jasmine_sprout-2.9.0-20190624-0913-OFFICIAL.zip files inside the platform-tools folder.
Step 7. Click on an empty area in the address bar of Windows Explorer, type
cmd, then hit Enter on keyboard. This launches the Command Prompt window.
Step 8. Type following command in there. Hit Enter on the keyboard to execute each line.
adb devices adb reboot bootloader fastboot devices
The computer shall establish ADB-Fastboot connection with your phone. The displayed device code indicates its success. Furthermore, your phone shall reboot into the bootloader / fastboot mode.
Step 9. Issue this command to boot the phone into the Recovery mode using PBRP image:
fastboot boot pbrp-mia2-recovery.img
Step 10. Copy the PitchBlack-jasmine_sprout-2.9.0-20190624-0913-OFFICIAL.zip file to your phone storage. You can copy-paste it like usual (MTP) or you can use this command:
adb push PitchBlack-jasmine_sprout-2.9.0-20190624-0913-OFFICIAL.zip /tmp/
The command will copy the zip file to your phone in the /tmp/ folder which is basically temporary RAM storage. You can also copy it to any folder in your phone, for instance, the root directory.
adb push PitchBlack-jasmine_sprout-2.9.0-20190624-0913-OFFICIAL.zip /
Step 11. Choose “Install” from the main menu of PBRP.
Step 12. Locate the Pitchblack zip file you copied earlier. Tap on it to select it.
Step 13. Do the “Swipe to confirm flash” action.
Step 14. Reboot to system.
That’s all. You have successfully flashed Pitch Black TWRP on Xiaomi Mi A2.
From here, you can then use it to flash a custom ROM. Please remember, if you want to flash a custom ROM and Magisk, flash Magisk as the latest one. Flashing everything after Magsik will break it.
Furthermore, you may need to download and flash DM-Verity Disabler if your phone is running stock Android One ROM. Pitch Black has it built-in but it doesn’t hurt you to always use the latest version.