yashsingh1/xdaforums huggingface dataset:
[G2 Android Development (D802)] somboons:
For D802 Only

I have modified One Root Script ROOT KitKat / Lollipop firmware that for One Click ROOT+TWRP D802 Support firmware 30a/30d.

It can be use in other firmware version of D802

Download Link:

LGG2-D802-OneClickRootRecoveryV1.1.zip

http://bit.ly/1Ij1soU

If you like my work, want to support development and have few coins spare .You can Press button DONATE TO ME

How to install

Backup Data on SDCARD Before doing everything

AFTER SCRIPT FINISHED IT WILL BE REBOOT TO RECOVERY AUTOMATICLY

1. Make sure you are enable USB Debuging Mode . See this Method > Enable Debugging Mode

2. Plug G2 into computer

3. Run OneClick_ROOT_RECOVERY.bat

4. Enjoy ROOT+TWRP on Lollipop Firmware

Normally If doesn't work for people please checking port that connecting between device and computer or checking LG driver and Re-run script again or use Manual method :)

What does the automate script do ?

(For people can't use automate script we have to use manually ROOT+TWRP)

Make sure you are enable USB Debuging Mode . See this Method > Enable Debugging Mode

1. Pushing all stuff files

Run file

It will be show command DOS windows

Using command as below to push files to device

2. Reboot to Download mode

3. When enter to Download mode successfully.We need to send command to connect device with computer

COM_PATH . we can find with ports.bat command

Ex.

A command that send to device when connecting to computer with Download Mode is

4. When we see this prompt

Try to use this command to ROOT+TWRP

5. When we see this message

Try to use LEAVE command to restart device.

6. Enjoy ROOT+TWRP

ขอบคุณครับ

For. any question that want to ask me in private Please Leave a question in facebook group

https://www.facebook.com/groups/1420724551528661/

......... DON'T INBOX TO ME .........

[YOUTUBE]r39qSkfLGIw[/YOUTUBE]

Original Script

[Guide] Root LG firmwares (KitKat / Lollipop) - One click script by [MENTION=2200907]avicohh[/MENTION]
[G2 Android Development (D802)] Led Zeppelin:
Ok

Tested on 32g Spain Vodafone 30d Rom and works like a charm, thanks :)
[G2 Android Development (D802)] somboons:
I will be update my script for One Click ROO+TWRP. :D
[G2 Android Development (D802)] Led Zeppelin:
That would be awesome :D
[G2 Android Development (D802)] OMERZEN:
would be awesome!!

waiting just for that.. thanks :fingers-crossed::highfive::victory:
[G2 Android Development (D802)] somboons:
Link online.
[G2 Android Development (D802)] somboons:
Feedback to me.
[G2 Android Development (D802)] legola:
What khappens now to ur flashable rooted v30a and v30d
[G2 Android Development (D802)] somboons:
Bump stock kernel is different .I want to people use compatible kernel.
[G2 Android Development (D802)] 4Freedom:
This downgrade laf and aboot to v20?
[G2 Android Development (D802)] somboons:
this is a concept.
[G2 Android Development (D802)] Maxximo88:
Great job man! Root & Recovery on Lollipop with LG G2 D802 is easy to do now!
[G2 Android Development (D802)] 4Freedom:
Okay, so now we have kitkat bootloader and kitkat "downlaod mode" on lollipop.

Between, about recovery, MUST we use only bumped version?

And every rom is compatible now?
[G2 Android Development (D802)] 6ril1:
I answered you on all this points: http://xdaforums.com/showpost.php?p=59882657&postcount=2

again: kk bootloader=> only bumped recovery/kernel

only rom with bumped kernel work on KK bootloader
[G2 Android Development (D802)] 4Freedom:
How can i understand if a rom has a bumped kernel?

Like official cm12?

And thanks for everything
[G2 Android Development (D802)] remio33:
i have a problem it say Couldn't open the port \\:\ COM3 after the phone enter in download mode
[G2 Android Development (D802)] somboons:
Screen shot please
[G2 Android Development (D802)] Kuoi:
I'm stuck at :

special command : ENTER , LEAVE

#

