Realme 8 MEGAGUIDE
==================
If you have any questions at any moment feel free to message Realme 8 AOSP on Telegram or open a new Discussion on GitHub. Also check the FAQ (frequently asked questions)
Disclaimer - We WON’T be responsible if anything happens with your device. - Neither Windows 7 (old python version) nor RealmeUI 4 (lk method was patched) are supported
ℹ️ If you have unlocked already skip to [EXTRA] Installing a Custom recovery and ROM
✴️ Make sure to read and do all of the steps to avoid your device being bricked.
📛 WARNING: RUI4 disables fastboot access if previously unlocked, only upgrade to RUI3 until it is resolved.
✨✨✨ You can revert all the changes by following Revert
Table of Contents
Open Table of Contents
0. Back up your system partitions
[!CAUTION]
BEFORE ATTEMPTING ANY OPERATIONS FOLLOW THE Backup guide (in wiki)
I. Unlocking
Prerequisites
- Mediatek USB
- USBDk
- Python from Microsoft Store
- MTK Client archive
- SP Flash tool
- A.19 RUI2 Firmware
- C.18 RUI3 Firmware
1. Installing prerequisites
-
Mediatek USB
-
Extract and enter the folder of Mediatek USB driver.
-
Find the .inf file, right click and press install

-
-
Install USBDk
-
Install Python from Microsoft Store
🛑 Do not disconnect the phone during the flashing and unlocking processes
2. Downgrade to RUI2
-
Extract MTK Client and open a cmd in the folder where you extracted the files

-
Get the needed libraries using command
python -m pip install -r requirements.txt. Send the payload withpython mtk payload. It should look like this:
-
Make sure your phone is powered off, hold down both Vol+, Vol- and connect the usb cable. MTK Client should output something like this:

-
The phone is now in BROM mode. Run the SP Flash tool
flash_tool.exe -
Click on
Options > Option...and make sure the right COM Port is selected, UART enabled and baud rate is set to 921600.
-
Unpack Haadi’s A.19 RUI2 Firmware and load the
scatter.txtfile
🛑 Remember to uncheck:
opporeserve2andcdt_engineeringopporeserve2 (Signed partition) cdt_engineering (Digital warranty codes) 

-
Remember to have
Download Onlymode.
-
Avoid moving your phone so as to not disconnect anything. This process will take up to 15-20 minutes. To get A.19 on your phone, click
Download. No progress? Click me
-
If everything goes well, it should look like this.

-
Before doing anything, we’ll WIPE the phone for safety. Hold down Vol-, and power button, In recovery select wipe data, and then select Format Data.
3. Unlocking the bootloader
-
Open the console in MTK Client’s folder
-
Reboot your device, turn it off and Hold down both Vol+, Vol- - (Don’t leave the buttons until the command is done)
-
Type
python mtk e metadata,userdata,md_udc- This assetscommand wipes your data. It should look like this:
-
Unlock the bootloader using command
python mtk da seccfg unlock, the output should look like this
🔄 After this, turn on your phone. First boot will take around 5-20 minutes.
📛 You will see
dm-verity corruptionandorange statewarnings. Press the Power Button to continue. These are normal and will be patched later in the guide. -
Your bootloader is now unlocked.
❗ Check FAQ (frequently asked questions) if something does not work or you have questions
4. Upgrade to RealmeUI 3
-
Open a cmd again in MTK Client’s folder

-
Send the payload with
python mtk payload:
-
Make sure your phone is powered off, hold down both Vol+, Vol- and connect the usb cable. MTK Client should output something like this:

-
The phone is now in BROM mode. Run the SP Flash tool
flash_tool.exe -
Click on
Options > Option...and make sure the right COM Port is selected, UART enabled and baud rate is set to 921600.
-
Unpack SG’s C.18 RUI3 Firmware and load the
MT6785_Android_scatter.txtfile
-
Remember to have
Download Onlymode
-
Place your phone on a stable surface, to not disconnect anything. This process will take up to 15-20 minutes. To get C.18 on your phone, click
Download. No progress? Click me
-
If everything goes well, it should look like this:

-
Before continuing, you’ll need to WIPE the phone for safety. Hold down Vol-, and power button, In recovery select wipe data, and then select Format Data.

