yashsingh1/xdaforums huggingface dataset:
[Nexus S General] agdroubi:
oldblue910 posted another instructions with no reboot bootloader, did anyone try it following his instructions??

FASTBOOT IMAGES

If you're comfortable with fastboot, you can flash these images to return your phone back to raw stock.

Generally the best way to do this is to perform the following steps:

Put all six fastboot images in one folder, unlock your bootloader, perform the fastboot flashes, then lock the bootloader:

fastboot oem unlock

fastboot flash bootloader bootloader.img

fastboot flash radio radio.img

fastboot flash recovery recovery.img

fastboot flash boot boot.img

fastboot flash system system.img

fastboot flash userdata userdata.img

fastboot erase cache

fastboot oem lock

FLASHING FASTBOOT IMAGES WILL ERASE ALL OF YOUR PHONE'S DATA AND WILL RETURN YOU TO A FACTORY STOCK, UNROOTED STATE.
[Nexus S General] TheWretched:
So has anyone attempted or had any success trying just the update without the bootloader or radio on an i9020A with this?
[Nexus S General] elnahir:
Okay, I managed to do it. Basically, it boils down to me being an idiot.

What I did was:

Download + install SDK package, Java SDK.

Install ADB [ http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-android-devices/ ]

Download the image provided in the first post

Unzip the files to platform-tools

Unzip the image file (!) to platform-tools

Follow the instructions

..Voila.

I forgot to unzip the image file. And to put the unzipped files in the platform-tools directory. Pretty lame.

But, yeah, just another confirmation that OP is a success.

Thank you for your help, guys!
[Nexus S General] ale.landra91:
Is exactly the same thing but somebody think is better to reboot each time...I think that nothing change.
[Nexus S General] cosimoss:
Flashed:
[Nexus S General] mahanddeem:
This method has a great benefit in which you can restore system to stock android 4.0.4 and keep your current radio untouched (and avoid unnessesory risk to IMEI when playing with the radio
[Nexus S General] neldar:
"flash-all.sh" wipes your data - maybe you should add a warning, not everyone looks into a script before execution (i did :)).

And "flash-base.sh" flashes only the bootloader and the radio.
[Nexus S General] iggyone:
In the end you've helped alot! I went to check if I unzipped img file, and I actually managed to unzip the wrong file...:eek:

So then I repeated everything from scratch using proper files, and STOCK 4.0.4 is running as I type. Rookie mistake :D

EDIT: here is the confirmation:
[Nexus S General] mahanddeem:
Can this step :

fastboot -w update image-soju-imm76d.zip

be :

fastboot flash image-soju-imm76d.zip

???
[Nexus S General] thegtfusion:
No. In fastboot you can only flash .img files
[Nexus S General] elnahir:
Great news, iggyone. :)

Here's a screenshot for confirmation from me:
[Nexus S General] sonu27:
When I try to do the command: adb reboot bootloader

I get an error saying no devices found.

I did install the adb interface driver. My device shows up in devices.

Help? Has anyone got an up to date driver?
[Nexus S General] KillBorn07:
edit: succesfully done! looks like it does not like the long file names^^

Yepp, same for me as sonu27...stock 4.0.3, with fastboot oem unlock...
[Nexus S General] Harshwardhan:
just manually reboot bootloader and continue with the remaining fastboot commands.

as far as I can tell its the same thing.

I am no expert but that is what i did and it worked flawlessly.
[Nexus S General] sonu27:
Am I correct in saying that to flash it without wiping your data, your phone has to have an unlocked bootloader?

I guess the adb command doesn't matter, just skipped it.

But yeah, you have to have an unlocked bootloader.

Never mind have to wait for OTA update then I guess.
[Nexus S General] mahanddeem:
Will flashing (or using fastboot -w update blah blah ...the system) will do fomat /system THEN put the new system ? I always like clean installs !!!
[Nexus S General] ezio84:
Installed on 9023, it works good ;)

