yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] mor_1228:
i am on 4.2.2 stock + rooted

any special thing to do before going to stock 4.2.2 again or simply follow previous methods as used before ?

any factory reset to be done before ?
[G2 Android Development] joshxdroid:
Found answer, deleted
[G2 Android Development] phewBAR:
I'm in the same boat as several others now. Was rooted, took the OTA, lost root.

Hopefully someone can figure it out. I'll buy a beer.
[G2 Android Development] mor_1228:
if i tick keep root survival in super su so the root will be there in kitkat also ? ots update
[G2 Android Development] Sean473:
So fail lol.. Been more than 1 month and there is still no exploit found for root? Is anyone actually working to find one or is everyone just sitting on their buts till LG closes this loophole where you downgrade to 4.2.2 root, flash 4.4.2???? I'm dieing here without root.
[G2 Android Development] player911:
Verizon OTA KK update has been captured and installed as of today.

Maybe the Verizon updates will help the Sprint guys, and figure out root.

Although even though kitkat has been out, Its only just now start to hit other phones. The G2 was one of the first to get upgraded. Once we get more devs on KK, we'll be closer to a solution.

At this point, thank God we have an exploit because most kitkat phones don't.
[G2 Android Development] naz78:
I'm already rooted using ioroot10 and would like to download and install the OTA update....my understnding is that I need to root using ioroot version higher than 21 before the OTA.

My question is can just root again even though I'm already rooted? I'd like to root to the latest ioroot version.
[G2 Android Development] moteb:
Is it work with 4.4.2

Thanks for efforts..
[G2 Android Development] robogo1982:
NO. Please read before asking obvious questions. Please.
[G2 Android Development] mor_1228:
The good thing about flashing kdz file is that even if your mobile is rooted and shows rooted in download mode. after flashing stock rom via kdz it again shows unrooted so that we can easily claim warranty. :good: :highfive: :laugh:​
[G2 Android Development] moxalis:
I'm also stuck on 4.4.2 without root after updating over PC suite (I wouldn't get an OTA prompt, maybe because I was rooted?)

If I downgrade to 4.2.2, then root and upgrade over PC suite, would the OTA survival on SU would still work, or is it exclusively for OTA?

And I hope the LG Backup would restore the apps without erasing the root, because I don't reallly have the patience to start over with a formatted phone..
[G2 Android Development] autoprime:
ioroot25

4.4.2 root is here.

Download HERE

Changelog:

v25 - Added root for 4.4.2 devices. Now works on most LG 4.4.2 devices. Exceptions being the TMO D801 G2 and D838 G Pro 2.

Thanks to [MENTION=4454918]jarari2[/MENTION] for the idea to go through stock recovery.

Manual method below if you don't wanna use script:

