yashsingh1/xdaforums huggingface dataset:
[Nexus S 4G Android Development] michaelpeerman:
It means your missing something in the file i created. When you download the file you have to extract the zip file to a regular folder and have all the files in the zip in the same folder. My script loooks for each img file and the fastboot and adb file if they are not in the same folder as the run.bat file the script will not run.
[Nexus S 4G Android Development] michaelpeerman:
After you extract the zip. you should be left with a folder that looks like this

http://i644.photobucket.com/albums/uu166/michaelpeerman/XDA/screenshot.png

Make sure your folder has all these files
[Nexus S 4G Android Development] Joey_UFC:
ohhh ok thanks. i just extracted the run.bat file thats why.

edit: thanks alot man, im unrooted.
[Nexus S 4G Android Development] Joey_UFC:
man if life was only as easy as your method to unrooting. it would be a happy place
[Nexus S 4G Android Development] michaelpeerman:
Thank you for the compliment. Also whenever the OTA hits ill be sure to update my method to include those files
[Nexus S 4G Android Development] Joey_UFC:
i won't be having the nexus anymore hopefully come by tomorrow. Iv have it for about 2 weeks and not liking it very much and getting the 3d since it will be unlocked by August.

This phone is kickass but im having serious connection problems and i had more drop calls using this phone for 2 weeks then when i had the evo 4g for 7 months lol
[Nexus S 4G Android Development] michaelpeerman:
Sorry to hear you got a bad nexus. I do not have any of those problems on mine
[Nexus S 4G Android Development] Ibupr0fen:
yeah, I think I'm one of those that god a "bad Nexus". I bought 2, one for me and one for my wife. Her own works fine. But I have bad 3G connectivity issues. I lost ability to call, text and internet from about 12pm and I have yet to get it back. Its powered off right now and charging because it was constantly trying to connect to Sprint, thus killing the battery. 4G works, but I still cannot make calls, I just have internet on 4G.

Going to use this method to return to stock and return it and hope that I get a "good" Nexus S.

I hear that update that they were supposed to put out on the 11th was supposed to address these issues, but it got pushed back. Wish me luck.
[Nexus S 4G Android Development] michaelpeerman:
I wish you luck. Also after you restore it to stock go into the settings and about phone and sprint system updats and update your data profile and prl. See if that helps
[Nexus S 4G Android Development] Ibupr0fen:
Okay, first of all! Thanks so much for this program! Worked like a charm! Second, after returning to stock, I'm still having the same issues. I can't get a 2G/3G connection, I'm trying to update the PRL and my Profile and its failing everytime. I think the radio on this one is f*&ker-ed! Waiting for the wife to get home and heading to Sprint in a bit to exchange.
[Nexus S 4G Android Development] michaelpeerman:
Then you definitely have a defective phone. I wish you the best of luck with the replacement
[Nexus S 4G Android Development] hellcatt:
hey micheal i tried to pm you...twice in fact but i dont see it in my sent box
[Nexus S 4G Android Development] michaelpeerman:
I got it. I sent you an email
[Nexus S 4G Android Development] Ibupr0fen:
Back! Got a new phone and everything is fine. Now to root!
[Nexus S 4G Android Development] michaelpeerman:
Glad to hear that. The nexus is amazing i wouldnt trade it for anything. Bet your ass when the new one comes out in november ill be first in line.
[Nexus S 4G Android Development] bullet1:
Will this work for Nexus S (not 4G version).If not can it be modified to work for Nexus S. This would really be appreciated.
[Nexus S 4G Android Development] michaelpeerman:
No this is for the nexus s 4g only. If you want to use it for other models youll need to download the images specific to those moels and replace the ones in my zip with those
[Nexus S 4G Android Development] bullet1:
I need to take it in for warranty work and im not really that computer literate. Is there anyway you could modify this to work for me. Please Please Please.
[Nexus S 4G Android Development] Borky_16:
with the permission of the OP and a bit time i will do that and post it in GSM Section! is that okay?
[Nexus S 4G Android Development] michaelstigers:
...I'm considered a purest because I do everything the old school way, but I love and recommend one clicks to clients, and they help when you've had to much to smoke...(coughs)

★ Message sent from my T-Mobile G2x with CyanogenMod ★

♥ My Google Android - CyanogenMod 7.1 #81 with Google Android 2.3.4 (Gingerbread)
[Nexus S 4G Android Development] bullet1:
If either of you could do it I would be eternally grateful.
[Nexus S 4G Android Development] chewbz:
You and me both, now lets hope the new one comes to sprint xD
[Nexus S 4G Android Development] Kurupt1:
Thank you very much for this

