/realme-8-bootloader

Realme 8 4G Bootloader unlock - Without deep testing

MIT LicenseMIT

Warning

This guide still works, but isn't supported by me, i left this device.

Disclaimer

  • This method will wipe your phone and temporarily downgrade your phone to RUI2
  • Read this tutorial step by step to don't miss anything.
  • This method doesn't use Deep Test

Use this tutorial only with RUI3


Requirements

1. Drivers - libusb-win32

  1. Download libusb-win32 and install it
  2. Run libusb-win32
  3. Take actions at libusb-win32 window, selecting install a device filter

  4. Before pressing next, Connect your phone to your computer, make sure its powered off, as it is: Hold down Vol+, Vol-, and power button
  5. Remember to not release the BROM buttons, it can be a quite hard, but with your second hand you can operate the mouse. Click next
  6. You should see there a MediaTek USB Port device, Select it and Click Install

  7. After installing, Leave your phone shut down. We will get into the same state in downgrading to RUI2

2. Downgrade to RUI2

  1. Extract and enter to the folder of MTK Client archive

  2. Open the console in the MTK Client's folder, a tip how to do it faster below

  3. Run the payload by simply using command python mtk payload, It should look like this:

    If there is any error with python, you dont have the libaries. get them using command python -m pip install -r requirements.txt


  1. Make sure your phone is powered off, Make sure your phone is connected to your computer, as it is: Hold down Vol+, Vol-, and power button - (Don't leave the buttons until the bypass is done)

  2. MTK Client should output something like this:

  3. Leave the phone alone in the BROM, Run the SP Flash tool [flash_tool.exe]

  4. Click on Options > Option...

  5. Make sure the right COM Port is selected, UART enabled and baud rate is set to 921600.

  6. Get Haadi's A.24 RUI2 Firmware and unpack it

  7. Load scatter from Haadi's Firmware

Remember to uncheck:
opporeserve2 [Signed partition] cdt_engineering [Digital warranty codes]

11. Remember to have download only mode

12. Place your phone on a stable surface, to not disconnect anything. This process will take up to 15-20 minutes, to get A.24 on your phone, click Download

13. If anything wouldn't fail, it should look like this

  1. Before doing anything, remember to WIPE down your phone for safety. Hold down Vol-, and power button, In recovery select wipe data, and then don't select the option to retrieve contacts, etc. It will cause errors, select the clean wipe. Act as you had RUI2 from the beggining LOL

3. Unlocking the bootloader - OFP Partitions

  1. Open the console in the MTK Client's folder

    1. Run the payload again by using command python mtk payload
    2. Do what before: Make sure your phone is powered off, Make sure your phone is connected to your computer, as it is: Hold down Vol+, Vol-, and power button - (Don't leave the buttons until the bypass is done)
    3. Check if output of MTK Client was same as before, if it is then payload was sent successfully
  2. Leave the phone alone in the BROM, Run the SP Flash tool again [flash_tool.exe]

  3. Click on Options > Option...

  4. Make sure the right COM Port is selected, UART enabled and baud rate is set to 921600.

  5. Things are now getting a bit different. Download and extract Decrypted OFP Partitions

  6. Select the scatter from Decrypted OFP Partitions

  7. These things should be only selected. If aren't, you have selected the wrong OFP/Firmware/Scatter

  8. Check if mode is Download Only, if so: click Download button. Remember to also put your phone in a stable location.

5. Unlocking the bootloader - MTK Client

  1. Install USBDk

  2. Open the console third time in the MTK Client's folder

  3. Reboot your device, turn it off and Hold down Vol+, Vol-, and power button - (Don't leave the buttons until the bypass is done)

  4. Type python mtk e metadata,userdata,md_udc - This command wipes your data. It should look like this:

  5. Unlock the bootloader using command python mtk da seccfg unlock, the output should look like this

    After this, unlock your phone. First boot will take up to 5-20 minutes. Don't panic.

    Bootloader is unlocked, When you will boot your device, press one time power button to skip dm-verity, there also will be a 5-second orange-state indicator

    • Green state means the device is locked, it shouldnt show that it's locked on-boot
    • Yellow state means that an alternate keystore was used to verify the boot image
    • Orange state indicates that the device is unlocked.
    • Red state means that a device in the locked or verified state had a boot image that did not verify.
  6. You can boot into RUI2, in order to setup it for updating into C.18, Currently there will be three updates. [A.24] > C.07 > C.14 > C.18 TIP: Remove your sim card, and don't connect temporarily to any networks to avoid longer OOBE times

Congrats, you now have a unlocked phone with the latest version of RUI3!


[BONUS] Getting fastboot via oplus-unlock

Do this ONLY AFTER UPDATING to your desired RUI3 version (ex. RUI3)


  1. Read your lk file, using command python mtk r lk lk.bin, Go to BROM mode, after read it will be located in the same folder as your mtkclient.

Note: if lk isn't working, try reading lk2. same with writing.

  1. Open Roger's website for lk.img/lk.bin patching
  2. Choose your lk file, Upload it using another button
  3. It wil automatically download it, put the lk-patcher.bin file into mtkclient folder, flash it using command python mtk w lk lk-patched.bin
  4. To check if fastboot is avalible, use command adb reboot bootloader in Android Platform Tools
  5. There should be a small string with ok on the ending of it, if there is something like this then you have successfully unlocked fastboot

To return into android, use fastboot reboot in Android Platform Tools


Special thanks

Zako Chan - Information about walkthrough with downgrade
Tony stark - Provided RUI2 unlock guide.
MtkClient - Basically, without that tool we wouldnt be able to do the unlock.
Haadi - RUI2/A.24 Firmware files
HowWof - A few of suggestions, thanks

Telegram: Realme 8 Discussion, Realme 8 Updates, Realme 8 AOSP

Thanks for reading, written by lemonek with 💖

Tested on 8/1/2023