[Realme C12 Guides, News, & Discussion] HemanthJabalpuri:
Before doing anything to device, keep a copy of Stock ROM from here in your PC or SD Card.

Rooting with Magisk

Tutorial

:

The procedure is the same whether you're on the stock RealmeUI Rom or on a custom GSI (treble) one or on a custom ROM

.

Step 0 - Go to extracted platform tools folder in your PC and Shift + Right Click and choose Open Command Window here and connect the device to PC.

Step 1 - Boot to Recovery with adb reboot recovery and run below commands in command prompt by connecting the device to PC

adb root
adb pull /dev/block/by-name/boot boot.img
adb reboot

After running after commands you will get boot.img in your platform tools folder of PC. Copy the boot.img to mobile.

Note:- Above commands won't work if you are on GSI/custom ROM rom with stock recovery. So flash TWRP and follow above to get boot.img or use root debugging in ROM if available.

Step 2 - Download and install the latest Magisk app from here on your phone.

Click on the latest Magisk-vX.Y.apk you see in the list to start the download, open the file and install.

Step 3 - On your phone, open up Magisk app.

Click the Magisk Install button as shown below.

Then Select and Patch a File.

Go look for your boot.img you previously copied to your phone and pick it.

Click Let's go! and wait for Magisk to complete the process!

Step 4 - Link your phone to your PC, and grab the file the Magisk app created. It's located in your downloads folder, called magisk_patched_blAh.img.

Step 5 - Paste it where your ADB & Fastboot (Platform Tools) are located, along with the vbmeta.img by downloading from here.

You should now have a folder like this with

:

adb(.exe)

fastboot(.exe)

magisk_patched.img

vbmeta.img

Extra files from the platform tools

Step 6 - Link your phone to your PC with the USB cable if not done already.

Step 7 - Shift + Right click in an empty space inside the folder we prepared in Step 7, and click Open Command window here.

Inside the Command window, input the following commands line by line, in order.

adb reboot bootloader
fastboot devices

And make sure your device shows up, should be a bunch of numbers and letters, a couple spaces, and fastboot

.

If nothing does, go back to Step 7 and try again.

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot flash boot magisk_patched_blAh.img
fastboot reboot

You're done! Your phone will reboot, hopefully, without a hitch! Open up Magisk app, and check that it's installed.

That said, you will have issues leaving it like this. You need to hide the fact that your phone is rooted, there's no downside to doing it.

Check out the Passing SafetyNet tutorial further down below, it's quick and easy.

For more info, see official Magisk installation instructions at https://topjohnwu.github.io/Magisk/install.html

Passing SafetyNet (Only possible with Magisk. Not with SuperUser on GSI's)

Tutorial

:

Enable Magisk Hide inside Magisk app's settings and Install Universal SafetyNet Fix module.

Reboot and enjoy! You're all set and SafetyNet should pass just fine.

Q: Hey, I rooted/edXposed my phone, and now Netflix won't even open, or doesn't work properly, what's up with that?

A:

Well, fortunately, there's an easy fix if you have Magisk. Install the liboemcrypto disabler Magisk module, activate it and reboot.​

Credits:-

@Akitake for his guide at here