http://android-dls.com/wiki/index.php?title=Fastboot

-w --> erase userdata and cache

Anyway you can boot in recovery mode with CWM and wipe system/boot from there, before installing 4.0.4 factory images.

If you dont' have CWM installed and you love stock -invisible :D- recovery you can just boot into CWM without flashing it:

fastboot boot recoveryname.img
[Nexus S General] Filipe Galego:
Thank you for the tutorial and all the help guys!

After unlock my bootloader and manually reboot bootloader in first step everything worked fine and I'm now in 4.04 without the recovery bug of 4.0.3!!!! :D
[Nexus S General] chuckao:
I followed steps presented in this thread and it works fine.

On Linux (Ubuntu)

1 - turn off phone

2 - press volume UP and power button to enter on bootloader

3 - connect usb cable to PC and phone

4 - fastboot oem unlock

5 - flash-all.sh

6 - reboot phone

7 - turn off phone

8 - press volume UP and power button to enter on bootloader

9 - fastboot oem lock (If I lose my phone, my data will be protected)

10 - Enjoy 4.0.4 :)

My SD was clear, but after put my Google Account, goole play sincronized and it started to install my apps.

I didn't see anything better on 4.0.4, comparing with 4.0.3. USB transfer as so slow as 4.0.3. I'm missing GB times :(
[Nexus S General] Mario Christian Oquias:
im performing the procedure now , i got confused at the zipping procedure but i got it now... i will update after wards:D
[Nexus S General] challl88:
Mario: you updated from 2.3.6 with this factory .imgs? I would like to add a note to my guide in czech forum...
[Nexus S General] Mario Christian Oquias:
flawless !!!! hahahaha im so happy!!! :D this is the best !!! i do strongly recommend this procedure it works like a charm!!! thank you again !:D
[Nexus S General] Pi3rluigi:
I'm on a Mac,but this should not matter;my phone is running CM9_4.0

I've just downloaded the last SDK and installed it;as request also downloaded the platform-tools.

The first command "reboot bootloader" runs properly,the phone turns off and rebooted in bootloader screen.

The second command line "desktop/sdk/platform-tools/fastboot flash bootloader bootloader-crespo-i9020xxkl1.img"

gave this as result "error: cannot load 'bootloader-crespo-i9020xxkl1.img'"

And if I run this"desktop/sdk/platform-tools/adb get-state"

I got this:unknown

instead of one of this 3 option offline | bootloader | device

Any advice will be apprecieted
[Nexus S General] ale.landra91:
estrai due volte il file che hai scaricato .targz. una volta estratto vedi 3 o 4 file. copiali sciolti in platform tools e riprova
[Nexus S General] Pi3rluigi:
I've got the 3 files:bootloader.img,radio.img and image-soju.zip

but it seems usb related,maybe fastcharge in matr1x kernel

restoring right now stock 4.0.3 nandroid backup,and then I will try another time
[Nexus S General] Ieatnoobs:
This has probably been answered already but just to confirm: can I use this image to revert back to stock on. I9020 the att version?
[Nexus S General] ale.landra91:
You have to look at the number rear battery i9020T (not a) or i9023
[Nexus S General] kapieper:
Thanks a lot!

Thank you for the 'how to' and the download link. Worked fine for me!

I am still restoring my data (unlocked bootloader for the first time), but hey, after all that 'error 7' with the updatefile i did not want to wait, until Google brings the OTA to Germany.

Hey Google, this is bad service, that really sucks! But thank you all at xdadevelopers
[Nexus S General] albundy2010:
It is google that released these factory images after 17 months of legal stuff to have the rights to do so. But I guess its easier to blame Google than the person behind the keyboard.
[Nexus S General] saranyan:
Works like a charm. Thanks:)
[Nexus S General] Mobil3:
Hi, it worked well, except that it wiped all my data (I did it without the -w option!!!)

