Updating a Custom ROM - driedpampas/realme-8-megaguide GitHub Wiki
If your ROM has an OTA Updater use that if possible to install updates.
Prerequisites:
excluding recovery image and vbmeta the prerequisites remain the same: Prerequisites
1. Connect your phone to your PC amd allow USB Debugging. Reboot to recovery mode with abd reboot recovery
2. In recovery, go to Factory reset > Format cache partition and hit Yes. Go back and select Apply update > Apply from ADB. You should see this when running adb devices:
3. Now run the command adb sideload custom-rom.zip (replace custom-rom.zip with custom ROM package name). For example, I updated Pixel Experience Plus to the latest release:
You might need to sideload GApps again
4. If you were using KSU you'll need to reflash it. After the update sideload finishes run adb sideload kernelsu.zip (replace kernelsu.zip with the filename of your kernelsu flashable zip).