Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,728,048 Members 45,573 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE]Newbie Guide for Root/Recovery/Stock Restore etc. ATT LG G2 (LG D800)

Tip us?
 
epapsiou
Old
(Last edited by epapsiou; 30th June 2014 at 02:14 PM.) Reason: KK rom
#1  
Senior Member - OP
Thanks Meter 172
Posts: 442
Join Date: Jun 2012
Default [GUIDE]Newbie Guide for Root/Recovery/Stock Restore etc. ATT LG G2 (LG D800)

If you have taken KK OTA update there are two ways to get back root and custom recovery:

1) Use cloudyfa's Autorec tool. THIS IS THE EASIER WAY

OR the harder way

2) Go back to JB d80010d (see section 4) and then follow the guide for rooting and recovery (section 2 and 3)

If you are on JB and need to upgrade to ATT kitkat use garyd9's method
or AndroidUser00110001's method.
These methods are almost as easy as flashing ROM and keep root and recovery intact



While the information on rooting, flashing recovery, going to stock exists in LG G2 forum, I found them scattered all over and overwhelming. The different models and different ATT firmware makes it even more confusing for newbies and so I thought we should have a ATT G2 guide. This guide is a combination of various threads in G2 forums and my rooting experience.

I will try to keep this guide up to date. Please let me know if you find something wrong or missing

THANKS: autoprime, hyelton,djrbliss, WACOMalt, PhilZ, TWRP team( DeesTroy et al), Koush, CWM, thecubed,vincom, Judge Joseph Dredd, SuperSport,bigfau. If I missed someone please let me know

Content:
1) Introduction
2) How to root
3) How to flash recovery
4) How to go back to stock (ATT Firmware)
- How to flash Official ATT KitKat
5) FAQs (ADB, Loki, Download Mode, Go to Recovery etc.)
6) Troubleshooting (unbricking)


1) Introduction:

There are many variants of LG G2. The ATT version is called LG D800. This guide is specifically for LG D800.
LG D800 ships with a custom Android Firmware that has been “enhanced” by LG and ATT. As of this writing the D800 was being shipped with the firmware version D80010d (there is an OTA update - D80010o / D80100q / D80200c (KITKAT) that your phone will ask you to update to. PLEASE DO NOT if you want to install custom roms. If you already have go to section 4 to downgrade your phone back to D80100d).
The D80010d (and o and q) firmware is unrooted and has its bootloader locked meaning they designed it so that you cannot flash custom ROMS.
Fortunately, XDA’ers are very smart people and ways have been found to circumvent these “security” locks.
Before we begin we need to take care of few things.
  1. Make sure you have drivers for your phone (http://www.lg.com/us/support-mobile/lg-D800)
  2. Enable Developer option (General Settings -> About Phone -> Software Information and tap “Build Number” repeatedly(7-10 times) till you see a toast notification )
  3. Enable USB debugging in developer option

2) ROOTING:

You need root privileges in your phone to run various useful apps like Titanium Backup, AdAway and install custom ROMs. Fortunately, rooting is very easy. [COLOR="rgb(139, 0, 0)"]Head over to autoprime’s thread) to download the IOroot[/COLOR]. The current version is 21 and I have tested it. It works perfectly.

thecubed also has an excellent guide on rooting with a video that you should check out.
  1. Extract the zip into a folder. (I prefer C:\LG\ioroot). Remember this location.
  2. Turn on USB debugging on LG D800 and connect it to your computer
  3. Windows user double click root.bat and you will see a command screen pop up. Linux and Mac user should run the shell script ./root.sh(make sure they have proper permissions- chmod 777 should do it)
  4. Follow the instructions on that screen. They are pretty simple.
  5. It may ask you to disconnect the phone and turn off and then on the usb debug option and then reconnect the phone. Do so if prompted
  6. Also keep an eye on your phone. It may prompt you with a warning. Go ahead and hit continue.
  7. Once your phone is rooted it will give you an option of backing up EFS partition. PLEASE DO SO AND KEEP IT SOMEWHERE SAFE(dropbox etc.)


