How to unlock bootloader and root the LG Stylo 6 and K51 K61 and other K model LG devices

Search This thread

ThinkPadT530User

New member
Aug 12, 2022
3
1
Thanks a ton I got it to flash, still no recovery though.
Update there is a recovery just some BS that I need to go to fastboot first and then boot to recovery.
Recovery on LG phones is super weird, doing ADB reboot recovery just prompts a No command., on the phone screen. In my opinion you are best off with a custom recovery, but unfortunately after some light digging there doesn't seem to be one.
 

eviepayne

New member
Aug 13, 2022
3
0
Recovery on LG phones is super weird, doing ADB reboot recovery just prompts a No command., on the phone screen. In my opinion you are best off with a custom recovery, but unfortunately after some light digging there doesn't seem to be one.
It wasn't that way on my V40. Neither my V30.
I would normally root but it's for my girlfriend and she isn't interested.
 

cryptojoe37

Member
Nov 2, 2021
26
0
KC, MO
I have a k51 LM-K500 & want to use these directions but it does not connect to MTK by itself. I cannot get MTK to connect to the K51
 

SubwayChamp

Senior Member
Aug 6, 2016
4,468
4
1,728
What folder in MTK do I put the preloader that you made in?
If you are asking for the preloader file, where you have to put it, really, it doesn't matter, preferably, put it in the same drive where the SPFT is allocated, and, when you open SPFT, just tick on preloader box, and it redirects to the drive, then you have to search where you did place it, and that's all.
 

bandanaa

New member
Oct 2, 2022
1
0
hey, i followed this guide with my lg k51 running on android 10 and i'm getting a screen saying "your device software cannot be checked for corruption. please lock the bootloader." followed with it going into fastbootd giving me an option to either try again or factory reset. what do i do to bypass this?

edit: i just factory reset since it was a new phone and the error was still there BUT after a few seconds it booted normal with the bootloader STILL UNLOCKED, followed the rest of the tutorial fine. thanks!
 
Last edited:

$cronos_

Senior Member
Sep 21, 2021
325
102
I got the metropcs version of the stylo 6 does it have a snap ot mediatek processor,and i have a chrome book pc will python run on that new to all this kinda of stuff just wanna run a gsi rom since there isnt a twrp for our device any help would be appreciated
chrome book has a built in debian container for running linux commands
 
