Post Reply Subscribe to Thread Email Thread

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

12th February 2015, 01:57 PM |#201  
OP Senior Member
Thanks Meter: 188
 
483 posts
Join Date:Joined: Jun 2012
More
Quote:
Originally Posted by DvineLord

im on 20k firmware. i rooted with ioroot25 then autorec to downgrade bootloader and flash twrp 2.7.0.0. i later ran towelroot for the hell of it. i can never get official twrp to flash because they dont use loki_tool for some reason even on the latest builds. i was able to flash philz_touch fine since loki is done properly. philz_touch is also nice cause it allows u access to many more partitions then twrp. i did make the mistake of letting the phone take the ota update a couple times and bootlooping until i fixed the issue by zeroing the nessacery partitions and removing the system files used for taking an ota. i thought about flashing back to stock and otaing up to 20y to get the latest firmwares on the other partitions and the "knock code" update. then root with stumproot and bootloader/recovery with autorec. since i have been tired and stressed lately i did not flash back to stock. i since have flashed latest dorimanix kernel which has bump support and f2fs. i then discovered that blastagator created bumped builds of latest twrp. since that gives u latest bumped kernel and latest bumped custom recovery things felt a little better with this phone. i found out blastagator made a bumped kk bootloader which i flashed successfully. i also downloaded but havent flashed blastagator's bumped jb/kk hybrid modem.

at this point i feel like my phone might be prepped enough to flash custom roms. i am concerned about not having the "knock code" firmware update since dorimanix states you should update your firmware to it for latest kernel builds. i can verify that i can only make the phone sleep by double tapping the screen but not waking it. i can only assume that flashing latest firmwares might be required for future roms and kernels like on other devices.

since we now have a way to flash kk bootloader and jb/kk hybrid modem i wonder if there is a way to get "knock code" update and other important firmware updates without having to flash back to stock 20c then otaing up to 20y?
if i decide to flash a custom rom without "knock code" firmware update would i regain the ability to double tap the phone to sleep and wake it again? or is it lost to me until i flash back to stock and ota up?

I have no idea what state your phone is in. You really went medieval on it.
I would say at this point try it. And if something fails go back to stock and then root through autorec.
13th February 2015, 12:23 PM |#202  
Jammol's Avatar
Senior Member
Flag Fort Collins
Thanks Meter: 379
 
1,326 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Quote:
Originally Posted by DvineLord

im on 20k firmware. i rooted with ioroot25 then autorec to downgrade bootloader and flash twrp 2.7.0.0. i later ran towelroot for the hell of it. i can never get official twrp to flash because they dont use loki_tool for some reason even on the latest builds. i was able to flash philz_touch fine since loki is done properly. philz_touch is also nice cause it allows u access to many more partitions then twrp. i did make the mistake of letting the phone take the ota update a couple times and bootlooping until i fixed the issue by zeroing the nessacery partitions and removing the system files used for taking an ota. i thought about flashing back to stock and otaing up to 20y to get the latest firmwares on the other partitions and the "knock code" update. then root with stumproot and bootloader/recovery with autorec. since i have been tired and stressed lately i did not flash back to stock. i since have flashed latest dorimanix kernel which has bump support and f2fs. i then discovered that blastagator created bumped builds of latest twrp. since that gives u latest bumped kernel and latest bumped custom recovery things felt a little better with this phone. i found out blastagator made a bumped kk bootloader which i flashed successfully. i also downloaded but havent flashed blastagator's bumped jb/kk hybrid modem.

at this point i feel like my phone might be prepped enough to flash custom roms. i am concerned about not having the "knock code" firmware update since dorimanix states you should update your firmware to it for latest kernel builds. i can verify that i can only make the phone sleep by double tapping the screen but not waking it. i can only assume that flashing latest firmwares might be required for future roms and kernels like on other devices.

since we now have a way to flash kk bootloader and jb/kk hybrid modem i wonder if there is a way to get "knock code" update and other important firmware updates without having to flash back to stock 20c then otaing up to 20y?
if i decide to flash a custom rom without "knock code" firmware update would i regain the ability to double tap the phone to sleep and wake it again? or is it lost to me until i flash back to stock and ota up?

You don't need the knock code update if you are on a stock ROM and flash the latest dorimanx.

Also not sure why you went through all those steps. Your phone was good to flash custom roms from the moment autorec was released. All you need it the right modem for the right ROM. I have both the aosp modem and the kk stock modem. I simply flash the appropriate one based on the ROM in using.

Always have a backup!!! Can't stress that enough. Get a USB otg adapter/cable and a flash drive. I keep mine around my neck so I can flash roms or fix a brick otg.

My current setup:
Installed autorec(was stuck on kk boot loader and needed downgrade)
Flashed blastigator newest twrp
Flagged cm11(latest nightly)
Flashed gaps
Flashed aosp modem
Reboot

If I want to go to an lg ROM I simply flash it and the respective modem and reboot.

