LG-Style Factory Reset

AVanover5

Active member
Dec 28, 2010
28
23
0
I did LG-Style Factory Reset with Clockwork Recovery and now every time I go into recovery, it does the LG-Style Factory Reset regardlessly...
 
Yeah, I been meaning to take out the LG Style wipe because its incompatible with non-LG roms. Don't worry though you can get out but you need to connect your phone to your PC.

This assumes you know how to use ADB, because when it boots and you hear it attach to your computer you are going to have to spam this command:

adb shell flash_image misc /dev/zero;adb shell flash_image persist /dev/zero

copy and paste that line do not edit it in any way. just paste it in your cmd.exe and hit enter,up,enter,up,enter ect until it catches it and then it should boot normal.

Its a timing game now.

Despite the eraseall it won't wipe your data or anything, its just wiping the flag that is telling the bootloader to loop.
 
Last edited:
  • Like
Reactions: AVanover5
Where do I get that flash_eraseall utility? I have adb and such but I don't have that... Do I need to compile something?
 
Confused. You have to have Xionia CWMA in order to have run LG reset from CM7, and Xionia CWMA has flash_eraseall.
 
Confused. You have to have Xionia CWMA in order to have run LG reset from CM7, and Xionia CWMA has flash_eraseall.

Perhaps something went wrong with the recovery partition? I have terminal emulator on CM7 and the Xiona CWMA image is still on my SD. So couldn't I just reflash it from there?
 
Perhaps something went wrong with the recovery partition? I have terminal emulator on CM7 and the Xiona CWMA image is still on my SD. So couldn't I just reflash it from there?

Even more confused. If you can boot into CM7, what are we trying to accomplish? xD
 
Even more confused. If you can boot into CM7, what are we trying to accomplish? xD

I'm trying to get my custom recovery back. Every time I attempt to access custom recovery, it does the LG-Style Reset rather than booting into that lovely aqua blue menu...
 
I think I get it now. Run these while in CM7:

adb shell erase_image misc
adb shell erase_image persist
adb reboot recovery
 
  • Like
Reactions: AVanover5
I think I get it now. Run these while in CM7:

adb shell erase_image misc
adb shell erase_image persist
adb reboot recovery

Thank you Lord zefie! I was going nuts over this little thing. That's what happens when you're on sugar, no sleep, spending too much time on the phone, and seeing green pirates....
 
Thank you Lord zefie! I was going nuts over this little thing. That's what happens when you're on sugar, no sleep, spending too much time on the phone, and seeing green pirates....

Sorry for not getting it right away I was confusing it with a very similar issue that gets you stuck in an infinite wipe loop lol.
 
Sorry for not getting it right away I was confusing it with a very similar issue that gets you stuck in an infinite wipe loop lol.

Don't be so modest, lol. You're truly awesome. By the way, I've recently become motivated to modify the flash 10.1 apk in order to use with ARMv6 processors. I extracted the source code from the classes.dex file with dedexer and after looking at it for a while; I became convinced that there wasn't anything in there that would disable the installation (at least, at first sight). So I'm thinking it's the shared object files (ELF format). I have no idea how to decompile or disassemble them because they have the ARM instruction set (rather than the x86 that I'm use to). You're clearly more familiar with phone development than I am. So if you could give a look at this, that'd be awesome.

There's the extracted apk, the dedexed classes.dex, the dedexer, and a signer included in this zip: 2shared - download FlashMod.zip
 
I'm no good with assembly :P

Damn... Well, I'll be sure to post a thread if I manage to a get copy of this thing going. I'm hoping a developer overlord swoops by and does it before me (it would be way quicker). If only the Optimus S were more popular. Again, thanks for your help. :-)
 
Don't mean to resurrect a month old thread, but I felt there was no need of creating a new one, either. I've fallen into the lg-style format loop hell, sadly. I know about spamming "adb shell flash_image misc /dev/zero;adb shell flash_image persist /dev/zero" once the device was recognized. I do that, but the time I have to successfully get a command in is very small. Once the recovery menu is booted into, practically less than a second afterward, it reboots, staying on the LG screen for 30 seconds or more. Regardless of how quickly I seem to spam the command, none of them ever seem to go through.

I even attempted making a bash file to spam it thousands of times, but again, none of them ever go through successfully. LGNPST and LGMobile successfully recognize the device during that 1 second of recovery menu, but it's too small an interval to successfully force a flash.

So, does anyone have any tips in regards to this. I should have just never tried the option to begin with. I only realized my custom ROM was CM7 derived once it was too late. Hope someone can provide assistance. Thanks in advance.