The screenshots in the "Click to Show Content" below show how ioroot process will progress
 



Another advantage of ioroot is that it has adb.exe in it. So if you need to do anything adb you can do that by going to ioroot folder through your command prompt.

***THIS METHOD WILL TRIP THE LG ROOT CHECK AND VOID WARRANTY. YOU HAVE BEEN WARNED*****.

If you encounter any problem head over to FAQs and Troubleshooting section

3) RECOVERY:

To install ROM’s and Kernels you need a custom recovery. Installing custom recovery is discouraged by ATT and hence the bootloader is locked. Fortunately djrbliss has released a tool called lokithat circumvents this lock and lets us flash recoveries, ROMs etc.
WACOMalt’s guide on installing TWRP is a must read for Newbies.
Before we go ahead please make sure that your firmware version is D80010d. If you have D80010o I would recommend going back to D80010d (see “How to go back to Stock” section). While you can flash recovery on D80010o, it does not behave well and you will not be able to flash some ROMs properly.

Things needed before flashing:
  1. Proper drivers (see section 1)
  2. ADB. There are various ways to get it but if you used ioroot you already have it
  3. Go to windows command prompt (cmd) and go to your ioroot folder. which in my case was C:\LG\ioroot. From there you can type adb commands
  4. For more info on ADD and how to get it see FAQs below

To flash recovery:
  1. Get recovery of your choice. TWRP or PhilZ CWM version 6.07.9 . As of this writing PhilZ CWM v 6.07.9 is preferable as people have reported issues with TWRP for flashing LG stock based ROMs. I, too, have found PhilZ more stable.
  2. Copy the recovery image(.img file) to your adb folder (C:\LG\ioroot in my case). The twrp file is openrecovery-twrp-2.6.3.3-g2att.img. I would rename it to recovery.img just so that it is easier to type later on.
  3. Download loki from github(https://github.com/djrbliss/loki). Select download zip on the right side on github page.The only file you need from the zip is loki_flash from bin folder.
  4. Copy loki_flash to your adb location (C:\LG\ioroot in my case)
  5. Run the following commands one at a time

Code:
adb push loki_tool /data/local/tmp/loki_tool
adb push recovery.img /data/local/tmp/recovery.img
adb shell
su
cd /data/local/tmp
chmod 777 loki_tool
./loki_tool flash recovery /data/local/tmp/recovery.img
exit
adb reboot recovery
**NOTE: loki_flash HAS BEEN REPLACED WITH loki_tool. JUST A NAME CHANGE. IF YOU HAVE OLDER VERSION OF ZIP REPLACE loki_tool with loki_flash**

The final command will reboot your phone and take you to your recovery.

NOTE: The TWRP site does not have the 2.6.3.3 image but a flashable zip (which will not flash with loki). You can extract the recovery.img from that zip or head over to freebee269's link for that image. Alternatively you can flash 2.6.3.2 and then upgrade to 2.6.3.3 from the zip.

The screenshots in the "Click to Show Content" below show how the process will look like and what would happen if you try to flash non-loki image
 



I used this method to flash twrp 2.6.3.2 and then flashed PhilZ zip from twrp (at that time I was not aware of PhilZ recovery). I don’t see why you cannot flash PhilZ’s recovery.img directly. It has been lokified from what I understand. If someone wants to give it a go please let me know.

4) How to go back to stock (ATT Firmware)

There are many reasons to go back to stock. Restoring warranty, reverting to 80100d firmware, soft bricks or plain old nostalgia. Fortunately, LG has a tool similar to odin called LGFlashTools for D800. Unfortunately, it is not as simple as odin and you have to jump through some hoops.

SuperSport has made restoring to Stock much easier with an installer.
Go to SuperSport thread and get the installer. Install the exe file and you are good to go.

An important thing to keep in mind: There is another better tool called LG Mobile Support Tool but it is for other G2 variants and not for ATT (or Sprint)

hyelton has written an excellent guide on reverting to stock. The tools in this section are from hyelton’s guide. Please read it for more information.

