18-11-2021, 01:11 PM
This guide will explain how to backup or dump a Mediatek Android device's firmware using MTK Client. This will come in very handy for those with secure boot
Requirements
- Install Mediatek drivers @ https://www.hovatek.com/forum/thread-440.html
- Download and install USBDK @ https://github.com/daynix/UsbDk/releases/
- Download and install python @ https://www.python.org/downloads/ (ensure to tick the checkbox Add Python x.x to PATH)
- Download MTKClient @ https://github.com/bkerler/mtkclient/arc...s/main.zip and extract
- Internet connection
Steps to backup Mediatek firmware using mtkclient
Follow the steps below to dump a Mediatek device's firmware using mtk client
- Open the mtkclient folder, right-click the address bar at the top and copy the address
- Launch Command prompt and type cd <space> then paste the address you copied and tap enter
- You're set to run commands
- Run the following commands
Code:python setup.py install
pip3 install -r requirements.txt
- To backup boot and vbmeta for example, you run the command below then connect the device in BROM mode
Code:python mtk r boot,vbmeta boot.img,vbmeta.img
- To backup a single partition -say boot -, the command would be
Code:python mtk r boot boot.img
- To do a full backup to a folder called out, the command would be
Code:python mtk rl out
- You should see the dumped file(s) once MTK client is done
Important Notice
- The partition names might be different for A/B devices
- Consider combining MTK Bypass with WWR for scatter dumps
- If you get '[LIB]: ←[31mError on sending emi: unpack requires a buffer of 12 bytes←[0m' then delete mtkclient/Loader/MTK_AllInOne_DA_5.1824.bin
- If you encounter 'pip3' is not recognized as an internal command or external, an operable program or a batch file. then try
Code:py -3 -m pip install -r requirements.txt
Video Transcript
Quote:In this video tutorial, I'll be explaining how to backup or dump the firmware of your Mediatek Android device using MTK Client. This procedure doesn't require (an unlocked) bootloader. Locked or unlocked, this procedure is going to work just fine. Now first, you need to download MTK client, you need to have installed your Mediatek USB drivers, you need to install python and make sure you tick add to path when installing python and you also need to install USBDK. I'll link to all these in the description.
Now, once you have these in place, you open the mtk client folder then you right-click and then you click copy address. Now you launch your command prompt and then you cd to the location of your mtk client. Now the first thing you do is to install requirements. If you've already done this, you can skip this part. So copy this, make sure you have an internet connection. After that, you run this. So now, I'm going to be backing up. These are the formats I'll be using. Now, to backup, I'm backing up boot image first. This is the command I'm using. When you're backing up just one one partition, you need the partition name and the file you intend to save it as. I'm backing up the boot partition and I want to save the file as boot.img.
This is the command I'll be running. So you paste this here and you tap Enter. Now, you need to power off and boot the device into brom mode. It might vary with model and then connect it to the PC. So now you check the... I have connection so I'm going to backup now. I'll have to re-run the command. I'll have to disconnect. I had an interruption there. OK, the problem is from my command. I have a and b here so what I should backup is boot_a. I'll locate it on the list here. Am I skipping it? Here, boot_a. My partition name is actually boot_a. This is because my device is A/B, I forgot to add that. So this is the actual command I'm supposed to run because my device is A/B but if yours is A only, you just run the regular boot to be your partition name so you go again.
Alright, so that worked. So I have my boot image here. Here you can see the list of partitions which the tool can detect alright, so any partition you want to backup needs to be from this list. So if I want to do vbmeta for example, I'll go vbmeta_a because a is my active slot OK? You can backup all whether A or B whatever you want to backup. I will just stick with A. So lets say I want to backup two partitions for example or multiple ones, the command is simple. This command is what we'll be running. Mine is AB so I'll modify this. boot_a then you leave a space then this will be the output file name which you want OK? So python mtk r the partitions separated by commas.
Don't forget mine is A/B, that's why I have _a. If yours isn't AB, you skip this _ active slot or whatever slot you want to backup. and then space file names separated by commas. Don't forget they need to be respective; boot_a before vbmeta_a boot before vbmeta don't forget, don't make that mistake of mixing them up. So I'm good to run this command. I'll scroll back to where I stopped. So, now i want to backup two partitions. I think I can delete this to avoid any issues. Now brom mode and I connect. I'm using an LG K51 so my brom mode is my Google home key and volume down button. It could vary with devices of course. Alright, so I have my vbmeta and boot backed up. So that's how to backup or dump the firmware of your Mediatek Android device using MTK client
Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.