yashsingh1/xdaforums huggingface dataset:
[LG K10 Guides, News, & Discussion] gottlasz:
There is a line in the bottom of the OP sais:

"You can find TWRP of the k8 and a rather detailed description on my thread here:

http://www.chinaphonearena.com/forum/Thread-root-lg-k8"

Why don't you go and check it out... i guess you should use your sd card to copy the boot image to pc not any adb commands. Read that thread you find on the above link please :)
[LG K10 Guides, News, & Discussion] ArcherEmiya:
Sir I already unpack it what is the next thing to do?
[LG K10 Guides, News, & Discussion] ArcherEmiya:
Sorry Sir, again Im stuck at this how do I flash the bootgz.img it gives me an error, I already reboot my phone from twrp to fastboot. see the photos

Thanks
[LG K10 Guides, News, & Discussion] ArcherEmiya:
Im really sorry for this but when sir salaigeethan666 said

- enter fastboot from twrp.. (TWRP > Reboot > Bootloader)

- flash the modified boot image and get back into twrp again

Code:

fastboot flash boot bootgz.img

fastboot boot twrp3.img

I cant flash the img

Should I flash it by moving the file to my sd card and installing the bootgz.img using TWRP instead of using adb?

---------- Post added at 02:33 AM ---------- Previous post was at 02:08 AM ----------

What do you mean sir? Am I supposed to unlock again the oem and flash the twrp.img to get back on TWRP recovery? Yeah I'm having some trouble with this step now I tried to pm him but no respond. :crying::crying::crying::crying::crying:
[LG K10 Guides, News, & Discussion] ArcherEmiya:
Sir it only gives me a message that my phone is corrupted then boom automatically shut down my lg, idk but I already did those things you and mr saigee said, I will try it again sir but now flash the img by installing it in twrp wish me luck on my 3rd attempt

---------- Post added at 07:47 AM ---------- Previous post was at 06:52 AM ----------

What I did after i repack/unpack the img is: I flash/install the bootgz.img then followed by supersu, after that I flash/install the bootlz4.img and reboot system.

Sir I already did all things said in your and mr gottlasz says, but it just give me an error and shut down my device it doenst go too boot or bootloop. Am I supposed to clear or wipe data and cache before installing super su?