[SIZE="1"]Download and extract the latest IOroot.zip
Enable USB Debugging. VZW users must also enable ethernet mode.
Open terminal/command prompt. windows/linux users: cd into /ioroot folder. mac users cd into /ioroot/mac
(windows users can hold shift key, right click in ioroot folder. Select "open command window" option.

copy/paste commands below.. hitting enter/return after each line. [/SIZE]

[B][I]adb devices
adb reboot recovery
[SIZE="2"](when booted in recovery, select: 'apply update from adb' with power button)[/SIZE]
adb sideload kk_root.zip[/I][/B]

reboot when zip finishes flashing. done.

*ATTENTION*

Verizon G2 4.4.2 seems to nag about files being modded or a virus being installed... obviously there are more checks in place to detect root. I assume a simple .apk freeze will fix the nag... which apk though.. I do not know. That's for you guys for bother with ;)

*ATTENTION 2.0*

Want to install custom recovery? It's under beta testing right now but read this - http://xdaforums.com/showpost.php?p=51512054&postcount=5003

no support for D803/VS980 yet until new kernel is built.. everyone else should be good to go. READ READ READ before doing anything.

*ATTENTION 3.0*

It seems that the TMO D801 KK update doesn't allow you to use "adb reboot recovery" to drop into stock recovery... so ioroot25 will not work on TMO KK devices UNLESS someone finds another way to adb sideload on stock recovery. Without having the device myself... I cannot test methods to do this... so it's up to you TMO D801 users!

If you like my work feel free to DONATE
[G2 Android Development] okgnew:
It works on my UK D802 with KK ROM!

(I just needed to select 'Apply update from ADB' in recovery).

Thank you!
[G2 Android Development] autoprime:
did you use script or manual method?

apply update from adb message gave you a yes or no option? and you hit yes?
[G2 Android Development] okgnew:
I used manual method:

1. adb devices

2. adb reboot recovery

3. In recovery selected 'apply update from adb' (it did not ask for yes/no)

4. adb sideload kk_root.zip

5. Reboot
[G2 Android Development] autoprime:
gotcha.. I'll make some changes to script. thanks.
[G2 Android Development] okgnew:
Btw, I think that the system partition is read-only.

At least I can't modify hosts file.

Do we need a modified kernel for a write access to the system partition?
[G2 Android Development] autoprime:
not sure... I dont even have KK as an option for LS980 yet. I've had to test thru others.

you tried mounting system as r/w first I assume?
[G2 Android Development] okgnew:
Yes. Mounting system as r/w works.

But then deleting/modifying any file on system partition does not work.

But at least I can backup/restore user apps/data via Titanium Backup (this confirms that the basic root rights are working fine).
[G2 Android Development] moxalis:
I run the script on my D802 but it hanged after the step of selecting "apply update from adb".

I closed the window and put the last command manually though and everything worked perfectly.

Cheers!
[G2 Android Development] schnip:
same for me

works like a charm when doing the last step manually. Thanks a lot! Waiting for 4.4.2 root has been well worth it!
[G2 Android Development] autoprime:
hmm might be SELinux thing. Might need to disable in custom kernel... not sure just yet.

hmm can't test myself since I dont have 4.4.2 on my G2 yet.

when it hangs after the "apply update from adb" ... the next command in the script is a "pause" which should instruct you to hit enter to continue.

was Enter pressed and still nothing happened? or did it not tell you to hit Enter?
[G2 Android Development] moxalis:
There was a press any key to continue prompt before the hang, not sure if you were supposed to press enter there instead. I could check.

Nope, hitting enter there doesn't seem to do anything before or after pressing any key.
[G2 Android Development] niko2010:
Thanks a lot autoprime. It works fine. ;)
[G2 Android Development] salo1:
Works Super! Thanks http://xdaforums.com/images/smilies/good.gif
[G2 Android Development] okgnew:
Now we need a recovery that is compatible with KK Roms.

Official TWRP 2.7.0.0 recovery does not work on G2 D802 with KK: I can flash it via flashify, but when I try to boot into recovery I get 'secure boot error - certificate verify error'
[G2 Android Development] schnip:
This part:

echo When recovery loads, select: *apply update from adb* with power button
pause
.\adb.exe wait-for-device
.\adb.exe sideload kk_root.zip

The pause came up correctly so i hit a button. Then nothing happened. So the script hangs here "wait-for-device". I pressed CTRL+C and then did "adb.exe sideload kk_root.zip". Done.
[G2 Android Development] autoprime:
ya thats because loki is patched in 4.4.2.

Freegee will be updated soon to take care of all this.
[G2 Android Development] autoprime:
ok. i removed the extra ".\adb.exe wait-for-device" i had in there. i was using it to make sure adb detected the device before sideloading.. but I'll just have to hope it's detected instead.

now it should try to sideload as soon as you hit enter to continue.
[G2 Android Development] schnip:
Then you should let the user know to not press enter before the recovery has been set up to wait for sideloading. Its probably not clear enough now.

"echo When recovery loads, select: *apply update from adb* with power button"
[G2 Android Development] okgnew:
So, if I get this right: 4.4.2 has a locked bootloader and Freegee will unlock it?
[G2 Android Development] phewBAR:
Hey auto, awesome work. Much appreciated. Let me know your PayPal and I'll buy you a beer
[G2 Android Development] chinaa:
hundred thanks to you !

I knew I wouldnt need to go back to 4.2.2.
[G2 Android Development] phewBAR:
Did the manual method. Super easy and worked like a charm!
[G2 Android Development] autoprime:
wasnt expecting any donations... but if feeling generous...

pp link is in my signature here.

always appreciated :highfive:
[G2 Android Development] penser:
Just want to be absolutely sure before I brick, does this work on ATT KitKat?
[G2 Android Development] robogo1982:
I don't think you can brick anything...
[G2 Android Development] XConvict:
Did it the manual way.

Worked like a charm.

Thanks very very much!
[G2 Android Development] olipbo100:
Did it the manual way. But when i paste in "adb reboot recovery", hit enter and then my g2 just reboot. :confused::confused:
[G2 Android Development] autoprime:
im confused too... if youre on 4.4.2 then it should work. when the device reboots.. it should boot into recovery and not reboot.

