[Optimus L3, L5, L7 General] leonardorg:
In normal circunstances, kdz update sould be the solution for bricked phones, but some (Very rare) times, it become the trouble itself.

It happened yesterday, i've flashed the kdz file on my l3 as usual, but instead of getting the stock rom, I got a bootloop.

This happened probably because I was using sdmerge before, and after flashing the stock kdz, the /data partition became corrupted in a way that nor stock rom or stock recovery was able to deal with the corrupted data, so the only thing i had access was the emergency mode.

In this case, the obvious solution is use cwm to wipe /data, but to flash cwm I need a working rom, and I didn't had any,

so in this tutorial we will flash cwm with kdz update to wipe /data and ressurect the phone.

the tutorial was originally posted here, but it's for optimus black, well, the process is almost the same here but i'll post it here because when this problem happened the first thing i did was to google "bootloop after kdz update e400", but i didn't found nothing and only founded that post some hours later.

you will need:

The cwm image

The KDZ file

Your prefered tool to flash the kdz

Cheat engine

CWMInject

The kdz file is encripted, so you can't simplely insert the cwm image on kdz, you must have the decrypted image to inject the cwm, well, the kdz is decrypted by the flashing tool before upload and the decrypted image is on the program's memory, so you will use cheatengine to find the memory adress of the stock recovery and use CWMInject to inject the cwm on the memory before the flashing tool reaches this adress, so you need to be fast!

1- open the task manager, the flashing tool, cwminject (don't forget to run it as administrator) and cheatengine.

2- on the flashing tool, prepare everything to the flash but DO NOT start the flashing process.

3- on cwminject, select the flash tool's process and the cwm image

4- on cheat engine, select the flash tool's process, set Value Type for String and scan Type for Search for text, on the text field type "ANDROID!".

5- Start the flashing process and keep the eye on the taskmanager, when the amount of memory used by the flasher grows you know that the kdz was decrypted, click on first scan on cheat engine, it sould find FOUR adresses with the word "ANDROID!", if it don't find the word or if it only find one it means that you have scanned to early and the image was not completely decrypted yet, in this case just click on new scan and then scan again until it find FOUR adresses with the word "ANDROID!", the last one is the adress that you need.

6- Now be fast to put the adress on the cwminject and click on write memory, the stock recovery will be overwritten with cwm.

7- Now just wait the flashing ends, your phone will continue with the bootloop, but now, you should have the cwm installed, so put back the battery and turn the phone on holding vol- and home to start the cwm recovery.

8- now you can wipe the /data partition and bring the phone back to life.

9- (OPTIONAL) flash the stock kdz without modifications, i recomend you to do that because we have used hacking methods do modify the flasher's memory, and we don't know all of the effects of this modification, your phone will not enter in the bootloop anymore because we have fixed the /data partition with cwm and the /data partition is not written when we flash a kdz.