[Realme X2 Pro Guides, News, & Discussion] Jerry08:
At start i want to say that I'm not responsible for your bricked devices, houses set on fire, bla bla bla and so on.

Hello​

Since I see that many users are having problems with unlocking bootloader, flashing twrp and getting properly working Magisk. So here i come.

Downloads:

Everything you need you find here, on my OneDrive.

Unlocking Bootloader

BEWARE! After unlocking bootloader your DRM widevine will change to L3.​

Steps:

- download and install Realme_x2_Pro_DeepTesting.apk,

- open app and apply for deep test,

- enable Developer Options by tapping 7 times Version in Settings > About Phone

- go to developer options and enable OEM unlock and USB debugging,

- open app once again after some time tap "Query verification status",

- If you got approved application tap "Start the in-depth test" and phone will reboot to bootloader,

- on PC, download fastboot tools from somewhere else(unless you already have it, its not on my OneDrive)

- open folder where you have your fastboot installed, hold shift and click right mouse buton and choose "open command prompt here"(or Power Shell in newer version of windows),

- connect your phone to PC, and write

fastboot flashing unlock

- now on phone select "yes"

- now your phone will reboot and erase all your data,

- now you have unlocked bootloader.

Flashing Custom Recovery

I will guide you how to flash Custom Recovery.​

Steps:

- connect phone to PC,

- on your PC in command prompt type adb reboot bootloader,

- download TWRP image from mauronofrio or OrangeFox image from thread put in your fastboot tools folder on PC,

- download vbmeta.img from my OneDrive and put in your fastboot tools folder on PC,

- type

fastboot flash recovery *******.img

- type

fastboot flash vbmeta vbmeta.img

- when flashing is done, on your phone select "Recovery Mode" with volume +/- buttons and accept with power key,

- now it will boot into TWRP

Getting properly working Magisk

For now I recommend always using Magisk Canary Debug version cause it supports realme phones(stable needs magiskfix to get out of Core only mode).​

Steps:

-download Magisk Canary zip to your phones internal storage,

- boot to Custom Recovery,

- flash magisk,

- reboot to OS.

Updating ColorOS on rooted phone via TWRP

Use Magisk Canary cause it supports realme phones(stable needs magiskfix to get out of Core only mode).

This is the only way to update ColorOS via TWRP without losing magisk or running into damaged boot/recovery image message on boot for now. ​

Steps:

- download latest Magisk Canary, vbmeta.img and latest update package(ozip) for your device(cn rom for cn device, global rom for eu/in device), if you download update via official OTA app the package is located in

/data/oppo/coloros/OTA/.otaPackage

- reboot to Custom Recovery,

- flash latest ozip through twrp recovery(don't reboot yet),

- flash vbmeta.img through Custom Recovery

- flash magisk(if flashing fail, than reboot recovery),

- reboot to system.

Locking Bootloader

Think twice after evey step you did if it's done correctly before doing next step to prevent HARD BRICKS.​

Steps:

- download right latest ozip for your device from realme site(don't cross flash device, flash global ozip on eu/in devices and cn ozip for cn devices),

- boot to Custom Recovery,

- Flash ozip and after don't do anything else, just reboot to system,

- let it boot to OS and replace Custom Recovery with stock recovery.

- (optional) boot to recovery to check if it is stock, if its stock recovery than you can lock bootloader(don't ever try to lock with Custom Recovery),

- reboot device to bootloader and through adb go with:

fastboot flashing lock

- accept locking bootloader query on phone,

- device now will reboot and perform factory reset.

F.A.Q.​

Q: Can't flash xxxxxxxx.zip(or xxxxxxx.ozip/xxxxxxx.img) in Custom Recovery cause it throws an error, what to do?

A: Reboot recovery and try again.

...