yashsingh1/xdaforums huggingface dataset:
[Nexus S Themes and Apps] dogcmp6:
Thanks shabby, I just got the confidence up to use fastboot to root, and install, hopefully you can get the one click up for other noobs
[Nexus S Themes and Apps] jwr2d2:
i've used the one click method and the long way but when going to fastboot i get no response. adb works fine and i have the android bootloader interface driver installed. any ideas?
[Nexus S Themes and Apps] K@ng2011:
It worked perfectly for me. Install PDANet It has all the necessary drivers to finish the steps
[Nexus S Themes and Apps] shabbypenguin:
nah i found the issue, wasnt finding the cwm, made a few changes uploading it now
[Nexus S Themes and Apps] K@ng2011:
Run and install pdanet
[Nexus S Themes and Apps] shabbypenguin:
pdanet really isnt the preferred method of drivers, but they work and they make it into a nice easy installer. this new version has both the 32 bit and 64 bit

i just wanna double check on some things about the sdk, as i think due to some people downloading and installing it its throwing off the path hence the missing cwm

and its live, same link as before
[Nexus S Themes and Apps] jwr2d2:
tried that it still just hangs when running fastboot
[Nexus S Themes and Apps] shabbypenguin:
odd clearly there is an issue connecting to the phone, but honestly i cant pinpoint it with the info you have given me...
[Nexus S Themes and Apps] unforgiven512:
Oh, but mine was no good? :/
[Nexus S Themes and Apps] simon.ponder:
Battery and others...

@shabby

I was thinking hero, when I threw the mount commands out there, but they still work. Try them out. Not sure about the unmount, I have had mixed results.

Anyways, did you get the battery tweak working?
[Nexus S Themes and Apps] austineasleyinfo:
Not working for me either, it still can't get to the mount sd card interface. It just goes to the exclamation point/android screen.
[Nexus S Themes and Apps] shabbypenguin:
i made a new thread http://xdaforums.com/showthread.php?t=1250583
[Nexus S Themes and Apps] jonasvestlie:
is it possible to get this on the ns gsm?
[Nexus S Themes and Apps] dreamsforgotten:
Simply replace the recovery img in the folder work the regular nexus recovery
[Nexus S Themes and Apps] shabbypenguin:
or just use version 3...
[Nexus S Themes and Apps] dreamsforgotten:
^^ what he said XD
[Nexus S Themes and Apps] nikola25:
Does this still work for version 2.3.7?
[Nexus S Themes and Apps] srthimsen:
Check out the updated link on the top of this page, I used version 3 last night successfully.
[Nexus S Themes and Apps] beathookup:
Used the One Click Root and worked perfectly, except now when trying to boot into recovery from the bootloader, I get an error. Not sure where I went wrong, I am rooted (see the SU app) but can't flash a ROM
[Nexus S Themes and Apps] infamousteeboy:
i get error: device not found EVERY SINGLE TIME
[Nexus S Themes and Apps] dreamsforgotten:
You on windows? The drivers aren't installed, you on Linux? You need 51-android.rules
[Nexus S Themes and Apps] dreamsforgotten:
You need to push another recovery image to your phone is all. Get a recovery.img (will be named whatever.img) fastboot flash it. Not sure what I'm saying fastboot is an app to flash the nexus search about it, download it, run the command from terminal. Pm me for more info
[Nexus S Themes and Apps] robertrulez:
Not needed. To do it drag your rom into your sdcard directory on nexus s. Then run the bat again. Once the bat starts, go to recovery, and there you can directly install the rom.
[Nexus S Themes and Apps] lrbarrios:
Lame, lame, lame newbie question...

I'm now running ICS. Will this erase any data from my phone or is it harmless. I've been wanting to root my phone for a long time but was always worried about losing everything on it. If this does wipe my phone, what is the best method to back it up? Thanks.
[Nexus S Themes and Apps] bangishotyou:
Yes, it will erase the data from your phone. I'm assuming you're stock, no root nothing. What this does is OEM Unlocks your phone (which wipes it completely), then flashes a custom recovery and adds root.

