• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

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

Search This thread

cryptojoe37

Member
Nov 2, 2021
15
0
KC, MO
Can someone help me get rid of bloatware, I just want the android sys. & necessities
 

Attachments

  • Stylo 6 apps.txt
    7.3 KB · Views: 9

SubwayChamp

Senior Member
Aug 6, 2016
3,416
3
1,449
For those complaining a hard time connection with PC, probably this tool will help you as it installs the device filter for MediaTek USB port https://www.bypassfrpfiles.com/2021/02/download-libusb-win32-driver/ SPFT became unnecessary (I think)

And about preloader and BROM mode, preloader is almost useless (actually) for newer MediaTek devices, so you need to press, the right combination button to operate through BROM mode, probably both volume buttons when device is off. Mtk-client does the good stuff in BROM mode.
 

cryptojoe37

Member
Nov 2, 2021
15
0
KC, MO
Can someone please tell me what I'm doing wrong in mtk?? Did I install python wrong?? I'm stuck. I had to reinstall windows because My harddrive went out & now MTK saying funny things.
 

Attachments

  • powershell errors.png
    powershell errors.png
    143.3 KB · Views: 25

SubwayChamp

Senior Member
Aug 6, 2016
3,416
3
1,449
Can someone please tell me what I'm doing wrong in mtk?? Did I install python wrong?? I'm stuck. I had to reinstall windows because My harddrive went out & now MTK saying funny things.
Python just have an issue printing to PS.
- Do pip uninstall colorama and then reinstall it with pip install colorama
- All the packages needed are installed with python setup.py install
- And you can upgrade to the latest version with python.exe -m pip install --upgrade pip
 

kingrise

Senior Member
Feb 4, 2014
84
2
I have COMPLETED the entire tutorial for the second time, However tonight i will be making the "rootedflash.bin" backup. This process worked 100% for my TMobile Stylo 6 but if i could give any advice to noobs like me it would be,
1. The SP Flash Tool will FAIL and it is supposed to, it is only used to make the connection to MTKclient.
2. The MTK client PowerShell window usually doesnt have to be messed with at all after you have entered a command and pressed enter, but the SP Flash Tool has to have "DownLoad" clicked on ever failed attempt.
3. Get used to clicking "Download" on SP Tool, then clicking over to powershell and then plugging in USB cord. it takes a few and sometimes several tries
4. you can leave the usb plugged in for a couple seconds but try to get good at unplugging just in time BEFORE your phone boots back up...this will save you time.
5. It helped me to periodically go into my file explorer and right click on the "DKusb driver" that you download and install at the beginning of the process and clicking to install it or repair it again in between failed attempts to connect to MTK
6. It will also help to restart computer occasionallly and even start over and install everything again.
7. MOST important--DO NOT GET IMPATIENT--and decide to unlock bootloader and root with out making those Back ups, take the time to make all back ups thruoghout the process....you will be glad you did.
FINALLY-- WARLOCKGUITARMAN -- has done an excellent job at making his first tutorial and ALL the steps are there and in correct order, if you follow his guide precisely you will be enjoying a fully rooted and unlocked Bootloader and any version Stylo 6 and other mediatech devices.
Great addition. And absolutely correct. I had to do everything that way. I think I was the first one from this post to unlock and root. And gave a lot of Props to Warlock for taking the time to teach us and help us. Thanks again.
 

kingrise

Senior Member
Feb 4, 2014
84
2
Warlock quick questions.
Have you, or do you know of anyone who has, changed the useless "google button" to open camera or any other app/function. That would be great. What else would you recommend to do to the K61?? You mentioned something about crossflashing or something. Is it stable???
 
Warlock quick questions.
Have you, or do you know of anyone who has, changed the useless "google button" to open camera or any other app/function. That would be great. What else would you recommend to do to the K61?? You mentioned something about crossflashing or something. Is it stable???
I haven't gotten back into the cross flash procedure, I may try just flashing the laf from a different firmware model as it holds the fastboot and firmware download info, or the lk but I haven't tested it yet, that's stuff that others in my group might have tried, but I think most of them are waiting for me to try
 
I'm considering building a device tree for the stylo6, this will make it possible for a twrp build to happen, but it's gonna be my first build and may take a while. I've been getting other personal matters taken care of the past couple weeks and haven't touched my computer, but i plan to get back in the groove and see what i can come up with, ive got my workstation set up to run 3 laptops at once and remote access my desktop, I'm needing to build a home network and needing a 12 TB NAS setup so I can clean out all my computers and get them running at top speeds.
 

swlvit

New member
Aug 8, 2019
2
0
Had issues getting drivers to load on windows..at least I think so. After reading through the thread and seeing OP's post about it just works on linux. I dailydrive linux as is. Worked just fine on arch, and just about right away. I did something wrong first time and ended up with some kind of bootloop. Good thing I made the backup! After back up and restore worked on 2nd try. BL unlocked and rooted. Thanks so much!! Stylo 6 is cricket model
 

Dlee80

New member
Sep 12, 2020
1
1
Just wanted to give a quick thanks! Not gonna lie tryin to connect to mtk was a b***ch, definitely pissed me off but as long as you stick with it it's 100% possible to achieve root with an unlocked bootloader. Couldn't of done it without you. Thanks again man!!!
 
  • Like
Reactions: kingrise

Ellipal

Member
Jan 8, 2022
11
0
I have a question, when i run "python mtk xflash seccfg unlock" it freezes up cmd, and then am i supposed to keep just preloader checked in SP or do i check seccfg as well?

NEVERMIND I DID ITTTTTTT LETSSSSS GOOOOO successfully unlocked bootloaderrrr
 

Top Liked Posts

  • 1
  • 1
    Just wanted to give a quick thanks! Not gonna lie tryin to connect to mtk was a b***ch, definitely pissed me off but as long as you stick with it it's 100% possible to achieve root with an unlocked bootloader. Couldn't of done it without you. Thanks again man!!!
    1
    Too hard to do, lots of errors happen, driver mtk, python....
    I'll help you out if you want to help me with a few files, I'm sure you got a usb redirect and TeamViewer I'll get your stylo 6 up and running
    1
  • 7
    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:
    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
    1
    Here is the scatter and preloader file for SP Flash Tool for the Stylo 6
    1
    I don't know about using a chrome book, but once unlocked you can install a gsi through fastboot, I've had 11 and 12 installed on the stylo 6 and k51
    1