if you're on 4.2.2.. then you're using the wrong manual method.
[G2 Android Development] olipbo100:
I checked. I'm on 4.4.2 :(. and it's T-mobile g2 btw. :(. But still, thanks for your work :good:
[G2 Android Development] freebee269:
[MENTION=2684188]autoprime[/MENTION]

i restored my phone back to stock at&t kitkat 20c firmware with lg flashtool to test the script for you. i just put phone into debugging mode and airplane mode, double clicked on root.bat, hit enter, it rebooted into recovery, selected update from adb, then reboot system. i now have root on my stock at&t kitkat with stock everything. thank you very much.
[G2 Android Development] ChaoticKinesis:
I'm having this same problem. Also T-Mo 4.4.2 and "adb reboot recovery" reboots me into recovery for a fraction of a second. Then it says "installing system updates" and immediately reboots.:confused:

Took me a few tries before I even noticed that I was actually getting into recovery rather than just rebooting.
[G2 Android Development] Kristi-Tech:
It worked on my D802 running D8020b-EUR-XX. Thanks a lot :) :good:
[G2 Android Development] naz78:
Anyone please?
[G2 Android Development] bberryhill0:
You should be fine. Go for it.

Swyped from my Verizon LG G2 using Tapatalk 4.4.13
[G2 Android Development] ov3rkill:
Works like a charm on my d802 international.

edit: can't change the lcd density. anyone tried changing the dpi?
[G2 Android Development] arithon.kelis:
I'm in the same boat, also with T-Mobile. Button-mashing has yet to actually do anything useful.

Update order:

stock [10c bootloader, 4.2.2] -> OTA 10g bootloader -> OTA 4.4.2

Seems like there's something that can be done to take advantage of this, but I'm drawing a blank right now.
[G2 Android Development] nickytun:
Does anyone confirm it work for F320KLS 4.4.2??
[G2 Android Development] wes3284:
working great on my open d802!!

been waiting for this!! thanks a lot autoprime
[G2 Android Development] ChaoticKinesis:
So has anyone successfully used the manual method on a D801 running 4.4.2? Seems the only 3 people that reported here all have the problem of not being able to boot into stock recovery and stay there. Any other variant affected by this problem?
[G2 Android Development] mlm1102003:
d802

i'm on 4.4.2(with no root and recovery)

and there is no custom recovery that i could install on 4.4.2

(after command adb reboot recovery)

so which recovery does it go ?does stock recovery can flash zip?
[G2 Android Development] shiftnd:
Same issue here. I've got a TMo D801 as well and cannot boot into recovery. The green android flashes for a second and then boots normally. Are we missing something?
[G2 Android Development] joq3:
I just received the 4.4.2 in my country. Will update to KitKat today, and then use this method to root it.

My question is, I'm on 4.2 now, rooted and with TWRP. What do I need to do before i flash the KDZ-file? Can I flash it without doing anything? Or do I need to restore to the original recovery? (How do I do this?) Can I flash the KDZ without removing my changes to 4.2, like G2 Xposed etc.?

Please clarify this, thank you!
[G2 Android Development] Binaryian:
I so didn't expected root to come so quickly! 10$ for some beer has been donated. :)
[G2 Android Development] mor_1228:
is auto root i.e root.bat working with Internationale D802 without any problems ?

or should i use manual method

but i will use root.bat method if its working without any problem
[G2 Android Development] stetre76:
if I root the G2 but do NOT put on any custom ROM (> stay on stock ROM), what are the chances to get OTA updates in the future?

