[Galaxy S II Q&A, Help & Troubleshooting] king_below_my_lord:
If you have Warranty use that and only do the below if you are desperate enough to buy a new motherboard or is going to trash your phone.

Very Important : If the first step(emmc_find_brick_start) if it doesn't freeze the recovery your problem is something else, so just go find another solution and leave this procedure alone. There's a note included(it was there from the moment this guide was created) above the first step which tells people to use the emmc_scan_all_partitions_once which basically does the same thing.

Major Disadvantages : You will loose space on the internal sdcard as the bricked sectors are repartioned, ie. Since the damaged blocks are removed by repartioning you can loose huge amount of memory space ranging from 100's of mb to more than 8gb, according to the amount of corrupted block's you have or by the position of the damaged blocks.

Further explanation : read this http://xdaforums.com/showthread.php?p=42588924

Note : The brick scanning scripts are all just read operation so freezing mid flash is not gonna further brick the device, as there isn't any form of write operation.

This guide is for the eMMc brick situation where you will generally or somehow be able to go into download and recovery mode but whatever the rom maybe your phone doesnt boot into the OS.

CREDITS:ALL CREDITS GO TO hg42 FOR HIS WORK. (Please refer to the second post for the original thread and if you could buy him a beer for his work)

DISCLAMIER: I OR ANYBODY ELSE RELATED WONT TAKE RESPONSIBILITY FOR WHATEVER HAPPENS TO YOUR PHONE

hg42 also can generate pit files for other gt-i9100 variants you will need to send him your model specific pit files.

Note : Read the complete guide once to get an idea before attempting.

skip the following if you already have a custom kernel and cwm.

First and foremost lets get rid of the troublesome kernel which got you into this mess(the stock ics 4.0.4 kernel is still dangerous),so flash a custom kernel containing CWM or Siyah 5.0.1 tar, via Odin

The link for Siyah 5.0.1 For GT-i9100

Download and copy the first four files attached into sd card(via some other phone or a card reader)

Note :When I usually say run or flash something in recovery, it refers to using the option install via sd card.

Note:Flash 120824-151927-emmc_scan_all_partitions_once file to check wether you are actually effected by the brick bug and has got bricked blocks,if the procedure freezes you probably have bricked partition on your phone else if the flash completes successfully your problem is something else and this guide is not for you.Also you dont need to worry about the flash because its a fake flash just to find the bricked block(its called edify script).

Now hopefully you can boot into the CWM recovery,so boot into the recovery(Volume-Up + Home + Power)

1. From recovery flash 120824-151927-emmc_find_brick_start.

The program will start scanning the memory and will freeze at a particular value, consider "1000"(Remember you must note and use the value which you get).

You will have to turn off the phone now.

2. Get back into recovery and run 120824-151927-emmc_find_brick_end.

Again the program Will start running and will freeze at a value,consider at "3000"("Note the value you get here too").

Note: so if the values gotten are 1000 and 3000 you will have to select the pit file which will patch a brick between "a value lesser than 1000 and greater than 3000".

Note:Because of the repartioning you will loose space on your internal memory, this space contains the bricked blocks and hence removed from use by repartioning,so be carefull in selecting pit files select files as close as to your values.

3. Now download the correct zip file according to your type of phone 16gb or 32 gb

Note : This is the memory specified on the box of your phone and is not reffering to your external memory.

Download the zip file from the attachment according to your model type.

Note:For the sake of this guide i am using the 16gb version.(Use the correct one as per your model)

Now make sure that you went to download mode and is running Odin after the above steps.

4. Now unzip pits-i9100_16GB.zip and select the pit file which contains the value 1000 and 3000, which will be i9100_16GB_u1_02_20110310_emmc_EXT4--patched--brick-between-00713-and-03128-MB--DATAFS-moved-by-02304-MiB.pit

Note : Use the values which you got and select the appropriate file. Don't be an idiot and use the above file carelessly.

5. Then put the phone into download mode and using Odin flash the patched pit file which you unzipped in the above step.

Note :You must tick repartion and select pit file via pit option.

Note :You will lose data from internal memory while changing partition structure.

6. Disconnect the phone from the computer and go back into Recovery and pray and flash 120824-151927-emmc_scan_all_partitions_once

7. If the flashing freezes again you still have bricked blocks on your phone,if it completes successfully, hurray your phone is gonna recover.

8. Now perform an internal sd format (yes you will have to lose your data if you did'nt backup) and all the data/cache/dalvik wipe, to free your phone from clutter and to avoid any filesystem issue due to the repartioning.

Note:You have to perform all three wipes

9. And now install a rom of your choice(I recommend custom roms are better even though you can use stock roms).

10. Reboot and hopefully your phone will be fine again.

Note: 120824-151927-emmc_scan_all_partitions_infinitely is similar to 120824-151927-emmc_scan_all_partitions_once but its not neccessary you run this as its just the same operation but goes on infinitely checking.

Note : The above procedure might work for phone's having bricked or corrupted block's on their internal memory for other reasons other than the eMMc bug.

If anybody finds that there something wrong with the above guide please notify it in a post or PM me immediately.

Thanks to,

hg42 - for his impressive guide for recovery from eMMc on n7000, and all his valuable suggestions,please refer below post

Sun90 - for pointing out better layout suggestions (thanks a lot, i didnt know that the website version looked so ugly)

Using GT - I9100

Just hit the damn help button if I helped you.