yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] khakala:
How can i easier flash back original stock recovery? and where can i get it?
[G2 Android Development] Heatshiver:
If you want to go back to the original recovery there are two methods:

1) Flash back the stock firmware. This will replace everything - all your data, apps, etc. - and will give you back your original recovery (which is no recovery). There are two threads I know of: one here, and the other here.

2) The other method is to find a stock recovery.img that someone made before they installed any recovery and use the second method in my thread here to push your recovery.img back to the system. You can download a D802 recovery.img here. Just rename it "recovery.img" and follow the instructions.
[G2 Android Development] khakala:
Thanks, is it even possible that CWM have affect to GPS function or to factory reset, because my GPS is not working at all (no GPS icon on status bar and none of navigation programs will not start GPS function) After a full factory reset it works but directly after first reboot or shutdown and starting phone again my GPS will not work again. That's the reason i I would like to test with stock recovery, but perhaps this problem is hardware failure :(

Can i use 3rd Method: Place the img on your phone, then use an app like Flashify to flash the stock recovery image??
[G2 Android Development] Heatshiver:
The recovery should have no effect on your GPS or anything else. Have you been trying any custom ROMs? Have you been installing any apps that would use GPS?

You can try Flashify, it should work; but it shouldn't help.

You can also try finding the GPS.apk for the LG G2 and installing that app to see if it fixes your problem. You can download a D802 custom ROM and steal the GPS.apk from that. GPS.apk is not the real name, I am not sure what it is. Or just use the first method and get a fresh start.
[G2 Android Development] khakala:
I have not tested any custom ROM yet, i will test some next, i have not installed any apps after factory reset and still i get GPS problem after reboot.
[G2 Android Development] Heatshiver:
The factory reset just wipes things clean, it does not bring it back to normal in the sense that everything comes back that was gone. A previous app could possibly have done something to your system GPS app and now your stuck with the problem. If it is not that, it could only be a fault from LG.

You have the methods to fix it and I don't know anything else that could be of use. Any further support you should ask for in the Q&A section since this thread is just for this recovery.
[G2 Android Development] Ajoli:
Not getting any RSA request when I plug in my phone, nor when I run the bat. The cmd then says that it has failed.

What do I do.....? Had no trouble with this when rooting.

Edit: Trying secondary method.

---------- Post added at 12:58 AM ---------- Previous post was at 12:46 AM ----------

Hitting issues here too...

Edit: Used a different explorer and found sdcard. However there is already a g2_security in sdcard.. Should I replace it?

Edit2: Renamed the old one g2_security.bak, and then followed the guide. Seems to be working now. Anybody know why I already had one?
[G2 Android Development] crielstar:
I tried to flash the 802 file and now I think my recovery partition must be corrupted from it!!!

please check the file, before it happened to someone else!

All I get is a now black screen saying "FASTBOOT MODE STARTED, UDC_START()" now for a recovery!

I've tried to flash all the recoveries and methods and none will work after THIS bad CWM flash.

(I did notice bad characters when the .bat file was running)

It's identical to this guys problem but my phone still boots. http://xdaforums.com/showthread.php?t=2492305
[G2 Android Development] Heatshiver:
Usually that message comes up when there is a problem, like the phone your are using is not compatible with the file you are trying to use. This happened to me quite a few times on the D802 TWRP build, and it was not a big issue whatsoever. If you saw bad characters (unless you mean "Chinese" characters) then that should've immediately indicated to you a corrupt download.

The file is fine,

if you had bothered to read the post before yours you would realize that person got CWM working with a D802

...

The thread you linked even states it could be from a bad flash. There could be a number of things that occurred since you are not describing much of anything. Did you use method 1 or 2? Did you get the RSA message required? Did you have a recovery installed before this? Have you tried flashing the stock recovery? Are you still able to get passed bootup and into JB? Do you have D802A or D802B? There are a lot of factors you glossed over that could help comprehend and possibly rectify your situation.

Please don't attempt to panic people.

I understand warning people is a good thing, but only if you bother to research beforehand and explain your difficulties in detail. Is it more likely that numerous people who have successfully got this to work are wrong, or that one person who could not is?
[G2 Android Development] crielstar:
Thanks for the reply,