I did the root script once ,but wanted recovery ... maybe the other root script from avicohh is interfering ?

How to uninstall the supersu completely ,because it worked with the avicohh script, but i wanted recovery too so trying to install your script now ?
[G2 Android Development (D802)] somboons:
Can you copy of log that show on command dos to me?

This script working very well for me.
[G2 Android Development (D802)] Kuoi:
Trying the avihocc script now ,but as expected ... same , stuck on #

I think the first install of supersu with avihocc script interfered with yours , so now i think i have to do the installation of the rom again to test if it was
[G2 Android Development (D802)] frankbald:
Hi everybody, the download link to the files is broken, can you please adjust it?
[G2 Android Development (D802)] Len:
There is something: http://pan.baidu.com/share/link?uk=537351078&shareid=3759684024&third=0&adapt=pc&fr=ftw

Still not sure if it's safe. [MENTION=4008653]somboons[/MENTION] please add new link & sha/md5 sum.
[G2 Android Development (D802)] Ginel:
im using 30d and sayd me the root failed :(( whyyy
[G2 Android Development (D802)] JMailuhu:
Use kingroot, i just rooted my g2 on stock 5.0.2 LP

Kingroot: https://drive.google.com/file/d/0B52SB5R_clyUUnNKdmpveGlZdVk/view?usp=docslist_api
[G2 Android Development (D802)] paolo21:
ok

thx
[G2 Android Development (D802)] T4underbolt:
Waiting for device...

Phone found at COM5!

Rooting phone...

Author : blog.lvu.kr

SPECIAL COMMAND : ENTER, LEAVE

##

Done!

This is what I have. It is 100% in the app but 0% in download mode in the phone. I tried twice already. After reboot there is no supersu. Im at lolipop 5.0.2 D80230d.
[G2 Android Development (D802)] r4Rok:
This is all you get, from the Google Drive link.
[G2 Android Development (D802)] JMailuhu:
Weird that file doesn't have a virus at all.. Stupid gdrive!

Let me see if i can reupload to another host like Mega or something..

Edit: re-upload to megashare: https://mega.nz/#!g4ZS2bgA!4-Ueu18zchPGsOKupKz315xV-mltnKFkFdTE9MXMAf0
[G2 Android Development (D802)] leroys:
Enter decryption key

To access this folder/file, you will need its Decryption key.

If you do not have the key, contact the creator of the link.
[G2 Android Development (D802)] JMailuhu:
I am the author. I used the wrong link.. I've updated post with correct link incl. key!
[G2 Android Development (D802)] sagor1:
Here is the update link-

https://onedrive.live.com/?authkey=...36&parId=E6F1C3DA9FE27372!11034&action=locate
[G2 Android Development (D802)] moocamr:
amazingly worked for me tnx
[G2 Android Development (D802)] immi803:
30f ?

[MENTION=4008653]somboons[/MENTION]

Can it root latest 30f eur lg g2 stock rom?
[G2 Android Development (D802)] somboons:
No
[G2 Android Development (D802)] immi803:
can you please advise some tool to root 30f? i'm stuck with 30f stock, please help how to root it?

please help !!!!!!
[G2 Android Development (D802)] r1f1:
It's work for version 30f?
[G2 Android Development (D802)] immi803:
No it doesn't work for 30f, use king root, it works
[G2 Android Development (D802)] r1f1:
ok but i only need twrp and auto rec lollipop doesn't work for me, do you know another method to flash twrp??
[G2 Android Development (D802)] immi803:
autorec lollipop works with 30f rooted stock perfectly, you must be doing some wrong, check at your end
[G2 Android Development (D802)] r1f1:
Yes, but a few times ago i flash twrp with autorec and now i start de app but the message: "Everything seems fine, you can flash twrp now" doesn't appear and the app does nothing
[G2 Android Development (D802)] immi803:
Wait for autorec to take backup,
[G2 Android Development (D802)] r1f1:
Yes, i wait but after backup it should be appear the message but doesn't appear
[G2 Android Development (D802)] immi803:
Use adb to push recovery
[G2 Android Development (D802)] Edris89:
You are awesome.

tried many methods. but only urs worked. amazing job
[G2 Android Development (D802)] luca.costantino:
Hi

cannot download the zip in the first post :(
[G2 Android Development (D802)] saintshakajin:
You can find there: http://xdaforums.com/lg-g3/general/guide-root-lg-firmwares-kitkat-lollipop-t3056951

Just tested it and working :)
[G2 Android Development (D802)] hitardo:
Hello you all,

I am on Portugal v30D stock ROM and I am not able to perform this tool to Root and flash TWRP.

I already change the port, enter download mode manually, etc... But with no luck.

It seems like "DIAG" is not available on download model.

Here I sent an image with my command prompt:

image post

Do you think flashing a KDZ with v30A will allow me to perform this tool to Root and flash TWRP?

Cheers!
[G2 Android Development (D802)] slayercolon:
The link for OneClickRootRecovery isn't working

Hi, I am new to this forum. The link for OneClickRootRecovery isn't working, Google says it against its terms & conditions, can you please provide another link to it?

Thank you!
[G2 Android Development (D802)] Miki_Loz:
It was really helpful. Thanks!
[G2 Android Development (D802)] Fustang:
Can you please update your script to root 30f?

I dont want to use kingroot, and every other lg methods won't work with this version.

Thanks.
[G2 Android Development (D802)] rR28:
could someone tell me are these the correct steps am I following, right now LG G2 is running 4.2.2 jellybean.

1. update to 5.0.2 lollipop and enable developer debugging mode.

2. install lg drivers and root it with "one click root"

3. check whether phone is rooted with "root explorer" and then install autorec from playstore or apk

4. once booted in twrp, flast the latest version of twrp blastagator

5. if everything works as planned, flash cm13 and gapps accordingly (no need of lollipop bootstack)

I am sorry, but I am new to rooting and flashing, i just want to make things clear and if i missed out anything please point it out.
[G2 Android Development (D802)] asimoq:
How can i fix it?

Starting adb server...

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

Waiting for device...

Device detected!

Pushing files...

3143 KB/s (1048328 bytes in 0.325s)

2557 KB/s (9226 bytes in 0.003s)

3487 KB/s (4017098 bytes in 1.124s)

Rebooting...

Looking for LG serial port...

Serial port not found! please insert the phone manually into Download mode.

Disconnect the USB cable and turn off the phone.

Then press and hold the Volume Up button, and while you're doing that connect the USB cable again.

Waiting for device...

Phone found at COM3!

Rooting phone...

Author : blog.lvu.kr

SPECIAL COMMAND : ENTER, LEAVE

Couldn't open the port //./COM3

Author : blog.lvu.kr

SPECIAL COMMAND : ENTER, LEAVE

Couldn't open the port //./COM3
[G2 Android Development (D802)] iiolive:
Works great !! Merci !
[G2 Android Development (D802)] fesso:
hello, the link dosnt work any more. can somebody point me in the right direction please :)
[G2 Android Development (D802)] aaasss10:
Try THIS link.

;)
[G2 Android Development (D802)] Adnan008:
both this and original links are dead :silly:
[G2 Android Development (D802)] aaasss10:
THIS one should work :confused:
[G2 Android Development (D802)] Adnan008:
i really hope someone will release working version for v30f :(
[G2 Android Development (D802)] ArcOnFire:
It seems the file was gone.

Tried clicking the bit.ly link and I got this msg from Google Drive

"We're sorry. You can't access this item because it is in violation of our Terms of Service."

EDIT : Oh, nvm, see post #220, it works for me.
[G2 Android Development (D802)] ArcOnFire:
I think I'm stuck now

---------------------------------
LG Root - One click script
Original Script Written by avicohh
---------------------------------
Modify Adding install TWRP Custom Recovery for LGG2-D802
by www.facebook.com/droidth
V1.1
---------------------------------

Please make sure that USB debugging is enabled, and LG drivers are installed.

Starting adb server..

Waiting for device..
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

Device detected!

Pushing files..
3922 KB/s (1048328 bytes in 0.261s)
2382 KB/s (9757 bytes in 0.004s)
5042 KB/s (4017098 bytes in 0.778s)
4511 KB/s (1048576 bytes in 0.227s)
5056 KB/s (33554432 bytes in 6.480s)
5716 KB/s (16777216 bytes in 2.866s)
5317 KB/s (16777216 bytes in 3.081s)

Rebooting..

Looking for LG serial port..

Phone found at COM6!

Rebooting into Download mode..

Waiting for device..

The screen "Firmware Update" has been there for 10 minutes with progress at 0% and log only saying "USER B99".

I'm from D80230d_00.kdz firmware

---

ADD: Trying to reference the method on post #147

I stopped the batch proccess once in download mode then manually try to

Send Command \\.\COM6

But it gave me "Coulnd't open the port \\.\COM6"

Tried checking the available ports via Ports.bat

Only got

HKEY_LOCAL_MACHINE\hardware\devicemap\SERIALCOMM
\Device\Serial0 REG_SZ COM1

But after the phone rebooted, I checked the port and it gave me these

HKEY_LOCAL_MACHINE\hardware\devicemap\SERIALCOMM
\Device\Serial0 REG_SZ COM1
\Device\LGANDNETMDM0 REG_SZ COM5
\Device\LGANDNETDIAG1 REG_SZ COM6

ADD:

I must also say that my device manager has been reporting "Unknown USB Device" as soon as the phone booted to download mode. I have installed LG Drivers from

LGUnitedMobileDriver_S51MAN312AP22_ML_WHQL_Ver_3.12.3 then further upgraded to

LGUnitedMobileDriver_S51MAN313AP22_ML_WHQL_Ver_3.13.2

But same problem persist.

Help please?

UPDATE :

Rooting done.

I have to unplug the device on download mode once, then reconnect it.

After terminating from the batch proccess, I checked again via Ports.bat. The device is there!

So I just follow the rest of everything as suggested on post #147 (shell command), terminate once done. Force restart the phone. Viola! Rooted
[G2 Android Development (D802)] Hunter_X007:
link download fail :'(
[G2 Android Development (D802)] kolouch.petr:
the link does not work
[G2 Android Development (D802)] pmaioli:
this tool work on D805 (Brazilian Variation) with stock rom JB or Lollipop?
[G2 Android Development (D802)] amirmwolf:
Hello . I'm Cyanogen Android 6. How do I install Twrp? Help me please
[G2 Android Development (D802)] pacoban:
Sprint LG G3 LS980

Any chance this will work on a Sprint LG G3 LS980?

Thanks.
[G2 Android Development (D802)] tarnagy:
How to enter TWRP

I do not really know the LG G2 that I bought. He has Root and:rolleyes: TWRP. I do not know how to enter TWRP !!:rolleyes:
[G2 Android Development (D802)] olduniverse:
Thanks, it worked after fight with drivers and Win 8.1...
[G2 Android Development (D802)] Kurajmo:
Link mirror? I want try this on my LG G2 D802 with Stock 5.0.2 v30d
[G2 Android Development (D802)] coolhandfluke:
https://xdaforums.com/showpost.php?p=70796111&postcount=220

Click the word 'this' in the post
[G2 Android Development (D802)] Kurajmo:
Nah its not needed anymore. But thanks for help
[G2 Android Development (D802)] Yosihey:
link is down
[G2 Android Development (D802)] sturek:
Here you are:
[G2 Android Development (D802)] gabrielmulle:
I also would like to know if this would work in D805 ...
[G2 Android Development (D802)] emilio84music:
After installing this tool on my Lg G2 how can i install lineageos? I con't select the zip file from twrp (it suggest ADB, cache or external sd).
[G2 Android Development (D802)] DiBiPl:
Hi all

I have problem with recovery - it doesn't install.

OneClick installer stuck at 90%, but i read that i should push power button to complete install and it does go to 100% and says that everything went fine.

But when i try to go to recovery there is no recovery :(

Root is ok, but still no recovery.

Stock LP D802 v30b

Any help ?

UPDATE

finally worked :D
[G2 Android Development (D802)] iamfang:
hi all,

just a silly newbie question here.

i have root my G2 5.0.2 V30b with the file provide by sturek in #235 https://xdaforums.com/showpost.php?p=73158804&postcount=235

but it didn't install twrp. and i can't find AutoRec in play store anymore.

can i re-run the file "LGG2-D802-OneClickRootRecoveryV1.1" from #220 https://xdaforums.com/showpost.php?p=70796111&postcount=220

just to get twrp?

sorry for my english. i am not a native speaker. please bear with me.

thank you. :)
[G2 Android Development (D802)] degman:
Maybe try official TWRP app from Play store. I didn't test it and don't know app working correctly.

Изпратено от моят SM-G935F
[G2 Android Development (D802)] keikun007:
just used this and now my phone is bootlooping :o help me
[G2 Android Development (D802)] Ouf57:
Worked

It worked on my LG G2 D802 international. Thanks for fans who provided fresh links. Original one was deleted.
[G2 Android Development (D802)] SinoPhil:
Worked!

Hello,

this method also worked on my G2 International (D80230d). Only the "official" download link is dead, had to download from other XDA subscribers (thanks!). Thanks a lot to Somboons!

---------- Post added at 10:04 AM ---------- Previous post was at 09:58 AM ----------

@somboons

Thanks for your One Click Root, works like a charm.

I have got a question though: The TWRP-Recovery.img, which is part of your zip-package, have you modified that, or where is it from? It seems to be version TWRP 2.8.6.1., and it works perfectly with my D80230d).

