[Realme GT 2 Pro] Rapper_skull:
As you may know, at the time of writing it's not possible to unlock the bootloader of the European model. Fortunately there's a workaround. To know how it works, scroll to the end of the post.

First of all, this is only for the European RMX3301, but you can try on any other global model that doesn't allow the unlocking of the bootloader. I'm not talking about temporary errors, but of the infamous This phone model does not support deep testing error message.

Before starting I would like to thank polygraphene for their implementation of the Dirty Pipe vulnerability on Android. Without that, this would not have been possible.

Requirements:​

The phone with a decent charge. Do not attempt this procedure with the phone at 10% and then cry if something goes wrong

A compatible build, read below

A Windows or Linux PC with adb and fastboot drivers installed

Check if your build is compatible:​

Go to Settings -> About device -> Version and check Build number:

If your build is between RMX3301_11_A.14 and RMX3301_11_A.21, go to the procedure below

If your build is lower than RMX3301_11_A.14, or higher than RMX3301_11_A.21, install this OTA package to downgrade (or upgrade) to RMX3301_11_A.14

Procedure:​

Make sure under Developer options you have OEM unlocking and USB debugging enabled

Download and extract the attached gt2pro_eu_unlock_dirtypipe_v0.2.zip file

Open a terminal in the folder of the extracted files

Connect the phone to the PC and select the File transfer option

Run the script:

On Windows, type run.bat and press enter

On Linux, type ./run.sh and press enter

Now the phone is temporarily rooted and the phone model is changed to RMX3301. Do not reboot or you will lose this status.

At this point you can follow the procedure on the official forum to unlock the bootloader of the global model. If you already have the Deeptesting app installed, clear its data to make sure it will update.

Changelog:​

v0.2:

Show more info about device for better debug

Show the model at the end to check if it worked

For technical people: how does it work?​

The script abuses a vulnerability of the Linux kernel called Dirty Pipe (or CVE-2022-0847). For further details, you can visit the official website. This allows us to gain temporary root and overwrite the ro.product.name property, the only one checked by the Deeptesting app. The vulnerability is present in Android and it has been fixed, at least for the Pixel 6, in the May 2022 security update. On the GT 2 Pro, the vulnerability has been fixed with the Android 13 update, while the latest Android 12 build (RMX3301_11_A.21) is still vulnerable. I have tested the procedure personally up to build RMX3301_11_A.16. If you're on a newer build and it doesn't work, please report it in the comments.

Will it work on device X?​

If the following conditions are met:

it is a Realme device;

the kernel version is 5.10.66;

there's a global model with a different ro.product.name that can be unlocked;

then you can edit the startup-root file and replace RMX3301 (near the end) with the ro.product.name of the global model and try if it works. If it doesn't, it could be for a lot of reasons. Unfortunately, I can't help you without physically having the device in hand.

If you have further questions about the procedure, please post them below.