Nov 20, 2022
6
3
12
H--TX
Are there any guides to doing this thru terminal on a Chromebook I have everything I need but keep getting Syntex error or better yet do have the stock boot.img I can get to fastboot and from there I could flash a patched boot.img. I'm working with 2 phones and no computer but I found the bugjaegar app and you can accomplish quite a bit with it. I've installed twrp and magisk to a Samsung a71 and to a moto g stylo so far. Oh yeah first ever post on here (the aforementioned Chromebook isn't mine and it has a few very crucial missing buttons so can even get into developers mode)
 

Jaguar_90

Member
Jan 9, 2023
8
0
Hi, I have been reading this post for almost one year, finaly I tried today to unlock the bootloader to my LG K61 in a w10 32 bit pc, I ran this commands:
"python mtk e metadata,userdata,md_udc"
"python mtk da seccfg unlock"
But looks that there is no "da" argument in 32 bit mtk client, it still is "xflash", but when I ran this command
"python mtk xflash seccfg unlock"
Then I get an error "you need a 12 bits buffer" or something like that so I Google a little but no answers for me.
Oh, btw, the "python mtk e metadata,userdata,md_udc" gives me an error saying that it failed to flash all partitions.
My phone didnt brick, luckily, but I have a locked bootloader. Some help, please?
EDIT: I went to a w10 64 bits pc, downloaded all UP to date mtkclient and python, "python mtk e metadata,userdata,md_udc" still fails to flash all partitions, still there is no "da" argument in mtkclient, and still get the 12 bytes buffer needed error. Something isnt working and I cant figure it out.
Edit 2. I already unlock the bootloader and rooted my phone.
 
Last edited:

Smilez4

Member
Jul 7, 2022
13
0
ARE THESE THE FILES I NEED TO ROOT ?
boot_b.bin
vbmeta_vendor_b.bin
vbmeta_system_b.bin
vbmeta_b.bin
 

Jaguar_90

Member
Jan 9, 2023
8
0
You extract the boot_a.img with mtkclient to you pc. Then you turn on the phone. You install magisk in phone, take the boot_a.img from your pc to your phone, then go to magisk and tap in install, select the boot_a.img and patch it. Rename it to patched_a.img, take it to your pc in mtkclient folder and conect your phone in brom mode in order to flash the patched_a.img to boot_a slot. Please, read many times the main post to be sure what you are doing.
 

Smilez4

Member
Jul 7, 2022
13
0
You extract the boot_a.img with mtkclient to you pc. Then you turn on the phone. You install magisk in phone, take the boot_a.img from your pc to your phone, then go to magisk and tap in install, select the boot_a.img and patch it. Rename it to patched_a.img, take it to your pc in mtkclient folder and conect your phone in brom mode in order to flash the patched_a.img to boot_a slot. Please, read many times the main post to be sure what you are doing.
thank you so much been trying for a long time the other question i have is that my boot a and b are bin files i am not sure if i just change it to image(.img) or extract again but try to extract several times too but still bin format file so what do i do ?
 
Last edited:

ThisNerd

New member
Jul 27, 2017
1
0
Colorado
www.youtube.com
*If anyone is having trouble with the Stylo 6 throwing errors in SP Flash Tool* Leave your phone off and unplugged. Just hit download in SP Flash Tool then start the mtkclient command. The power shell or cmd window (depending on what you use) should say "Preloader Status - waiting for preloader vcom." Now you can connect your device, power off and connect usb. The error will occur in SP Flash Tool but mtkclient will be running the command.
 

CXZa

Senior Member
Apr 9, 2013
844
300
cxzstuff.blogspot.com
thank you so much been trying for a long time the other question i have is that my boot a and b are bin files i am not sure if i just change it to image(.img) or extract again but try to extract several times too but still bin format file so what do i do ?
Full backup. That should be your 1st action if not done already...
And just change the file extension if needed. Stupid programs...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    STYLO 6 MTKCLIENT INSTRUCTIONS FOR FLASHING, BACKING UP, UNLOCKING THE BOOTLOADER, AND ROOTING ON WINDOWS 10/11:

    !!!WARNING!!! ATTEMPT THIS AT YOUR OWN RISK, READ THE FULL TUTORIAL BEFORE YOU START!!! I AM NOT RESPONSIBLE FOR ANY BRICKED DEVICES! THIS PROCESS IS NOT FOR THE INEXPERIENCED PLEASE HAVE ADB COMMANDS KNOWLEDGE BEFORE TRYING TO ATTEMPT!!

    THIS PROCESS WILL WIPE ALL YOUR DATA SO BE PREPARED FOR THE FACTORY RESET TO BE FORCED BEFORE YOU CAN BOOT THE PHONE!!!

    DOWNLOADS:
    1. Download Python from here "https://www.python.org/downloads/"
    2. Download USBDK here "https://github.com/daynix/UsbDk/releases/download/v1.00-22/UsbDk_1.0.22_x64.msi"
    3. Download mtkclient here "https://github.com/bkerler/mtkclient"
    4. Download SP Flash Tool here "https://www.mediafire.com/file/kyoksq6kncpg8sg/SP_Flash_Tool_v5.2124_Win.zip/file"
    5. Download Magisk APK here "https://github.com/topjohnwu/Magisk/releases"

    INSTALLATION:
    1. Install Python (select "Add Python X.X to PATH")
    2. Install USBDK
    3. Install Mtkclient- While in the mtkclient folder hold shift and right click and select "Open PowerShell window here" Run this command in that window "python setup.py install" and then run command "pip3 install -r requirements.txt" Mtkclient is now installed correctly.
    4. Install SP Flash Tool and use the Scatter file I provided and the preloader file I provided.
    5. MTK VCOM Drivers need to be installed.

    NEED TO KNOW:
    ***For the Stylo 6 to connect you must remove some of the loaders from the mtkclient-main\mtkclient\Loader file leaving MTK_AllInOne_DA_5.2136.bin as the only loader needed. Just highlight the unneeded ones and cut and paste them into the parent folder so you will have them for other devices.

    ***To run a command you will need to hold shift and right click to open a PowerShell window to use the tool.

    ***With Mtkclient waiting for the phone to be connected by hitting enter with your command entered, you will also need to click "Download" in SP Flash Tool to cause it to be waiting for the phones connection.

    Now that both tools are awaiting the phones connection make sure the phone is completely shut off and plug it in WITHOUT ANY BUTTONS PUSHED! You should now be connected to Mtkclient and the tool will be running the command you entered. If you do not get connected with a couple attempts close out mtkclient powershell window and reopen it.

    !!!!!DO NOT UNLOCK OR ROOT THE PHONE BEFORE A PROPER BACK UP OF THE DEVICE IS TAKEN!!!!!

    !!!!!DO NOT SKIP THIS STEP!!!!!

    I recommend taking a full flash back up of the phone right off the bat, this will take a couple hours, but for more experienced users there is a backup of each partition separated into each file separately that will work too.

    "python mtk rf flash.bin" Is the command to make 1 single full flash file to restore the phone. To restore the phone with that file the command is "python mtk wf flash.bin"
    "python mtk rl out" Is the command that separates each partition into its each individual file and places the files in the out folder, to restore the whole out folder the command is "python mtk wl out" I recommend this backup after unlocking your bootloader so you will have your boot images to use for rooting.

    UNLOCKING YOUR BOOTLOADER:
    To unlock your bootloader you will first need a full backup to ensure you can recover a bricked device, you will then run these two commands in this order...
    "python mtk e metadata,userdata,md_udc"
    "python mtk da seccfg unlock"

    CONGRATULATIONS YOUR BOOTLOADER IS UNLOCKED!!!

    ROOTING YOUR PHONE:
    Now to root your phone you will need that single partition back up, or at least your boot_a.img or boot_b.img or both. "python mtk r boot_a,boot_b boot_a.img,boot_b.img" this will pull both your boot.img files only 1 is necessary, but both can be used.

    !!ATTENTION!! DO NOT, I REPEAT DO NOT MIX UP YOUR BOOT_A AND BOOT_B FILES YOU WILL LOOSE WIFI OR BLUETOOTH IF YOU FLASH THEM TO THE WRONG SLOT!!!

    You install the Magisk APK to your phone and you patch your boot.img with the app, change their names to patched_a.img and patched_b.img if you do both of them, you then copy them to your computer in the same folder that the mtkclient tool is located. If you have fastboot access you can flash patched_a.img to your phone with these commands... "adb reboot fastboot" then "fastboot flash boot_a patched_a.img" and you can ensure your phone boots to that slot with this command... "fastboot --set-active=a"
    On models without fastboot access, you will need to flash both your patched_a and patched_b.img with mtkclient.
    AGAIN DO NOT MIX THEM UP!!!

    "python mtk w boot_a,boot_b patched_a.img,patched_b.img"

    CONGRATULATIONS YOUR PHONE IS NOW ROOTED!!!

    NOW MAKE ANOTHER BACKUP!!!
    Many who are not experienced with root can easily brick or send their device into a bootloop. So once you get it successfully rooted I recommend you do another backup, run this command to do that
    "python mtk rf rootedflash.bin"
    that will give your new backup a different name so you can keep them organized. You will be able to restore it right back to where you have a freshly rooted phone.

    Tips and Tricks:
    If you have the 2021 December update you may need to flash an older firmware because LG made a patch to mess up the connection with mtkclient!
    To reboot the phone from Brom hold power and volume down buttons until it reboots.
    To boot the phone into recovery hold power and volume down until the phone says booting recovery, from recovery you can shut the phone down to try to connect to mtkclient on failed attempts and to boot into fastboot.

    On other devices the SP Flash Tool is not needed, like for instance the K51 doesn't need that step.

    Special thanks to Bjoern Kerler for his work on his mtkclient tool that makes this all possible.
    And to the team at Hovatek for working with me.

    I am hoping that a twrp is created for this device soon so that all of this will be a safer easier process, but for now you just have to tread lightly with modifications to the phone as many things aren't tested and may cause a bootloop or a bricked device.
    3
    You will lose all data. It forces a factory reset, my tutorial tells it all, the hard part is setting it up, once it's set up correctly it's just running all the commands, sometimes it takes a few attempts to get the phone to connect properly but other than that it's pretty straightforward, you don't gotta worry about bricking it if you make a proper backup first and follow the steps exactly as I've laid them out
    2
    Look at the read me in the mtkclient folder it tells what you need for Linux
    2
    Without using the test points you can get it to connect to mtk client by using sp flash tool to lengthen the time the stylo 6 is in the correct mode for mtk client, you won't connect to sp flash tool unless you use the by bypass utility, but the sp flash tool method is only needed for windows, use Linux for better connection
    2
    linux is super easy like everyone is saying. just hold both volume buttons while the phone is off and plug in the cable and mtkclient should work 100% of the time. i had maybe a .001% success rate for windows

    a little off topic but switching to linux helped me easily unlock and root my lg m250n and tribute dynasty

    thanks for the really detailed write up warlock!!