However, if I go to TWRP directly, I can't find that one (found other files, 2.8.6.0 and lower, which do not work with my D80230d); if I go to the Lineage OS website, they provide a link to TWRP 2.8.7.0 (for D802), which also does not work; I am therefore curious, where exactly is your TWRP recovery from, and what is it's official name (I mean, what device exactly has it originally been written for)?

Thanks & Greetings!
[G2 Android Development (D802)] Ouf57:
That TRWP 2.8.6.1 is used to make the first install of recovery when coming from Lollipop, otherwise it will probably not work, then you have to update it by flashing a new zip, and finally you can try roms based with android 6 - 7 - 8.
[G2 Android Development (D802)] SinoPhil:
Thx for the reply.

Yes, that TWRP 2.8.6.1 has been the first install of recovery; however, so far I have not been able to update it, as I haven't been able to find a suitable TWRP zip/img file.. As mentioned above, I have tried the 2.8.7.0, doesn't work (I get an error message, something like "Boot Certification Error"), and then my recovery is messed up..tried one of the other zip's presented at TWRP for the D802, but they are only 2.8.6.0, and they also don't seem to work (one at least I have tried). If you have any ideas, please do tell, will gladly give it a try.
[G2 Android Development (D802)] Ouf57:
Original topic where i found it : https://xdaforums.com/lg-g2/development/twrp-twrp-2-8-0-0-kernel-f2fs-tools-t2898705

