[Realme 5 Pro Guides, News, & Discussion] greenys':
Realme 5 Pro global ROM for Realme Q

* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.

{Mod edit}

If you know exactly what you're doing then jump go step 5)

1) Introduction:

Oh sheet. Here we go again. Hope you guys will make use of this little guide for at least 20 RMQ users PMed me here on xda, on Messenger and on Telegram to help them install RM5P ROM on their RMQ device and had to dump them for I had no idea. Now that I have tried it myself I'll try to do. I've an RMQ device 4+64GB variant which I ordered from AliExpress for 161$/148€ ( in September of 2019 ) and tried loads of tweakings on stock ROM to make it more fitting to a person like me for daily usage but I don't think I have to say... without much success. In this guide I'll try to show/tell you how to make with COS without weeks of testing and debugging I've been through on stock RMQ ROM since October of 2019.

2) Personal reasoning:

I heard there are people who like Color OS as it is existed but still I wouldn't want to believe you even after I talked with some of you. Since the very first day I held my device in my hands I started seriously despising Color OS for I've been a purist, minimalist and stock Android fan for 10 years now and always tried to stick to "clean" ROMs such as LOS, PE, Aosp Extended, AOSIP because of reasons. This is mainly because (Chinese) Android skins modify system/vendor so heavily that they prohibit or interfere (with) basic Android functions that work well on stock-like ROMs. {Mod edit}

3) Features:

Mostly same as on RMQ ROM but...

More languages are supported by the system.

Most of Oppo's restrictions are removed {Mod edit}

3.5) Known bugs:

None. You tell me!

4) Basic terms:

RMQ: Realme Q

RM5P: Realme 5 Pro

RMX1971CN: Realme Q device codename.

RMX1971EX: Realme 5 Pro device codename. Both are used to distinguish China and Global/India ROMs.

COS: Color OS

ROM: Read Only Memory (means for us the OS we use to flash with TWRP/Fastboot)

OS: Operating System

TWRP: TeamWin Recovery Project (the one recovery we use widespread to flash custom ROMs and fixes on our mobile device)

FASTBOOT: A mode of your device and a script on PC that you can use to flash stuff via USB cable onto your device. This is necessary if you are on stock recovery.

FLASHING: The process of writing onto our mobile device's ROM that wouldn't necessarily be possible without using external tools if TWRP wasn't there for us. Mobile device companies don't really support or encourage users to do this.

BOOTLOADER: Default state is locked on our and on most devices. Without unlocking it, it would be extremely hard if not impossible for us to flash custom ROMs on our mobile phones. You can unlock your bootloader by following this guide if you haven't already done that because without unlocking it, flashing global ROM on your device which comes with Chinese one preinstalled will likely be impossible at least not known to the RM5P/RMQ community so far.

MAGISK: Systemless solution which grants root access (admin-like) to the user without really tampering the ROM system, this way granting higher stability than it's predecessors.

5) Precautions:

If you aren't an advanced user and don't really know what you're doing follow the steps closely and it's highly advised to read the basic expressions to understand better what's happening just in case something goes wrong so you can fix it.

External SD card is highly recommended to use because to make this work formatting data is quite likely needed.

If you want to bring your data with you from your current ROM make sure to do either Titanium or Migrate backup and save it to your external SD card.

TWRP for RMQ (this one I highly recommend to use for it has a wide range of features and options that come in handy, unlike normal TWRP)

Magisk if you want root or/and want to pass Google's Safetynet completely.

Magisk COS beta FIX from here (step 6)

Modified vbmeta.img from here. (step 6)

Magisk modules: Busybox and MagiskHide Safety Props Config. (from inside Magisk Manager after successfully rooting with Magisk flashable zip file)

6) Prerequisites:

{Mod edit}

Probably formatting your data.

This means all your stuff, apps, data will be gone after you do this so be prepared and save your stuff to your external SD card.

7) Installing:

A) If you're coming from custom ROM then:

1) Wipe everything (except internal and external storage) including /data/system/dalvik/cache/ but not vendor and vendor shouldn't even appear in the list when wiping anyway.

2) Flash the ROM.zip

3) Flash TWRP.IMG as recovery and again flash it as boot.

4) Flash vbmeta.img as vbmeta.

5) Reboot even if you get notification "no OS is installed".

6) If you're stuck on boot logo for 15+ minutes or bootloop then turn off your device volume up+power then right after shutdown vibration and black screen enter fastboot mode by holding volume down+power, from there select recovery and you should be back to TWRP recovery

7) Select wipe and format data by typing "yes". This will delete all data on internal storage so take care.

8) Reboot to system

9) The device should boot up to COS. Do the initial setup and after that reboot to TWRP recovery again.

10) Flash Magisk.zip

11) Reboot to system

12) Enter Magisk Manager and disable core only mode

13) Reboot to TWRP recovery... again.

14) Flash Magisk COS Fix beta.zip

15) Reboot to system.

16) Check Magisk Manager. Core only mode should be turned off. Check SafetyNet Status. BasicIntegrity should be true now.

17) Download and install MagiskHide SafetyProps and Busybox from Magisk downloads.

18) Reboot to system (normal reboot)

19) Enter Magisk Manager and see if the two installed modules are active. (If yes you probably done everything well. If not, something is fishy.)

20) Download any terminal emulator app, I recommend Termux. Open it and by typing "su" without quotation marks and pressing enter you should grant root access to the terminal app you use. Now type: "props" and press enter.

Type 1) and press enter as edit device fingerprint.

Type f) and press enter as pick from certified fingerprint.

Type 6) and press enter as Google (you can use others too but I used this one so it should be tested).

Type 21) and press enter as Google Pixel 3a XL.

Type 1) and press enter as Android version 9.

Type y) and press enter as yes.

21) Reboot to system and open Magisk Manager. Check SafetyNet Status. Now both cts profile and basicintegrity should be true.

22) Enjoy your better Color OS.

B) If you're coming from stock rom:

If you haven't unlocked your device's bootloader it's time to do it.

After unlocking install TWRP for Realme Q. Then follow the steps above for they're the same.

ROM modified/made by

: Birman34

ROM data/turorial written by

: greenys'

ROM brought to you by

: Realme 5 Pro/Realme Q global Telegram group

{Mod edit}

ROM information:

Security patch date: 2020.01.05.

Kernel version: 4.9.112

Build number: RMX1971EX_11.A.16

Android version: 9.0