, makes things a lot easier! Now hopefully an OTA is around the corner.
[Nexus S 4G Android Development] shawnp582:
ONE CLICK

Mr peerman you are the man!! Works like a charm sir:d
[Nexus S 4G Android Development] bullet1:
By the way what is the GSM section? And thanks again.
[Nexus S 4G Android Development] unomedmen1:
Are you guys going back to stock for the supposed OTA coming next week? Might be off subject a little but does anyone know if we must be locked/unrooted to make this OTA a success? I am unlocked/rooted but stock ROM is why I ask.

Thanks guys
[Nexus S 4G Android Development] unomedmen1:
Well I decided to go back to stock to make SURE I get the OTA, and this OneClick works flawlessly! Thank you so much for this easy to follow procedure.
[Nexus S 4G Android Development] njeske:
I used this to flash my phone back to stock a few days ago. I thought everything worked fine, but apparently the recovery image didn't flash right or something. When I boot into the bootloader and then select recovery, my phone reboots and then I'm just getting a triangle with the orange exclamation point. I tried manually flashing the recovery.img using the "fastboot flash recover recovery.img" command and it says it succeeded, but I still can't boot into recovery.

Any help would be greatly appreciated.
[Nexus S 4G Android Development] The Killjoy:
wow, nice man! I've always done things the long way, this is the first time I used a one click..... it was super fast!

proper job!
[Nexus S 4G Android Development] agel1:
my phone its flashed to boost mobile, if i do this gonna keep working on boost mobile

thanks
[Nexus S 4G Android Development] ahhlix:
Will this work on the new update?
[Nexus S 4G Android Development] info[]box1:
It should work. It doesn't change any phone settings so it should work.
[Nexus S 4G Android Development] info[]box1:
That's a good question, I think it should. I don't think it would brick at all. Worst case scenario it just won't root your phone.

First it unlock the bootloader, then push cwm recovery img. That's all you really want it to do, then you can flash whatever rom.
[Nexus S 4G Android Development] unomedmen1:
I can confirm that this works on a stock NS4G 2.3.5 (latest update)
[Nexus S 4G Android Development] ahhlix:
Thanks for the reply, I know that the one click root works. But once you try to return to stock wouldn't the files for this need to be updated due to the fact that we're not on 2.3.4 ?
[Nexus S 4G Android Development] snarebum:
I did the one click root using 2.3.5 and I decided to use the stock click for ****s and gigs and it worked perfectly. It sent me back to 2.3.4 and then I just updated to 2.3.5 and all seems good.
[Nexus S 4G Android Development] ahhlix:
Perfect! Thanks man
[Nexus S 4G Android Development] SupremeTaino:
when trying this method i get a message saying some files are missing please try again.

Please help nt sure what to do from here. Thanks
[Nexus S 4G Android Development] W8ing4Pre3:
Was wondering if there might be a "One Click Return to stock (2.3.5) for nexus s 4g" version made available???

BTW.... Thanks so much for the original
[Nexus S 4G Android Development] neduzak999:
Help

i am currently running one click stock as i type this and everything was goin good until it got to writing radio and now its been there for a little bit without progress. what should i do?
[Nexus S 4G Android Development] neduzak999:
......still writing radio
[Nexus S 4G Android Development] bullet1:
If somebody could please modify this to work on the t mobile Nexus S It would really be appreciated.
[Nexus S 4G Android Development] Voyager62:
This doesn't completely work for me. When I go into recovery, nothing is there only the android icon showing error.
[Nexus S 4G Android Development] Fredrick2011:
it works 100% no troubles I personally want to thank everyone who has contributed to this project this now will allow me to return my phone to Sprint for warranty issues the phone even installed the GRJ90 which only happens if it is indeed stock and it is again thank you very very much
[Nexus S 4G Android Development] michaelpeerman:
That is the stock android recovery.

When that screen comes up before the exclamation point comes up hit the volume up button
[Nexus S 4G Android Development] Master_sk3:
Does this app relock the bootloader?
[Nexus S 4G Android Development] xjreyes:
Uhh yes, it makes the phone go back to STOCK 2.3.4 with radios and all
[Nexus S 4G Android Development] Suit_Of_Sables:
Wow, this looks really great!

I noticed there is an .exe file in the zip. Any tips as to how I can accomplish what this one-click-stock does under linux? I guess I can always try it under wine... :)
[Nexus S 4G Android Development] 12MaNy:
Do we need to be running a stock rooted ROM in order for this to work properly?

