[Android Q&A, Help & Troubleshooting] HemanthJabalpuri:
Reserved this too:)

DISCLAIMERS (please read !)

The content seen in this thread is targeted at this specific forum's device, the

Realme C12

, codenamed

RMX2189

.

Follow the instructions shown in this thread at your own risks, I will not be held responsible for bricking your device, you did this yourself.

That said, the information will be kept up to date relatively frequently, and should you follow the steps and ask questions below when unsure, everything will be fine!

No files will be directly provided. Do not use pre-created/re-uploaded content. Instead I'll teach you to gather the required files from official websites, and create the other ones yourself.
​

ROM (GSI) Recommendations

:

Ordered by personal preference:

1) CAOS

2) LOSQ (LineageOS GSI)

3) crDroid

I'm more than open to feedback, suggested changes & improvements!

Prerequisites for most manipulations:

Your phone, well charged if possible

The USB cable used to link your phone to your computer (the one on your charger works just fine)

A computer, with recent ADB & Fastboot (Platform Tools)

Some time, patience, and

the ability to read and follow instructions

!

Unlock your bootloader (otherwise this thread is useless to you as it's required for rooting as well as installing custom ROMs)

Tutorial

:

Step 0 - Great! You're ready to go. Make sure to backup your phone's data before continuing on with this tutorial, as unlocking will make it factory reset (wipe)!

Step 1 - Download and Open In Depth Tool ( Attached With the Guide Down)

​

Step 2 - Click “Start applying”.

​

Step 3 - Please read the disclaimer in detail, select the checkbox, and submit your application

​

Step 4 - The Application Will be checked by realme Servers..(Wait 10 mins)

​

Step 5 - The unlock tool apk will show the status of the unlock request- Successful

​

Step 6 - You can now click “Start the in-depth test” and the device will reboot automatically. The following string will display on the screen: fast boot_unlock_verify ok

Step 7 - Now Download and install the fastboot tool on your PC and ready to unlock it.

Step 8 - Now in Fastboot Mode type this command

fastboot flashing unlock

and Press enter.

Step 9 - On your phone press the Volume Up key to select "UNLOCK THE BOOTLOADER” (or press the Volume Down key if you have changed your mind to select "DO NOT UNLOCK THE BOOTLOADER”). When you click the Volume Up, your phone will reboot and enter the in-depth test mode - all user data on the phone will be erased - I recommend you perform a data backup prior to applying.

​

Step 10 - Now type

fastboot reboot

And there you go! Your phone will reboot and you can set it all up again, with the ability to follow the rooting tutorial below, and you can also install GSIs/custom ROMs/recovery!

Rooting with Magisk

Tutorial

:

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

.

Step 1 - Download the latest Magisk Manager on your phone.

Go to the link above, click the latest MagiskManager-vX.X.X.apk you see in the list to start the download, open the file and install.​

Step 2 - Download the latest Realme Official Rom from Software Update - realme depending on your region.

Step 3 - Get your ROM you downloaded above, it should be a .ozip archive. Add .zip extension to it. Extract it.

Step 4 - You should now get a folder like shown below, and..

Copy the boot.img to your phone's /sdcard/ folder (where the Android, DCIM, Download, and more are present, just drop it in there).

And here's how it shoud look inside your phone's storage in the end.

​

Step 5 - On your phone, open up Magisk Manager.

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 6 - Link your phone to your PC, and grab the file the Magisk Manager created. It's located in your downloads folder, called magisk_patched.img.

Step 7 - Paste it where your ADB & Fastboot (Platform Tools) are located, along with the vbmeta.img file located in Stock ROM's images folder from earlier, where you grabbed the original boot.img.

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 8 - Alright, we're ready to root! Turn off your phone, and get in fastboot mode like we did during the bootloader unlocking (Power + Volume Down).

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

Step 10 - 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 8 and try again.

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

​

You're done! Your phone will reboot, hopefully, without a hitch! Open up Magisk Manager, 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.

Getting EdXposed (Not recommended unless really needed, requires Magisk)

I very much do not recommend to EdXposed your phone unless you have a very good reason for it. It's a pain to pass SafetyNet, doesn't get updated as often as it could/should and has very niche use cases for which it's worth it.

That said, I do include it here for people who know what they're getting into and want the up-to-date instructions on how to do it.

Tutorial

:

This procedure requires to be rooted with Magisk. See the tutorial above

.

