[Realme X50 Pro Guides, News, & Discussion] THEGAZINGVOID:
Please read this guide fully before attempting to follow it. It requires some knowledge of how to use a Terminal and basic ADB/Fastboot operation. I don't think this guide is thorough enough for a person who's modifying their phone for the very first time. Feel free to ask for help though!

I am not reliable for any adverse effects this guide might have on your phone. If something breaks, that's your responsibility. However: if your phone doesn't boot anymore, but you can still get into fastboot, you should be able to flash the Stock Firmware OFP using the Realme Flash Tool. To get into fastboot, power off your phone, wait a few seconds, and hold power and volume down until you see the fastboot logo.

This guide was cobbled together using various other tutorials and my own attempts. I've used it on my RMX2075. It should also work for the RMX2076. The files Realme provides for the RMX2075 are named "RMX2076", so I assume they're the same device. I have no idea how the RMX2071 fits into this. Curiously, the TWRP version used here is intended for the RMX2071, although it works flawlessly on my RMX2075. However: if you're using it on an RMX2075/2076 TWRP thinks you're using an RMX2071, so it won't flash packages intended for the RMX2075/2076. Hence the following warning:

!!! YOU WON'T BE ABLE TO INSTALL OTA UPDATES AFTER INSTALLING TWRP !!!

If you attempt to install an OTA Update downloaded from within the Settings.app, the phone will reboot, TWRP will attempt to install the OTA Update and fail with an error. This does not break anything, it just doesn't update.

DOWNLOADS:

- Realme Flash Tool

- Stock Firmware OFP

- OTA Update OZIP

- TWRP 3.4.1b for RMX2071 by wzsx150 and LR. Team

Spoiler content hidden.

- Realme DeepTesting App

- Magisk Manager by topjohnwu

- oppo ozip decrypt

PREPARATION:

- install ADB & Fastboot on your computer

- enable "USB debugging" on your phone

- install the oppo ozip decryption tool by following the instruction on the GitHub page

UNLOCKING

- follow the unlock instructions provided by the official Realme Tutorial

RESTORING AND UPDATING - if you're on firmware A42, skip this step

- follow the restore instructions provided by the official Realme Tutorial

- go to the Realme Software Update page, click on "How to update?" and follow the instructions

FLASH TWRP

- open a Terminal window and cd into the folder that holds recovery.img and misc.bin

cd /path/to/folder

- enter the following commands and hit enter after each

adb reboot bootloader

fastboot flash recovery recovery.img

fastboot flash misc misc.bin

fastboot reboot recovery

- your phone should now reboot into TWRP

- enter your phones unlock code if you have one

- go to "Advanced" -> "Disable Replace TWRP"

- reboot phone

ROOTING

DO NOT use "Install Root" in TWRP, it'll "destroy" the bootloader and you'll have to flash the stock firmware

Follow this instead:

- decrypt the OTA .ozip using the oppo ozip decrypt tool (instructions on its GitHub page)

- unzip the resulting decrypted file

- copy "boot.img" onto your phone

- copy "/firmware-update/vbmeta.img" into a folder of your choice

- install Magisk Manager on your phone

- open Magisk Manager, tap on "Install" followed by "Select and Patch a File"

- select the "boot.img" you've previously copied onto your phone and let Magisk do its thing

- the patched "boot.img" is called "magisk_patched_XXXX.img" or something similar. Make note of the resulting file name which is specific to you.

- copy the patched "magisk_patched_XXXX.img" into the same folder that holds your "vbmeta.img"

- open a terminal and cd into the folder that holds the patched "boot.img" and "vbmeta.img"

- enter the following commands and hit enter after each

adb reboot bootloader

in the following step, replace "magisk_patched_XXXX.img" with whatever your patched "boot.img" is called

fastboot flash boot magisk_patched_XXXX.img/ICODE]
[ICODE]fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

fastboot reboot

- your phone should now be rooted

I have also uploaded the stock boot.img along with the rooted version as well as vbmeta.img here. They were created using the method described above with OTA update A42. I would recommend creating your own though, since this has a higher chance of success.

Another method to get the stock boot.img and vbmeta.img is creating a TWRP backup, renaming "boot.emmc.win" to "boot.img", and "vbmeta.emmc.win" to "vbmeta.img". I have NOT TESTED this method.

I don't know if this will work for Android 11 / ColorOS 2.0. My theory is that if you can get the RMX2076PU_11.C.16.ozip somewhere, you could just follow this guide using it instead of the A42 one. Again, I have NOT TESTED this method.