Updated from stock 4.0.3 on 9023, enjoying a 'brand new' Nexus S :eek:
[Nexus S General] kamikaze666:
I can safely say that the I9023 can enjoy the Factory Image goodness :D Installed it, no hiccups, no errors, works like a charm and as long as all I9023 are the same, hardware wise (which they should be) then nobody should have any issues with installing 4.0.4 factory image through fastboot :) (Unless you are afraid of cmd.exe :)) )
[Nexus S General] michalurban:
fastboot -w update image-soju-imm76d.zip

Is there a way to stop the automatic reboot after this command? I wrote a script which would unlock the bootloader, flash everything required for the upgrade to 404 and then lock the bootloader again. But afted flashing the imm76d update the phone restarts by itself so it doesnt lock.

Its no big deal of course, Im just curious ...
[Nexus S General] ale.landra91:
I dont know. Yes it reboot automatically
[Nexus S General] goldy_rocky:
Thanks

Hi There,

Yesterday I have restored my 9023 Australian Version from 2.3.6 to 4.0.4 & everything is working like a charm.

Thanks for being so helpful & this wonderful guide.

Thanks a ton
[Nexus S General] xdatastic:
Many thanks to the OP, I followed the instructions and upgraded my Australian Vodafone I9023 to 4.0.4 (i was on manually installed 4.0.3 before) and it works great.

Screen rotation is much quicker on 4.0.4 compared to my wife's I9023 still on 4.0.3.

I never had any issues with battery life but it will be interesting to see how they compare.
[Nexus S General] TheHeeyyy:
I am having the exact same problem (but I am using Windows 7, and my Nexus S is running stock Android 4.0.3). I have all the files extracted in the same folder as fastboot is in, but the problem still persists. Can anyone offer advice?
[Nexus S General] xdatastic:
Just a thought, but maybe you need to run both the adb process and the fastboot commands as root (or Administrator in Windows)?

I could be wrong, although I had a similar, but not quite the same error message in Ubuntu.

EDIT: Is your bootloader unlocked? "fastboot oem unlock"
[Nexus S General] TheHeeyyy:
Just tried running command prompt in administrator mode, and I got the same result (error: cannot load 'bootloader-crespo-i9020xxkl1.img'). And yes, my bootloader is unlocked. Any other ideas?
[Nexus S General] xdatastic:
Sorry i'm no expert. I upgraded mine mostly out of luck.

Is ADB running? What model number of the Nexus S do you have?
[Nexus S General] TheHeeyyy:
I am not sure if adb is running properly. I was able to execute "adb reboot bootloader" correctly, but when i run "adb get-state" in the bootlader I get an "unknown" message. My Nexus S is model i9020t. I hope that information helps clarify the problem I am having.
[Nexus S General] ale.landra91:
I dont know. Put debug USB on, reinstall adb driver on PC, control you have adb.exe and fastboot.exe and at the end do adb device with phone linked
[Nexus S General] xdatastic:
Is USB Debugging enabled on the Nexus in the Settings\Developer Options?

I haven't set up the tools in Windows before, but I found these guides which might help. That's all the help I can give. Good luck.

http://www.theandroidsoul.com/how-to-install-adb-on-windows-full-guide/

http://www.addictivetips.com/mobile/what-is-adb-and-how-to-install-it-android/
[Nexus S General] albundy2010:
When you're in the bootloader you don't use adb. You use fastboot.

And forget this adb get state stuff. When the phone is in a state where adb can connect use the adb devices command. When in fast boot its fastboot devices. If your serial number doesn't show then that mode is not seeing your device.
[Nexus S General] Gianni:
Also on galaxy nexus ?

penso che userò questa guida per il mio GN, non dovrebbero esserci differenze, cosa pensi?

grazie
[Nexus S General] Pi3rluigi:
Assuming you have a i9020t and the T-mobile sim card (as me),you can simply do this:

download from here

http://android.clients.google.com/packages/ota/google_crespo/ZD3PyN0t.zip

the official full rom flashable using CWM or stock recovery

