[Tutorial] How to use MTK Client to flash Mediatek firmware
[Tutorial] How to use MTK Client to flash Mediatek firmware
Follow the steps below to flash a Mediatek device's firmware using mtk client
python setup.py install
pip3 install -r requirements.txt
py -3 setup.py install
py -3 -m pip install -r requirements.txt
python mtk.py w boot,vbmeta boot.img,vbmeta.img
py -3 mtk.py w boot,vbmeta boot.img,vbmeta.img
python mtk.py w boot boot.img
py -3 mtk.py w boot boot.img
python mtk.py wl out
py -3 mtk.py wl out
python mtk.py payload
py -3 mtk.py payload
py -3 -m pip install -r requirements.txt
python mtk_gui.py
py -3 mtk_gui.py
Quote:In this video tutorial, I'll be explaining how to flash files or firmware to your Mediatek Android device using MTK client. First, you need to have MTK client, you need to have installed your python (tick add to path when installing), you need to install USBDK, you need to install your Mediatek USB drivers. Of course you need to download mtk client, I'll link to all these.
Now, once you have these in place, you open MTK client. Now, first thing you do is to setup. If you already did this when unlocking bootloader or backing up, you don't need to repeat the process. Just for those who are seeing this for the first time. Once you open the MTK client folder, you right-click at the top, you click copy address, you open command prompt then you cd to the mtk client
directory.
Now, to setup, you run these two commands. Skip this part if you already did. Now, I'll be flashing to my device. These are the two files I want to flash; boot and this vbmeta. Now, the structure of the commands is the same, just your slot , your partition names might vary. Let's say I want to flash just boot, one file, one partition, this is what the command is going to look like. Now, if yours is A only, what you'll have is something like this, just boot as the partition name but this device I'm working on (an LG K51) is AB so this is what I'm going to have.
Flashing to slot a and if you want to flash multiple files at a time, this is what the command looks like. This is a constant part, the partition names separated by commas, then space then the corresponding file names separated by commas. Don't forget the order has to match what you have here, the partition order should match file name order. You just have a space in between the groupings. Alright, let me flash just one file first. Boot image. So I copy this command, I already have my boot.img here in the same directory, I also have my vbmeta.img here in the same directory. So I'm flashing to slot a because mine is AB.
So now you boot the device into brom and connect it to the PC. Alright, so that is done. Lets say I want to flash multiple files, this is what the command looks like. It can be as long as you need it to be. I'll just flash two files to two partitions. The same thing; brom then connect to PC. Alright, so that's done. So that's how to flash files to your mediatek Android device using MTK client.
(25-11-2021, 04:34 PM)Timmylog Am i supposed to have internet access every single time i want to use the tool or its only on the first run?
(29-11-2021, 05:25 AM)wesside298 hello..and greetings from las vegas..i was wondering??whoever was doin this post..said they were working on a k-51..i .too am working on a k51..lol..this phone is a rather diff.one.would there b any way i could get access to all the notes for this phone???i know..prob.asking alot..but i was a microsoft employee..doing computers..i just started doin phones a few months back..but any and all on the k51 would greatly be highly anticipated..i am using this phone now..as this is my pratice phone for mtk..root bootloader full rom dump and everything else...t.y.v.m.for your time..this is great if i could get it
(28-04-2022, 08:54 AM)commitedpassion this didn't work for me..... after following the process carefully i ran into this error when trying to flash boot.img
(ModuleNotFoundError: No module named 'edlclient)
please check out the screenshot below.