[Oppo Realme 3 ROMs, Kernels, Recoveries, & Other D] fawazahmed0:
All Praise and All Thanks To God

Things Required: Unlocked bootloader, TWRP file, Disable_Dm-Verity_ForceEncrypt.zip file, External SD card, adb and fastboot drivers installed in pc

Steps to flash TWRP:

Note: This will erase all your data, so please backup important things like photos,contacts etc , before following this procedure

1. Unlock bootloader if not done yet.

see this guide to unlock:

https://xdaforums.com/realme-3/how-to/guide-bootloader-unlock-guide-realme-3-t3999463

2. Copy Disable_Dm-Verity_ForceEncrypt.zip in your External SD Card. Power off your phone by pressing power button, after your phone is powered off ,hold volume down + power button to boot into fastboot mode

3. Commands to execute:

fastboot flash recovery twrp.img

fastboot -w

fastboot oem reboot-recovery

4.Touch will not work for 40 seconds, just wait until touch starts to work.

5. Now very Important part, take full twrp backup in your external sdcard and keep it safe in your pc (This backup will be helpful in future incase you soft brick your device or have some issues in your phone such as network or volte or some other **** not working)

6. Install the Disable_Dm-Verity_ForceEncrypt.zip using twrp

7 .Reboot, Done!

---------------------------------------------------------------------------------------------------------------------------------------------------------------

Please Note:

1. There will be red blinking notification due to flashing Disable_Dm-Verity_ForceEncrypt_Quota_.zip, you can just ignore it. If you don't like the red bliking notification, just restore your nvdata, vendor and system from twrp backup.

2. Don't relock bootloader after flashing twrp, it might brick your device. (Don't use fastboot flashing lock)

3. You cannot restore preloader_a and preloader_b partitions using twrp, only you can backup the two partitions, so always uncheck these two partitions before performing a twrp restore.

4. Please don't use minimal adb and fastboot tool, use Latest ADB and Fastboot Installer tool , link is provided below.

Features:

1. You can directly flash ota zip from twrp, but you have to decrypt it first using ozipdecrypt from here:

https://github.com/bkerler/oppo_ozip_decrypt

2. Fstab includes all the partitions to backup and restore

Links:

TWRP : https://github.com/fawazahmed0/android_device_Realme3_RMX1821/releases

Disable_Dm-Verity_ForceEncrypt.zip: https://zackptg5.com/android.php#disverfe

Latest ADB and Fastboot Installer: https://xdaforums.com/android/general/tool-adb-fastboot-installer-tool-windows-t3999445

Device Tree: https://github.com/fawazahmed0/android_device_Realme3_RMX1821

How to boot to recovery:

A. From adb:

adb reboot recovery

adb shell reboot recovery

B. From fastboot mode:

fastboot oem reboot-recovery

C. There is no way to boot to recovery using power + vol down button after unlocking your bootloader. Only above two methods will work. (Don't relock bootloader after flashing twrp, it might brick your device)

Warning: if you did not follow the steps properly, either the twrp will be blank or you will be in endless recovery mode bootloop or you will revert back to stock recovery next time you try to boot to twrp.

Contributors:

[MENTION=8377831]chankruze[/MENTION] for his device tree and stable twrp:

https://github.com/N00bTree/android_device_realme_spartan

Blackcat: Got to know verity can be disabled by modifying vendor partition

[MENTION=4894965]haditriw[/MENTION]: For testing and verifying vendor can be modified in this phone

[MENTION=7607152]ashu7073[/MENTION] for fixing screen issue and for his device tree

[MENTION=9980419]jeffalaiza[/MENTION] for making twrp ports

[MENTION=6037748]Zackptg5[/MENTION] for his Disable_Dm-Verity_ForceEncrypt.zip

[MENTION=4544860]osm0sis[/MENTION] for his system_root mount support in AK3 which Disable_Dm-Verity_ForceEncrypt.zip uses