Before we start:
  1. Make sure you have the drivers (section 1)
  2. Download the LG Flash Tool
  3. Download the firmware LGD800AT-01-V10d-310-410-AUG-14-2013.zip and LGD800_20130904_LGFLASHv160.dll files
  4. Extract .tot file from V10d zip

To go back to stock:
  • Put your phone to download mode (power off. Then press the up volume button and connect it to computer without releasing the vol up button )
  • Once in download mode it may install stuff. Let it do so
  • Then change the COM port of your phone to 41 by going to devices and selecting LG G2 (see images below). Then unplug the phone and power it off
  • Find a key for LG Flash Tool (google search for it) and keep it with you
  • Now change date of your computer to 2012 January and disconnect internet
  • Install LG flash tool. It will ask for key. Enter it
  • You will see a place for loading dll file and tot file. Go ahead load files and click OK.
  • DO NOT CHANGE ANY OTHER SETTING
  • Then click on Yellow arrow
  • Then put you phone on download mode again (vol up and connect to computer)
  • You will see activity in LG Flash Tool. Let it run. It will automatically boot your phone.
  • Once your phone is booted and you see your all apps etc. disconnect the phone from comp.

The screenshots in the "Click to Show Content" below show how to change port to 41 and how LG FlashTool will look like when things are going OK.
 




Congratulations: You are all done

Flash ATT KitKat (restore to ATT KitKat Stock Image)
ATT has released the KitKat (4.4.2) update for LG G2. The firmware is named 80200c.
You can flash this in the same way as the any other stock (see above). For the .tot and the .dll file go to bigfau's thread



5) FAQs:

Tomsgt has a thread with videos on how to root, flash roms etc. that you should check out.

a) Boot to recovery:
If you have installed recovery you will need to go to it to flash stuff. Most custom ROMs have option in power menu to go to recovery. ATT Stock does not and so there are two ways to do so.
  1. From adb type adb reboot recovery
  2. Power off the phone. Then press volume down+power key. Do not release till you see LG logo. Then release and again press Vol down and power button. You will see a “Factory hard reset” screen that will say press power key to confirm. Do so. It will ask again. Go ahead and press power button again. Then you will boot into recovery.

b) Boot to download Mode:
If you are on custom ROM you should see this option under Power menu.
The other way to do it is Power off phone. Then while pressing volume up button plug the phone into computer. That should bring up the download mode in the phone

c) ADB (Android Debug Bridge):
ADB lets you communicate with your phone through a command line from your computer. You can upload file, flash zips, get logs etc. through adb. For the complete guide go to http://developer.android.com/tools/help/adb.html.
To get ADB you should get the Android SDK (http://developer.android.com/sdk/index.html). It is available for Windows, Linux and Mac. Once you have installed this get the Android SDK Platform Tools (ADB is in this Tools).
Windows users can just use the adb.exe in the ioroot folder (see Introduction Section). Just go to ioroot folder location from your DOS command prompt and type adb commands.
ADB drivers should have installed once you installed the drivers I had suggested in Introduction section.
Koush has a iniversal ADB driver for windows(http://download.clockworkmod.com/tes...iverSetup6.msi, https://github.com/koush/UniversalAdbDriver). You can try that if you experience driver issues.

d) LOKI:
Loki is a tool/hack made by Dan Rosenberg(djrbliss) to work around the Galaxy S4 bootloader. The tool does not unlock the bootloader but tricks it into running custom kernel. There is an excellent article explaining the hack and I encourage you to read it once. Loki was ported over to G2 and gives us the ability to flash recoveries and ROMs.
As end users you really do not need to worry too much about loki. It is the ROM developers job .
Note than any OTA by ATT may well contain fix for Loki. So DO NOT TAKE OTA.

e) Flash ROM:
PhilZ CWM: Go to “Wipe Data/ Factory Reset” and select “Clean to Install a new Rom”. Once done go back to “Install Zip” and then “choose zip from sd card”
TWRP: Similar but after factory reset you will have to do a “format system” under “mounts and storage”. I have not used twrp in a while so if this is old info please let me know