insert sim card,just login Google account and you will immediatly notify about a new update available
[Nexus S General] ale.landra91:
E' esattamente identica. Cambia solo i nomi ai file. E scarica quelli per "maguro"
[Nexus S General] rasengan82:
LOL 2.3.7 Factory Image for NS4G were uploaded as well. Does that mean the OTA for 4.0.4 is still far in the future? wow!
[Nexus S General] SoftWord:
I have i9023 Italian and icon H don't appear when I'm in HSDPA, why ? In gingerbread I have H icon......
[Nexus S General] ale.landra91:
The H icon is disabled from google on any stock rom for nexus. This since some old version of gingerbread (I remember also 2.3.6 hadn't it). This because the hsdpa network is a 3g network then is more correct to use only 3g
[Nexus S General] TheHeeyyy:
I actually installed the Android SDK on my laptop (to see if my desktop was causing the issue), but I am getting the same problem on it too. The serial number appears when I execute adb devices (while my phone is on), and when I execute fastboot devices (while my phone is in fastboot mode).

Yes.

The serial number does show-up.

Any more ideas?
[Nexus S General] sean1984:
i9020a images are up now :D
[Nexus S General] TheHeeyyy:
Got it

I figured it out. When I was installing the Android SDK, I followed this video guide: youtube.com/watch?v=oaNM-lt_aHw

One of the steps in the video guide (it starts at the 4:30 mark) is to add a set of paths to the PATH environment variables, so when using Command Prompt you can easily execute the adb and fastboot commands. This method worked perfectly fine for me when I unlocked the bootloader, but when I tried flashing the factory firmware I kept getting the message "error: cannot load 'bootloader-crespo-i9020xxkl1.img'". Out of curiosity I tried running Command Prompt directly from the platform-tools folder (shift+right click "platform-tools", then click "Open command window here"), and when I tried flashing the factory firmware it worked perfectly fine. I am very confused as to why using commands via the PATH method didn't work, but opening Command Prompt directly from the folder worked. Shouldn't both methods work equally fine? And why was I able to execute other commands fine via the PATH method, but only the flash commands didn't work?

Anyway, I hope my solution to this problem can help prevent other people from going through the same headache I endured figuring this out. If someone gets the error message "error: cannot load 'bootloader-crespo-i9020xxkl1.img'", make sure their commands are being properly directed (shift+right click "platform-tools", then click "Open command window here").
[Nexus S General] SoftWord:
ok, and for enable it ?
[Nexus S General] Bls440:
Had this problem, solved it by installing PDAnet; the nexus S drivers that it installs work all the way till the end of the procedure

http://junefabrics.com/android/index.php
[Nexus S General] ale.landra91:
OP updated with new image of i9020a
[Nexus S General] rony1234:
Hi Folks, what are the steps to install the full 4.0.4 factory images onto the Nexus S i9023 ? Is it the same as what's listed in the first post ? I though that was only for the incremental update.
[Nexus S General] poltor:
Nexus S 4.0.4 stock bug

hello ale your guide is perfect, thanks but now my nexus has this bug watch video on youtube ---> watch?v=NAn3hDN_NGU

I am new to forum and I can not open a thread you can do it for me thanks!!!
[Nexus S General] rony1234:
Guys ignore my earlier question... I'm finally running ICS 4.0.4. Here's what I did.

1. Downloaded the full factory install via link provided on page 1, Android SDK, Android v1.0 driver and the SDK tools.

2. Unlocked bootloader

3. Ran the below commands.

fastboot flash bootloader bootloader-crespo-i9020xxkl1.img

fastboot reboot-bootloader

fastboot flash radio radio-crespo-i9020xxki1.img

fastboot reboot-bootloader

fastboot -w update image-soju-imm76d.zip
[Nexus S General] ale.landra91:
What you want to say? this is exaclty what i say in the first post. just read :confused:
[Nexus S General] rony1234:
Yup I agree, and thank you for everything :-)
[Nexus S General] danny1oh:
Anyone confirm this works for i9020a (AT&T) still running 2.3.4? Or do you have to be on at least 2.3.6?