What you can do to back it up is copy everything off your phone. The way I do that is by just backing up my "sd card" to my computer.

As far as apps and contacts go that's synced with your Gmail account. So once your phone is back up and running, the moment you sign into your Gmail account it will start putting everything back (I recommend signing into Wifi somewhere to make this process faster, as far as restoring apps that is). Once you're rooted and all that and restoring stuff, just plug your phone back into your computer and transfer everything you backed up back to the sd card. It's what I do.

Hope this helps.
[Nexus S Themes and Apps] lrbarrios:
Thanks

Thanks for the taking the time to reply with such detail. The Nexus S 4G doesn't have an actual SD card. From what I understand, it's just 'built in'. So when you say "copy everything from the SD card" you're actually referring to all of the files and folders that I can see when I connect the phone to my computer and turn on USB Storage. Is that correct? Just click and drag all that stuff to my PC (to create the backup) and drop it back to the phone after the whole upgrade process (to do the restore)? I don't sync anything to my Gmail account. All of my contacts/calendars are kept on an Exchange server. I guess at the worst I would just have to recreate the Exchange account on the phone. Thanks again.
[Nexus S Themes and Apps] bangishotyou:
You're welcome

Yeah, when I say "copy everything from the SD card" I am indeed referring to the files and folders you see when you connect to your computer and turn on USB storage.

Just make a folder on your computer called "Nexus SD card backup" and drop everything in there. Then, put it back on your phone when you need to. (It's what I do every time I need to. And it helps to have a backup anyway, just in case.)

I sync everything to my Gmail, so not sure how the Exchange stuff would work. But at worst I'm thinking once you recreate the Exchange account on your phone it will resync your data from your Exchange account.
[Nexus S Themes and Apps] bx10r:
Hoping this thread is still active...followed the one touch root. Insatlled cwm, flashed su all says installed proper;y but root mgr says not rooted. I tried again and it says its unlocked....im trying to use barnaclewifi tether and still says not rooted. Hope someone can help me
[Nexus S Themes and Apps] pitmaster:
You try updating su?

I'll gladly pay you Tuesday, for a hamburger today..........
[Nexus S Themes and Apps] bx10r:
Sorry but how do u update us?
[Nexus S Themes and Apps] pitmaster:
Open up su app, hit settings and scroll down to su binaries......click to check for update....

You can also try one of the apks for ice here.......

http://androidsu.com/superuser/

I'll gladly pay you Tuesday, for a hamburger today..........
[Nexus S Themes and Apps] bx10r:
I tried updating but it didn't do anything. So I downloaded the zip from the attached link but now I wanna flash it but when I power off and then power on holding the vol up .& down keys it powers on regular vs go into fast boot so I can go into recovery. What can be wrong now?
[Nexus S Themes and Apps] pitmaster:
Just power and volume up to get into boot loader....

I'll gladly pay you Tuesday, for a hamburger today..........
[Nexus S Themes and Apps] bx10r:
Got into recovery, thanks. I tried to upload the zip and it says aborted...wtf???????? Any other ideas. Basically what im trying to do and the only reason im doing this is.She wants to be able to use Barnacle wifi tether so she can use her ipad on the rd. Sprint is 1.00 a day and if i can root this nexus she'll be good.
[Nexus S Themes and Apps] bangishotyou:
Not sure exactly what you did wrong. I'm going to assume you're already unlocked and rooted if you're able to get into a proper recovery (ClockworkMod Recovery). Am I correct so far?

If so, what you want to do is transfer the Superuser zip to your phone (while it's on and in it's normal every day use mode). Once you've done that, reboot the phone back into Recovery. Then install the SU zip like you would a ROM. In the menu for CWM Recovery just go to install zip from sd card. Select the Superuser one and then click Yes to install. It should work at that point. It's what I did the first time around before I switched to a different non-stock ROM.

I'm thinking it's also possible you also just had a bad download when getting the SU zip. In which case, just to make sure that wasn't the problem, go back to the site and redownload the file. Then do what I mentioned above and you should be good to go.

I'll try and keep an eye on this thread (rest assured it's not dead) to see if you need further help or if everything works out. I'm no pro/expert, but I try and help out when/if I can.
[Nexus S Themes and Apps] bx10r:
It worked now, mustve been a bad download...Thanks for all the help
[Nexus S Themes and Apps] bangishotyou:
Glad to hear and no problem. If there's anything else post and I'll try and help. Or feel free to PM me if you'd prefer.
[Nexus S Themes and Apps] djspyrojm:
The URL Is Still Broken Bruh
[Nexus S Themes and Apps] poudigne:
need to root a Nexus S for the work, can you update the links plz.
[Nexus S Themes and Apps] shabbypenguin:
well for one man all yours did was unlock the bootloader and flash the nexus s recovery.. 3.1.0.1 is the first working version for the nexus s 4g. on a side note did you happen to look at yours compared to simon's? no?