6) Troubleshooting

a)Unbricking

If you are reading this you have a problem. Your phone has become a brick. But do not despair yet as there are a few ways to unbrick your phone. Let us first determine whether it is a soft brick or a hard one.
  • Soft Brick: Basically it means your phone is bootlooping or showing a blank screen but you can still go to recovery/download mode. The easiest way to fix this (and determine if you have a soft vs hard brick) is turn off the phone and then press the volume up button and connect to the computer (keeping vol up pressed). If you see your phone enter download mode you are fine. Just restore to stock (see section 4 of this guide). Make sure you flash 80100d firmware.
  • Hard Brick: If you cannot enter download or recovery mode then you may have a hard-brick. This is not a fun situation to be in but there is a fix that may work. It involves lots of linux commands and is not for newbies but then if you are hard-bricked what have you got to lose. Head over to Partager.info's thread where he explains how @Shelnutt2 helped him unbrick his phone.
The Following 50 Users Say Thank You to epapsiou For This Useful Post: [ Click to Expand ]
 
epapsiou
Old
#2  
Senior Member - OP
Thanks Meter 172
Posts: 442
Join Date: Jun 2012
Default reserved

reserved
The Following User Says Thank You to epapsiou For This Useful Post: [ Click to Expand ]
 
Judge Joseph Dredd
Old
#3  
Judge Joseph Dredd's Avatar
RC-RT Committee / Senior Moderator - Judgment is Coming
Thanks Meter 24078
Posts: 14,493
Join Date: Dec 2011
Location: Mega-City One
Good info here for the ATT LG G2 (LG D800), Stickied. Thank you.
The Following User Says Thank You to Judge Joseph Dredd For This Useful Post: [ Click to Expand ]
 
freebee269
Old
(Last edited by freebee269; 2nd February 2014 at 05:59 PM.)
#4  
freebee269's Avatar
Senior Member
Thanks Meter 412
Posts: 842
Join Date: Feb 2013
Location: Kalamazoo

 
DONATE TO ME
Quote:
Originally Posted by Judge Joseph Dredd View Post
Good info here for the ATT LG G2 (LG D800), Stickied. Thank you.
awesome guide! thank you for taking the time to make this. a couple things suggestions i would make in the guide. first is dont use twrp 2.6.3.2. use 2.6.3.3. it is much better. also dont use the latest philz recovery as of today. it is causing alot of issues so i would change the recommendation for recoveries to twrp 2.6.3.3.

thanks again.

edit: here is a link to 2.6.3.3. no need to loki it because it has already been loki'fied.

http://techerrata.com/browse/twrp2/g2att
Link to my Dev Host Files = http://d-h.st/users/freebee269


The Following User Says Thank You to freebee269 For This Useful Post: [ Click to Expand ]
 
epapsiou
Old
#5  
Senior Member - OP
Thanks Meter 172
Posts: 442
Join Date: Jun 2012
Quote:
Originally Posted by freebee269 View Post
awesome guide! thank you for taking the time to make this. a couple things suggestions i would make in the guide. first is dont use twrp 2.6.3.2. use 2.6.3.3. it is much better. also dont use the latest philz recovery as of today. it is causing alot of issues so i would change the recommendation for recoveries to twrp 2.6.3.3.

thanks again.

edit: here is a link to 2.6.3.3. no need to loki it because it has already been loki'fied.

http://techerrata.com/browse/twrp2/g2att
Thanks

The issue I had was that 2.6.3.3 was a zip and not a loki image. When I tried loki_flash I encountered issue. Hence I recommended using 2.6.3.2 and then flash whatever recovery one wants(2.6.3.3 or PhilZ). But then I was on 80100o when I did that so it could have been firmware's error and not twrp's. If you were able to loki_flash the recovery.img from 2.6.3.3 please let me know.

The PhilZ recovery I recommend above is older one (with no issues )
The Following User Says Thank You to epapsiou For This Useful Post: [ Click to Expand ]
 
