[Galaxy S II General] MiKenning:
How to get your rooted Galaxy S II I9100 back to complete stock

This means that you will have:

Stock Bootloader

Stock ROM

Flash Counter Set To Zero

Stock Recovery

INTRODUCTION:
​

So, the vibration on my SGS2 is broken, but I also rooted my phone, because, well, Samsung TouchWiz sucks. So anyway, being pedantic old me, I wanted to develop a method to reset my phone ENTIRELY to stock so that I could send it off to get repaired. I have found this method.

My main problem derived from the fact that USB Jigs no longer work on ICS which is irritating because I only just got it. I made this guide so there is finally something on the Internet where all the information is in one place.

NB: I AM NOT RESPONSIBLE FOR YOU DOING ANYTHING TO YOUR GALAXY S II AND THAT INCLUDES

BRICKING

THE DEVICE. YOU ARE DOING THIS WITH FULL-KNOWLEDGE OF ANY DAMAGE THAT COULD POSSIBLY BE DONE TO YOUR PHONE.

NB: ROMs like I9100XWLPM and I9100XXLQ5 are vulnerable to the eMMC bug and that willl brick your phone if you do a wipe/factory reset with CMW (probably stock too) Thanks cpl.Bower

Here's your shopping list:

A Windows PC or if you have a Mac, a Windows Virtual Machine (haven't used a vitual machine so not sure if it works, but give it a try and let me know!)

Odin which you can get here.

Chainfire's Triangle Away Application which you can get here or on the android market if you feel you want to donate to him.

ClockworkMod ROM Manager you can get here (I would highly doubt that as root user you don't have this)

Download your corresponding Stock Kernel from here.

So here is the method:

1) Open Chainfire's Triangle Away app and press "Reset flash counter" to reset the counter and remove the triangle. It does not matter if there is no triangle already.

2) Do a nandroid backup using Clockworkmod recovery if necessary (to get to it; turn off your phone, press the power button, volume up button, and home button at the same time and hold it down for a while). This is done so that you can restore your original OS like I would want to after getting my phone back from Samsung if you're restoring it for that sole purpose.

3) (Mandatory) Wipe Data/Factory Reset in recovery menu. IF YOU DON'T DO THIS, YOUR PHONE WILL BECOME STUCK ON THE "S" LOADING SCREEN. You also should wipe the cache partition and the internal SD card. The internal SD card in case you have any directories which may link you to rooting your phone, such as clockwork mod.

4) Restart into Download Mode and plug your phone into a windows computer.

5) Open Odin , click PDA, choose the STOCK kernel. Make sure that

F. Reset Time

,

Auto Reboot

and the

PDA

checkboxes

are checked and NOTHING ELSE.

6) Click Start. The phone will restart now. It takes a while to load up as the applications need to install. Keep an eye on the phone, it'll ask you for your carrier. This does NOT mean the phone will be locked to a network.

7) Follow the instructions and set your phone up.

8) ???????

9) PROFIT

10) (Optional) You may want to check to see if your phone is set to stock to confirm. I cannot guarantee 100% that there will be no evidence of root on your phone, but hey, I still got warranty service after doing something similar to this on the old firmware.

To check to see if your flash counter is set to zero:

hold down the power button, volume down button and home button until a "Warning!!" screen appears. Press volume up and make sure it says CUSTOM BINARY DOWNLOAD: NO and CURRENT BINARY: SAMSUNG OFFICIAL. You may also want to make sure that there is no warning triangle on the first screen when you start your phone

To check to see if your recovery is set to stock:

hold down the power button, volume up button and the home button until your phone goes black after the first boot screen. To make sure it is stock,

there should be no "CWM-based Recovery"

at the top or anything indicating clockworkmod or any other custom recovery.

Any errors in the process (besides the one in the Q&A), I may not know what you have done. I have done this with my phone and it worked fine.

PLEASE REMEMBER TO RATE AND THANK ME :)

Q&A:

Q: I'm stuck on the "S" loading screen, what did I do wrong?

A: You didn't do a factory reset! To fix this, turn off your phone, go to recovery, wipe the data, reflash with the stock kernel and it'll be okay. If not, I have no idea what's wrong.

Q: How do I get to recovery?

A: Turn off your phone and hold down the power/sleep button, the volume up button and the home button at the same time until the first boot logo goes black, then you need to let go.

Q: DUDE, THIS TUTORIAL IS AWESOME, HOW CAN I EVER REPAY YOU OH MIGHTY MIKE?!

A: Rate this thread 5 stars and thank me.

Thanks for reading :)