How to root Oppo Realme 2 I couldn't find a guide online to root my Oppo Realme 2 (RMX1805, Color OS Version 6.0, Android Version 9). So how can I root my Oppo Realme 2?

Update: I have unlocked my bootloader following the instructions here.
first step is unlock bootloader, which you have done already. i will post this step as mandatory  

1) unlock bootloader: WARNING all data lost  


download latest platform-tools to PC
enable OEM unlocking in developer options
reboot device into bootloader mode (keep holding Volume Down while rebooting or power on device with Volume Down + Power)
connect device with usb cable and install usb drivers for PC
navigate to folder platform-tools from cmd.exe
unlock bootloader from fastboot (confirm with Volume Up)

fastboot devices
fastboot flashing unlock





2) boot custom recovery without modifying/flashing device


download custom recovery TWRP into platform-tools folder
boot TWRP from fastboot (do not flash)

fastboot boot twrp.img

DO NOT swipe to allow modifications of system
wait 30 seconds then install adb usb drivers for PC
tap the icon ≡ lower right corner and check the log for
a) Data successfully decrypted (or no error)
b) Failed to mount '/data'




3) dump the current boot partition from device (depending on mounting /data a) successful or b) failed)  


a) backup boot.emmc.win from TWRP


TWRP - tap Backup - select Boot partition
copy TWRP/BACKUPS folder to PC via MTP

b) backup boot.img from adb

adb devices
adb pull /dev/block/bootdevice/by-name/boot boot.emmc.win





edit: (other method)


c) extract boot.img from OTA (stock ROM) with ozipdecrypt.py
if for whatever reason TWRP is not available (or not booting) you still can find stock ROM for your device. However, flashing boot.img from download is risky, make 100% sure that this build number is matching your device  

ro.build.description=S88051AA1-user 9 PKQ1.190319.001 eng.root.20190830.025347 release-keys
ro.build.display.full_id=RMX1805_11_A.60_190830



install Python 3.8.2
install pycryptodome

pip3.exe install pycryptodome

download and extract oppo_ozip_decrypt-master.zip
download stock ROM
run ozipdecrypt.py from cmd.exe

python.exe ozipdecrypt.py RMX1805EX_11_OTA_0600_all_LtoqeM8aS1Gq.ozip

check folder out and rename out\boot.img into boot.emmc.win (just to not confuse with encrypted boot.img, name of file doesn't matter)



(i have uploaded the converted stock ROM here, recovery.img is missing)





4) root your device with Magisk


a) install Magisk directly from TWRP (may brick device)


copy Magisk-v20.4.zip to Storage or MicroSD via MTP
TWRP - tap Install - select Magisk-v20.4.zip - Swipe to confirm Flash
reboot device (TWRP - tap Reboot - tap System)






b) patch boot.emmc.win "offline" with Magisk Manager


reboot device (TWRP - tap Reboot - tap System)
copy boot.emmc.win to Internal Storage via MTP
install + launch MagiskManager-v7.5.1.apk
enable Advanced Settings - Preserve force encryption
tap on Install (1) - Install (2) - Select and Patch a File
allow permissions for storage
navigate to Internal Storage and select boot.emmc.win
(this will start patching immediately but does not modify your device - no worry the text "Flashing.." is misleading)





(5) flash the rooted boot image from fastboot


copy magisk_patched.img to PC via MTP
reboot device into bootloader mode (keep holding Volume Down while rebooting or power on device with Volume Down + Power)
boot magisk_patched.img without modifying/flashing device (for testing purposes)  

fastboot devices
fastboot boot magisk_patched.img

if it works: reboot device into bootloader mode
flash magisk_patched.img to boot partition (may brick device)  

fastboot flash boot magisk_patched.img
fastboot reboot







Unbricking (method b) only)


reboot device into bootloader mode (keep holding Volume Down while rebooting or power on device with Volume Down + Power)
flash your backup of original boot.emmc.win from fastboot  

fastboot devices
fastboot flash boot boot.emmc.win
fastboot reboot