I used method 1 first, My phone is a D803, so I thought the 802 file might be compatible.

I realised that others have gotten it to work, so I though it would be a good idea to notify this thread of my problem as I thought the file on the server may have went bad.(ie the bad/Chinese/error characters). You say the file is fine so I must have used the wrong file for my D803 phone , as method 2 did not rectify the issue.RSA message came up once ,haven't seen it since root, I checked the box to disable that notification (I just verify it with adb devices).I am still able to boot phone runs fine just no working recovery, can someone point me in the direction of the stock recovery for the D803, or the proper CWM flash. Thanks
[G2 Android Development] Heatshiver:
[MENTION=4559139]crielstar[/MENTION] - There are some things for these variants that will work regardless of what variant they were made for. For example, I rooted using the methods not meant for the D802.

As for a recovery, this is not something I would attempt. I only list the variants that these were meant for. People occasionally try their luck but usually come up short. These recoveries are not meant for the D803. As far as I know there are no other CWM recoveries available.

Shoot me a PM and we'll see what we can do.
[G2 Android Development] nic85:
Can i flash this zip with flashify?

actually i have twrp But It has wipe cache bug.
[G2 Android Development] Heatshiver:
The zip is not flashable.
[G2 Android Development] cosmique:
can I install this over TWRP? I dont like the wipe cache bug in TWRP
[G2 Android Development] Heatshiver:
As long as you have the correct variant, you can flash this over TWRP.
[G2 Android Development] cosmique:
and I can do this via:

1) Get a terminal emulator.

2) Get a file explorer (like Root Explorer).

3) Open your file explorer and put the "g2_security" and "recovery.lok" file here: /sdcard/

4) Open the terminal emulator a type "su". (If this doesn't work, then you are not rooted).

5) Then type "dd if=/sdcard/recovery.lok of=/dev/block/platform/msm_sdcc.1/by-name/recovery"

6) Then Type "rm /sdcard/g2_security"

so this overwrites TWRP ?
[G2 Android Development] martindar:
so you flashed the wrong file,threw your toys out of the pram when it didn't work and then blamed it on a 'bad file download' and just about accused the dev of messing up youre phone -I suggest that you read a lttle more in future and do a little research before you flash files that could potentially break youre phone. The dev, I think was very very accomadating and his powers of self control are obviously a lot greater than mine -I must say I found youre original post distasteful at minimum and damn right rude at the other end of the spectrum -rant over and I hope you managed to sort youre phone in the end
[G2 Android Development] pigmich:
Is that's OK if I flash CWM via Rom manager?
[G2 Android Development] 1stichiban:
great work.

The second method worked for me too! Now i have CWM.

my only problem is i can't seem to get to CWM recovery with the hardware keys :(

when i use the power and volume down button before LG logo then remove and hold them down again i am taken to a screen which say:

Factory hard reset

Permanently Erase User

Data & Reset Settings?

Press Power key to confirm,

and any other key to cancel.

Pressing Power, does the factory reset but enters CWM after and need to re-flash ROM or restore back up.

If i cancel, the phone reboots to system.

Although i can use an app (quick boot) to enter CWM...

guess i need more to time to practice on the hardware keys to to CWM :)

Cheers for your hard work!
[G2 Android Development] Heatshiver:
[MENTION=2119985]cosmique[/MENTION] - Yes.

[MENTION=4097427]pigmich[/MENTION] - Yes, it should be (I have never tried it though).
[G2 Android Development] Ajoli:
Recovery works fine on 802, but method one did not work, and I already had a G2 security in that folder. I renamed the old one as a backup and then moved the new one in there. Works perfectly now.
[G2 Android Development] jacobmllr95:
Can tell me someone how to correctly flash the official CWM recovery (http://clockworkmod.com/rommanager) over the recovery from this theard?

When I try to intsall it with the ROM Manager app nothing happens and the recovery from this theard is still existing and when I try to flash the recovery image from the website I get security errors and cant open the recovery...
[G2 Android Development] qsec:
Same question here.
[G2 Android Development] Heatshiver:
[MENTION=3777955]jackmu95[/MENTION] [MENTION=2478074]qsec[/MENTION]

I have posted methods on how to install CWM recovery images in the OP. I will try to make some auto installers in a bit...
[G2 Android Development] jacobmllr95:
I made a bash script for Linux/Mac for myself. I can share it with you if you want :)

But I had to loki_patch the images from http://clockworkmod.com/rommanager to get the working correctly, the one's in the OP are just the original boot.img's.
[G2 Android Development] qsec:
Do you know why Rom manager can't install the official over this one?
[G2 Android Development] Heatshiver:
Thank you for telling me. I'll have to pull them down. I need to loki them and then make an auto-installer then.

[MENTION=2478074]qsec[/MENTION] - Because the "official" image has not been loki'd, what jackmu95 just posted.
[G2 Android Development] jacobmllr95:
My bash script is an auto-installer ;)

I will make it multiple devicves compatible when I get home...
[G2 Android Development] Heatshiver:
That would be great. I'm trying to deal with some other stuff and don't want to download all the different aboot.img files I would need to loki the recovery images. Shoot me a PM when you got it ready and we'll give you credit in the OP.

Unless people who have a ATT or VZW stock aboot.img want to send me a link and we loki these real quick...
[G2 Android Development] jacobmllr95:
The aboot.img's of the AT&T, Verizon and T-Mobile variants would be great because I only own the International version.

HOW-TO pull aboot.img

adb shell
su
dd if=/dev/block/platform/msm_sdcc.1/by-name/aboot of=/data/local/tmp/aboot.img
chmod 644 /data/local/tmp/aboot.img
exit
exit
adb pull /data/local/tmp/aboot.img
[G2 Android Development] Heatshiver:
Hahaha. This is why I said I didn't want to go through that, I thought you had them. I posted in the OP for people to send links if they have ATT or Verizon. I didn't see a TMO on the CWM, so if you have a TMO recovery image for CWM, I can add that to that OP too...
[G2 Android Development] fire3d:
I should read before flash :)

I used Rom Manager to flash the officially posted Touch version from the clockwork site ..... security break .... narf ....

Thx for your work on this heatshiver, i wait for your lokified version :)

regards

fire3d
[G2 Android Development] Heatshiver:
[MENTION=517615]fire3d[/MENTION] - What variant do you have? We are looking for aboot.img for ATT or VZW. If you have one of those versions PM me and I'll give you instructions on how to get them out of your phone and over to me. Then I can make a CWM for that version and you can test it.
[G2 Android Development] fire3d:
i have the d802 international. so i cannot help here .....
[G2 Android Development] Heatshiver:
[MENTION=517615]fire3d[/MENTION] - The official, full-touch version is now ready for download!
[G2 Android Development] android404:
Hi.

To move from twrp to cwm, do I simply follow the instructing as if I had no recovery?
[G2 Android Development] :
Hi,

Successfully flashed witout any issues, thanks! ;)

:)
[G2 Android Development] Heatshiver:
Good question, and yes.
[G2 Android Development] poppienutshell:
In TWRP there's a tweak option to allow faster wiping, is there a similar hack in CWM? Coming from other devices, I do feel that even wiping cache in CWM on my D802 takes longer than I'm used to.
[G2 Android Development] Heatshiver:
I don't recall, I'm using my TWRP right now. I find that sometimes I get a fast wipe, and sometimes I get a long wipe, so I don't worry either way.

I keep hearing about this TWRP tweak, do you have a link for more information, or is it just something in the actual TWRP you can choose?
[G2 Android Development] fire3d:
thx, works great :)

EDIT: hmm must verify this, but i made a Backup and cannot find the backup ...... i check that in a few mins again, but seems that Rom Backup is broken?

EDIT2: nevermind, found it :P It stores the Rom Backup in /mnt/shell/emulated/clockworkmod - not on SD :P
[G2 Android Development] martindar:
confused ?

do we just download one of the above files depending on whether you want touch/non touch/English/chinese or do we download all the files sorry for being a bit stupid !
[G2 Android Development] :
Hi,

Don't quote the whole OP :D

You only need the file you want either the touch version or the non touch version, same thing for the language. You need to download only one file, all is in the .rar file...

:)
[G2 Android Development] martindar:
didn't mean to quote the op and thanks for your reply
[G2 Android Development] eddytheman:
Can I use app name Flashify to flash this CWM? I already have TWRP 2.6.32 in my G2 but I do still prefer CWM :)
[G2 Android Development] mimahitna:
Whether it is possible to do flashable zip file of this cwm recoverys(official and custom version of cwm) so we can easily switch from cwm to twrp and vice versa ?

Im coming from HTC and there we had flashable zip files.

Greetings.
[G2 Android Development] Heatshiver:
For everyone, I am not doing any requests. And if you have a question that the OP already answers, I will ignore your question as I have been answering similar and the same questions over-and-over in many threads.

[MENTION=497524]mimahitna[/MENTION] - If you want an easy method follow the second method. Your SD card should never be erased, so you can keep your recovery.lok file there and always flash it with a terminal emulator when needed.
[G2 Android Development] poppienutshell:
From what I read in a TWRP thread under the same forums, there's this option in TWRP advanced settings to force enable rm -rf command which actually makes the wiping much faster. At least on our device.

I personally tried it before switching to CWM and it does makes the wiping faster. How it actually works I have no idea cos I'm only a regular layman so forgive me if I do not completely understand. From my experience with both recoveries, I'd never seen CWM have this command or option so I do not know whether it is relevant to have it or not but since we have this issue of unusually long wipe times, maybe there is a chance to explore this option?
[G2 Android Development] Heatshiver:
I recall that as well for the stuck TWRP issue. I haven't tried it, but maybe the new CWM has something. I will have to check it out again as I just made sure it worked before releasing it.
[G2 Android Development] Heatshiver:
Just so people know, the official versions of CWM do have loki support (good for custom kernels or ROMs with custom kernels that are not loki'd).
[G2 Android Development] inaboutaminute:
I'm getting an error that reads "adbd cannot run as root in production builds." Please help :(
[G2 Android Development] Heatshiver:
You seem to be having problems with both recoveries, so I suspect something going on besides the recovery... Are you rooted? And (insert the same questions I posted in TWRP).

If anyone else needs help: please always reply with whether you are rooted or not, the variant you are using, the method, explain what happened in as much detail as possible, and anything else that may be relevant. Otherwise, you will have to wait for others to help you...
[G2 Android Development] Heatshiver:
The ATT version is up and ready!

If anyone has a Verizon (VZW) aboot.img image please PM me with a link, or post the link here.

I will then make CWM for Verizon and post ASAP!
[G2 Android Development] jody04c:
Thank you so much for this!! I have been banging my head against the wall with a dud TWRP install and then this little wonder installed without issue using terminal and su....

Happy happy days!!:good:
[G2 Android Development] honentan:
It is the vs980 all partitions except system from kdz file verison 11a: http://pan.baidu.com/s/1gkq9u
[G2 Android Development] Heatshiver:
[MENTION=855738]honentan[/MENTION] - Please don't quote the entire OP.

"Your" download are only bin files, I need the aboot.img file. I am also curious as why this would be on a Chinese site considering Verizon wouldn't be around there... Is this your personal file? If it is, where and how did you get these?
[G2 Android Development] honentan:
this .bin file may same as .img file. you can just rename the extension name from .bin to .img. I bought a used vs980 from ebay, it works fine when insert a ChinaTelecom UIM card. I just extracted these file from .kdz file using tools which thecubed released on this link: http://xdaforums.com/showthread.php?t=2483250. And, I can backup aboot.img if you tell me how to do.
[G2 Android Development] Heatshiver:
[MENTION=855738]honentan[/MENTION] - Ah, that makes sense. I still don't want to risk the bin as changing it to an img extension could work, but I'm not willing to risk it for anybody on these forums.

Here is the simplest way to do this. Go to this thread and download the "All Partitions" zip file. Flash it and you will now have a "backupz" folder on your SD card with all the partitions as img files. Take out the aboot.img, upload it somewhere, and send me a link (you can PM if you don't want the public downloading it). After that, I'll make a recovery and notify you as soon as it is uploaded.
[G2 Android Development] honentan:
done! here it is: http://pan.baidu.com/s/168HpN

And, I have a question: after I wipe data using recovery, all files in internal storage was gone. Is there any method I can avoid these bad things?
[G2 Android Development] Heatshiver:
Awesome. I have uploaded the Verizon versions!
[G2 Android Development] :
Hi. Is there any way to install. .zip file from usb flash? I connect one, the led of the usb flash lights on, but doesnt see an option to install from usb... I have an international 802 version.. Any help? Thanks,
[G2 Android Development] Heatshiver:
No double posting...
[G2 Android Development] :
It is another threat. I haven't made another post here..

I actually installed cwm from this threat to see if it has any diffence with cwm from the other threat of autoinstall cwm (which was the first I installed) , as someone told me that by installing this specific one, has an option "install from external sd" which worked with an otg cable and a usb stick. But no luck. I still haven't this option. I could give you the link if you don't believe me but it is in greek..
[G2 Android Development] claireth:
[MENTION=3404331]Heatshiver[/MENTION] well the problem who my friend has is like that...

we have the same version of cwm installed 6.0.4.4,both non touch english versions,both the D802 international...in my phone,either i have the otg in or not in the recovery it gives me an option of "install from external" but in my friends phone not, in both cases (with/without otg) and we were wondering what could be the cause of this "problem".

Both are rooted,mine has also a custom rom!

thank you in advance
[G2 Android Development] Heatshiver:
[MENTION=1198227]sosimple[/MENTION] - I didn't say same thread, double posting. I said double posting. Pick a thread and stick with it. Already answered your question, any more double posts and I will ignore them, or make enough posts afterwards to bury them both.

[MENTION=3744665]claireth[/MENTION] - Honestly, it sounds like you might have different D802 versions, or you both have different recovery versions. I don't recall the non-touch version having this feature, I was fairly sure I saw it in the semi-touch version... The easiest thing you could possibly do is this:

1) You reinstall the recovery you have to be sure it is the correct version with the external SD option.

2) Send sosimple the version you just installed.