Step 1 - Inside Magisk Manager, go to the Modules tab (4th icon), click the search button (bottom right) and search Riru.

Step 2 - Install the Riru (Riru - Core) module, Activate it and Reboot.

Step 3 - Install the Riru - EdXposed (YAHFA or SandHook, both work fine) module, Activate it and Reboot.

​

Step 4 - Download and install the latest EdXposed Manager in the exact same way you did with Magisk Manager.

Step 5 - Open it up, it should say EdXposed Framework is active!

​

You're done! You should now be able to install EdXposed modules.

That said, you will have issues leaving it like this. You need to hide the fact that your phone is EdXposed.

It's a bit more complicated than hiding Magisk, but it's doable! Check out the Passing SafetyNet tutorial further down below, it's quick and easy.

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

Tutorial

:

For Magisk Rooted Phones

Enable Magisk Hide inside Magisk Manager's settings.
​

For EdXposed Phones

Again, I highly recommend not EdXposing your phone and sticking to just Magisk if you can help it.

You should also know that this method will show you're passing SafetyNet inside Magisk but it's a pain to do and isn't as well hidden as Magisk alone.

Step 1 - Do the step for Rooted phones listed above if not done already.

Step 2 - In EdXposed Manager, get the HiddenCore Module and activate it.

Step 3 - Now, in the side-menu: Compat List > tick HiddenCore Module.

Step 4 - Then, go to Settings > Framework > Enable "App List mode".

Step 5 - Finally, Applications(Black List) and tick: Android Services Library, Chrome, Google Play services, Google Play Store, Google Services Framework
​

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

Installing GSI's (Custom ROMs)

Tutorial

:

Step 1 - Pick your poison in the Treble Forums!

Check the top of this thread if you want to see my recommendations with links to them.

Step 2 - Download the chosen ROM, A/B Arm64 version (usually nicknamed b), with (g) or without GApps (v), rooted (S) or not (N), that's entirely up to you.

It should be an .img.xz file, extract it and you'll get an .img file.​

You're ready to flash. Make sure to backup your phone's data before continuing on with this tutorial, as wiping it is required for installation!

Step 3 - Put your phone into fastboot mode (Power + Volume Up) and link it to your PC.

Step 4 - Move the .img file you downloaded to your ADB & Fastboot (Platform Tools) folder, and rename it to system.img.

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

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

fastboot reboot fastboot
fastboot --disable-verification flash vbmeta vbmeta.img
fastboot flash system system.img
fastboot -w
fastboot reboot

Your phone will now reboot on its own, using the new ROM you picked earlier, set it all up and enjoy!

Relock your bootloader

Tutorial

:

Step 0 - Back to stock ROM by flashing it in stock recovery.

Step 1 - Download the unlock tool again to apply to exit the in-depth test.

​

Step 2 - Click “Apply to exit in-depth test”. You should manual operation enter the Fastboot mode(Press both the Volume up button and the Power button when power is off).

Step 3 - In the Fastboot mode, use the engineering command below on your PC to re-lock the bootloader.

- Enter the command: adb reboot bootloader

- Press “Enter” on your keyboard

- Enter the command: fastboot flashing lock

- Press “Enter” on your keyboard​

Step 4 - Press the Volume Up button to select the “Lock bootloader” option (or press the Volume Down button to select “Do not lock bootloader" and keep it unlocked).

​

Step 5 - Then enter command fastboot reboot. The phone will reboot and exit the in-depth test mode. All user data on the phone will be erased - we recommend you perform a data backup prior to applying.

Frequently Asked Questions (FAQ)

Q: Will unlocking my bootloader void my warranty?

A: No, it will not. Unless you brick your device.

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.​

Q: I tried unlocking my bootloader but, PC doesn't detect my phone, even though it's in fastboot mode and connected. Help?

A: Here are some things you can try:

- Try another USB port.

- Try another USB cable.

- Install the Realme USB Drivers manually from here.​

Q: Alright, I did a bunch of manipulations but something went wrong, or I'm tired of it, how do I reset everything, etc..

A:

Step 1 - Backup all the data you might have on your phone to restore it after the manipulation!

Step 2 - Download the stock ROM corresponding to your region from Software Update - realme.

Step 3 - Put the stock rom in your mobile Internal Storage or in Memory Card.

Step 4 - Put your device into recovery mode (Turn it off, then Power + Volume Down) and flash that in recovery.

Step 5 - Reboot to stock rom, all good and fresh!​