freebee269
Old
#6  
freebee269's Avatar
Senior Member
Thanks Meter 412
Posts: 842
Join Date: Feb 2013
Location: Kalamazoo

 
DONATE TO ME
Quote:
Originally Posted by epapsiou View Post
Thanks

The issue I had was that 2.6.3.3 was a zip and not a loki image. When I tried loki_flash I encountered issue. Hence I recommended using 2.6.3.2 and then flash whatever recovery one wants(2.6.3.3 or PhilZ). But then I was on 80100o when I did that so it could have been firmware's error and not twrp's. If you were able to loki_flash the recovery.img from 2.6.3.3 please let me know.

The PhilZ recovery I recommend above is older one (with no issues )
yes 10o ota update gives recoveries problems. that's why it is recommended not to do the ota. twrp 2.6.3.2 is the version that takes forever to do wipes. 2.6.3.3 is the version that fixed that and now the wipes are fast.

here is a twrp 2.6.3.3 loki'd recovery. it's for d800 though and i dont think it'd work on other models. that's why the zip files have loki inside of it with a script that loki's specifically for that device. the reason loki_flash wouldnt work for you is because you were trying to use it on a zip file and not an image file. if you would have taken the image file out of the zip file and used that then it would have worked for you. like it just did for me when i just loki'd this attached image.

at&t d800 twrp 2.6.3.3 loki'd recovery = http://d-h.st/Wmg
Link to my Dev Host Files = http://d-h.st/users/freebee269


 
epapsiou
Old
#7  
Senior Member - OP
Thanks Meter 172
Posts: 442
Join Date: Jun 2012
Quote:
Originally Posted by freebee269 View Post
yes 10o ota update gives recoveries problems. that's why it is recommended not to do the ota. twrp 2.6.3.2 is the version that takes forever to do wipes. 2.6.3.3 is the version that fixed that and now the wipes are fast.

here is a twrp 2.6.3.3 loki'd recovery. it's for d800 though and i dont think it'd work on other models. that's why the zip files have loki inside of it with a script that loki's specifically for that device. the reason loki_flash wouldnt work for you is because you were trying to use it on a zip file and not an image file. if you would have taken the image file out of the zip file and used that then it would have worked for you. like it just did for me when i just loki'd this attached image.

at&t d800 twrp 2.6.3.3 loki'd recovery = http://d-h.st/Wmg
Thanks. OP updated
 
AndroidUser00110001
Old
#8  
AndroidUser00110001's Avatar
Recognized Contributor
Thanks Meter 3630
Posts: 2,662
Join Date: Aug 2011
Location: NYC

 
DONATE TO ME
I would suggest you add that users who already have the 11o update to "downgrade" to the 11d firmware.

I had lots of problems when I restored my phone back to stock using the 11o update so started fresh from the 11d firmware.
If you would like to make a small donation for my work you may do so by clicking HERE.
You may also Tweet me a Starbucks Trenta Iced Black Tea 4 pump classic which is my go go juice that keeps me going @androiduser0001 by clicking HERE. Thanks!
The Following User Says Thank You to AndroidUser00110001 For This Useful Post: [ Click to Expand ]
 
irokgalaxy
Old
#9  
irokgalaxy's Avatar
Senior Member
Thanks Meter 8
Posts: 106
Join Date: Jul 2013
I have 10o with the lateset twrp 2.6.3.3. are you saying that I can not flash rooms with this set up, or if i do it will not work.
 
freebee269
Old
#10  
freebee269's Avatar
Senior Member
Thanks Meter 412
Posts: 842
Join Date: Feb 2013
Location: Kalamazoo

 
DONATE TO ME
Quote:
Originally Posted by irokgalaxy View Post
I have 10o with the lateset twrp 2.6.3.3. are you saying that I can not flash rooms with this set up, or if i do it will not work.
you can. but you might have complications with the rom after you boot into it.
Link to my Dev Host Files = http://d-h.st/users/freebee269



Tags
lg g2, recovery, restore to stock, root, unbrick
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes