Android Forums at AndroidCentral.com >  Sprint Nexus S 4G >  Sprint Nexus S 4G Rooting, ROMs, and Hacks > [How-To] Unlock, Install SU, Custom Recovery

[How-To] Unlock, Install SU, Custom Recovery

Closed Thread
Like Tree1Likes

 
Thread Tools Search this Thread
    Thread Author   #1  
Old 05-06-2011, 09:17 PM
AC Forums Android Developer
Device(s): Too many to list
 
Posts: 3,620
Location: Rochester, NY
Join Date: Oct 2009
Thanked 1,506 Times in 510 Posts
Likes Received: 113
Activity: 1/20
For those of you who may not be as familiar with Android as some of us, Josh has written a great blow by blow description of this process which can be found HERE


-Download [Only registered users can view links. ] and place on the root of your SD card (storage space)
-boot into your bootloader/fastboot mode. (Volume + Power Up, or adb reboot bootloader)
-In CMD
Code:
fastboot oem unlock
-Download [Only registered users can view links. ] and place in platform-tools on your PC
-In CMD
Code:
fastboot flash recovery recovery-clockwork-5.0.2.0-crespo4g.img
-Boot into Clockwork recovery (from fastboot, choose recovery)
-From recovery: Install zip from SD card > Choose zip from SD card > select su-2.3.6.1-ef-signed.zip
-Reboot and you now have super user.

WARNING:
If you dont do this next step your custom recovery will not be sticky and you'll have to apply it every time you reboot. Not all phones have this file but if your does, you need to do this step

Way #1
- Go to THIS post
- Thank Beezy for his work
- Download the attachment on the post (signed_su-2.3.6-extra.zip)
- Flash in recovery

Way #2
-Download root explorer from the market
-Open and grant SU permission
-Drive to system/etc
-Mount as RW (upper right hand corner of screen)
-Long press on install-recovery.sh and rename to install-recovery.sh.bak

Way #3
- In ADB
Code:
mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak
Important Note:
Any question, comments, concerns, bumps, bruises, or otherwise should be discussed here, not by PM'ing me. Thanks in advance.

Last edited by KSmithInNY; 09-07-2011 at 07:18 AM.
  #2  
Old 05-06-2011, 10:00 PM
 
Posts: 141
Join Date: May 2011
Thanked 6 Times in 6 Posts
Likes Received: 2
Activity: 0/20
Thanks, will you update this thread when newer information is available for this phone?
Thanked by plmiller0905
    Thread Author   #3  
Old 05-06-2011, 10:18 PM
AC Forums Android Developer
Device(s): Too many to list
 
Posts: 3,620
Location: Rochester, NY
Join Date: Oct 2009
Thanked 1,506 Times in 510 Posts
Likes Received: 113
Activity: 1/20
Quote:
Originally Posted by Klownicle View Post
Thanks, will you update this thread when newer information is available for this phone?
yes. Think i have recovery sticky now. I'm able to boot into it without having to flash each time. I need someone to validate the recovery is not sticky for them following the process above. I need this validated both through ROM manager as well as through fastboot.

What should happen is once you reboot the phone you'll be back at the stock recovery (android with a box and an arrow)
  #4  
Old 05-06-2011, 10:29 PM
 
Posts: 141
Join Date: May 2011
Thanked 6 Times in 6 Posts
Likes Received: 2
Activity: 0/20
I took down your instructions from the previous edit of your post. SO not sure what is different. I'm new to the whole android. Im coming from a Palm pre. But im not a dullard either :-p

Im not sure what instructions I should follow now lol

Rom Manager?

Just curious but what is the downside to a non-sticky recovery?
    Thread Author   #5  
Old 05-06-2011, 10:39 PM
AC Forums Android Developer
Device(s): Too many to list
 
Posts: 3,620
Location: Rochester, NY
Join Date: Oct 2009
Thanked 1,506 Times in 510 Posts
Likes Received: 113
Activity: 1/20
Updated with how to make custom recovery sticky so you don't need to apply it every time.
  #6  
