[Galaxy S II General] bilalbasra:
Hello Everyone,

Few days ago, i build Mozilla OS(boot to gecko) for my galaxy s2 and flashed it, but after i did a "wipe data" in recovery, it bricked my phone:crying:,

so after a long search i found that "EMMC" partition is currepted or in other words its bricked

and now i cant flash any ROM through recovery or Odin.

WHAT IS "EMMC"

i am not a developer or any genious, so i just explain you in simple words

EMMC is a partition in which your data is stored. and if it currepts or bricked then u can,t use your phone.

NOW its time for SOLUTION

SOLUTION 1

if u still have access to the "Recovery" and "Download Mode"

then here is a simple solution which i used until i did not found the real solution for EMMC

so let,s start

Download Siyeh Kernel 5.0.1 from bottom

Go to "Download Mode" By pressing volume down+home+power button for 5 second

Connect your galaxy s2 to your computer

Start "Odin"and click on PDA file and select where you download "Siyeh Kernel" and click on start

After flashing completed your Phone restart now press Volume up+home button+power and keep pressing until you see the "Recovery Menu"

Now go to "dual boot" option and wipe data for 2nd ROM (it take some time)

Now select install zip from internal SD card or external SD card (it depend upon you that where you have a Rom file)

After installing ROM, restart phone, after galaxy s2 boot logo you will see option to boot to 2nd ROM, now press home key to start your phone as second ROM,

Yahoo, now your Galaxy s2 is alive again:victory:

if you don't have a ROM in your internal or external SD card then go to "mount and storage" and connect your phone to your computer and select the last option "mount USB, it will show your internal and external both cards on your computer. now put any Good ROM in your memory card

SOLUTION 2

it is not my work which i am going to share with u,

Thanks to hg42 for providing pit files for galaxy s2 and also for providing recovery script

here is the link to his thread http://xdaforums.com/showthread.php?t=1667886

but it is basically for galaxy note so i write this thread specially for galaxy s2 users.

let me explain what is this

when your EMMC or Data partation is bricked then only way to survive is to cut off the infected part of the EMMC

it mean u just leave the bricked part of the EMMC partation

for this u need to locate the faulty part of the EMMC

emmc_find_brick_start.zip will start a script and where it stopped it mean it is the starting point of the Bricked EMMC partation and note that point for me it is 1028MB

emmc_find_brick_end.zip will start a script from downward and stopped where the fault part of EMMC is finished. note that one for me it is 2296

and i use this PIT file

i9100_16GB_u1_02_20110310_emmc_EXT4--patched--brick-between-00713-and-02323-MB--DATAFS-moved-by-01536-MiB

00713 is the stating point and 02323 is the ending pint, for you it may be different.

before starting this process please save your efs-backup to your computer or on your external SD card

Enough lesson for all of us :silly:

so let,s start

Download and copy these two file to your SD card emmc_find_brick_start.zip and emmc_find_brick_end.zip

Now go to recovery and click on install zip from SD and click on emmc_find_brick_start.zip and note where it stopped

Now run the 2nd zip emmc_find_brick_end.zip and note where it stopped

Now download pit file and find the right modify pit file for you

Now go to "download mode" and start Odin on your computer and connect galaxy s2

In Odin check the "re-partition" box and then click on pit file and load the pit file (One you have selected before)

Now click on start after it completed your phone will restart now again go to download mode and flash a stock ICS firmware

4.0.3 is good firmware

and yahoo, galaxy s2 is now fully alive

After installing ROM, do not start it and go to recovery and then go to mount and storage and format "System" and "Cache" and "Data" and "Internel SD and re install the ROM and then you can use it

I am Not Responsible for any damage and there is No Guarantee that it work for you or not

for best result please read hg42post

you can download All the necessery files from this link http://www.mediafire.com/?4f98kjl59o85oha

Best of luck all of you and please tell us if you are succeeded:)