http://pastebin.com/ge2ur1f5 yours

http://pastebin.com/eDyCi53C his

just for giggles http://pastebin.com/7A6uXjKM is mine. anyways as chris has already paid simon for it its pretty much a moot point.

so now being back on topic, i have no idea on why people are haviong this issue ive tried it on 3 different windows computers installing the drivers as i did it and yet it still flashes cwm for me. the only thing i can think to do is create a stop/go version with debugging in every line and have people figure out whats going on. but clearly the cwm isnt getting flashed which i dont know why i built a failsafe in if it cant find the recovery to end the script before it even starts...

EDIT ok i think i got it this time, please try one last time..
[Nexus S Themes and Apps] simon.ponder:
$0

Two comments...

Chris has not paid me a dime,

and the other,

I considered getting the drivers not even a portion of the root as we all would need drivers for our phones to communicate with the computer. I never tested not having the drivers. I just supplied them.

Also, there is a different driver needed for fastboot than adb, so if the phone isn't being recognized in fastboot, your missing a driver. It's that easy. When windows looks for a driver for fastboot, tell it you know where it is at, and point to the parent directory where the Samsung drivers are located. Do not pick out a specific driver file.

...make that three comments...

I improved on the previous posters solution, as his was flashing the incorrect recovery, and never install su.

I did add to his, in the whole spirit of open source and all that.
[Nexus S Themes and Apps] shabbypenguin:
uhh perhaps chris can enlighten us all then on who won the bounty? simon ill pm you the reason why

as for the drivers like i said man i was trying to go for an all in one. if i can get the damn batch script working then ill move onto making linux/mac versions as well.
[Nexus S Themes and Apps] chris378:
Shabby i pm you asking for your paypal info and that it would take 2 to 3 days to put the money jn my paypal lol look back on your messages
[Nexus S Themes and Apps] chris378:
Also, Whos OneClickRoot is actually working? Shabby or Simon? Because in all fairness whos ever is "Complete" and works is who should get the $100.
[Nexus S Themes and Apps] shabbypenguin:
just need someone to test the newer version, as all of my versions worked flawlessly for me.
[Nexus S Themes and Apps] TheDub:
LOL!

Your script reads exactly like the rooting instructions ;)

I hope you collected your bounty already.

Nicely done.

Cheers.
[Nexus S Themes and Apps] shabbypenguin:
lol well some of it cant be done via commands but it is however a little nicer in that it is more of an aio then a one click :D
[Nexus S Themes and Apps] unforgiven512:
Eh, I can fix mine.

I just A) don't use Windows B) hate Windows and C) find bash a lot more flexible and usable then batch files on Windows

It'd be substantially easier to do things on Linux, lol. No drivers to worry about, just do:

