[Galaxy S II General] d.fx:
THIS GUIDE IS INTENDED ONLY FOR THE 16GB GALAXY S2 I9100 (but a similar procedure can be applied to some other samsung devices)

BIG THANKS TO USER HG42, ALL CREDITS GO TO HIM AS HE IS THE ONE THAT MADE THIS POSSIBLE. THE ORIGINAL GALAXY NOTE THREAD IS HERE

THERE IS NO GUARANTEE THIS WILL WORK, IT DID FOR ME AND A FEW OTHERS BUT YOUR PROBLEM COULD BE SLIGHTLY DIFFERENT. I AM NOT RESPONSIBLE FOR ANYTHING THAT HAPPENS TO YOUR PHONE

AFTER FLASHING THE PIT FILE, YOU SHOULD IMMEDIATLY FLASH A SAMSUNG ROM OR A KERNEL VIA ODIN, ESPECIALLY IF YOU STILL HAVE THE LQ5 KERNEL INSTALLED, IN ANY CASE, DON'T TRY TO WIPE DATA AFTER THE PIT FILE FLASH, FLASH A ROM OR A KERNEL BEFORE DOING ANY WIPE

As you must know by now, some users experienced hard bricks after flashing the leaked LQ5 firmware and doing a factory reset or a data wipe, some others, like me, can still access Odin or recovery but no matter what we try we can't get the phone to actually fully boot.

SYMPTOMS:

-You can go into download mode and maybe in recovery

-When you try to wipe data in recovery the phone gets stuck and reboots eventually

-Flashing a firmware through odin doesn't do any good even when the flash was a success

-During the Flash through odin it may get stuck at data.img or fastoryfs depending on the firmware you're trying to flash

If your symptoms aren't the same as those, i would advise not trying this procedure

THE REASON FOR THE "BRICK"

It seems that during the factory reset or data wipe you made after flashing LQ5, the data partition got badly corrupted somehow, and because of that, neither CWM nor Odin can write or format this faulty data partition. This is why you can't boot into any rom.

What you need to do if you're in the same situtation i was into (make sure of it) is to flash a modified pit file which is gonna create a new data partition on your internal sdcard, leaving the faulty one aside, and thus getting a brand new data partition which is gonna make your phone work again, but at the cost of having a smaller internal SD. Other than that, your phone should work exactly as it did.

WARNING / BACKUP

By doing so, you're also repartitionning the internal sdcard, which will result in the loss of everything you have on it, to backup the content of your internal sdcard, you must follow the steps described in THIS THREAD which is the thread started by the man that found the solution to this problem. The thread is a galaxy note thread, but the backup procedure is the same.

Once you have backed up what you wanted to backup, and made sure you read everything carefully, you can proceed to the flashing of the modified pit file.

AFTER FLASHING THE PIT FILE, YOU SHOULD IMMEDIATLY FLASH A SAMSUNG ROM OR A KERNEL VIA ODIN, ESPECIALLY IF YOU STILL HAVE THE LQ5 KERNEL INSTALLED, IN ANY CASE, DON'T TRY TO WIPE DATA AFTER THE PIT FILE FLASH, FLASH A ROM OR A KERNEL BEFORE DOING ANY WIPE

The zip containing the modified PIT files can be found in THIS THREAD at the end of the first post.

STEP BY STEP

-Put your phone into Download Mode

-Flash the modified pit using odin, NOTHING ELSE

-After pit flash, the phone will try to reboot, and will get stuck. Remove the battery

-Go into Download Mode.

-Flash a clean, unmodified, samsung firmware (like KI4) WITHOUT PUTTING ANY PIT FILE

-Reboot in stock recovery, do a factory reset

-Reboot phone

-Format internal sdcard

-You should be good to go

ALTERNATIVE WAY (NOT RECOMMENDED)

-Put your phone into Download Mode

-Flash the modified pit using odin, NOTHING ELSE

-After pit flash, the phone will try to reboot, and will get stuck. Remove the battery

-Go into Download Mode.

-Flash a custom kernel with Odin.

-Then Boot into recovery and install a rom from a zip which must be on your external SD

I hope this works for you as well as it did for me. Good luck, and congratulations to hg42 for finding a way to get our devices working again