or the recent update has to do why I am facing this error now :(:(:(:(:(

(For those who already done rooting with their lg k10, Please see attached file if its right, if I do it wrong then could anyone who already root their k10 successfully give me the needed and correct "img" in order to root my device)

https://drive.google.com/drive/folders/0B3lKBpo4sxyON0lEcHg2cDM0ZzA
[LG K10 Guides, News, & Discussion] berkantkz:
What?
[LG K10 Guides, News, & Discussion] ArcherEmiya:
Did you successfully root the lg k10 430dsy?
[LG K10 Guides, News, & Discussion] berkantkz:
I don'ylt have K430DSY but I've an K430TR tho. I didn't root it cause my sister own my K10 currently. I'll try if I switch my phone with my sister's K10
[LG K10 Guides, News, & Discussion] ArcherEmiya:
Thanks for you response sir
[LG K10 Guides, News, & Discussion] berkantkz:
Don't say, just hit on thanks!
[LG K10 Guides, News, & Discussion] gottlasz:
Please stop spamming the thread!:eek:

I'll help you in private tomorrow. I just don't have time on the weekend! I'll write you tomorrow! Don't worry so much!!!:cool:
[LG K10 Guides, News, & Discussion] wizzardsk:
Maybe, if someone who already rooted just uploaded the modified boot image, it would be more simple for the others to root :)

I will try it today and then I may upload my image to compare it with another, if it is not the same.
[LG K10 Guides, News, & Discussion] gottlasz:
I've been thinking of it as well... but i'm not sure how to install supersu after flashing the modified boot image...?! Maybe installing it straight from playstore?

- you know, when we install it from TWRP it tweaks the boot image and puts supersu apk on the data partition and who knows what other changes it makes... if we have a boot image already tweaked we only need to install supersu apk but maybe there are other changes should be done. I don't know... maybe worth a try. Or also you could try just simply change the boot image to gzip compressed and see if the phone boots up (without flashing supersu) so we could leave it gzipped for good (TWRP works if it's gzipped not lz4 compressed so there is a chance boot also works this way and once it boots up from gzipped boot image we can easily flash and remove supersu any time). It's just quite risky to try on my k8 since lgup is not working with my device and if i lose the boot partition maybe i can't restore it with lg bridge.

One more short comment:

when i boot into TWRP i just temporarly boot into it (fastboot boot not fastboot flash) not flashing it so maybe it has to do something wth the gzip or lz4 image booting. I wonder if i permanently flashed gzipped TWRP would i be able to boot into it...
[LG K10 Guides, News, & Discussion] wizzardsk:
Well, I would not try changing boot to gzip. What if I do not boot? How to fix it then? :)

I thought I will just flash supersu and then modified boot, or vice versa. I did not realize that it would not be possible because of that lz4 format.
[LG K10 Guides, News, & Discussion] gottlasz:
You have many options to fix it:

http://xdaforums.com/lg-k10/how-to/root-device-variants-links-to-t3492987

check the unbricking part (last part of the op) - lg bridge, lg flash tool, lg up
[LG K10 Guides, News, & Discussion] wizzardsk:
Ok, thanks. So, if I fail to perform the last neccessary operation during rooting after flashing modified boot and supersu, it is possible to unbrick? Have you tried it yourself? Thanks!
[LG K10 Guides, News, & Discussion] gottlasz:
As i said i didn't try it cos i don't have dll file for lg up and i'm not sure if lg bridge can repair it.

Best if you go for sure and follow all steps to root and finish it properly.

But in case you are a bit adventurous first you could try if lg up or lg flashtool works for you and then i guess you could give a try to change the boot image to gzip and not continue with rooting just try reboot your phone. There is very little chance it would boot up since probably something uncompresses the boot image during boot up and that something is expecting lz4 format to uncompress however maybe it also "understands" gzip format and might boot up normally. That would be a nice breakthrough since then we didn't have to modify the boot image all the time just make it once.

It's on you... but really only try it if you tested a full firmware install with lg up or lg flash tool.

Anyways if you follow the steps correctly to gain root there is nothing to be afraid of. But as you said the last necessary operation during rooting is essential (except if phone boots up with gzip compressed boot image :cool: ).
[LG K10 Guides, News, & Discussion] wizzardsk:
Well, I just made all the steps and now, after turning on, i get that device corrupt message and then blank screen. Is that ok?
[LG K10 Guides, News, & Discussion] gottlasz:
Well...

After bootloader unlock did you have that message and booted up normally? Are you sure supersu intalled succesfully (even if it sais at the end it installed succesfully sometimes it's not)? Which version of supersu did you use? Are you on MM or LP? Did you try Lg Up or LG flashtool?

Sorry for the many questions but i need to know in order to help you.

However with lg bridge update error recovery stuff you must be able to recover your phone.

Maybe write me in private so we don't spam the whole thread.

Anyways if you try again please make a recovery log before the final reboot and send it to me!
[LG K10 Guides, News, & Discussion] wizzardsk:
Maybe it will also help the others.

After bootloader unlock I had to remove the battery, but unlock seems to finish ok.

I tried superSU from the this link: https://download.chainfire.eu/1009/SuperSU/SR2-SuperSU-v2.78-SR2-20161029143931.zip and it said it was installed successfully. I do not know if really :)

I am on MM.

Did not try LG UP neither flashtool.

After final flashing, which was ok, I had to remove battery to restart.
[LG K10 Guides, News, & Discussion] gottlasz:
Anyways i don't understand why you had to remove battery after final fleshing? There is no option in TWRP to reboot?

Does the lg bridge error recovery works? However if you try again please make a recovery log and send it to me!

Also consider hard resetting the phone after lg bridge finished...

http://www.hardreset.info/devices/lg/lg-k10/

PS. if you had any other attempts to root before there is very little chance to make it rooted again unless you could use lg up or lg flashtool to fully reinstall you firmware. Also maybe you should try supersu v2.78 sr1 version which worked in my case.
[LG K10 Guides, News, & Discussion] wizzardsk:
I followed salaigeethan666's guide which suggests final flashing in fastboot mode.

"fastboot flash boot bootlz4root.img" went fine, but "fastboot reboot" did not.

I am just recovering the phone with LG Bridge, so it seems, it will work.

I just tried some one click root tools before (vroot etc.), do you really think this can be a problem?
[LG K10 Guides, News, & Discussion] gottlasz:
Try to use the TWRP method during the whole process! I know it might be slower but i think it's rather solid compared to fastboot and adb trasnfer.

One click root methods should not have any influence but I can tell that after i rooted succesfully, using the phone for a week and i just wanted to make it again just to make a log so i resetted it and i could not gain root ever again... not lg bridge error recovery nor hard resetting helped...:(

dont forget to hard reset after lg bridge finished (http://www.hardreset.info/devices/lg/lg-k10/)

maybe also read my chinaphonearena thread (link in the OP) there is a rather detailed description
[LG K10 Guides, News, & Discussion] wizzardsk:
I see. I guess that now I could just flash my modified boot and then try to install supersu :)
[LG K10 Guides, News, & Discussion] gottlasz:
Well, its supposed to work unless lg bridge flashes a newer version of your firmware which has a different boot image :cool:

I guess it has to work if you just flash the pure gzipped boot image first.
[LG K10 Guides, News, & Discussion] salaigeethan666:
[MENTION=7672348]gottlasz[/MENTION] do you think we could make a rooted twrp backup that everyone can restore and use ?!
[LG K10 Guides, News, & Discussion] wizzardsk:
I tried something again, but without first oem unlock. I skipped that step (I already had the OEM unlock checked in settings), maybe I should do it again.

Flashed my backed gz backup and supersu, then reboot. The same behavior, corrupt device and blank screen and phone seems to be turned off, can be switched on by long press power button and the same, corrupt device...

I am restoring again.

Here are my logs :)
[LG K10 Guides, News, & Discussion] gottlasz:
It depends...

There are a few things to consider:

1. During the supersu install in TWRP it changes the boot image and puts supersu apk on the data partition. Probably it does some other changes idk...

2. Each boot image might be model (i mean there are many kind of lg k10) dependent so each model requires different TWRP backup probably. We should compare the boot images of models.

3. Idk what's happening when during first reboot after the rooting process there are several reboots. So something must be installing during those reboots.??? Which we would miss if we just flash backups in TWRP.

However maybe if somebody volunteers to try i suggest first just try with a patched boot image if it boots up then just intall supersu from playstore.

If it doesn't boot up or no root will be gained this way then we can go on and make backups of data and maybe cache partition and try to restore those as well and see what happens. (but the data partition might be encrypted which is defenetly deferent for each device)

I see very little chance that this would work but if we find somebody who dares to try, why not?!:cool:

So do you have any deeper ideas about what's happening during supersu installs and what parts of the firmware it changes?
[LG K10 Guides, News, & Discussion] gottlasz:
Okay, thanks, give me until tomorrow. I'll check your logs.
[LG K10 Guides, News, & Discussion] wizzardsk:
Thank you very much! Just some additional info. After restoring using LG Bridge I did not make factory reset, because it just started the system.

Also, after second restoring, the user data was untouched (I had installed apps I installed today after first restore in LG Bridge)

I did the last test today, just made reboot to twrp and flashed gz compressed boot.img. The result was same like before. Corrupt device, then blank screen.
[LG K10 Guides, News, & Discussion] gottlasz:
You see as i said (and also wrote it in many comments before) somehow lg bridge leaves a few partitions untouched. So a factory reset is necessary.

However the behaviour of your device seems to be the same as mine after i lost root and i was not able to gain it again...:(

Even factory reset leaves some partitions untouched and using it with lg bridge error recovery together there must stay some trash left behind which is making us unable to root.

I'm not sure but i think that if you want to uninstall supersu you can just install it in TWRP on a rooted device and if it finds an earlier install then it will delete it with all it's other modifications on the system and replaces the boot image to the original one.

So maybe you could try to make all resets (lg bridge + factory reset - start with factory reset, i think it works with an unbootable phone as well...) and intall the gzipped boot image then

1. install supersu - this will install supersu

2. install supersu again - this will fully reinstall supersu and all it's modifications (if my assumption is correct)

3. either try to boot (you might get a clean phone - and later you can start rooting again - don't forget to recompress it back to lz4) or install supersu again (so it's installed clearly)

I'm just guessing so no promises - i couldn't try cos my phone is still at the repair shop (now almost a month:eek:)...

Another way might be to use lg up (or lg flash tool) and reflash the whole clean firmware and try to root after (from the very beginning - make a new gzipped boot image).

Your recovery logs just seems to be the same as mine after i lost root...

Just on more comment - as you can see even with lg bridge error recovery and factory reset you are not losing the unlocked bootloader (so it's not getting locked again) - it means the firmware is not fully reinstalled. Idk in case of lg up or lg flash tool maybe you get your bootloader relocked...
[LG K10 Guides, News, & Discussion] wizzardsk:
I guess I give it up for now. The only thing that I need root for is f.lux app, the LiveDisplay alternative from CM. I will wait for come CM release rather.

Thank you very much for your patience.
[LG K10 Guides, News, & Discussion] 123xdagsm:
#sorry for may bad English

Hi my phone is LG k10 430dsy android 6.0

can anyone root k10 430dsy with this method if anyone say or know another method please answer

Thankx
[LG K10 Guides, News, & Discussion] ArcherEmiya:
As of now, none of us get the chance of rooting K10, even me who try it 5x failed and as of now I give up. I'll just wait for a new method or tricks just like wizz said.
[LG K10 Guides, News, & Discussion] Br_andon:
I have a problem with this. Because the phone is not rooted yet and I can't root it. I can't flash twrp recovery and cannot flash the SuperSU.
[LG K10 Guides, News, & Discussion] gottlasz:
So what? There is a description in the OP, at which step did you get stuck? What device do you use? Which android version?
[LG K10 Guides, News, & Discussion] Br_andon:
I never got stuck at any point. I have an lg k10 lgms428 Android 6.0.1. And the twrp recover won't install because I can't flash due to no root. Which is what I'm trying to get. So I guess ima have to wait for a KingRoot or other one click root methods.
[LG K10 Guides, News, & Discussion] 7Venom:
Great thread

Works great, gottlasz has put a lot of effort into this amd he's done great. All of this works if you follow the detailed guide on chinaphonearena. It's acctually not hard, and i successfully rooted my LG K8 K350n, that i thought was impossible before.

Best and the only thread to this phone, thank you
[LG K10 Guides, News, & Discussion] marvinalnashi:
I have a Sony Xperia E5, which has similar specs to the Lg K8 (Mt6735 with Android 6 MM).

I would like to know if I can use the K8/K10 Mediatek twrp recovery for my phone.

Also, will I be able to root it by flashing supersu in that recovery after unlocking my bootloader?

As I have Marshmallow, dm-verity is enabled, so how do I get rid of it? I'm not a kernel developer.

Also, how can I know if whether my E5 is using lz4 or not?

I just want to find a way to get this device rooted, so I can get rid of the bloatware.

Thanks in advance.
[LG K10 Guides, News, & Discussion] gottlasz:
Are sure you can boot into the TWP at all? I mean can you reboot your phone to fastboot? Open your bootloader? Anyways if you have the firmware file for your phone and you can extract the recovery partition than you might have a chance to port TWRP for your phone. Just link me the firmware and i'll check it tomorrow.
[LG K10 Guides, News, & Discussion] marvinalnashi:
Here's the firmware link: https://drive.google.com/open?id=0B-pYCSb_qlnRMTFqdUZnVUNtbzA

And yes, since it's a Sony device we can get the bootloader unlocked by using flashtool or adb.

The firmware is in ftf format and contains mostly .sin files.

I'll extract the system files tomorrow and will update this post with a link to the zip firmware, if I manage to do this succesfully.
[LG K10 Guides, News, & Discussion] gottlasz:
I was looking into the ftf and i found no recovery partition. Maybe it's in the system.sin and i also read somewhere that the sin files can be extracted by flashtool. I just don't want to install flashtool cos i'm afraid it would mass with my usb drivers so if you could extract system.sin and also boot.sin and send it to me maybe i could take a look.

Also i wonder if you can reboot your phone to fastboot? (from adb "adb reboot bootloader") so you could try to boot into any recovery to test it from fastboot (e.g "fastboot boot twrp.img").

You have to unlock your bootloader first.
[LG K10 Guides, News, & Discussion] marvinalnashi:
Well appearantly I was mistaken. I saw on the official Sony page that flashtool is compatible with this model, but you need to have your bootloader unlocked.

And I searched in the list of devices that can be unlocked, but appearently the E5 isn't supported, so it looks like I'm stuck now.

So I'm unable to get into fastboot.

Anyway, I'm trying to extract the system and boot .sin files.

As this is an Lg thread, I'll send you a private message when I finished extracting them.

Edit1: I got a black screen when running adb reboot bootloader. When running fastboot unlock bootloader it says waiting for device. Now I can't turn it on or off and the blue led light is on.

Edit2: I have managed to get the device rebooted into fastboot! I have full fastboot access now, so that can mean I can flash anything with it. I am going to unlock my bootloader tomorrow.
[LG K10 Guides, News, & Discussion] ze7zez:
scatter for SP FLASH TOOL

Can you see if it is a good scatter?
[LG K10 Guides, News, & Discussion] gottlasz:
k8 or k10? i looked into it and the partitions are quite similar as much as i remember but i don't know for sure. How did you get that? Anyways there are some fastboot commands which can be used to list the partitions and maybe we could compare based on that.
[LG K10 Guides, News, & Discussion] ze7zez:
MT6735_Android_scatter.txt from [Hovatek] TWRP for Gionee M5.zip.

I'm interested in K8. I do not have it yet.

--- add ---

Generaly the problem is that SP FLASH TOOL does not support MT67xx.

But perhaps even able to make a backup partition, after unlocking the bootloader.
[LG K10 Guides, News, & Discussion] gottlasz:
Maybe, see the problem is that each model has slight differences. Maybe some of the first partitions are at the same position for some devices but mostly the rest of the partitions are mixed up..

Why do you need to make a backup that way?
[LG K10 Guides, News, & Discussion] zocker7:
Hi,

i have followed the tut, its very simple but after flash the last image the phone turns immediately off after bootmessage phone corrupt and with cable connect its bootloop! :(
[LG K10 Guides, News, & Discussion] ze7zez:
I did not write that I want to make a backup using SP FLASH TOOL.

I just want to know what I can expect in the case of SFT.
[LG K10 Guides, News, & Discussion] gottlasz:
Which model is it? Please make a recovery log next time you try and send it to me. Also consider using this tutorial:

http://xdaforums.com/lg-k10/how-to/root-lg-k10-mtk-chipset-95-method-t3498166

Its basically the same with some additional steps.
[LG K10 Guides, News, & Discussion] gottlasz:
I also tried using sp flashtool before but with no luck so idk what you can expect from it. I think you might have more chances with lg flashtool:

http://4pda.ru/forum/lofiversion/index.php?t724161-1560.html

but i never tried it.
[LG K10 Guides, News, & Discussion] ze7zez:
Here it is not the point to decode K350nds10b_00_0719.kdz of July 2016, but to make a backup partition from April 2016.
[LG K10 Guides, News, & Discussion] gottlasz:
Great news, i also spent hours and hours to "reroot" my device. I'll update OP tomorrow using your instuctions. :)
[LG K10 Guides, News, & Discussion] kappu:
hi gotlaz.. please detailed intructions with flash boot at twrp mode.. should i flash boot.img at twrp..? instead flash the boot.img at adb windows.

---------- Post added at 11:53 PM ---------- Previous post was at 11:45 PM ----------

please consider join this group for active chat..

https://telegram.me/joinchat/C3Y3m0CuBZsDoquFWJyW-w
[LG K10 Guides, News, & Discussion] gottlasz:
you better us description in the OP and also read the chinaphonearena thread (link in the OP)
[LG K10 Guides, News, & Discussion] kappu:
can u provide the link ?

i got it thanks
[LG K10 Guides, News, & Discussion] cooduaty:
Hi!

I am trying root my lg k8 k350nds to enable OTG.

But tell me please, is it possible at all? To use OTG in this phone?
[LG K10 Guides, News, & Discussion] gottlasz:
I also wanted to enable OTG, that's why a made root on the fisrt place... but no play store apps (like OTG helper...) were able to enable it after root.

Once i get my phone back from the repair shop i'll try another method to enable OTG and i'll let you know.
[LG K10 Guides, News, & Discussion] kappu:
i want to share my boot which has modified for k430dsY

http://www.mediafire.com/file/lqgcd78di7n0icz/bootlz4.img

and

http://www.mediafire.com/file/jepy16607n7pp66/bootlz4root.img

i follow gotlazz tuts, install SU success, but when reboot my device seems bootloop, there is state " your devices is corrupt " then blank. i reflash again my device from LG bridge. di i miss some part when trying to root?

here what im doing when rooting :

1. backup boot image

2. change Lz4 to gz

3. flash the bootgz.img ( im confuse, should i flash at TWRP or back into adb then flash there? , for now im flashing the boot at TWRP )

4. install SU, work and done

5. backup boot image, change to lz4

6. flash bootlz4root

7. reboot

and giving me result your device corrupt and blank

should i flash the 1st backup boot lz4 then flash bootrootlz4? when im trying to reboot into bootloader at TWRP its show nothing than error. tell me is that Ok if im stay at TWRP and doing flash with adb not at twrp?