if [[ $# != 1 ]]
then
echo "You must enter \"crespo\" or \"crespo4g\" after ./root-ns.sh"
fi
if [[ ! -e "first_run_complete" ]]
then
sudo touch /etc/udev/rules.d/51-android.rules
sudo echo "SUBSYSTEM==\"usb\", SYSFS{idVendor}==\"18d1\", MODE=\"0666\"" > /etc/udev/rules.d/51-android.rules
sudo service udev restart
touch first_run_complete
echo "Setup complete. Please unplug your phone, and plug it back in. Close this terminal, open a new one, and run this same program again to root your phone."
else
echo "Please select yes on your phone to proceed."
./fastboot oem unlock
sleep 5
if [[ $1 == "crespo" ]]
then
./fastboot flash recovery recovery-nexus-s.img
echo "Your phone is now rooted. Please install ROM Manager from the market to flash ROMs."
elif [[ $1 == "crespo4g" ]]
./fastboot flash recovery recovery-nexus-s-4g.img
echo "Your phone is now rooted. Please install ROM Manager from the market to flash ROMs."
else
echo "You have entered an invalid device name. Use \"crespo\" or \"crespo4g\" and try again."
fi
fi

:)

If you seriously want me to, I'll make you a badass Windows version. Just let me know.
[Nexus S Themes and Apps] TheBurgh:
If this is the case then you may want to consider changing the name of the thread......difficult to justify not paying shabby when the thread says differently. Just a thought
[Nexus S Themes and Apps] shabbypenguin:
problem with your linux script is that even then it still doesnt root it, sure it gets recovery on there but if you are directing users to use rom manager, that app requires root to reboot into recovery.
[Nexus S Themes and Apps] unforgiven512:
There, I fixed it.

if [[ $# != 1 ]]
then
echo "You must enter \"crespo\" or \"crespo4g\" after ./root-ns.sh"
fi
if [[ ! -e "first_run_complete" ]]
then
sudo touch /etc/udev/rules.d/51-android.rules
sudo echo "SUBSYSTEM==\"usb\", SYSFS{idVendor}==\"18d1\", MODE=\"0666\"" > /etc/udev/rules.d/51-android.rules
sudo service udev restart
touch first_run_complete
echo "Setup complete. Please unplug your phone, and plug it back in. Close this terminal, open a new one, and run this same program again to root your phone."
else
echo "Please select yes on your phone to proceed."
./fastboot oem unlock
sleep 5
if [[ $1 == "crespo" ]]
then
./fastboot flash recovery recovery-nexus-s.img
echo "ClockworkMod Recovery has been installed."
elif [[ $1 == "crespo4g" ]]
./fastboot flash recovery recovery-nexus-s-4g.img
echo "ClockworkMod Recovery has been installed."
else
echo "You have entered an invalid device name. Use \"crespo\" or \"crespo4g\" and try again."
fi
echo "When your phone reboots, please select RECOVERY from the menu."
read -p "When the recovery is loaded, press [enter] to continue..."
./adb shell "/sbin/busybox mount /system"
./adb push su /system/bin/su
./adb push Superuser.apk /system/app/Superuser.apk
./adb shell "chmod 6755 /system/bin/su"
./adb shell "mkdir -p /system/xbin"
./adb shell "ln -s /system/bin/su /system/xbin/su"
./adb shell "mv /system/etc/install-recovery.sh /system/etc/install-recovery.disabled.sh"
./adb shell sync
sleep 2
./adb shell "umount /system"
sleep 1
./adb reboot
echo "Enjoy your newly-rooted phone. You can install ROM Manager from the Android Market to install custom ROMs."
fi
[Nexus S Themes and Apps] austineasleyinfo:
Anyone try the new one that was having the error pushing cwm? I'm at work till the morning and can't try it till then.
[Nexus S Themes and Apps] ptfdmedic:
Nice banner :)
[Nexus S Themes and Apps] shabbypenguin:
done check post 2 :D

o/ pftmedic :D fancy seeing you here
[Nexus S Themes and Apps] xjman:
Used it today, worked 99% the only thing I had to do was manually move the su zip over to the sd myself. Otherwise flawless.

Shabby you do good work man.
[Nexus S Themes and Apps] shabbypenguin:
yes got a new' new version that should eliminate that issue...
[Nexus S Themes and Apps] PhlaEVOr:
i wasnt able to get into CWM Recovery how do i get my phone to flash the recovery?
[Nexus S Themes and Apps] shabbypenguin:
what do you mean you couldnt get into recovery? the script puts you into fastboot to flash cwm for you
[Nexus S Themes and Apps] PhlaEVOr:
the CWM never flashed i tried it a few times, steps tell you to use volume up/down but i get that same exclamation android
[Nexus S Themes and Apps] shabbypenguin:
when did you download it?
[Nexus S Themes and Apps] JimiThing:
I'm trying to root my buddy's ns4g using this method. I'm at the point where the windows command prompt is saying "pushing files" but it seems to have stalled (been at least 20 minutes). Is this normal and if not what should I do?
[Nexus S Themes and Apps] shabbypenguin:
did you download it today?
[Nexus S Themes and Apps] JimiThing:
Yeah, downloaded a little while ago. Still stuck on the same thing "pushing files over"
[Nexus S Themes and Apps] shabbypenguin:
ok try downloading it again
[Nexus S Themes and Apps] JimiThing:
Thanks for all the help. I ended up pulling the usb, and flashing superuser via clockworkmod...worked like a charm! Full root.
[Nexus S Themes and Apps] EyeslikeOlives:
Wow, I love these OneClockRoot applications. I dislike having problems, though, I feel like a bother when I come by asking for help, but I hope you don't mind. A problem I ran into was after enabling USB Debugging after unlocking my SNS4G, the CMD shows 'adb.exe' is not recognized as an internal or external command, operable program, or batch file. So I'm not sure what it's supposed to go onto next, that way I can do it manually instead. Any ideas?
[Nexus S Themes and Apps] shabbypenguin:
it found fastboot but not adb? wtf

and no dont feel like i a bother i feel like an idiot for not getting this working sooner.
[Nexus S Themes and Apps] EyeslikeOlives:
LOL! Yeah, I have no idea.
[Nexus S Themes and Apps] shabbypenguin:
anyways the script runs thru and reboots you into recovery after debugging is enabled, pushed su.zip to the sdcard and then directs you on how to flash it
[Nexus S Themes and Apps] EyeslikeOlives:
So should I drop the su.zip file into my internal memory then boot into recovery? How do I flash it myself and what is the next step/s I must perform? Thanks for your quick responses, by the way. I appreciate it :)
[Nexus S Themes and Apps] dreamsforgotten:
If your first part worked fine then boot up connect to your pc put the su zip on your internal sdcard then turn off. Hold vol up and power then choose recovery. It won't be a pain blue recovery with only a few options, it'll have the clockwork logo in the middle. Choose install zip from sdcard-choose zip from sd-su.zip. This will install root. Use volume rockers to move up and down, power to select or soft keys menu-down home-up search-select.
[Nexus S Themes and Apps] eVoKINGS:
Hey dreams thinking bout leaving the darkside and coming over to nexus!
[Nexus S Themes and Apps] EyeslikeOlives:
Hopefully someone will see this before I pass out in 30min, but I got passed the unlocking and rebooting, asks to enable USB Debugging again, but when it boots into Recovery this time, it shows the Android with an exclamation mark above him. I guess I didn't get CWM flashed into it? If so, how can I do this manually?
[Nexus S Themes and Apps] htownrep247:
Say what? I am surprised, no evo 3d?
[Nexus S Themes and Apps] dreamsforgotten:
Can't wait!
[Nexus S Themes and Apps] raymond4:
Can someone tell me which one is more updated and can you please post it thank you
[Nexus S Themes and Apps] shabbypenguin:
http://www.holylivingfuck.com/Stuff/One-Click-Nexus-S-4G.zip
[Nexus S Themes and Apps] herbthehammer:
Hey shabbypenguin, I have a question for you. I don't know if you updated your batch file from the old version you had. I'm lazy and am tired from a long day. I saw someone I was gonna help in qa but didn't go through with it...because I'm too lazy to put it on a file storage site. Anyways, I was looking through your run.bat and saw something that didn't look like it should have been there when compared to the format of the rest of the stuff in the script.

I rooted mine in osx by just looking for what the commands were for win and mac and using that with adb and fastboot I already had from an epic one click zip.

The part of your script I was questioning was at the point where you were issuing the oem unlock command. At the end of the line there was a "echo." that was butt up next to the unlock command. I didn't know if that would cause an error or not. I was assuming that you intended for the echo. to be after a carriage return or at the line below the unlock command. I wasn't about to give this to some noob and tell them I have no idea if it will brick your phone or not, but here's the files you're looking for. I simply got the cursor just before the e on echo. and hit return. Then I saved the file. Could this be a problem for some? It's really no big deal for me, I'm just askin
[Nexus S Themes and Apps] shabbypenguin:
well hello there ;)