2) Have sosimple install your version exactly the same way you did.

3) If sosimple doesn't have the option after he installed your recovery, it is not CWM, it is his phone.

Beyond that, I have already answered why I don't think it would work anyways...
[G2 Android Development] oliver2ooi:
Hey people,

with hurge I haven't had the time to read all the thread, my concern is after installing CWM, when I backup the ROM, the date is 1970 and when I reboot and open root explorer to check my backup, the backup folder is nowhere to find in the clockworkmod folder.

Can someone help me?
[G2 Android Development] :
I see what you mean for double posting.. You do have a point, so i stop post in this threat for this.. Thanks again.
[G2 Android Development] oliver2ooi:
Found a post pointing to /data/media/clockworkmod/backup where I did find the backup folder.

I'm having another issue though other than the backup date being 1970, CWM freezes when I wipe cache, dunno if it still would freeze for other functions. Any suggestions?

EDIT: To the OP, I own the D802, rooted it via ADB. I flashed CWM with terminal emulator.
[G2 Android Development] claireth:
Hello...

Thank you a lot for answering,we did find the solution and all works now fine :good:

We got a little bit mixed up with the versions and all but with your help all went well :)
[G2 Android Development] pep5:
HI ALL,

same problem here, wrong date (1970), backup location?

any clues?

P
[G2 Android Development] dw9906:
Any chance of a version for T-Mobile?
[G2 Android Development] Heatshiver:
[MENTION=2685000]dw9906[/MENTION] - As soon as a recovery.img prepped with CWM is ready for TMO, I will just need an aboot.img so that I can give you a CWM recovery. Not sure when that will be though...

To all those not taking the time to read posts, your loss, but it could hold your answer... I understand many can't be bothered to read, but that would also imply they don't have time to read the answer. There are a lot of posts, but if you know about Google, how they cache pages, and how to type in the correct search criteria, you should be able to find answers quite easily (it works for me). I state these things because I will not have a lot of time in the VERY near future to answer much of anything, if at all...

[MENTION=1362399]pep5[/MENTION] - Check your SD card... [MENTION=3535799]oliver2ooi[/MENTION] - There is no freezing, you're just not patient enough...

And I don't see the 1970 being an "issue". Issue would imply it somehow doesn't work, or breaks your phone. I haven't had that issue.
[G2 Android Development] oliver2ooi:
It's not about patience, on my previous phone, wiping cache only takes less than 2 seconds.

To me, a process in CWM taking over 10 minutes to complete is not normal. And I do take my time to read, but I haven't found any related posts by google search that's why I asked