EDIT: NM...
[Nexus S 4G Android Development] chiefillinimac:
So I ran this with seemingly no problems. I'm back on stock 2.3.4 and not rooted anymore but I can't seem to get any OTA updates. Does anyone have any insight as to why this might be? I've looked around here and Google but perhaps my research skills are diminishing...

Thanks in advance for any help.
[Nexus S 4G Android Development] fergie716:
Yea my dad had the same problem.. I rooted his phone, then a month later I un rooted it and I had to manually check for the 2.3.7 update

Check out this thread here and you can get the update manually by using the dialer code

http://xdaforums.com/showthread.php?p=15342368
[Nexus S 4G Android Development] jonasvestlie:
how to make this work on the regular ns? i9023
[Nexus S 4G Android Development] jwhistler:
I've got the same problem. Everything seems fine but stock 2.3.4 won't grab OTA updates.

Anyone know a solution?
[Nexus S 4G Android Development] fergie716:
did you read my post.. it's two above yours lol
[Nexus S 4G Android Development] chiefillinimac:
Actually, I did try your suggestion and got a notification saying "checkin was successful" or something along those lines (I'm at work and can't check it again). But I didn't get any OTA updates. I'm not sure what the problem was, but I will mess around with it more tonight and if I figure something out I'll report back.
[Nexus S 4G Android Development] fergie716:
As long as you got the notification saying checkin was successful you should be good. Took about 5 minutes before the OTA started downloading
[Nexus S 4G Android Development] jwhistler:
Fergie... I ran the following about 1/2 hour ago ....

*#*#2432546#*#*

Checkin(Manually check for System Updates)

Said it was successful but I'm still on 2.3.4 and going to System Updates says I'm "up to date."

Thanks for your help!
[Nexus S 4G Android Development] fergie716:
Hmmmm.. I would try it one more time.. Then wait 15-20 mins. If nothing, reboot. It might fetch the update after a reboot
[Nexus S 4G Android Development] jwhistler:
Just did... I'll report back! Thanks!!!
[Nexus S 4G Android Development] fergie716:
OK cool good luck. I'm sure it'll get to your phone soon..
[Nexus S 4G Android Development] jwhistler:
Not having any success here :( Here's what showing in system info, if it helps...

Android version

2.3.4

Baseband version

D720SPRKE5

Kernel version

2.6.35.7-ge382d80

android-build@apa28#1

Build number

GRJ22

On the following page: http://xdaforums.com/showthread.php?t=1078213

There are .zip files that look like they are to update incrementally...

GRJ90 from GRJ22 OTA

GWK74 from GRJ90 OTA

Can these be flashed via Android recovery to update the system files? (I know, I really have to watch myself or I'm going to fry my phone!)
[Nexus S 4G Android Development] jwhistler:
Unable to update from 2.3.4

Still stuck... no joy :(
[Nexus S 4G Android Development] superhtchd2:
same issues here.. returned to stock , 2.3.4.. says system up to date. tried manual update but still nothing. guess it just takes time to come to the phone?? would being on wifi speed anything up?
[Nexus S 4G Android Development] superhtchd2:
update... i manually flashed 2.3.4 > 2.3.5 , then 2.3.5 > 2.3.7 , stock 2.3.7 up and running now :D

link to OTA files.. http://xdaforums.com/showthread.php?t=1063664
[Nexus S 4G Android Development] jwhistler:
I just did the same thing and also have 2.3.7 stock up and running. Wasn't sure it would work but took the gamble and it paid off :)
[Nexus S 4G Android Development] weswilliams55:
when ur on stock 2.3.7 is ur wifi tether working????
[Nexus S 4G Android Development] Bobguy21:
awesome

Sent from my Nexus S 4G using the XDA mobile application powered by Tapatalk
[Nexus S 4G Android Development] contradude:
I have a feeling that this thread will become really busy around the ics release date. Awesome one click!
[Nexus S 4G Android Development] Byrd42:
U have to run this from the computer right? Or can it b done from ur phone?
[Nexus S 4G Android Development] method2madness:
From the computer.
[Nexus S 4G Android Development] Bobguy21:
For some reason the links doesn't work. Can some one check to see if I'm correct?
[Nexus S 4G Android Development] scourge73:
The links work for me I just downloaded and returned to stock
[Nexus S 4G Android Development] alaqawari:
When i tried the one click i got an error with missing files.

I am running windows on my Mac. I installed SDK Manager and installed the drivers.

I am getting:

USB Control Init

USB Control Init End

when in Bootloader or the download (triangle with android in middle)

When I click on recovery it takes me to a screen and tries to unpack something and goes to error (triangle with exclamations point).

I am on the road, i might have to try different USB cords when i get home. (note i get the two lines above even if my phone isn't connected to the USB) the USB connected to computer does charge the phone.

any help will be appreciated. I am learning a lot.
[Nexus S 4G Android Development] solesonfire:
Thanks for this man
[Nexus S 4G Android Development] docsparks:
do i NEED the screen to do this?

Sorry, just looking for an exact answer,

my LCD is out, but i can screencast fine,

Can i use this without the screen? any adb stuff ill need to know?

also, even if i have adb drivers i cant connect to like, droidexplorer when the phones not rooted right?

just trying to return to stock b4 returning to sprint store..

thanks for any help!
[Nexus S 4G Android Development] stkiswr:
This works perfect for me. I used it last night to restore my nexus s 4g to stock. Took 10 mins. I backed up all my SD on my PC and once it relocked and flashed my phone I spent an hour reinserting all my apps and setting up everything, then to my surprise I checked my SD and all my content was still there. It did a full restoral to 2.3.4 and i kept my SD content. Then took all my updates ota to get back to 2.3.7.

It may not keep everyone's SD content but I just wanted to share my story. This tool works great. I was prepared for a full wipe out. Many thanks for such an easy process.
[Nexus S 4G Android Development] jalexishg:
Sorry for my noobish question, with this work with Mac computers ?
[Nexus S 4G Android Development] GrandMstrBud:
Sweet it relocks the bootloader right?
[Nexus S 4G Android Development] stkiswr:
Relocked and returned to stock 2.3.4 for me
[Nexus S 4G Android Development] jalexishg:
anyone ?????
[Nexus S 4G Android Development] Esteway.619:
No its only for windows there's a thread in the regular nexus that shows u how to return back to stock on a Mac.
[Nexus S 4G Android Development] Esteway.619:
OK here's the link for u. All u have to do is copy past to your terminal and done. http://xdaforums.com/showthread.php?t=1129759
[Nexus S 4G Android Development] parkpy:
thank you SO much for this. None of the ROMs or Kernels tried could help get rid of my phones problems of rebooting, or freezing. I hope Sprint will take this POS phone back, and replace it with one that will actually sustain a signal!
[Nexus S 4G Android Development] MaxCarnage:
Just wanted to drop in and let you know that I ran this yesterday to put my phone back on stock (wife is having issues with Sprint and we may be leaving them soon) and it worked like a charm. Absolutely no issues. Thanks a lot for this.
[Nexus S 4G Android Development] plmiller0905:
Hey can someone please post a mirror for the "One click return to stock" I'm at work trying to unroot my friends Nexus and of course, I can't pass the firewall to Mediafire
[Nexus S 4G Android Development] Da_Reaper:
it says some files are missing please try again
[Nexus S 4G Android Development] Rblacula:
Does this work with an alpha ICS rom to stock?
[Nexus S 4G Android Development] solesonfire:
it tells me that theres some missing files
[Nexus S 4G Android Development] valtonray:
while I currently have no use for this app it will be useful once the ICS OTA update is released, and apps like this make it quick and painless.
[Nexus S 4G Android Development] spx_trader:
unzip the file into a folder and run it from the folder not the zip
[Nexus S 4G Android Development] solesonfire:
Thanks I'm on stock again
[Nexus S 4G Android Development] eaguil16:
Im having problems with this method. I had ns4g and it worked fine. I tried doing the same method on my brothers phone and it doesn't work. It keeps on waiting on the final steps when it needs to flash the files over. Any suggestions? I did﻿ enable debugging.

I did it numerous times on my phone and I didn't have a problem.
[Nexus S 4G Android Development] solesonfire:
Extract it to your desktop that's what I did and it worked
[Nexus S 4G Android Development] eaguil16:
I have everything set up. Its already extracted to the desktop. I ran it and once I get near the end for it can flash everything. Before it starts its constantly says it waiting for device.
[Nexus S 4G Android Development] MorganWAppleby:
kinda stuck

Ok guys, here's my BS situation.... I flashed a ns4g safe Rom and after the kernel flash, I rebooted and now all I can get is the google boot/unlock screen. BL lights up bit nothing after. I don't know if I still have USB debugging on or not, I can still get to the boatloader but it says no recovery or boot.img. also get a USB Int then a USB int end notification. My original root CPU is out for work and am using an old win xp CPU with zero drivers. Phone does not seem to get noticed correctly with USB plug in. I can get into DL mode as well. Any bone someone could toss me here would be outstanding. Thanks a ton in advance. Is this considered a soft brick?
[Nexus S 4G Android Development] angcheenkhuan:
Help

Hello, I need your help. I mistakenly unroot my Nexus S with Nexus S 4G and﻿ now I could not make any calls.... Can you please help me to revert it back to my unrooted Nexus S ? Thank you very much....
[Nexus S 4G Android Development] jmelick07:
Will this work with osx?
[Nexus S 4G Android Development] Rblacula:
No, it won't. :( Sorry... Try a library computer with windows or ask a friend with windows...
[Nexus S 4G Android Development] jmelick07:
If I do this will it revert it to the orignal firmware that came on the phone then it will allow me to take the 2.3.7 ota?
[Nexus S 4G Android Development] Esteway.619:
Here for osx. Just copy and paste http://xdaforums.com/showthread.php?t=1129759
[Nexus S 4G Android Development] Esteway.619:
Yes
[Nexus S 4G Android Development] Shott3r:
Can you do this without a computer?

I have to return my phone after some hardware damage and I want to unroot and wipe. The result of the damage is that no computer will recognize the phone as a device or as a USB drive, although it will charge via USB. So no adb, no fastboot, none of that.

Is there any flashable zip that could do all this and unroot?
[Nexus S 4G Android Development] fwald:
Just as an FYI: yesterday I used this one-click to return my NS4G to stock from BuglessPete's GPA19 and it did NOT wipe my SD card directory. Depending on the situation obviously, this can be desired or not desired.
[Nexus S 4G Android Development] eaguil16:
I tired this method on my brothers phone it didn't work but on my phone it did. I used Odin to restore his phone to stock and it worked fine
[Nexus S 4G Android Development] Indirect:
Re-did your script and added a little bit to it such as device check confirmation for the unroot, etc. :) PM'ing it to you now.
[Nexus S 4G Android Development] yihtang:
Sorry I'm not too sure where to post this issue. I accidentally unroot my Nexus S 3G with Nexus S 4G with the guide posted here, and now I lost network connection and also unable to use other method to unroot my phone because it says "assert failed: getprop("ro.product.device") == "crespo". I think it's because I am attempting to install Nexus S OTA into a device that is recognized wrongly as Nexus S 4G. Any help? Thanks!
[Nexus S 4G Android Development] Indirect:
That sucks man! sorry to hear. :|
[Nexus S 4G Android Development] yihtang:
Fortunately I managed to force restore using this restore.... What a relief. I thought my phone is gone forever.

http://xdaforums.com/showthread.php?t=1396224
[Nexus S 4G Android Development] the1dynasty:
thanks for this thread... will likely be using it once ICS OTA is available for the NS4G
[Nexus S 4G Android Development] neo_x22000:
does this lock the bootloader??...and will this delete everything that i have stored on phone??...i mean everything
[Nexus S 4G Android Development] mavit1234:
please help me please :( :(

help me please :(

I've tried this device, it accidentally, nexus s nexus s nexus s was 4g.

How do I rotate back to

---------- Post added at 04:09 AM ---------- Previous post was at 03:45 AM ----------

please help me please :( :(
[Nexus S 4G Android Development] bocaccio:
THANK YOU!!! Trying to change my number and im on ICS rom now so sprint is all confused. Assuming i need to stock it first so they can communicate with it on their end. THANKS:D:D

This is for the ns4g right??
[Nexus S 4G Android Development] corythug:
Yep NS4G Is a go.

Follow the leader @corythug ;)
[Nexus S 4G Android Development] JohnCorleone:
Why is this not stickied yet? Thank you for this OP!

Sent from my SPH-D710 using Xparent Blue Tapatalk
[Nexus S 4G Android Development] jamesadalpiaz:
It hangs at writing the radio.img so I just manually issued the commands to the boot loader and it returned me to Stock (From oICSv43). My screen has a white line going through the middle of it so I need to return it to sprint for warranty work.

Thanks.
[Nexus S 4G Android Development] Indirect:
It doesn't hang, its verifying the image.

Sent by breaking the sound barrier
[Nexus S 4G Android Development] toddlmr:
I ran this script last night and it did everything but lock the bootloader. What can I do to lock it? I need to send it back to Assurion.

Thanks

Todd
[Nexus S 4G Android Development] musclehead84:
Run the fastboot commands in adb.

I think ifs fastboot OEM lock. Not sure though.
[Nexus S 4G Android Development] toddlmr:
Which fastboot command? Impressive lifting stats BTW! Thanks
[Nexus S 4G Android Development] DarkSithAD:
very happy this was here... my rig took a dump on me a couple days back... this got me back in da biz !

Thanks !

Rick