and no it wasnt meant to be but that was an old old version.. i keep uploading the same one to the same location as to try and minimize changing posts and links etc... once i have it working as i want then imma expand it. i want to make it run a script to backup data before doing it. dont wanna add it now, as you can see there has been a rocky road to get it where it is today.
[Nexus S Themes and Apps] herbthehammer:
Ok, downloading again. I don't know if or how many times you might have updated it. If this is different than the original one you made, why don't you start putting version numbers on the post and the zip. My question was a good example. By looking at the post or description or filename, I wouldn't have any idea that the one I have is old and the one you're linking to now is a revised version. Just offering hopefully helpful suggestions.
[Nexus S Themes and Apps] info[]box1:
worked like charm. im rooted and the superuser of my ns4g. thanks
[Nexus S Themes and Apps] shabbypenguin:
glad to hear it :D
[Nexus S Themes and Apps] ccr515:
I did your one click root and all it did was unlock the the bootloader. And the cwm doesn't wanna stick. What should I do??
[Nexus S Themes and Apps] info[]box1:
First it unlocks bootloader, then flash cwm recovery img, then pushed su.zip to sd root and then it prompts you flash from recovery.

Just a little insight on what I noticed last night using this program. Good luck
[Nexus S Themes and Apps] tlisak25:
ty for root

just wanted to say thank you for the easy root. First couple c

gave me problems but link on page 8 worked fast and easy. ive had the g1 and evo and have always rooted via terminal emulator so this was alil diffrent but thank u for all of your hard work.:)
[Nexus S Themes and Apps] eVoKINGS:
Thanks shabby dreams helped me root this ***** yesterday with no hiccups! Nice work!
[Nexus S Themes and Apps] scottsdalecards:
Does this one click root method erase everything on the phone?

I want to root my wifes Nexus S 4g Sprint for wifi tether but don't really want to have to redo her whole phone.
[Nexus S Themes and Apps] info[]box1:
Yes.

It'll reset everything on the phone including usb storage.
[Nexus S Themes and Apps] EGRENY1:
Worked as advertised.

It worked just as advertised. No if or buts, just follow the instructions on the screen, & it should do it for you. The only difference to the one click root to the epic is that yo have to do a couple of steps manually, unlike the epic's, which everything was done for you.
[Nexus S Themes and Apps] raymond4:
Thanks this worked flawlessly
[Nexus S Themes and Apps] pyropup55:
Stupid question, do I still need to install sdk or what ever it is to use this? I tried this earlier and it didn't work, only unlocked the boot loader.