[Samsung Galaxy Nexus] thepolishguy:
How To Re-Flash Stock Image

Assuming you have ADB and everything setup already....

1. I just did this for practice. I did not need to do it –but I wanted to do it successfully before I “needed” to do it. I thought I would expand a little on the process and make it a little more noob friendly.

2. Getting started.

a. Read through the entire set of instructions first.

b. I am not responsible if you BORK your phone. I BORKED mine using someone else’s instructions and tried to write a very detailed step-by-step to help others out– but it is completely possible I have also made some small error in the instructions.

3. This will completely wipe your phone – including the SD partition – so transfer any files you need before you do this.

4. This will not re-lock your bootloader. It will remain unlocked.

5. Syntax (spelling, spaces, periods, dashes, CAPITOL, or lower case) matters. There were some spelling errors and file extensions left off the commands – and that will not work.

6.I used the file…

mysid-icl53f-factory-65895fa8.tgz

…which is 4.0.2 for the cdma/lte galaxy nexus [code name = toro/mysid]. The file is located here...

http://www.google.co...NiI9yTxKdUyW1tA

7. Unzip the file (I used 7.zip to do this).

Then you will have a .tar file…

mysid-icl53f-factory-65895fa8.tar

8. Unzip that file and you should end up with a folder…

mysid-icl53f

Inside that folder you will have five files…

i. bootloader-toro-primekk15.img

ii. flash-all.sh

iii. radio-cdma-toro-i515.ek05.img

iv. radio-toro-i515.ek02.img

v. image-mysid-icl53f.zip

Do not unzip “image-mysid-icl53f.zip”

9. Go ahead and copy and paste all these files to your directory…

/android/platform-tools

(or whatever directory you work from. You do not need the “flash-all.sh” so you do not have to copy it).

10. Open the Command Prompt in the directory where you have placed the necessary files by navigating to the directory, pressing shift, and then right mouse click (normally “C: /android/tools” or C: /android/platform-tools). This will bring up the dialogue box and you can select “open a command window here”.

11. Then enter the command…

adb devices

[…this should return your serial number…]

12. enter the command…

adb reboot-bootloader

[wait for bootloader – you should here 2 alert sounds – not just 1]

13. enter the command…

fastboot flash bootloader bootloader-toro-primekk15.img

14. enter the command…

fastboot reboot-bootloader

[wait]

15. enter the command…

fastboot flash radio radio-toro-i515.ek02.img

16. enter the command…

fastboot reboot-bootloader

[wait]

17. enter the command…

fastboot flash radio-cdma radio-cdma-toro-i515.ek05.img

18. enter the command…

fastboot reboot-bootloader

19. enter the command…

fastboot -w update image-mysid-icl53f.zip

20. So you know, steps 17 (flashing the cdma radio) and step 19 (flashing the update image) took longer than the rest so don't freak out - just be patient. If you did the steps in the proper order after entering the last command your phone should reboot on its own and be completely “fresh”. If you made mistakes (like I did the first time) and flashed the radios out of order (like I did) or did not wait long enough for an “Okay” dialogue (like I did) then when you reboot you will have no signal and no phone number and you will have to go through the process again and do it right (like I did).

Hope this helps someone.

Credit goes to JW at that other site for the fastboot commands. I just added detail for the write up.