Download links : http://www.gregtwallace.com/lgg2-projects/twrp/?version=3.2.2-0
[G2 Android Development (D802)] filippo.gambarota:
Another working link

could you give me another working link? i've just flashed lollipop stock rom and i need to do root and install the recovery
[G2 Android Development (D802)] matto912:
The original download link is broken... I have found another, and used this successfully to root and install TWRP (installed version was 2.8.x.x from memory, then I manually updated this)

dropbox.com/s/2shvozzbu29xjfu/LGG2-D802-OneClickRootRecoveryV1.1.zip?dl=0
[G2 Android Development (D802)] mckampret:
For you who stuck at

SPECIAL COMMAND : ENTER, LEAVE

Try using original LG G2 cable

Mine works after changing the cable

---------- Post added at 09:51 AM ---------- Previous post was at 09:50 AM ----------

For you who stuck at

SPECIAL COMMAND : ENTER, LEAVE

Try using original LG G2 cable

Mine works after changing the cable
[G2 Android Development (D802)] TapaSte:
Exactly the same for me.
[G2 Android Development (D802)] by_rom:
Thanks 2

matto912​

link alive

​

dropbox.com/s/2shvozzbu29xjfu/LGG2-D802-OneClickRootRecoveryV1.1.zip?dl=0
[G2 Android Development (D802)] yken:
Sorry but i cant understand. I have a working leaked Rom working. Its rooted and has TWRP too.