Also any idea if AT&T will push an OTA now that the 4.0.4 factory image is available? My guess is AT&T doesn't care about this phone at all....
[Nexus S General] bozzykid:
Factory images do not matter what version you are on since it is the complete image. I flashed the factory image on my AT&T NS and it is working great. Just be aware that it will wipe your phone using the factory image method.
[Nexus S General] danny1oh:
Thanks. Just flashed it on the i9020a and it looks great!:D
[Nexus S General] chaor:
It works on my Nexus S I9023. But the HW video decoder doesn't work.

Both mx video Player and dice player cannot use hardware video decoder.

Finally I find out it caused by the AIR kernel 3.8 -_-
[Nexus S General] ale.landra91:
If you use it they remain i9020 in bootloader and i9023 in info settings
[Nexus S General] chaor:
it will change but still 9023xxx
[Nexus S General] d3one:
so why i need it? what it doe?
[Nexus S General] ale.landra91:
i dont understand the question
[Nexus S General] NubKnacker:
I did exactly what is written in the quoted post below on my nexus s with baseband I9020XXKF1 and it worked. Thanks a lot.
[Nexus S General] sandal75:
flashed from custom to 4.0.4

Couldn't execute

adb reboot bootloader

(error: device not found)

ignored this command and executed the rest with succes.

Thanks.
[Nexus S General] xontax:
You saved my ass today, got stock in bootloader. Thanks!
[Nexus S General] ale.landra91:
You're welcome
[Nexus S General] superhil:
Thank you Alessandro for your guide.

I want to ask, does 'fastboot oem lock' also wipe everything?
[Nexus S General] ljordan2:
From what I know, no. It doesn't wipe anything.
[Nexus S General] superhil:
OK, thanks

But still backup first is better choice in case something bad happens :D
[Nexus S General] ale.landra91:
Only unlock wipe everything. Lock doesnt wipe
[Nexus S General] Gianni:
non ho ancora fatto perché, incredibilmente, è impossibile fare un backup affidabile della SD (che sd fisicamente non è...), mi confermi che il factory reset (come dice la parola) pialla tutta la memeoria?

ps parlo molto bene inglese, ma è riassicuratore un parere di qualcuno che abita vicino !
[Nexus S General] ale.landra91:
Il factory reset cancella le app, le chiamate e i messaggi. L unlock cancella la memoria interna o sd. Sinceramente non vedo l utilità di fare un backup in quanto una volta installate le immagini il telefono torna come nuovo. In un certo senso il backup serve nel passaggio da una custom rom ad un altra (nel caso in cui la seconda non ti piacesse o non funzionasse bene). Nel passaggio alla stock puoi sbagliare anche 1000 volte ma avendo le immagini potrai sempre rimetterlo a posto senza bisogno di un backup. Qual e in questo caso l utilità di un backup dal momento che dopo che installi le factory image perdi anche la ClockworkMod?
[Nexus S General] elnahir:
OK, for some reason I need to go back to the stock 4.0.4.

I have all the files, I've been through this before. I have Android SDK 19, Java JDK, everything mentioned in the OP. I unzip image-soju-imm76d in the platform-tools folder, I have the bootloader & the radio images in there as well. But when I try to flash the bootloader or radio I get this:

http://i.imgur.com/T83Hb.jpg

What am I doing wrong? I need some help, please. :)
[Nexus S General] ezio84:
See the first error: "device not found". It seems you aren't using the correct usb driver.

The Google's driver, included in the android sdk, works fine with i9020 (super amoled) but for your i9023 (scld) you need to mod the .ini.

Download and install this one http://www.mediafire.com/?6lkamuseq64hb62 ;)

BTW: Usb debug mode must be activated on your Nexus.
[Nexus S General] elnahir:
Could you please tell me how exactly must I mod the .ini file? What do I need to add or remove?