Old 05-06-2011, 10:50 PM
 
Posts: 141
Join Date: May 2011
Thanked 6 Times in 6 Posts
Likes Received: 2
Activity: 0/20
Quote:
Originally Posted by KSmithInNY View Post
Updated with how to make custom recovery sticky so you don't need to apply it every time.
So let me get this stright, the point of the custom recovery is to "ding ding" flash a custom recovery image (rather then stock recovery) when needed? So the whole point of it being sticky is more of a annoyance of having to get to it first? It has nothing to do with keeping root access when the phone is rebooted.


Right?
    Thread Author   #7  
Old 05-06-2011, 11:03 PM
AC Forums Android Developer
Device(s): Too many to list
 
Posts: 3,620
Location: Rochester, NY
Join Date: Oct 2009
Thanked 1,506 Times in 510 Posts
Likes Received: 113
Activity: 1/20
I think your mixing up some terminology
Quote:
Originally Posted by Klownicle View Post
So let me get this stright, the point of the custom recovery is to "ding ding" flash a custom recovery image
No, the point of flashing a custom recovery is so you can then flash zips to the phone not created by google. So in post #1, by flashing the custom recovery, you can now flash the SU zip which puts the super user binary and apk in place.

These zips could be as simple as an apk that needs to be in /system (like SU), they can be kernels, they can be themes, they can be ROMs.
Quote:
Originally Posted by Klownicle View Post
So the whole point of it being sticky is more of a annoyance of having to get to it first?
The whole point would be to prevent you from having to flash the custom recovery any time you wanted to go into recovery and flash a zip. Doing what i stated above keeps the custom recovery in place so later, when ROMs, themes, kernels, other hacks come out, you can boot straight into the custom recovery through fastboot without having to flash it again first.

Quote:
Originally Posted by Klownicle View Post
It has nothing to do with keeping root access when the phone is rebooted.


Right?
correct, It has nothing to do with rooting but you will need to apply the custom recovery at least the first time so you can flash the SU zip
  #8  
Old 05-06-2011, 11:08 PM
 
Posts: 141
Join Date: May 2011
Thanked 6 Times in 6 Posts
Likes Received: 2
Activity: 0/20
So my next question is, im running into issues preforming these steps when it comes to the fastboot command.

I installed the Android SDK, and the platform tools from the SDK Manager. The first fastboot command is giving me a error related to adb saying the required dll isn't found.

Is there a driver required for this phone also? When the phone is in fastboot windows xp isn't finding a driver required for it. "Android 1.0" it says.

Thanks for your responses btw

Edit: By Copying platform-tools folder to the tools folder were fastboot is that fixed the dll issue. And I think my next problem is the Android Nexus S driver isn't included in the SDK? Or didn't install so I've read I can install it via PDANet's install on the PC when in FastBoot Mode. Update to Follow.

Solved that but now its saying that there is no .zip on the root of the USB Storage. So going to double check I put it there. Thought I did...

And I guess my device got wiped Hadn't really started to use it yet anyways lol

Last edited by Klownicle; 05-06-2011 at 11:31 PM.
    Thread Author   #9  
Old 05-06-2011, 11:38 PM
AC Forums Android Developer
Device(s): Too many to list
 
Posts: 3,620
Location: Rochester, NY
Join Date: Oct 2009
Thanked 1,506 Times in 510 Posts
Likes Received: 113
Activity: 1/20
yep, OEM unlock wipes the phone
  #10  
Old 05-06-2011, 11:43 PM
 
Posts: 141
Join Date: May 2011
Thanked 6 Times in 6 Posts
Likes Received: 2
Activity: 0/20
Quote:
Originally Posted by KSmithInNY View Post
yep, OEM unlock wipes the phone
I see the SU User App :-p Got any recommend File Managers?

Is a Unlocked status required for root at all times?