How to unlock Mediatek bootloader using mtkclient
How to unlock Mediatek bootloader using mtkclient
(02-11-2022, 02:24 PM)hovatek(29-10-2022, 04:24 AM)k1ng1 this is another question sir, i found out that while unlocking bootloader(official method) it will send command to wipe the data of the phone.
i want to ask if its ok to unlock the bootloader first before wiping the userdata like this:
unlock bootloader- python mtk da seccfg unlock
then wipe data- python mtk e metadata,userdata,md_udc
pls answer if this is ok.
It shouldn't matter
(03-11-2022, 12:43 PM)k1ng1(02-11-2022, 02:24 PM)hovatek(29-10-2022, 04:24 AM)k1ng1 this is another question sir, i found out that while unlocking bootloader(official method) it will send command to wipe the data of the phone.
i want to ask if its ok to unlock the bootloader first before wiping the userdata like this:
unlock bootloader- python mtk da seccfg unlock
then wipe data- python mtk e metadata,userdata,md_udc
pls answer if this is ok.
It shouldn't matter
So that means its ok without any problem? if it is thank you for answering it.
Quote:Installed c:\program files (x86)\python311-32\lib\site-packages\mtkclient-1.6.0-py3.11.egg
Processing dependencies for mtkclient==1.6.0
Searching for PySide6
Reading https://pypi.org/simple/PySide6/
No local packages or working download links found for PySide6
error: Could not find suitable distribution for Requirement.parse('PySide6')
(22-11-2022, 08:03 AM)nanoziobelo Any know how solve?
(22-11-2022, 08:03 AM)nanoziobelo HIdude you need to delete your mtk client and download the latest one and don't use powershell while installing it instead use CMD and delete your python and reinstall it with latest version of python and i checked the link -------> https://pypi.org/simple/PySide6/ it has the PySide6 repo.
I try to follow istruction but when start first command got this error
Quote:Installed c:\program files (x86)\python311-32\lib\site-packages\mtkclient-1.6.0-py3.11.egg
Processing dependencies for mtkclient==1.6.0
Searching for PySide6
Reading https://pypi.org/simple/PySide6/
No local packages or working download links found for PySide6
error: Could not find suitable distribution for Requirement.parse('PySide6')
Any know how solve?
(17-01-2023, 02:47 AM)VenomousSteam81 I can't seem to get into BROM mode, can you help guide me please? The device I have is a Hot Pepper Serrano.
(28-03-2023, 03:47 AM)ead my vmarruffo The more I read up on these forums, I realize how little I truly know about MTK and Flashing, and unlocking in General, could you please provide a link to any really good basic information about this process in general, more specific to MTK chipsets, Im more curious as to what the choices really mean once youre in the utilities as there are many and while most probably wont apply. Im just trying to understand, Ive come a long way but as I continue to aimlessly wander the internet, i realize there is way too much info about this out there and it all appears different, this forum is the only one that has made the most sense and has gotten me the furthest, while I have almost been able to unlock my own phone, I now want to do it myself. I read some of the questions on here and even i can see the bricked phone coming a mile away, i dont want to do that myself so maybe some basics are in order please and thanks muchif your asking a good tutorial you can read mine its is a process were i unlocked my phone with MT6750 chipset every phone has a differnt chipset so you cant exactly ask around about tutorial every tutorial may vary depending on an phone even if they have similar chipset so you can start reading like this one and try to search some stuff about unlocking and something like that you will find some good infomation you visit XDA,StackOverflow,Hovatek forum, Superuer forum, GSM forum this is the known forums that can provide a very good info and insight on what you want to see got it?
(30-09-2021, 12:59 PM)hovatek This guide will explain how to unlock a Mediatek device's bootloader using MTKclient. This will come in handy for those who can't unlock bootloader using fastboot . This was tested on the LG K51
Warning: Your data will be wiped so backup important stuff first
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 unlock Mediatek Bootloader using mtkclient
Follow the steps below to unlock a Mediatek device's bootloader using mtkclient
See the video below or @ https://youtu.be/OU8hRpZCC0I
- 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
- Run the data wipe command then connect your device in BROM Mode
Code:python mtk e metadata,userdata,md_udc
- Run the bootloader unlock command then re-connect your device in BROM Mode
Code:python mtk xflash seccfg unlock
or
Code:python mtk da seccfg unlock
- Disconnect and boot
Credits
Credits to Warlockguitarman for the ground work and discovering the exploit (from Chimera), also to the developer of mtkclient for integrating the exploit.
Important Notice
- How you boot into BROM varies with device so look it up for your model.
- To re-lock Bootloader wipe seccfg or run
orCode:python mtk xflash seccfg lock
Code:python mtk da seccfg lock- If you encounter an error using python in commands then try py -3
- 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 get '[LIB]: ←[33mNo preloader given. Operation may fail due to missing dram setup.←[0m
DAXFlash - Uploading stage 2...' then ensure to add the --preloader flag with the preloader.bin for your model
- 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- You can also use MTK Client GUI by running
Code:python mtk_gui
Video Transcript
Quote:In this video tutorial, I'll be explaining how to unlock the Bootloader of a Mediatek Android device using mtkclient. First, you need to have installed your Mediatek VCOM drivers, you also need to have installed usbdk drivers, I'll link to these. Then you need to install python also, preferably the latest python and make sure you tick install environmental variable and then you need to download mtkclient. I'll link to all these alright? Now, once you have this in place, you open the MTKclient, right-click up here, click copy address, you open command prompt, and you cd to the mtkclient directory. Now, from this directory, you run the following commands. I already ran this command. Now, to unlock the bootloader, you run this command.
Your partitions might vary. I'm working on an LG K51. Now, you power off the device and boot it to BROM mode. Your button combination might vary. For this K51, its volume down and Google Home key buttons so I'll hold these and connect ..and release and finally, you run this command. I'm going to have to disconnect and re-run so.. I need to first power off my K51 to run the second command or to execute it rather. BROM mode and connect. So now you can disconnect and power up and your bootloader should be unlocked. So that's how to unlock the bootloader of a Mediatek Android device using mtkclient
py -3 mtk e metadata,userdata