[HOW TO] Unlock bootloader, Root, Flash Custom ROM, Flash Kernel - HTC One S

Post 1: How to unlock your bootloader, flash a recovery and root
Post 2: How to flash a custom ROM and kernel (boot.img)
Post 3: How to reverse everything and go back to stock
Post 4: How to ADB Sideload a ROM
Alright. This is for everyone who wants to root their phone. I've seen MULTIPLE threads of the same question "Can I root my phone and How do I do it". So I hope I never have to see it again! In this tutorial, I use use my toolkit as the way to root. Doing it manually takes forever and that is why I made my toolkit.
Requirements:
HTC One S (charged to at least 70%)
Windows XP,Vista,7 (8 is not officially supported since I don't have the drivers)
USB cable
Ability to read and follow step-by-step
Understanding that I am no way guaranteeing anything. If you screw up your phone, you probably didn't follow my steps and made a foolish mistake.
Let's begin.
Download my toolkit from here.
Link 1 and Link 2
Extract the FOLDER to your C: drive or to your desktop.
MAKE SURE YOUR DIRECTORY DOES NOT HAVE A PERIOD OR SPACE.
Open One S.exe
So now you have my program open. Great.
On your phone, go to Settings -> Developer Options and Enable USB Debugging.
From my toolkit, Click 1. Install HTC Drivers.
After the drivers install, restart your computer.
After your computer loads up, open my toolkit and connect your phone to the computer. Your phone should now be recognized.
Now, click 2. Register at HTCDev. Register with a VALID email address and LEAVE the web browser open.
Now, under the commands section of my toolkit, press Boot into Bootloader.
You should have a nice, white, shiny screen that says FASTBOOT USB.
Click 3. Get Token ID. Look at the pop up and it will tell you how to get the Token ID.
Highlight where it says < < < < Identifier Token Start > > > > all the way to < < < < < Identifier Token End > > > > > and right click and it will automatically copy it.
Now, click Submit Token ID. Your web browser should now open a new tab. Scroll down and in the empty box, paste your Token ID. Press submit. HTCDev now emailed you your unlock token.
Your phone should still be in the bootloader. Now, go to the email address you registered to HTCDev and DOWNLOAD your unlock_code.bin. Press 5. Unlock Bootloader. Locate your unlock_code.bin and it will flash it to your phone.
READ the warning. THIS WILL WIPE ALL YOUR DATA FROM THE PHONE.
When you agree to it, press the volume up button and press the power button to accept it. Your phone will now restart.
When your phone loads up, go through the set up wizard. Then, on your phone, go to Settings -> Developer Options and Enable USB Debugging.
Under the Extras section, press Perm Root. It will push SuperSU.zip to your phone.
Now, it is time to flash a recovery. The custom recovery is for 2 different devices
TWRP (Team Win Recovery Project) is a custom recovery that will allow you to flash custom ROMs, Mods, etc.
If your phone is the S3 model, then flash the one that says TWRP (S3)
If your phone is the S4 model, then flash the one that says TWRP (S4)
If your phone is the special edition 64Gb model, then flash the one that says TWRP (Special Edition)
After it flashes, remove the USB cable and have HBOOT selected in bootloader. Press the power button and it will reload to another screen. Press the Volume Down button until you get to Recovery. Press the power button to select it.
Go to Backup and back up your boot and system partition. Always have a back up before you flash or do anything.
After that, go to Install and locate SuperSU.zip. Click it and slide the screen on the bottom to flash it. After it flashes, reboot the phone.
In your app drawer (your menu with all the apps), open SuperSU. If it says the binary needs to be updated, then update it. If it doesn't, then you are fully rooted!

Post 2: How to flash a custom ROM and kernel (boot.img)
The fun part! Now, I will teach you how to flash a ROM and boot.img
Find a ROM you like, the first thing you should do is make sure it is COMPATIBLE with your phone. If you find a ROM that is for AT&T and you have the International model, don't be an idiot and flash it. I will not help you with that since you already agreed to my warning from the first post.
S3 ROMs don't work on S4 models and vice versa.
Also, DO NOT ASK IF YOU CAN FLASH A ROM FROM ANOTHER DEVICE!
Will it work? NO! Will it ever work? NO! Can I flash it anyways? Brick your device, I don't care. I warned you.
Let's get back on task. So you found the ROM you want to try, so go ahead and download it. KEEP THE THREAD OPEN! MAKE SURE YOU READ EVERYTHING AND REREAD IT AGAIN! READ WHAT USERS SAID ABOUT IT AND ABOUT BUGS! GO AHEAD AND READ THE WHOLE ENTIRE THREAD! GAIN KNOWLEDGE!!
Connect your USB cable to your phone. View the folders on your phone. I like to make a folder called ROMs on my phone and transfer it in there.
After you transfer it, open my toolkit and press Boot into Recovery. When you are in TWRP, MAKE A BACKUP!!!
After you make a backup AKA a Nandroid, click Wipe. Wipe Cache, Dalvik, Factory Reset and System. NOTHING ELSE! If you click anything else, IT WILL WIPE YOUR SD CARD AND YOU WILL HAVE MORE ISSUES ON YOUR HEAD!
So you wiped everything. Great. Your phone is ROMless, Yay!
Now go back and press install. Go to the folder where the ROM you downloaded, is located in. Select the ROM and slide the screen to flash it. After it flashes, press the back button. Press Reboot and Reboot into bootloader. Open the ROM you downloaded from your computer. You should see boot.img. Extract it to your computer. Open my toolkit and press Flash a Kernel. Locate the boot.img and it will flash it.
After it flashes, press reboot from the phone.
Congrats! Enjoy your fully working or borked ROM! Remember, DO NOT ASK FOR ETAs, DO NOT BUG/PM A DEV ABOUT UPDATES, and BE RESPECTFUL TO THE DEVELOPERS!

Post 3: How to reverse everything and go back to stock
Now, let's talk about getting back to stock. There are 2 ways to do this.
1. Flash the stock RUU (If available) (Recommended)
2. Restore your Nandroid (backup that I told you to make earlier)
1. I'll talk about flashing the stock RUU first.
Open up my toolkit and press "Factory RUU" from the links sections. I usually have the most updated RUUs that Football releases on my Dev-Host account. Download the correct RUU for your phone.
Now, back up all your data (pictures, contacts, etc) since this will put your phone back to complete stock.
Connect the USB cable to your phone.
Press Relock bootloader. It may give you a security warning error or it may say failed. Who cares, ignore it. It's normal.
Your phone will boot up normally.
When the phone is fully loaded. Unplug and replug the USB cable back in the phone. Now,run the RUU you downloaded and follow the instructions.
Your phone will be back to stock.
2. Now, we will talk about restoring your nandroid backup.
Connect your phone to the computer. Open up the folder to view the files on your phone.
From your computer, Go to TWRP -> BACKUPS -> (Your hardware Serial Number) -> (Folder you wish to restore to) -> and copy boot.emmc.win to your computer. Rename boot..emmc.win to boot.img
Open my toolkit and press boot into recovery.
Click Wipe. Wipe Cache, Dalvik, Factory Reset and System. NOTHING ELSE! If you click anything else, IT WILL WIPE YOUR SD CARD AND YOU WILL HAVE MORE ISSUES ON YOUR HEAD!
Press back and press Restore. Choose the backup to restore to.
After it finishes, press the back button. Press Reboot and select bootloader.
Open my toolkit and press Flash a Kernel. Locate the boot.img and it will flash it.
You are now back to your stock Nandroid.

4. How to use ADB Sideload
You may have seen what ADB Sideload around the forums but have no idea what it is. Since the HTC One S does not have an SD card, it makes things harder when you have to flash a ROM.
Here's a scenario when we need to use ADB Sideload.
1. You accidentally wiped your internal SD and have no ROM on your phone
2. You wiped your ROM and forgot to transfer a custom ROM/have no backups(Nandroid) available.
3, You have none of the above and there is no available RUU for your phone. <----- This is a real bummer.
Here are the steps to load on a ROM
I placed TWRP in my toolkit for a reason. CWM does not support ADB Sideload (as far as I know) and TWRP does.
Boot into recovery manually. Turn your device off and hold the VOLUME DOWN + POWER button together until the BOOTLOADER pops up. Press the VOLUME DOWN button until you have selected RECOVERY. Press the POWER button to get into RECOVERY.
Connect the USB Cable to your phone and computer.
In TWRP, click "Advanced" and select ADB Sideload.
Download a ROM to your computer (if you haven't already done so). Rename it as one word. For example CM10.zip, QX.zip, ARHD.zip, etc.
In my toolkit, under the extras section, press ADB Sideload a ROM. Press "Yes" when it asks you if you are in recovery. Then select the ROM you want to install. It will then sideload it to your phone and flash it.
After it finishes, press the back button. Press Reboot and select bootloader.
Pull the boot.img from the zip file and extract it.
Open my toolkit and press Flash a Kernel. Locate the boot.img and it will flash it.
You now have a ROM on your phone!

Nice guide for new users
Sent from my HTC One S using xda premium

This should replace all the other guides.

hasoon2000 said:
Post 3: How to reverse everything and go back to stock
Click to expand...
Click to collapse
So when you reverse everything you loose your root access? I ask because let's say I want to root, but wish to stay stock, and than an OTA comes out for T Mobile. I would reverse everything do an OTA ?

carpetmaven2000 said:
So when you reverse everything you loose your root access? I ask because let's say I want to root, but wish to stay stock, and than an OTA comes out for T Mobile. I would reverse everything do an OTA ?
Click to expand...
Click to collapse
You need to flash back the stock recovery to run the OTA but you may have to root it again.

hasoon2000 said:
Post 3: How to reverse everything and go back to stock
Now, let's talk about getting back to stock. There are 2 ways to do this.
1. Flash the stock RUU (If available) (Recommended)
2. Restore your Nandroid (backup that I told you to make earlier)
1. I'll talk about flashing the stock RUU first.
Open up my toolkit and press "Factory RUU" from the links sections. I usually have the most updated RUUs that Football releases on my Dev-Host account. Download the correct RUU for your phone.
Now, back up all your data (pictures, contacts, etc) since this will put your phone back to complete stock.
Connect the USB cable to your phone.
Press Relock bootloader. It may give you a security warning error or it may say failed. Who cares, ignore it. It's normal.
Your phone will boot up normally.
When the phone is fully loaded. Unplug and replug the USB cable back in the phone. Now,run the RUU you downloaded and follow the instructions.
Your phone will be back to stock.
2. Now, we will talk about restoring your nandroid backup.
Connect your phone to the computer. Open up the folder to view the files on your phone.
From your computer, Go to TWRP -> BACKUPS -> (Your hardware Serial Number) -> (Folder you wish to restore to) -> and copy boot.emmc.win to your computer. Rename boot..emmc.win to boot.img
Open my toolkit and press boot into recovery.
Click Wipe. Wipe Cache, Dalvik, Factory Reset and System. NOTHING ELSE! If you click anything else, IT WILL WIPE YOUR SD CARD AND YOU WILL HAVE MORE ISSUES ON YOUR HEAD!
Press back and press Restore. Choose the backup to restore to.
After it finishes, press the back button. Press Reboot and select bootloader.
Open my toolkit and press Flash a Kernel. Locate the boot.img and it will flash it.
You are now back to your stock Nandroid.
Click to expand...
Click to collapse
I am restoring from my Nandroid... when I get to the end and press reboot select bootloader.... when it reboots it does not go to bootloader, just the white HTC screen, and now I cannot flash the Kernel... what do I need to do to fix this?

carpetmaven2000 said:
I am restoring from my Nandroid... when I get to the end and press reboot select bootloader.... when it reboots it does not go to bootloader, just the white HTC screen, and now I cannot flash the Kernel... what do I need to do to fix this?
Click to expand...
Click to collapse
Hold Vol- as you turn it on should get you into bootloader.

Darknites said:
Hold Vol- as you turn it on should get you into bootloader.
Click to expand...
Click to collapse
Problem solved. A combination of working a 24hr straight shift and messing with my phone just didn't work right.... But got it up and running!

hasoon2000 said:
Click 3. Get Token ID. Look at the pop up and it will tell you how to get the Token ID.
Highlight where it says < < < < Identifier Token Start > > > > all the way to < < < < < Identifier Token End > > > > > and right click and it will automatically copy it.
[END QUOTE]
Hopefully this post goes correctly, it's my first post on here. I have the T-Mobile HTC One S. Whenever I get to this step it says there is no internal or external command for 'fastboot', and in another post, you had stated that it should be 1 word for the command prompt, which all of mine are, and it continues to do the same thing, and unfortunately, the all in one kit wont take me to the bootloader. It tries to do it, but then I get the phone with the red triangle with the exclamation point on it. I have to manually get it to bootloader, the command in the tool in one kit wont do it either. Please Advise. Thank you.
Click to expand...
Click to collapse

Cannot update binaries for SuperSU
Hi thanks so much for the guide. Followed all your steps and went hassle free. When launching SuperSU, its saying installation failed for updating binaries. Any ideas?

Thnks, helped a lot in flashing my first htc rom

If i accidentaly deleted my TWRP backup and i dont have RUU. What should i do to get back my stock rom

Can i root my one s without unlocking bootloader? Just bought one... Thx
Sent from my HTC One S using xda app-developers app

lolipop91 said:
If i accidentaly deleted my TWRP backup and i dont have RUU. What should i do to get back my stock rom
Click to expand...
Click to collapse
Flash an RUU.
OzGurKan said:
Can i root my one s without unlocking bootloader? Just bought one... Thx
Sent from my HTC One S using xda app-developers app
Click to expand...
Click to collapse
No.
Sent From My HTC Amaze 4G via Someone's Room

I'm having trouble, it will not let me boot to bootloader. i did download the drivers.

Help?
newbie here... I'm running windows vista, dled your prog and followed all the necessary steps. I selected the debugging option, and when I try to "boot into bootloader" it opens a cmd.exe window.

AW: [HOW TO] Unlock bootloader, Root, Flash Custom ROM, Flash Kernel
Nice Instructions, perfekt.
Greetz from xxxvale46xxx

Related

Rooting woes :-(

Hi all,
I have recently got hold of a Desire S and updated it a couple of months ago with the standard ota update from O2 (Or branded phone)...since then I have been getting signal errors which I have read about elsewhere.
Anyway thought I would root my phone...I S-off using revolutionary, it did not appear to work the first time, it appeared to s-off the phone but I did not get prompted for the CWM download, second attempt, it informed i was s-off and to download the CWM, I clicked yes and it tried to download but nothing happens.
So as far as I can tell I am s-off but no root. I have tried gingerbreak and superoneclick both of which stall during the process and do not root my phone.
I am very new to this and not sure where to go from here to get my phone rooted.
My Hboot was 98.002 now it shows:
-Revolutionary-
Saga PVT Ship S-off RL
Hboot-6 .98.1002
If I go into recovery I just get a red triangle with an ! and have to reboot the phone.
So I am at a point where I do not know what to do to get it rooted....or can I just get a pre rooted rom and flash that over the top?
Thanks
I'd suggest that to start you change these setting on your phone
Settings->Power->Fastboot = OFF
Settings->Applications->Development->USB debugging = ON
There are various links in my signature, they should all help. Download the adb&fastboot link and extract the files to your c:\temp\ directory on your PC. Then install the HTC drivers then continue and follow the instructions below:
You first need to download CWM recovery image file for this device to your PC into again the C:\temp directory.
Put the phone in Fastboot USB mode (by following instructions below
Unplug USB
Turn the device off
Hold volume down button (HOLD IT) and press power
Hboot will start.
Wait for sdcard scan to complete.
Plug in USB cord connected to the computer
Press power ONCE and Fastboot USB mode starts
Then run a CMD shell from the PC and then issue the commands into it from the directory where you have put the downloaded img file (c:\temp\)
fastboot flash recovery cwm-4.0.1.4-saga.img
adb reboot recovery
To root you phone then
Download and then copy su-3.0-efgh-signed.zip to your sdcard root
Start clockworkmod recovery
Unplug USB
Turn the device off
Hold volume down button (HOLD IT) and press power
Hboot will start.
Navigate to recovery with the vol down button.
Press power to select and enter recovery.
Select "install zip from sdcard"
Then select "Choose zip from sdcard"
Then select "su-3.0-efgh-signed.zip"
Then select "Yes - install su-3.0-efgh-signed.zip" to confirm
Then go back
Then reboot.
Try to download the pg88img file of cwm our 4ext you find them in the index thread.
Put the pg88img in root of your sd, reboot to bootloader and flash the file. After this the easiest way to gain root would be to flash an prerooted ROM.
Don't forget to make a backup of you're current ROM if anything fails
Swyped from my Desire S
I feel your pain. I am replying to you to make sure you did all the steps required. Furthermore, in using "Superoneclick", which worked for me on my Samsung Fascinate, if I missed a step it didn't work. I.E - I didn 't re-boot!
@ben_pyett you sir are a lengend!!!
what you posted worked...the only slight thing I had to do different was install the htcdrivers first, as it would recognise my phone, then I could do the adb reboot recovery.
It said it failed but I continued to flash su-3.0-efgh-signed.zip and happy days, now to load up a rom!!
many thanks and also to those who replied
roidroid said:
@ben_pyett you sir are a lengend!!!
what you posted worked...the only slight thing I had to do different was install the htcdrivers first, as it would recognise my phone, then I could do the adb reboot recovery.
It said it failed but I continued to flash su-3.0-efgh-signed.zip and happy days, now to load up a rom!!
many thanks and also to those who replied
Click to expand...
Click to collapse
Glad to have been able to help.
Now take a backup using CWM so that you have a safe fall back position - just in case!
I'd then suggest updating the recovery to 4EXT which I personally find easier to use.
You'll then find all the ROMS linked within the INDEX thread
Enjoy!
just running a backup now....just waiting for it to finish then to hunt for a rom.
Will probably use rom manger and voidru, seems a popular choice and a good place to start.
Then pay the £1.56 for 4ext
Thanks again
roidroid said:
just running a backup now....just waiting for it to finish then to hunt for a rom.
Will probably use rom manger and voidru, seems a popular choice and a good place to start.
Then pay the £1.56 for 4ext
Thanks again
Click to expand...
Click to collapse
good call....can't go wrong with any of that!
roidroid said:
just running a backup now....just waiting for it to finish then to hunt for a rom.
Will probably use rom manger and voidru, seems a popular choice and a good place to start.
Then pay the £1.56 for 4ext
Thanks again
Click to expand...
Click to collapse
4EXT Recovery updater is free of charge
amidabuddha said:
4EXT Recovery updater is free of charge
Click to expand...
Click to collapse
But I personally think that the small amount of money isn't much and motivates the developer to continually develop and improve this quality product
Swyped from my Desire S using XDA Premium
ben_pyett said:
But I personally think that the small amount of money isn't much and motivates the developer to continually develop and improve this quality product
Swyped from my Desire S using XDA Premium
Click to expand...
Click to collapse
Completely agree with you. Just wanted to point that it is not necessary to pay (thanks to madmaxx82)
Yeah, I just rooted my galaxy tab, installed lagfix etc (feels like a new piece of hardware now, it so fast!)
I first coudnt do it, because i didn't have the Samsung drivers installed (just like the HTC drivers here)
I never actually rooted my desire s manually!.
I just s-offed, then installed custom roms straight away which already come pre-rooted.
ben_pyett said:
I'd suggest that to start you change these setting on your phone
Settings->Power->Fastboot = OFF
Settings->Applications->Development->USB debugging = ON
There are various links in my signature, they should all help. Download the adb&fastboot link and extract the files to your c:\temp\ directory on your PC. Then install the HTC drivers then continue and follow the instructions below:
You first need to download CWM recovery image file for this device to your PC into again the C:\temp directory.
Put the phone in Fastboot USB mode (by following instructions below
Unplug USB
Turn the device off
Hold volume down button (HOLD IT) and press power
Hboot will start.
Wait for sdcard scan to complete.
Plug in USB cord connected to the computer
Press power ONCE and Fastboot USB mode starts
Then run a CMD shell from the PC and then issue the commands into it from the directory where you have put the downloaded img file (c:\temp\)
fastboot flash recovery cwm-4.0.1.4-saga.img
adb reboot recovery
To root you phone then
Download and then copy su-3.0-efgh-signed.zip to your sdcard root
Start clockworkmod recovery
Unplug USB
Turn the device off
Hold volume down button (HOLD IT) and press power
Hboot will start.
Navigate to recovery with the vol down button.
Press power to select and enter recovery.
Select "install zip from sdcard"
Then select "Choose zip from sdcard"
Then select "su-3.0-efgh-signed.zip"
Then select "Yes - install su-3.0-efgh-signed.zip" to confirm
Then go back
Then reboot.
Click to expand...
Click to collapse
Hi, I have the exact same problem, I would very much appretiate, a little more info with regards to the adb command prompts, I have "android-tools" folder in my "c:\temp" but I don't have a clue what command to use to install "clockworkmod", please could you tell me, I've been at this for weeks and my brain is fried... thank you.
It's all there above in post 2
Need info on your device, please write what your boot loader screen looks like
Swyped from my Desire S using XDA Premium

[Q] Can't access root and Google apps

I recently rooted my phone (T-Mobile US Nexus S) and installed the 4.0.3 OTA update from this thread, but now I cannot access any Google apps or get root access on any of the apps that require it.
SounderBruce said:
I recently rooted my phone (T-Mobile US Nexus S) and installed the 4.0.3 OTA update from this thread, but now I cannot access any Google apps or get root access on any of the apps that require it.
Click to expand...
Click to collapse
Ok! first download : http://www.4shared.com/zip/XG506hyV/icsroot-fastboot-recovey.html
just unpack, connect your device and click run.bat.....Good luck!
I ran the .bat, but I get an error saying "Device already rooted", but it is still not recognized as rooted by SuperUser.
Alternatively, is it possible to completely wipe the phone of everything (including root) so I can start over with a fresh phone?
Of course you can, and might be the best idea if you don't mind doing it.
Make sure you have the latest CWM recovery on your phone, download the FULL ROM from this thread (i'm not american so i don't know exactly, but from what i know yours is the I9020T, so get that ROM) and copy it to the SDCard. Now go into recovery, wipe system/data and dalvik cache, then flash the ROM.
Do make sure you have the right ROM though. This will get you 100% fresh and untouched 4.0.3. You can probably clear out any non-personal folders on the sdcard too, but that shouldn't do any harm anyway.
After this, use the attached file from this thread to root, and feel free to update root/superuser.
Actually, that's what I did...I can't use CWM recovery because its displaying an error of no root. So how do I wipe this or fix CWM?
Is your boot loader unlocked? And are you trying to flash cwm through fastboot?
Note to backup your sdcard if unlocking the bootloader.
Harbb said:
Is your boot loader unlocked? And are you trying to flash cwm through fastboot?
Note to backup your sdcard if unlocking the bootloader.
Click to expand...
Click to collapse
My bootloader is apparently unlocked and I'm trying to flash through fastboot.
Are you sure the following is satisfied:
-open padlock and google logo on boot
-fastboot (on phone) says "bootloader status: unlocked" or something of the like
-you are using: "fastboot flash recovery "C:\path\to\recovery.img""
-you are using the above command while connected to the PC via USB (with working drivers) and that you are in fastboot mode on the phone (turn off phone --> hold Vol. Up then hold Power TOGETHER for about 2 seconds, should give you reboot and recovery options)
It is necessary to be in the bootloader/fastboot interface on the phone when you run the command. Hopefully it was something simple that i said above, otherwise i'm completely lost.
1. Yes
2. Yes
3. I didn't use that method to root...
4. I'll try that.
3 is just flashing recovery, that is the code u type into cmd/terminal to reflash the recovery img. It isn't rooting the phone. 4 is how to get into the mode on the phone to use the command.
Its a bit confusing at first but makes much more sense once you do it one or two times.
Where do I go to get the recovery image?
The latest ClockWorkMod Recovery can be found on this page. Just scroll down to Nexus S and download 5.0.2.0 crespo .img. Then just direct fastboot to the folder you have it saved in while using the "fastboot flash recovery C:\path\to\recovery.img" command.
Ok. I've tried this, but in command prompt, I get the following error:
C:\Users\Bruce>fastboot flash recovery C:\Users\Bruce\Downloads\recovery.img
'fastboot' is not recognized as an internal or external command,
operable program or batch file.
Check out this rooting guide, however only go up to step 5 (and do NOT type "fastboot oem unlock", do everything up until that point). This will setup fastboot for you, and setup drivers for your computer. Once this is done, do what you did above and it should work successfully.
Remember to cd (change directory) in cmd to where you unzipped that folder.
There isn't a link...
Sorry, stuffed that up. I fixed the link in my previous post pointing to NexusSHacks - How to Root Nexus S.
It's worked, but when I try to go to the recovery menu, the Google/unlocked padlock screen freezes or it displays an Android with its chest compartment open and a red triangular ! symbol.
I just had a really long reply and managed to lose it by closing the page..
That's the stock bootloader you see there, it probably didnt flash or you rebooted your phone. And make sure that you are flashing the latest CWM you downloaded before.
I flashed the latest CWM, but when I try to go to recovery, my phone freezes at the Google logo with the unlocked padlock.
Have you tried flashing it again, or maybe redownloading the file? And of course making sure it is the NEXUS S version which you are downloading.
Alternatively, try just "fastboot boot recovery.img", replacing recovery.img with the full name and path of cwm.
edit: btw, i'll be gone for an hour or two Bruce so i can answer any more questions/issues when i get back

Problems restoring Nexus S to stock rom PLEASE HELP!

Hello everyone,
I have a major problem here and am very concerned that my phone my be bricked!!!
The problem:
I rooted my Nexus S and installed Miui onto it, used it for a while and have decided that I would like to revert the phone back to stock. Especially seeing the new Android version which has been released.
I read many articles online regarding reverting back to stock and followed the instructions which I have added to the bottom of this post.
Everything went to plan and the phone rebooted, then loaded the stock rom. However, only one of the four buttons work (illuminate) on the handset and the touchscreen does not work properly. (typing on the screen is offset by about 4mm down from where I touch) Appears the rom may be incorrect. Added to this, when the phone goes into standby, it will not turn back on.
I am now stuck with a phone with no recovery mod like clockwork and run into errors when I attempt to put another rom onto it.
Does anyone have any ideas as to how I can restore this back to it's original state?
Instructions which I followed:
useful if sending in for warranty repair
I have a copy of the Nandroid backup of the stock Nexus S Rom, this includes OTA update GRH78. This is 100% stock.
At this point, I’m going to assume you have ether Clockwork recovery or other custom recovery installed.
● Download nandroid file from here – Stock-GRH78-Nandroid.zip
● Extract the .zip file on your computer
● Move the folder “2010-12-22.21.06.07″ to the clockworkmod/backup/ directory of your phones internal storage.
● Note: if you have never used nandroid you won’t have the directory “clockworkmod/backup” on your phones internal storage, so just copy the clockworkmod from the zip to the phone’s root.
● Enter “bootloader” mode by pressing volume up and power button at same time, then go down to “recovery” by using the volume up/volume down keys to scroll up or down, then press the power button to launch it, and this will launch the recovery manager
● Once you’re in clockworkmod recovery, select “backup and restore”
● Then click “restore”
● Now you should be able to choose and select “2010-12-22.21.06.07″
● Clockwork will now restore this nandroid backup
● Shutdown phone.
Note: This version of android build “GRH78″ will give you stock recovery manager everytime you reboot the phone. So after doing this, after you reboot you will no longer have clockwork mod.
Now to remove the padlock you see when turning your phone on.
● Plug your phone into your computer using the phone cable.
● Enter bootloader again.
● Once the Nexus S is in bootloader open a CMD.
● Type in the following command:
>fastboot devices
The output should look something like this: 3933E575BC1400EC fastboot
If the output does not look like this, then your phone isn’t being detected. Check connection to your computer.
● In the CMD type in the following command:
>fastboot oem lock
● Now reboot the phone, note the padlock has gone!
I would re-unlock the bootloader and flash a rooted stock rom. Sounds like an incompatible rom was flashed to your phone.
Snt frm my Nxs S 4G sng xd prm
I have tried to do this using adb oem unlock and it just states that it is waiting for devices. However, adb devices shows the phones serial. I have also installed all drivers, sdk and the PDA driver.
Any ideas?
jimbob80 said:
I have tried to do this using adb oem unlock and it just states that it is waiting for devices. However, adb devices shows the phones serial. I have also installed all drivers, sdk and the PDA driver.
Any ideas?
Click to expand...
Click to collapse
The command is fastboot oem unlock, but if you can still boot into recovery it's not really necessary to unlock the bootloader.
If you can boot into recovery then download the full OTA package for your phone model from the link in my signature and flash it.
PS. Restoring other people's nandroid backup onto your phone is a no-no.
Apologies for the type fastboot oem unlock was what I was typing. I am not working on the phone at the moment and was relying on a bad memory!
I cannot access clockwork recovery, I can access the bootloader and select recovery however I receive the image of the robot and exclamation mark. I then press power and volume up to access the standard recovery.
If the above recovery is what you are referring to, then I will attempt this with one of the roms you have listed.
suksit:
You are an absolute legend and everyone on earth should bow to thee!!! That worked and now I have 4.0 running.
Thanks heaps and all the best for 2012.
jimbob80 said:
suksit:
You are an absolute legend and everyone on earth should bow to thee!!! That worked and now I have 4.0 running.
Thanks heaps and all the best for 2012.
Click to expand...
Click to collapse
You're welcome. And also thanks to @oldblue910 for creating that full OTA thread. I referred to it so many times that I have to put it in my sig

[Q] *HELP* Sensation stuck in boot loop

im trying to install this ROM on my Sensation: http://forum.xda-developers.com/showthread.php?t=1098849 (ARHD) - the ICS version.
So im following the instructions it points to here:http://forum.xda-developers.com/showthread.php?t=1192300
So my phone was running stock gingerbread. So i follow the instructions.
I successfully S-off the phone.
Then i did the PG58IMG.zip thing --- successfully updates --- but now the phone is in boot loop?? it says there it should reboot to home screen? I can still get to the bootloader menu but recovery or any of those options dont work?
I have tried googling but all those threads get so technical. I AM A COMPLETE UTTER AND DISGUSTING NOOB.
Please can someone give me a step by step easy to understand directions to fix my phone? please please?
To be honest the same thing happened to me when i first flashed an ICS rom.
What i did was that i connected the memory card to my PC using an adapter and deleted the PG851MG file.
Then i moved on to flashing my ICS rom (Virtuous inquisiton) and it worked out quite good.
But traditionally it should boot back after flashing the firmware.It has never happened to me again.
Thats my experience. I dont thnk tat nething should go wrong, but still the phones at your own risk. Do go thru other posts in the forum b4 u do nething.
debarox said:
To be honest the same thing happened to me when i first flashed an ICS rom.
What i did was that i connected the memory card to my PC using an adapter and deleted the PG851MG file.
Then i moved on to flashing my ICS rom (Virtuous inquisiton) and it worked out quite good.
But traditionally it should boot back after flashing the firmware.It has never happened to me again.
Thats my experience. I dont thnk tat nething should go wrong, but still the phones at your own risk. Do go thru other posts in the forum b4 u do nething.
Click to expand...
Click to collapse
I deleted the file after and it still boot loops.
How do i flash my ICS ROM? the guide says to put the ROM and the "superwipe" zip into the root of the SD card and boot load then select "install from ZIP on SD"...but nothing comes up???
Ohk here are the steps u need to follow.
1-Turn Off ur phone
2-Boot into boot loader (by holding volume down + power button)
3-Select Recovery
4-select instal zip from sd card
5-Select SuperWipe.zip
For flashing the rom follow the above steps again and just select the rom u want to flash at the end
debarox said:
Ohk here are the steps u need to follow.
1-Turn Off ur phone
2-Boot into boot loader (by holding volume down + power button)
3-Select Recovery
4-select instal zip from sd card
5-Select SuperWipe.zip
For flashing the rom follow the above steps again and just select the rom u want to flash at the end
Click to expand...
Click to collapse
When i select Recovery the HTC logo comes up then a logo of my phone with arrows and then my phone with a red triangle and a exclamation mark....thats it...nothing else happens?
HELP!
I think you dnt have CWM or 4ext on ur phone.
Did you install it first or not?
Even if you did. try Flashing the CWM again
debarox said:
I think you dnt have CWM or 4ext on ur phone.
Did you install it first or not?
Even if you did. try Flashing the CWM again
Click to expand...
Click to collapse
whats CWM???? What must i do?
and i cant install 4ext as i cant download it cause phone is in boot loop
CWM means clockwork recovery mod.
download the attachment. place it in your sd card.
Bootloader will automatically detect the file and update it.
I believe you have ur phone S-OFF b4 u are attempting this
debarox said:
CWM means clockwork recovery mod.
download the attachment. place it in your sd card.
Bootloader will automatically detect the file and update it.
I believe you have ur phone S-OFF b4 u are attempting this
Click to expand...
Click to collapse
its saying battery level too low now...im going to leave it off and charge it then try again.
make sure you
Have correct firmware for ics. Its 3.32. If your comming from GB, you need to flash the firmware because ics uses different firmware than GB. Hope this helps!
Sent from my HTC Sensation Z710e using xda premium
Stop everything. I'll give you a simple solution.
Follow this step by step.
WRITE SUPER CID [YOU ONLY NEED TO DO THIS ONCE]-
1. Download adb tools here: download for WINDOWS or download for LINUX or from the attachments below
2. On your pc click on your local disk C: Drive (or D: drive for some) (WINDOWS users: Start > My computer > Local Disk (C)
3. Create a new folder called "adb" and extract the files from adb.zip into it. Make sure it doesn't create another folder in the adb folder when extracting
Manually put the phone in the bootloader/hboot mode
Navigate to fastboot by pressing volume down and pressing power button to select (power off > vol down + power on)
It will take you to the fastboot bootloader screen on your phone
Connect your phone via USB
Your Screen should now read fastboot USB
1. enter the command "fastboot oem writecid 11111111"
2. enter the command "fastboot reboot-bootloader (Wait for it to reboot the bootloader)
3. enter the command "fastboot getvar cid" [it should confirm your CID is 11111111]
4. enter the command "fastboot reboot"
5. You can now flash any ROM you like.
Quoted from here.
Click to expand...
Click to collapse
Updating the firmware
This step is MANDATORY otherwise you ROM will not boot. Please take a look at the firmware thread so you can understand what you are about to do.
After updating the firmware you will have the 3.32 firmware with unlocked bootloader. Which basically means that you can use advanced fastboot commands, such as: flash new radios and splashscreens
Download any firmware from here.
Copy the PG58IMG.zip file you've downloaded to the root of the sdcard. Root of the sd card mean that you can't put the file inside any folder. Also, you can't rename the file. Please keep the PG58IMG otherwise the bootloader won't recognize it.
Power off your phone or remove the batt and put it back again.
Hold volume-down + power button to boot into the bootloader
Wait for the firmware package to be found and confirm to update as prompted
Once it completed successfully and prompted you to reboot, pull the battery out.
Connect your SD card to the PC and remove the PG58IMG.zip file.
Quoted from here
.
Click to expand...
Click to collapse
Download the zips for SuperWipe & your ROM and put them on your memory card.
Hold volume-down + tap the power button once to boot into the bootloader.
Press vol down to highlight Recovery and press the power button to select it.
Next, select Install zip from SDcard and touch to navigate to the location of the Super Wipe zip and select it.
Once it is done, you will be rebooted to Recovery. Again choose Install from SD card and this time navigate to the ROM and select it.
After the install is finished, go back to main recovery menu and select reboot.
That's it, you're good to go.
This will work, I'm a 100% positive on that.

If your Having Problems Updating Look Here

Sorry Mods if this is the wrong section was just 2 many threads with people having problems was easier then tryign to reply to them all.
Directions
After doing this Your Phone This Will BeFactory Reset
1) Download The backup i made here Sorry this has a Custom Boot animation rest is stock.
Extract it to a folder on your SDcard dont just copy it there.
Im going to Assume everyone at this point has ADB and Fastboot installed if not follow the instructions here then come back
2) Download TWRP recovery to your PC
Download Stock Recovery for later use.
Powerdown Phone
Press and hold (Power button + Camera Button) at the menu use volume down until you get to AP Fastboot Press Volume up to select it
Hook Phone to pc via usb cable
Open a command prompt from within your SDK/Platform-tools folder
install trwp
Code:
fastboot flash recovery TWRP_Recovery_Filename_you_downloaded.img
Unhook Phone from PC when Finished Flashing should only take 1 minute or less.
Hit power - device turns off. Hold vol up + power, then release power. When you see it turn on, release vol up. You should now be in TWRP!
Now first thing Press Backup and make a backup of your current setup to SDcard.
3) Now somehow move the Backup you downloaded and Extracted in step one to your TWRP backup folder on your SDcard
will be something like
Make a new folder for BACKUP_NAME dont overwrite the backup you made
Code:
TWRP/BACKUPS/SERIALNUM/RESTORE_MY_PHONE/files_here
4) Power off Phone
Reboot into Recovery (Power Button + Volume Up) Choose Restore button this time choose Restore and Choose the Recovery the you downloaded.
When done flashing your back up Choose reboot from the option choose Bootloader.
Hook Phone to pc via usb cable
Open a command prompt from within your SDK/Platform-tools folder
install Stock recovery
Code:
fastboot flash recovery Stock recovery.img
Unhook Phone from USB after Flashing and press Power Button and phone will reboot.
If all went as planned you will boot up to a factory reset phone thats ready to download and install the OTA with no problems
and sorry the backup has a Custom boot animation i forgot to remove
-Bryan
Worked as expected. Thank you.
This would be good for recovering from a soft brick as well, maybe this could be our first official sticky?
-Saint
Thank you so much for your help!
Rangerbry said:
Sorry Mods if this is the wrong section was just 2 many threads with people having problems was easier then tryign to reply to them all.
Directions
After doing this Your Phone This Will BeFactory Reset
1) Download The backup i made here Sorry this has a Custom Boot animation rest is stock.
Extract it to a folder on your SDcard dont just copy it there.
Im going to Assume everyone at this point has ADB and Fastboot installed if not follow the instructions here then come back
2) Download TWRP recovery to your PC
Download Stock Recovery for later use.
Powerdown Phone
Press and hold (Power button + Camera Button) at the menu use volume down until you get to AP Fastboot Press Volume up to select it
Hook Phone to pc via usb cable
Open a command prompt from within your SDK/Platform-tools folder
install trwp
Code:
fastboot flash recovery TWRP_Recovery_Filename_you_downloaded.img
Unhook Phone from PC when Finished Flashing should only take 1 minute or less.
Hit power - device turns off. Hold vol up + power, then release power. When you see it turn on, release vol up. You should now be in TWRP!
Now first thing Press Backup and make a backup of your current setup to SDcard.
3) Now somehow move the Backup you downloaded and Extracted in step one to your TWRP backup folder on your SDcard
will be something like
Make a new folder for BACKUP_NAME dont overwrite the backup you made
Code:
TWRP/BACKUPS/SERIALNUM/RESTORE_MY_PHONE/files_here
4) Power off Phone
Reboot into Recovery (Power Button + Volume Up) Choose Restore button this time choose Restore and Choose the Recovery the you downloaded.
When done flashing your back up Choose reboot from the option choose Bootloader.
Hook Phone to pc via usb cable
Open a command prompt from within your SDK/Platform-tools folder
install Stock recovery
Code:
fastboot flash recovery Stock recovery.img
Unhook Phone from USB after Flashing and press Power Button and phone will reboot.
If all went as planned you will boot up to a factory reset phone thats ready to download and install the OTA with no problems
and sorry the backup has a Custom boot animation i forgot to remove
-Bryan
Click to expand...
Click to collapse
THANK YOU SO MUCH FOR YOUR HELP!
c2gemineyes
No Dice
Rangerbry said:
Sorry Mods if this is the wrong section was just 2 many threads with people having problems was easier then tryign to reply to them all.
Directions
After doing this Your Phone This Will BeFactory Reset
1) Download The backup i made here Sorry this has a Custom Boot animation rest is stock.
Extract it to a folder on your SDcard dont just copy it there.
Im going to Assume everyone at this point has ADB and Fastboot installed if not follow the instructions here then come back
2) Download TWRP recovery to your PC
Download Stock Recovery for later use.
Powerdown Phone
Press and hold (Power button + Camera Button) at the menu use volume down until you get to AP Fastboot Press Volume up to select it
Hook Phone to pc via usb cable
Open a command prompt from within your SDK/Platform-tools folder
install trwp
Code:
fastboot flash recovery TWRP_Recovery_Filename_you_downloaded.img
Unhook Phone from PC when Finished Flashing should only take 1 minute or less.
Hit power - device turns off. Hold vol up + power, then release power. When you see it turn on, release vol up. You should now be in TWRP!
Now first thing Press Backup and make a backup of your current setup to SDcard.
3) Now somehow move the Backup you downloaded and Extracted in step one to your TWRP backup folder on your SDcard
will be something like
Make a new folder for BACKUP_NAME dont overwrite the backup you made
Code:
TWRP/BACKUPS/SERIALNUM/RESTORE_MY_PHONE/files_here
4) Power off Phone
Reboot into Recovery (Power Button + Volume Up) Choose Restore button this time choose Restore and Choose the Recovery the you downloaded.
When done flashing your back up Choose reboot from the option choose Bootloader.
Hook Phone to pc via usb cable
Open a command prompt from within your SDK/Platform-tools folder
install Stock recovery
Code:
fastboot flash recovery Stock recovery.img
Unhook Phone from USB after Flashing and press Power Button and phone will reboot.
If all went as planned you will boot up to a factory reset phone thats ready to download and install the OTA with no problems
and sorry the backup has a Custom boot animation i forgot to remove
-Bryan
Click to expand...
Click to collapse
I got this to restore my phone to stock no problem. I followed this post to a T twice and upon updating my phone goes ape$hit every time.
So frustrated with Motorola right now.
patrickm823 said:
I got this to restore my phone to stock no problem. I followed this post to a T twice and upon updating my phone goes ape$hit every time.
So frustrated with Motorola right now.
Click to expand...
Click to collapse
So... Don't update? I'm still on the original firmware, I don't see any benefit to updating.
Are you taking the update with any toggle mods, root (I.e. Superuser.apk installed), deodexed framework, battery 1% mods, power menu mod, custom boot logo, animation, etc? I never had problems taking the update with stock rom/recovery, unrooted, with no mods installed. I used this guide to restore stock when I was softbricked and bootlooping and the update worked after restoring stock recovery.
Sent from my XT897 using xda app-developers app
screen comes like for a millisecond and then this " starting services" logo doesn't go at all...it just continues forever
any help would be appreciate .
Rangerbry said:
...
Hook Phone to pc via usb cable
Open a command prompt from within your SDK/Platform-tools folder
install Stock recovery
Code:
fastboot flash recovery Stock recovery.img
Unhook Phone from USB after Flashing and press Power Button and phone will reboot.
If all went as planned you will boot up to a factory reset phone thats ready to download and install the OTA with no problems
and sorry the backup has a Custom boot animation i forgot to remove
-Bryan
Click to expand...
Click to collapse
Hello everyone,
everything works fine until I tried to flash recovery stock. This errormassage is shown in my terminal:
C:\Users\xxx\Desktop\Dokumente\Apps\unsortiert\adt-bundle-windows-x86_64\adt-bundle-windows-x86_64\sdk\platform-tools>fastboot flash recovery Stock recovery.img
(bootloader) Variable not supported!
target reported max download size of 31457280 bytes
error: cannot load 'Stock': No error
any ideas?
kaot5 said:
Hello everyone,
everything works fine until I tried to flash recovery stock. This errormassage is shown in my terminal:
C:\Users\xxx\Desktop\Dokumente\Apps\unsortiert\adt-bundle-windows-x86_64\adt-bundle-windows-x86_64\sdk\platform-tools>fastboot flash recovery Stock recovery.img
(bootloader) Variable not supported!
target reported max download size of 31457280 bytes
error: cannot load 'Stock': No error
any ideas?
Click to expand...
Click to collapse
Hm... I thought the line should be
Code:
fastboot flash recovery recovery.img
Obviously replace recovery.img with your filename.
arrrghhh said:
Hm... I thought the line should be
Code:
fastboot flash recovery recovery.img
Obviously replace recovery.img with your filename.
Click to expand...
Click to collapse
My filename is recovery.img. Is the storage limited? Previouse I had CWM now installed TWRP without deinstall, could this be a problem?
kaot5 said:
My filename is recovery.img. Is the storage limited? Previouse I had CWM now installed TWRP without deinstall, could this be a problem?
Click to expand...
Click to collapse
What is this, I don't even...
Please try with the command I provided.
arrrghhh said:
What is this, I don't even...
Please try with the command I provided.
Click to expand...
Click to collapse
I'll try it tomorrow morning. I've forget my phone at work. This means in about 10hours. Many thanks in advance
kaot5 said:
I'll try it tomorrow morning. I've forget my phone at work. This means in about 10hours. Many thanks in advance
Click to expand...
Click to collapse
This command works Thx
Rangerbry said:
Sorry Mods if this is the wrong section was just 2 many threads with people having problems was easier then tryign to reply to them all.
Directions
After doing this Your Phone This Will BeFactory Reset
1) Download The backup i madeSorry this has a Custom Boot animation rest is stock.
Extract it to a folder on your SDcard dont just copy it there.
Im going to Assume everyone at this point has ADB and Fastboot installed if not follow the instructions then come back
...
Click to expand...
Click to collapse
Thank you! Fixed soft brick after a bad system.img flash.
Still wont update. i get a dead android logo after about 30 seconds into the update, then reboots to "The software update failed!"
this is a bit outdated now that we have working RSD Lite files follow the instructions here and use the supplied files for your carrier Sprint or cspire.
[05-08-2013] Photon Q FXZ
-Bryan
Thank you
Nice share and will appy soon
I'm running on ics and wait for 4.3
I mean jelly bean ruin my battery life, so I very very hope photon q will get the ota update for 4.3
Rangerbry said:
this is a bit outdated now that we have working RSD Lite files follow the instructions here and use the supplied files for your carrier Sprint or cspire.
[05-08-2013] Photon Q FXZ
Click to expand...
Click to collapse
Hi. I'm trying to figure this out, but the link for stock recovery you posted is dead.
So I want to clarify what you wrote above... are you saying to follow the instructions here (first post in this thread) but use the recovery.img from one of the zip files in that other link (i.e. asanti_c_sprint-user-4.1.2-9.8.2Q-122_XT897_FFW-5-6-release-keys-cid9.xml.zip)?
Do I need to use "RSD Lite" for something? You didn't mention it in your instructions, but it's mentioned a lot in that other thread...
enigma9o7 said:
Hi. I'm trying to figure this out, but the link for stock recovery you posted is dead.
So I want to clarify what you wrote above... are you saying to follow the instructions here (first post in this thread) but use the recovery.img from one of the zip files in that other link (i.e. asanti_c_sprint-user-4.1.2-9.8.2Q-122_XT897_FFW-5-6-release-keys-cid9.xml.zip)?
Do I need to use "RSD Lite" for something? You didn't mention it in your instructions, but it's mentioned a lot in that other thread...
Click to expand...
Click to collapse
You can use the RSD Lite file to return to stock the method in this thread was back before we had working RSD files

Categories

Resources