I am mainly interested in root for the camera (Xdabbeb's Camera/Video) & sound improvements (Viper4Android)

[MENTION=3015498]mor_1228[/MENTION] - in a German forum (Android-Hilfe) a user commented that the root.bat worked without a problem for him (on an open D802)!
[G2 Android Development] morfyna:
Thx Thx thx!!!! good!

LG 802 Vodafone ITA 4.4.2
[G2 Android Development] Legatus Onoris:
THANKS A LOT autoprime, the manual method works perfect!
[G2 Android Development] 18.4009:
Having the same issue as other on t-mobile. adb reboot recovery rebooted my device then wiped it and rebooted :(

No other options were available.
[G2 Android Development] .jRay.:
Script Working on Indian D802, thanks man. :good::good::good::good::good::good::good::good::good::good::good::good::good:
[G2 Android Development] thelgog:
Hey guys add a new family to 4.4.2 lg g2 ls980 (sprint) just got the zvb update so theres a ota notification

To sum it up 4.4.2 is on the ls989
[G2 Android Development] AzureusPT:
[MENTION=2684188]autoprime[/MENTION]: Worked without issues using the script (not the manual method) on a d802 :good:
[G2 Android Development] mor_1228:
u used root.bat method ?
[G2 Android Development] Drachenminister:
works like a charm on my d802.A6DEWH D80220b-EUR-XX

Does this mean that it is possible to flash anything via adb-sideload except custom kernels and recoveries that would need to be signed by LG?
[G2 Android Development] nomad4ever:
Worked here also flawlessly! Automatic via root.bat. D802 international bought and in use in Philippines on 4.2.2. Updated to 4.4.2. Rooted with ioroot25. Thanks man!!!!
[G2 Android Development] joliv:
Thanks Autoprime. Now rooted, D802 Switzerland, 4.4,2.
[G2 Android Development] 18.4009:
It is looking more and more like T-mobile is the only device not working with ioroot25. Don't think it has much to do with the script and more with the fact our devices don't want to reboot into stock recovery.
[G2 Android Development] Swetnes:
I can confirm that the script works fine on AT&T D80020C.
[G2 Android Development] JasonBourne.Qc:
I can confirm it's working like a charm on the Canadian D803 using the script :good:

Thanks [MENTION=2684188]autoprime[/MENTION] ;)
[G2 Android Development] eyegor:
Worked without a hitch on d802!
[G2 Android Development] thelgog:
Can some one confirm that this works kon the ls980 it just got kitkat
[G2 Android Development] jeonjunior:
Many thanks ! that good but if rooted, can ota update or not ?
[G2 Android Development] robogo1982:
Why don't you try it yourself? It's not that hard to do nor will it cause any kind of problems with your phone. If it works, grear, let us know. If it doesn't, still let us know.
[G2 Android Development] robin786:
Booyah! it worked on my D802!

Thanks a million autoprime!
[G2 Android Development] mor_1228:
Is battery really bad on kitkat when compared with jellybean
[G2 Android Development] freebee269:
if you're on stock ota you will still get ota updates in the future if there any. best to freeze the software updater so it doesnt try to force update.
[G2 Android Development] KarlDag:
Amazing! Simple! Beautiful! Manual update worked perfectly on my D803, thanks a lot!
[G2 Android Development] freebee269:
if he used the script then that's the root.bat file.
[G2 Android Development] .jRay.:
Its almost similar. I get 5 hr 30 min screen on. With auto brightness
[G2 Android Development] robogo1982:
Finally updated to 4.4.2 via KDZ and rooted with ioroot 25. Restoring Titanium backup files as we speak.

A word of advice: if, when you input adb devices you see your device, but it's displayed as offline, unplug the cable, plug it back in and accept the RSA notification, put the check on Always trust this computer and try again. :)
[G2 Android Development] mor_1228:
this thing is funny.

i updated to kitkat via kdz method but still my device showing software update i.e kitkat ota update is available for this device :D
[G2 Android Development] shadehh:
Can someone help me or link me to the right direction? don't wanna open an extra thread for this.

I managed to root my phone with kitkat but seem unable to get twrp recovery to work

can someone guide me to the right thread or something? I've tried a few things but maybe i'm just going on about it wrong. Anyone mind? thanks!

edit: oh yeah, thanks for the root method man, much love for that!
[G2 Android Development] bayuadhi069:
Kitkat 4.4.2 root available? Damn [MENTION=2684188]autoprime[/MENTION] you're good.

You're the best. Thank you for your great work
[G2 Android Development] pani690:
Thanks for the root autoprime. Worked as described with my D802 on 4.4.2 Thanks again.
[G2 Android Development] rma1482:
I'm having the same issues. No matter how I try to get to the stock recovery it just flashes the green Android and reboots. Even if I try to get into the recovery using the hardware keys I can't get it to go in. Also not sure if that method is only for uses who already have a custom recovery.
[G2 Android Development] okgnew:
The battery is slightly worse for me in KK (discharges about 20% faster than JB).
[G2 Android Development] autoprime:
using hardware keys method wont work. it just seems tmo phones wont work with this unfortunately. adb reboot recovery needs to put you into a stock recovery method for this to work.. which is apparently ALL other 4.4.2 LG devices(not limited to G2) except tmo 801. :(

ALSO for anyone wanting recovery.... READ http://xdaforums.com/showpost.php?p=51512054&postcount=5003
[G2 Android Development] shiftnd:
So do you have any hope a workaround can be found for D801 with this new root method?

And thanks again Autoprime, we all appreciate your work. My paypal beer donation will be coming your way as well.
[G2 Android Development] autoprime:
without a D801 in my hands.. im not sure how much I can do. it may need a completely different "exploit" if there is no way to reboot into stock recovery. theres a chance its another command or something though.
[G2 Android Development] ChaoticKinesis:
The thing is it does boot into the stock recovery. But it seems that the recovery immediately thinks the command to flash an update has been passed. Not really sure if there's a way to verify if that's the case but I'm wondering if providing an appropriate update.zip for recovery to auto-flash would serve as a solution.
[G2 Android Development] salisbury_steak:
Thanks [MENTION=1157052]thecubed[/MENTION] and [MENTION=2684188]autoprime[/MENTION]!

Successfully rooted my Philippine G2 with a PC suite upgrade to D80220a-ESA-xx.
[G2 Android Development] stetre76:
ok, thanks for your answer - but the point is, would I be able to update ota (not only being shown there is an update), or would that be a problem (and that's the reason why I should freeze the software updater...)?
[G2 Android Development] autoprime:
great pic :)
[G2 Android Development] LenAsh:
Really???

Moderate and Light use shown below...

OFF TOPIC, by the way
[G2 Android Development] freebee269:
you will be able to do the OTA update on future releases as long as you have the stock recovery on your phone. but there's also another issue with the update detecting the phone being rooted and popping out an error that will not let you take the OTA. so it's best to just freeze the software updater program just to be safe.
[G2 Android Development] woof123:
I got the F320s version of the phone and although i can take the ota,the phone stops on the install....While that wasnt the case before.
[G2 Android Development] AnteusFogg:
Maybe the recovery on d801 is such as it looks for a "standard" update file cooked by Tmo and we could trick it by putting the script we want into that location?

I know nothing about Android so I'm just "brainstorming" here but it seems as though the recovery could be somehow automated and since it doesn't find anything to do, it just reboots the phone?

That being said, although as said I know nothing about Android, I'll happily play the guinea pig if someone needs to test for T-Mo :)
[G2 Android Development] freebee269:
yes. the install checks for root and if there's root it pops up a black box with some letters and numbers and does a rollback. then after reboot you get a message that updates cant complete on rooted phones. but this is off topic and we shouldnt derail this thread. hehe.
[G2 Android Development] woof123:
Well its root related kinda...it would be nice if we knew a way to fix it,in order to take otas...
[G2 Android Development] laserburn:
Wouldn't work from Linux, as I couldn't get it to display that message on the phone screen allowing computer to take control when you run adb. But it worked flawlessly from Windows 7. :o
[G2 Android Development] ChaoticKinesis:
That was my point exactly, as indicated in post #1487. I'm fairly experienced with programming and Linux but not so much with Android, would be happy to help with testing if there's something I can do.
[G2 Android Development] PeartFan40:
Thank you for your hard work. I did everything as instructed with no luck. I'm running a D801 with kk. Ota. With this said, does anybody know how to downgrade from 4.4.2 to earlier non kit kat? Thank you.
[G2 Android Development] jebas15:
please help me.

http://xdaforums.com/showthread.php?t=2701553

...
[G2 Android Development] AnteusFogg:
Question is then where would we need to put the update.zip?
[G2 Android Development] stevep2007:
jotti.org and virus total report ioroot25 has Andr.Exploit.Ratc

Thanks autoprime for your explanation "its a root exploit.. of course its a false positive." Now that you state it, its obviously a false positive, code that roots will be seen by scanners as malicious by jotti.org and virus total reporting Andr.Exploit.Ratc. This is a false positive. Its the first time for me, I've rooted from eclipse in the past.

Thanks for clarifying.
[G2 Android Development] ChaoticKinesis:
No idea, on past Samsung devices a file named "update.zip" in the root directory of internal storage was the expected location for flashing via stock recovery. I have tried and this doesn't seem to be the case here. The real question is do we even have a properly working stock recovery on our D801. I'm not really sure how to determine that.
[G2 Android Development] mike_spiky:
Thanks for the root, autoprime.

It worked as described, manual mode, on my D80220a-SEA-xx.