By the way if you don't have the right modem for the ROM you're using knock on, rotation, proximity sensor and God knows what else, will not work. You must be on the right modem. Also knock off(anywhere on screen) is an lg launcher feature that is dependent on framework files only implemented on lg based roms. On AOSP/CM BASED ROMS only double tap status bar to sleep is available, unless you get the pro version of launchers such as nova prime or Apex pro.

I think this was the longest post I have ever written on XDA. Lol.
Last edited by Jammol; 13th February 2015 at 12:29 PM.
18th February 2015, 06:31 AM |#203  
Junior Member
Flag Lahore
Thanks Meter: 0
 
5 posts
Join Date:Joined: Feb 2014
More
Unhappy D800 show me D802 Firmware.. and touch problem
Dear Friend
i have problem with my phone D800. i buy used phone after OTA update Touch is not working correctly .. when i open phone then i see phone name is D800 now i trying to install D800 Firmware then problem is LG flash tool show me error . D802 to D800 failed .. plz help me
thanks
Quote:
Originally Posted by epapsiou

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.

18th February 2015, 03:13 PM |#204  
OP Senior Member
Thanks Meter: 188
 
483 posts
Join Date:Joined: Jun 2012
More
Quote:
Originally Posted by n4062327

Dear Friend
i have problem with my phone D800. i buy used phone after OTA update Touch is not working correctly .. when i open phone then i see phone name is D800 now i trying to install D800 Firmware then problem is LG flash tool show me error . D802 to D800 failed .. plz help me
thanks

I am assuming you have d802 firmware on d800. Flash tool checks phone with the file and fails if mismatch.
There is a flash tool that does not check the versions. You can flash d800 firmware using that. You will have to search g2 forums for that tool. It is lurking somewhere
try this thread
http://forum.xda-developers.com/show....php?t=2432476
18th February 2015, 06:54 PM |#205  
Junior Member
Flag Lahore
Thanks Meter: 0
 
5 posts
Join Date:Joined: Feb 2014
More
Unhappy D800 show me D802 Firmware.. and touch problem
Bro i have Tot files i cant found KDZ files . so i cant
Quote:
Originally Posted by epapsiou

I am assuming you have d802 firmware on d800. Flash tool checks phone with the file and fails if mismatch.
There is a flash tool that does not check the versions. You can flash d800 firmware using that. You will have to search g2 forums for that tool. It is lurking somewhere
try this thread
http://forum.xda-developers.com/show....php?t=2432476

18th March 2015, 09:09 AM |#206  
Jamesyboy's Avatar
Senior Member
Flag Chicago, IL
Thanks Meter: 209
 
735 posts
Join Date:Joined: Jun 2010
More
Is this method still viable for those on 80020y? If were going to downgrade to 20d via AutoRec, do we use Ioroot25? The OP makes it sound like you only need AutoRec.

New G2 User. Thanks.
18th March 2015, 12:02 PM |#207  
jordant2's Avatar
Senior Member
Newbury Park
Thanks Meter: 144
 
832 posts
Join Date:Joined: Jun 2007
More
Quote:
Originally Posted by Jamesyboy

Is this method still viable for those on 80020y? If were going to downgrade to 20d via AutoRec, do we use Ioroot25? The OP makes it sound like you only need AutoRec.

New G2 User. Thanks.

For the latest firmware all you need is stump root then autorec. No need to downgrade and ioroot won't work.

Sent from my LG-D801 using XDA Free mobile app
18th March 2015, 12:12 PM |#208  
OP Senior Member
Thanks Meter: 188
 
483 posts
Join Date:Joined: Jun 2012
More
Quote:
Originally Posted by jordant2

For the latest firmware all you need is stump root then autorec. No need to downgrade and ioroot won't work.

Sent from my LG-D801 using XDA Free mobile app

^that.
I used this method recently for the y firmware. Worked just fine. Will update OP.

Sent from my LG-D800 using XDA Free mobile app
23rd March 2015, 02:31 PM |#209  
Mustafa Jafri's Avatar
Member
Flag Karachi
Thanks Meter: 1
 
55 posts
Join Date:Joined: Aug 2014
More
If I go for the easier way that is for 80020y what will be the steps to flash rom after installing twrp through cloudyfa's autorec app.

Sent from my LG-D800 using XDA Free mobile app
23rd March 2015, 02:39 PM |#210  
OP Senior Member
Thanks Meter: 188
 
483 posts
Join Date:Joined: Jun 2012
More
Quote:
Originally Posted by Mustafa Jafri

If I go for the easier way that is for 80020y what will be the steps to flash rom after installing twrp through cloudyfa's autorec app.

Sent from my LG-D800 using XDA Free mobile app

Please refer to the rom's( you want to flash) thread. Each rom has its own requirements. Generally you wipe system and factory reset and flash rom and gapps.

Sent from my LG-D800 using XDA Free mobile app

Post Reply Subscribe to Thread

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

Advanced Search
Display Modes