Should i flash a kdz and use your script? Or should i install your Rom zip file?

Whats the difference between these? Whats the advantages, benefits for each?
[G2 Android Development (D802)] remio33:
I fix the problem thanks for your attention !
[G2 Android Development (D802)] somboons:
please tell we how do you fix and what is a root cause ?
[G2 Android Development (D802)] Kuoi:
is it normal to see the following in the command ?

author : blog.lvu.kr

SPECIAL COMMAND : ENTER,LEAVE

#

I'm stuck on this
[G2 Android Development (D802)] remio33:
There is no link between my problem and your script it was because i hadn't open my COM port on my virtual machine
[G2 Android Development (D802)] lasic:
It hangs after

Author : blog.lvu.kr

SPECIAL COMMAND : ENTER, LEAVE

#
[G2 Android Development (D802)] Kuoi:
Had the same problem , but now i have root ... and recovery !!!

Wait some time ( let's say 3 minutes , to be sure) when it seems stuck , then do the following ...

On your keyboard press :

CTRL+C

Type : N

Then push ENTER button

---------- Post added at 02:10 PM ---------- Previous post was at 02:01 PM ----------

It works after all ... see my post above

Maybe you can add it in the OP ?
[G2 Android Development (D802)] reddsmokee:
working perfectly on 30A Italy rom. No problem.
[G2 Android Development (D802)] somboons:
Thank , I will adding clip VDO on youtube.I'm uploading.
[G2 Android Development (D802)] somboons:
Good night all,

I prepare ti watch English Premier League.
[G2 Android Development (D802)] doom_71:
You're amazing. Worked perfectly using D80230a.
[G2 Android Development (D802)] goran_oh:
Tnx man worked on D80230a
[G2 Android Development (D802)] avicohh:
Nice work [MENTION=4008653]somboons[/MENTION].

Thx for the credit.
[G2 Android Development (D802)] jac10000:
[MENTION=4008653]somboons[/MENTION] Very good work !!!:good:

I have updated your work for the the G3 :)

Thank you very much fot the users of the G3
[G2 Android Development (D802)] welly_59:
stuck on:

looking for lg serial port.

i boot into download mode manually but still:

waiting for device

any help?
[G2 Android Development (D802)] somboons:
Cap screen please ?
[G2 Android Development (D802)] somboons:
Or Ctrl+c then type N

Boot to system .find supersu
[G2 Android Development (D802)] welly_59:
If i press ctrl+c then N when it hangs on waiting for device, it just sits there and does nothing.

screen cap below:

---------- Post added at 04:56 PM ---------- Previous post was at 04:55 PM ----------

what do you mean by boot to system .find supersu??
[G2 Android Development (D802)] somboons:
Re-root again
[G2 Android Development (D802)] welly_59:
it never got that far as you can see in my pics. its fixed now though....my system environmental variables were broken. fixed now
[G2 Android Development (D802)] somboons:
Could you tell me ? What's problem? How do you fix ?

Maybe other people have the same problem.I will

Update in top thread.
[G2 Android Development (D802)] welly_59:
Your program uses the 'reg' command in windows to find the com port the phone is connected to. That command did not work for me as my system variable was set up wrong. I had to add the system variable to path
[G2 Android Development (D802)] Mister Dani:
Hi.

It doesn't work for me.

No twrp recovery...is there any other way ? or what to do to have twrp recovery?
[G2 Android Development (D802)] 6ril1:
Hi, thank's for explanation.

Another user on G3 group has the same problem, can you explain more please what you mean by 'i had to add the system variable to path' ? Editing the batch with the number of the port ?

User that i was talking about has "version 3' as result of reg cmd instead of port com number

http://xdaforums.com/showthread.php?p=59919787
[G2 Android Development (D802)] somboons:
Update new version
[G2 Android Development (D802)] remio33:
How to go back to my cyanogenmod backup ?
[G2 Android Development (D802)] g.paganini:
If I understand correctly, this script works now for KK also, or it worked for KK the whole time?
[G2 Android Development (D802)] somboons:
Root can work for lg device but this script apply for LP stock firmware only
[G2 Android Development (D802)] g.paganini:
Thank you!