❗ Check FAQ (frequently asked questions) if something does not work or you have questions
II. Patching lk- qetting fastboot access and removing dm-verity and orange state warnings
❕ SKIP ONLY IF you unlocked with DEEP TESTING
🛑 Do not disconnect the phone during the process
-
Open the console again in
MTK Clientfolder
-
Make sure your phone is powered off, hold down both Vol+, Vol- and connect the usb cable.
-
Run the command
python mtk r lk lk.bin. There will now be alk.binfile in MTK Client folder.
-
Go to this website. Upload your lk.bin file and the
lk-patched.binwill be downloaded. Move it toMTK Clientfolder. If the website gives an error check FAQ #2
-
Run command
python mtk w lk lk-patched.bin
Check the FAQ if you have any issues
III. Installing a Custom Recovery and ROM
Prerequisites
- latest platform-tools - you will get errors if you use old platform-tools
- QcomMtk-Driver - driver
- ❗️ If you get an error:
fastboot: usage: unknown reboot target recoverytry this adb installer ADB and Fastboot ++ - only flash once (you should not need to reflash it) - vbmeta image - vbmeta.img file
- a custom rom package - check out the telegram group for ROMs
- GAPPS package - recommended MindTheGApps for Android 13
- example recovery images:
- 🎉 We now have OrangeFox recovery 🎉 - technically compatible with any rom
- lineage-os recovery - compatible with Pixel Experience and Lineage OS (and others, check the Custom ROM’s description)
- leaf-os recovery - use ONLY with Leaf OS 2
1. Rebooting to fastboot
Your device needs to be turned on
- Open a command prompt window in the platform-tools folder.
- On your phone, enable Developer Options and enable USB Debugging.
- In the platform-tools folder open a command prompt and run
adb devices. You will seeAllow USB Debugging for ...on phone, checkAlways allow...and hitAllow. - In the command prompt run
adb reboot boootloader. Phone will reboot to a screen that saysfastboot_unlock_verify ok.
❗ Check FAQ (frequently asked questions) if something does not work or you have questions
2. Installing custom recovery and sideloading custom rom
⚠️ If switching between custom roms skip step 2.
⚠️ If the required recovery has not changed you may skip step 3 as well, and run
adb reboot recoverydirectly.
-
Move the
recovery.imgandvbmeta.imgfiles to the platform-tools folder. -
Run the command
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img. It should show
-
Run the command
fastboot flash recovery recovery.img. The phone should showUSB Transmission ok/
-
Now, reboot to recovery mode with the command
fastboot reboot recovery
-
In recovery, go to
Factory reset > Format data/factory reset > Format data. After factory reset go back and selectApply update > Apply from ADB. You should see this when runningadb devices:
-
Now run the command
adb sideload custom-rom.zip(replace custom-rom.zip with custom rom package name). For example I flashed LeafOS 2:
-
ONLY do this step on custom roms WIHTOUT GAPPS / GMS (check the rom’s description to check). Select
Apply update > Apply from ADBagain and runadb sideload gapps.zip(replace gapps.zip with package name).
-
Once finished, in the recovery go back to
Reboot system now. The phone will reboot into your Custom ROM.
⚠️ If you get a “Signature verification error” on your phone, click
Yesto continue anyways, this goes the same to any other ZIPs you flash.
IV. Rooting

1. With Magisk
You will need
- MTK Client - donwload on your pc
- Magisk Manager (apk file) - download on your phone
- latest platform-tools
-
Open the console in MTK Client’s folder
-
Run
python mtk r boot boot.img. Turn your device off, hold down both Vol+, Vol- and connect the device to the computer. -
A
boot.imgfile will be created in the folder. Turn your device on and copy the file to it. -
Navigate to where you donwnloaded the Magisk Manager apk file and install it.
-
Open Magisk Manager and click install next to
Magisk.
-
Select
Patch vbmeta in boot imageand clickSelect and patch a file. The file picker will open, Find and select theboot.imgyou extracted.

-
When you see this screen, the patching is done and you will be givne the path of the patched
.img file. Copy that file to your computer in theplatform-toolsfolder.
-
Connect your pphone to your computer, enable usb debugging on your phone and, in the
platform-toolsfolder open a Command Prompt and run the commandadb devices. Accept USB Debugging on your phone and runand reboot bootloader. The phone will reboot to afastboot_unlock_verify okscreen. -
Now in the cmd run the command
fastboot flash boot <>and hit Enter. Once successfully transferred, runfastboot reboot -
The phone will restart and you are now rooted with Magisk! ### To remove Magisk root, select
Uninstall > Complete uninstallin the Magisk Manager app.
2. With KernelSU
🚫 ONLY WORKS ON CUSTOM ROMS (DO NOT ATTEMPT on RealmeUI)
You will need
- KernelSU zip file - download on pc
- KernelSU manager (apk file) - Download this on your phone.
⚠️ If you get a “Signature verification error” on your phone, click
Yesto continue anyways, this goes the same to any other ZIPs you flash.
-
You need to be in recovery mode; run
adb reboot recovery -
In recovery select
Apply update > Apply from ADBand runadb sideload kernelsu.zip. -
When completed tap
Reboot system now. Your phone will restart. Navigate to where you donwnloaded the KernelSu Manager apk file and install it. -
The app should show like this indicating thaat everything has been done correctly:

-
If you want to remove KernelSU root, extract the
custom-rom.zipyou downloaded to flash the ROM, find and move theboot.imgto the folder where adb is and run these commands in a command prompt:
adb reboot bootloaderfastboot flash boot boot.img
🎴 More extras in WIKI
Special thanks & credits
Ben - Made everything possible by making the kernel for Realme 8
bkerler - developer of MtkClient
Roger - creator of oplus-unlock
Haadi - RUI2 firmware
SGtriangle - RUI3 firmware
HowWof - A lot of help, Leaf OS 2 for RMX3085 developer
Ripper_Hybrid - provided KSU zip file, helped with wiki guides
MrPotato6 - Info and screenshots for Magisk rooting
Nand kumar - original poster of backup guide
Zako Chan - Information about walkthrough with downgrade
Tony stark - RUI2 unlock guide
Original Custom ROM Guide
Magisk & Developers
KernelSU & Developers
Banner and others via Canva - Refer to Canva’s CLA for more info
Text images made in Drawing
Telegram: Realme 8 AOSP Witten by me with 🫶.
No guarantees are given at any point. Use with caution. Neither me nor contributors are responsible for any damage you do to your device(s).