Woo, ugly. My second near-bricking of this phone.
After an oops, duh, I did an LG style factory reset from clockworkmod xionia_cwma_12518.4_virgin.img; (yes, factory reset with custom recovery is a known horrible idea and I should've known better,) and after that:
phone keeps booting to LG logo a couple times, then "Android system recovery>formatting data,cache...>reboot", then repeat.
My instructions assume you have set up/know how to use adb, and have the fastboot tool as well. Not a guide for newbies.
I finally broke the loop...
using adb, which would only connect for a couple seconds while the recovery was active.
command line:
to get into fastboot screen. You have to have the command ready to press <enter> in the tiny interval between when the recovery screen opens and when it reboots, not much time. It took several tries to time it where adb could talk to the phone and not error with "error: device not found" (too soon) or "error: protocol fault (no status)" (too late.)
So, I copied an older clockwork recovery (recovery-clockwork-3.0.0.6-ov-20110220.img) to the .../android.../platform-tools directory on my desktop PC where adb lives since I put fastboot there with the other phone tools,
note:(it looks like any other recovery which would normally function on the phone works for this)
and then
command line
fastboot boot recovery-clockwork-3.0.0.6-ov-20110220.img
to actually get back into recovery.
This next step may not be required, but it's what I did. It looks like the recovery isn't really gone, just has some stupid flag set which forces it to do the factory wipe every time it's started up, so a re-install probably doesn't do anything. Made me feel better, though. The next step after this is the important one... restore your last backup!
Then, re-install xionia_cwma_12518.4_virgin.img (from
here) custom recovery with adb (it appears this custom recovery is deactivated by the boot loop, it's still there but won't respond, only does the "Android system recovery blah blah reboot" instead of running the recovery properly, even after breaking the loop by rebooting into another recovery and restoring the last backup)
I assume flash_image is still set up on your phone for this. Copy the xionia_cwma_12518.4_virgin.img to your SD card while still in custom recovery. Make sure to remount the sdcard in the mounts menu after this or flash_image won't see the file.
then
command line
adb shell
flash_image recovery /sdcard/xionia_cwma_12518.4_virgin.img
For insurance I advise restoring your last backup next thing (you know the drill, format data/cache/system/boot, then restore your backup) before rebooting. My problem that started this bricking was mixing an incompatible kernel with stock ROM. Until I replaced my backup, I couldn't get past the boot loop. Now it only does the "Android...formatting...rebooting" thing on startup, and only once, then boots.
If you don't flash the xionia_cwma_12518.4_virgin.img back into the phone it only boots into whatever custom recovery you put on it to break the loop.
I'm still unable to get into this recovery, it just does the stupid "Android...formatting...rebooting" thing, but at least it just does it once and then I can use the phone.
Other recoveries I've tried only boot into recovery, not into Android, after this style near-bricking... but at least in those you can do your backup/restore and then flash xionia_cwma_12518.4_virgin.img back into the device so it'll start up.
I'll be looking for a better solution for this, but at least I can use my phone again!
It was down for almost a WHOLE HOUR! AGGGHHH!
Though I'd share my experience to maybe give others some hope or at least a different thing to try for unbricking the lg-lg-recovery-reboot loop.
Good luck!