[Android General] pritish1998:
Hello everyone! So after the new mediatek DAA and SLA protection bypasses you can find github repo of here , using the bypass we are able to use SPFlash Tool, here is a guide how you can do it! This guide is for Realme Mediatek devices only . DON'T DO ANY OF THESE IF YOU HAVE SOMETHING ELSE!

ALWAYS USE DOWNLOAD ONLY MODE OF SP FLASH TOOL.

DON'T TOUCH ANYTHING RELATED TO FORMAT ON SP FLASH TOOL! (IT'S WRITTEN EVERYWHERE,

YOU WILL LOSE YOUR IMEIS IF YOU USE FORMAT ALL + DOWNLOAD.

YOU ARE SAFE IF YOU USE DOWNLOAD ONLY.)

Windows Method

Requirements:

Device Firmware (Download as per your device model)

Bypass Tools Pack

SP Flash Tool

Install Python from Windows Store

libusb-win32 - Having Issues? Use this.

Get usbdk installer (.msi) from here and install it

MAKING YOUR FIRMWARE READY:

1) Clone this repository : oppo_decrypt

git clone https://github.com/bkerler/oppo_decrypt

or download the repo zip and extract it

2) Extract the downloaded firmware and move the ofp file to the oppo_decrypt folder

3) In the oppo_decrypt folder open cmd and type these:

pip3 install -r requirements.txt

(Make sure you have python and pip installed)

4) All the requirements are installed, now it's time to decrypt the ofp:

python3 ofp_mtk_decrypt.py name_of_file.ofp out

(Replace the ofp name with your actual ofp name)

5) After the decryption now its time to merge superimages (THIS IS ONLY FOR DEVICES WITH DYNAMIC PARTITIONS, IGNORE THIS STEP FOR NON-DYNAMIC DEVICES)

- Install ubuntu from wsl : Guide for that

- Run ubuntu and install simg2img

sudo apt install simg2img

- Go to the path of your extracted ofp

e.g.

cd /mnt/d/oppo_decrypt/out

(go to the path of your out folder)

- Check the supermap.csv file

nano supermap.csv

- check your region and note the superimages names

- Now to merge them :

simg2img super.0.xxxx.img super.1.xxxx.img super.2.xxxx.img super.img

(Replace the xxxx with the super images' names from your region.)

- After this you will get a Super.img in that out folder

- Now go to scatter file in out folder and edit it (Search Super.img in that and change is_download=false to true)

FLASHING THE FIRMWARE:

1) Extract the bypass zip

2) Go to driver folder, find the .inf file right click and press install.

3)Download this file and install it, after installing power off phone and connect to pc while holding Vol+- (don't leave the buttons after connecting) . You might need this driver as well if it's not detected.

Press next, connect your device to PC while holding Vol+- buttons (your device needs to be powered off, and don't leave the buttons) and you will see the mtkdriver down below. Install it.

Choose MediaTek USB Port and install it.

4)Then run the brom.bat under Bypass folder.

5) Now power off the phone and connect the phone while holding volume + and - (Don't leave the buttons until the bypass is done)

6)After the above step Go into Flash Tool folder and open the SPFlash tool go to Options>Option

Click on Connections and select UART and set Baud Rate to 921600

7) after that choose scatter file and also if not set, set your download-agent. You don't need to select auth file as authorization is disabled. Once you do it, it should look like this. ALWAYS MAKE SURE DOWNLOAD ONLY MODE IS SELECTED! DON'T SELECT OTHER MODES!

Make SURE "Download Only" is selected. Don't select ANYTHING ELSE! You will lose your IMEIs, Serial Numbers, Capability of Hardware Attestation etc. if you choose "Format data + Download" make SURE you selected "Download Only".

8) Uncheck oplusreserve2 first. Now, you can start downloading with the button and after that a checkmark will appear. You can reboot your phone and use it like before now! All your userdata will (inevitably) be cleared!

After flashing it should look like this. Download has been complete. Enjoy!

Notes :

After this phone might not boot due to encryption, you can do any of the below procedures to format your data and boot your phone

1. In case you can access recovery by holding volume and power button - Wipe all data from recovery and reboot

2. In case you cannot access recovery, power off phone then enter this command in mtkclient :

Code:

python mtk e metadata,userdata,md_udc

and connect phone while holding both volume buttons. After this just reboot phone

Also note that first boot takes some time, so don't panic leave it for few minutes it'll boot :)

Credits :

https://github.com/bkerler/ for decryptor and for creating the tool.