Trying this driver and doing a flash with the factory image is my last chance of avoiding going to Samsung's offices. ;/

Thank you for the information and your help, by the way!
[Nexus S General] elnahir:
Great work, mate! Much appreciated!

Now all I need is to figure out where to unzip this usb driver? Platform tools? Tools?.. What must I do to active it?

I just realized that my phone is actually missing from the Device Manager. The funny thing is that I actually saw it there like 8 hours ago.
[Nexus S General] ezio84:
Extract the zip wherever you want.

After connecting your phone (with debug mode ON) to the PC, if nothing happens just check if it is recognized in the device manager:

If there's an exclamation mark, choose to manually update the driver in the context menu, selecting android_winusb.inf in the previously extracted folder.
[Nexus S General] zedomax:
mirror

Here's a mirror for the soju version, in case someone has hard time downloading:

http://stockroms.net/file/NexusS/GSM/4.0.4/soju-imm76d-factory-ca4ae9ee.tgz
[Nexus S General] thomnow:
I'm actually getting better performance, battery life and stability from using the stock 4.0.4. Absolutely brilliant post and thanks for the info. Currently at 17% after 1 Day, 10 hours and 37 mins - 3G / Wifi on all the time.

Only thing i miss is BLN :/

Thanks again, ill be sticking with this for the foreseeable future :D
[Nexus S General] ale.landra91:
Tomorrow ill add also old images that are now published on google dev
[Nexus S General] ale.landra91:
OP updated with new official Factory Images of android 2.3.6
[Nexus S General] mutantlx:
Thanks for this, im now back to stock thanks to you! now running 4.0.4 on 9020 :D
[Nexus S General] Rblacula:
I have a NS4G and dl'd the correct NS4G official factory images from Google but I've been stuck at "writing 'radio'..." for like 20 min... is this normal?!?
[Nexus S General] saibz:
Thank you for providing this guide, I've been looking for the exact commands to flash back to official firmware.
[Nexus S General] taronas:
Does anybody have a link to an older 4.0.1 or 4.0.2 factory image? They are not listed at the android dev page and googling didn't yield anything yet.

thanks
[Nexus S General] joliv:
Done...waiting for JB OTA.
[Nexus S General] Articudos:
There is no 4.0.1 and 4.0.2 updates for nexus s.(official)
[Nexus S General] anshumandash:
I am on stock 4.0.4 with unlocked boot loader and customer kernel. I am planning to flash the factory image of 4.0.4 using fastboot. Will this wipe all my data on the phone & external storage?
[Nexus S General] chronophase1:
All your data and external storage should be ok.
[Nexus S General] anshumandash:
I recently flashed the 4.0.4 image using fastboot. Everything went fine. While flashing the image-soju-imm76d.zip file using fastboot -w update image-soju-imm76d.zip command, i got the below response first

archive does not contain 'boot.sig'

archive does not contain 'recovery.sig'

archive does not contain 'system.sig'

Then it flashed the boot, recovery, system and userdata correctly. The phone is working fine now.

Now what does it mean? Does it mean it is unsigned? Will this be a problem for me when 4.1 update comes? I am worried that upgrade to 4.1 might fail at signature verification. Can some one help me with this?
[Nexus S General] ale.landra91:
No is everthing OK. Are normal these 2-3 lines. You will get the ota
[Nexus S General] anshumandash:
There is no expected date when Jelly bean is going to be available for Nexus S. Meanwhile I am planning to flash a customer Kernel. Later when Jelly Bean roll out is announced, can I just flash Boot.img (I think this is the stock Kernel) and be back to complete stock to receive the OTA? Or will I need to flash the whole factory image again?
[Nexus S General] DarkShadow69:
I was on cm9 and revert back to stock rom for my I9020t by following this thread. Also I was using cwm recovery. Everything is working fine except recovery. Whenever I try to access recovery I got android logo with red caution sign and after few seconds it reboots automatically. Please help me how can I fix this issue.

I had flashed recovery.img from stock rom image file but all in vain:(