[Realme X3 SuperZoom Guides, News, & Discussion] Zacharee1:
Before rooting, you'll need an unlocked bootloader. Check my previous guide here: https://xdaforums.com/x3-superzoom/how-to/guide-unlock-bootloader-realme-x3-t4136325/post83109505.

After unlocking, we can get started with rooting.

First, you'll want to install Magisk Manager. You can find the latest APK here: https://github.com/topjohnwu/magisk/releases.

Next, you'll need to download the latest OTA OZIP. There's a link at the end of the post for this.

While that's downloading, you'll also need to grab a copy of an OZIP extractor. Follow the link below, download the repository as a ZIP, and unzip it.

For this program to work, you'll need Python 3 installed. On Linux systems, it should already be installed. On Windows 10, you can install Python from the Store.

Open a terminal or CMD window and cd to where you extracted the OZIP extractor files.

Use pip to install the docopt module: "pip3 install docopt".

Once the OZIP has finished downloading, move it to the same folder as the extractor program.

Run the following command: "python3 ozipdecrypt.py NAME_OF_OZIP_FILE". This will take a while!

Once it's done extracting, there will be a ZIP file with the same name as the OZIP. We only need two files from here: boot.img and vbmeta.img.

Extract those two files to the same folder as the extractor program.

Copy the boot.img file to your device.

Open Magisk Manager and choose the "INSTALL" option next to the Magisk status. Tap "INSTALL" in the dialog that appears and then choose "Select and Patch a File."

Browse to where you copied your boot.img to and select it. Magisk will now patch it and create a file named magisk_patched.img in your Download folder. Copy magisk_patched.img back to your computer.

Reboot your phone into fastboot: "adb reboot bootloader". If you don't have ADB or fastboot installed (which you should, since you needed them for the previous guide), you can find the link in the bootloader unlocking guide.

Before you flash the patched boot image, you need to disable image verification, which is where the vbmeta.img comes in.

Run "fastboot flash vbmeta vbmeta.img --disable-verity --disable-verification" (remember, you'll probably need to unplug and replug the device after hitting Enter). This will disable boot verification and allow the patched image to actually work.

Finally, run "fastboot flash boot magisk_patched.img". This will flash the rooted boot image to your device.

Run "fastboot reboot" and let the phone boot back into the system. Check Magisk Manager and you should now be rooted!

Troubleshooting:

If you get an error that the boot image was "destroyed," don't worry. You'll just need to flash the stock boot.img and try again. Unplug your phone from your computer and wait for it to turn off. Once the screen is black, hold down VOL-DWN and PWR to enter fastboot mode. You can then run "fastboot flash boot boot.img" (where boot.img is the stock image) to restore. Reboot, then try the vbmeta and patched image flashing again.

You can get the OTA OZIPs from Realme EU's site: https://www.realme.com/eu/support/software-update.

You can get an OZIP extractor from here: https://github.com/bkerler/oppo_ozip_decrypt. (NOTE: you'll need to install the "docopt" Python module.)

OZIPs contain a boot.img, which you can extract and patch with Magisk for root. If someone else has an idea for patching Magisk into the boot.img, this is where to start.

Here's my patched boot.img for A.32. I don't recommend using this on other versions: https://www.androidfilehost.com/?w=files&flid=315334