New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
distortedloop
Old
(Last edited by distortedloop; 3rd May 2011 at 03:27 PM.)
#1  
Senior Member - OP
Thanks Meter 246
Posts: 2,909
Join Date: Feb 2010
Location: Los Angeles, CA
Arrow [GUIDE] Root & recovery WITHOUT oem unlock & wipe (2.3.2 & older, plus now 2.3)

UPDATE #2 - Fitchman has reported successful root and rom flash without unlocking the bootloader by using Ginger Break. Full details in this post: http://forum.xda-developers.com/show...&postcount=135

UPDATE - IMPORTANT: This method does not work with Android 2.3.3. Search the forum or this post in this thread for a way to update to 2.3.3 and root without unlocking if you haven't updated yet.

Alternatively, use this method on 2.3.2 and lower, then use titanium to back up everything, store it on your laptop (along with all your sdcard's data), then do the oem unlock step first and then continue from there with the rest of the guide.

Not my original idea, but a consolidation of a discussion between inakipaz and shrivelfig and myself in another thread and being posted here for easier finding by future root-seekers.

Shrivelfig's tested the method to re-root a previously rooted pone with a re-locked bootloader, and inakipaz has done it on a phone that's never had the bootloader unlocked.

The advantage here is that those who chose not to root when they first got the phone won't lose any app data or sdcard data like the methods that have you unlock the bootloader do. The disadvantage is your bootloader remains locked, which may prevent you flashing certain things in the future.

edit: see ravidavi's posts below; he's shown you can even flash custom roms that are clockwork compatible while having a locked bootloader with this method.

Download these two files:

clockwork recovery v3.0.0.5 or clockwork recovery v3.0.0.5 mirror if above not working

su-2.3.6.1-ef-signed.zip

Koush's blog for the latest clockwork updates (find Nexus S in the list).

Also, if you don't already have the necessary android sdk and drivers on your computer, get them from here: http://developer.android.com/sdk/index.html and install them. Some Windows users report better luck just installing pdanet. There's a decent guide for Windows users on installing the sdk here.

Place the recovery file on your laptop where you can access it while using the sdk fastboot commands.

Place the su zip one in the top level folder of your sdcard.

Put your phone in fastboot mode (power off, then hold volume up and power key at the same time until the phone boots to a white screen).

Use fastboot to boot the phone into the clockwork recovery:

Code:
fastboot boot recovery-clockwork-3.0.0.5-crespo.img
If you're not sure how to get fastboot working on your computer, follow the excellent instructions that Allgamer gives in this GUIDE, but don't do the oem unlock command!

Once in clockwork, flash the su file to the phone by following these steps below.

To navigate in the clockwork recovery, you use the volume keys to scroll up/down through the menus, and the on/off button to select what's highlighted.

(note: some report success without these first 3 steps, others don't get a succesful root without, I recommend doing them)
select mounts and storage.
select mount /system
select go back

select install ZIP from sdcard
select choose zip from sdcard
select su-version#-signed.zip file you downloaded earlier
select yes - install su-version#-signed.zip
confirm it says "Install from sdcard complete"
select go back
select reboot


After the phone reboots, you should be rooted, with a locked bootloader, and none of your data erased.

That said, never hurts to have a backup of your precious data on the sdcard that you can copy over to the computer.

This method doesn't install busybox, so go to the Market and download/install busybox directly, or get Titanium Backup and check it's "problems?" button and let it install busybox for you. There's also an app called root checker that supposedly verifies you have a working root on your phone.

Once you have a successful root installed, I'd suggest getting back into clockwork recovery and running a nandroid back up from clockwork's backs and restore menu. Then copy that file from your sdcard (in the /clockwork/backups folder) to your laptop for safe-keeping and an easy full system restore to a known working config.

Usual disclaimers about I'm not responsible for damage to your phone or loss of data apply. Use any rooting method at your own risk.

Thanks and all the real credit go to inakipaz, shrivelfig and allgamer, and of course to koush, and ChainsDD for the superuser apk.
Wiping battery stats has the same influence over battery life as waving a dead chicken over your phone does; none, per Google.
If your sig takes up more screen real estate than most of your posts, maybe you should trim it a bit...
The Following 16 Users Say Thank You to distortedloop For This Useful Post: [ Click to Expand ]
 
ravidavi
Old
(Last edited by ravidavi; 28th January 2011 at 04:56 AM.)
#2  
Member
Thanks Meter 11
Posts: 81
Join Date: Dec 2010
Location: Austin
Worked perfectly. I used fastboot from my Mac (outlined in the stickied Mac Root thread). Root checker verifies that I have root.

And by the way, my phone and I are both root/ROM cherry. First android phone, first time rooter. Will work up the guts to flash a ROM soon, but of course there's no chance of doing THAT without unlocking the bootloader.

Thanks to all involved in this!
The Following User Says Thank You to ravidavi For This Useful Post: [ Click to Expand ]
 
blackdem0n
Old
#3  
blackdem0n's Avatar
Member
Thanks Meter 1
Posts: 42
Join Date: Jul 2007
Location: Pisa
yeah! good work!
 
Anderdroid
Old
(Last edited by Anderdroid; 28th January 2011 at 12:28 PM.)
#4  
Anderdroid's Avatar
Senior Member
Thanks Meter 103
Posts: 1,198
Join Date: Dec 2009
Location: Palo Alto

 
DONATE TO ME
Srsly. Awsom.

Someone sticky this....
AppLovin Android Developer
Developer of quake3droid



Follow me on Twitter !
http://twitter.com/LeakedDave
 
cmstlist
Old
(Last edited by cmstlist; 28th January 2011 at 04:58 PM.)
#5  
Senior Member
Thanks Meter 345
Posts: 2,497
Join Date: Jan 2010
Location: Vancouver
Question: When you do the fastboot boot command, does that overwrite the stock recovery with Clockwork? Or is it just booting into the recovery img without actually flashing it?

I would think this method also gives you a way to back up before unlocking the bootloader.
1) fastboot boot into Clockwork as described here
2) Full nandroid backup from Clockwork
3) Mount "SD" from Clockwork over USB, copy everything to computer (since it wipes everything)
4) Go back and unlock the bootloader as usual, resulting in a full wipe
5) Flash Clockwork Recovery again through whichever method
6) Mount "SD" from Clockwork over USB, copy the backup back to phone
7) Restore nandroid

And now you've unlocked the bootloader without amnesia =)

Quote:
Originally Posted by ravidavi View Post
And by the way, my phone and I are both root/ROM cherry. First android phone, first time rooter. Will work up the guts to flash a ROM soon, but of course there's no chance of doing THAT without unlocking the bootloader.

Thanks to all involved in this!
Are you sure you need to unlock the bootloader to flash a ROM? Now that you have root, try installing ROM Manager from the Market, and see if it lets you flash custom recovery with bootloader still locked. If so, then yes you can install a ROM!

Also, the fact that you're able to boot into Clockwork using "fastboot boot" - that also means you can install a ROM .zip file right from there.
 
nitsuajd
Old
#6  
nitsuajd's Avatar
Senior Member
Thanks Meter 46
Posts: 176
Join Date: Jul 2008
Location: Badalona

 
DONATE TO ME
Quote:
Originally Posted by cmstlist View Post
Question: When you do the fastboot boot command, does that overwrite the stock recovery with Clockwork? Or is it just booting into the recovery img without actually flashing it?
"fastboot boot" only launches the recovery no unlock needed. "fastboot flash" flash the recovery

 
ravidavi
Old
(Last edited by ravidavi; 28th January 2011 at 11:39 PM.)
#7  
Member
Thanks Meter 11
Posts: 81
Join Date: Dec 2010
Location: Austin
Quote:
Originally Posted by cmstlist View Post
Are you sure you need to unlock the bootloader to flash a ROM? Now that you have root, try installing ROM Manager from the Market, and see if it lets you flash custom recovery with bootloader still locked. If so, then yes you can install a ROM!.
It worked! Here's the process I used, starting from a completely unmodded Nexus S.

1: Use the method detailed here to gain root access without unlocking the bootloader.

2: Using a root-enabled file explorer (I used Super Manager), rename install-recovery.sh (in /etc) to install-recovery.sh.old . You'll need to remount as r/w to do this. NOTE: You don't *have* to do this step, but if you don't, then you can only use clockwork once after which it will be erased on reboot.

3: Using ROM Manager, install Clockwork Recovery.

4: Pleasure yourself, because your bootloader is still locked and nothing was erased.

I have yet to try actually flashing a custom ROM. Does this mean that it can also be done without unlocking bootloader?
 
ravidavi
Old
(Last edited by ravidavi; 29th January 2011 at 01:51 AM.)
#8  
Member
Thanks Meter 11
Posts: 81
Join Date: Dec 2010
Location: Austin
Well damn, whaddaya know. I just flashed MoDaCo r10 without unlocking the bootloader, and without losing any personal data on /sdcard.

I figure someone at XDA should like this.

Pretty much followed distortedloop's advice. Starting from a fully stock Nexus S with Android 2.3.2 (GRH78C):

* Root using the method on this thread.
* Rename install-recovery.su to install-recovery-old.su. (in /bin)
* Install Clockwork Recovery from ROM Manager.
* Download whatever ROM you want (compatible with Clockwork), rename to update.zip, and copy to sdcard.
* Reboot into Clockwork.
* Wipe cache, reset to factory (IF REQUIRED BY NEW ROM). This was my first install of MoDaCo, and that requires it. This step does NOT erase your personal files on sdcard, just all android-related files.
* Install update.zip from Clockwork.
* Continue self-pleasuring ... you now have a custom rom without touching your bootloader or wiping your personal sdcard data.

Maybe it's just because I'm a noob here, but it seems to me that this is a BIG deal. All root/ROM installation methods that I've seen so far have required an unlocked bootloader. This seems to be the first time a Nexus S has been unlocked and custom-ROM'd without unlocking the bootloader and wiping the entire /sdcard.

Ravi
 
distortedloop
Old
#9  
Senior Member - OP
Thanks Meter 246
Posts: 2,909
Join Date: Feb 2010
Location: Los Angeles, CA
Yeah, it's pretty clear that the unlock the bootloader step isn't necessary for most of what we want to do. Just a habit from earlier devices, perhaps?

What's really odd is now we have to wonder what's the purpose of the oem unlock erasing your sdcard? Speculation was that it was a security feature to keep people from accessing your data if they stole your phone; they couldn't flash something on the phone to get access, but clearly they can. Fastboot into a custom recovery and you own the phone.

Perhaps this is a security hole Google will try to fix some day?

At any rate, I wish we'd discovered this sooner, it would have saved several people some grief in having to lose saved games (Angry Birds!) when they finally decided to root.
Wiping battery stats has the same influence over battery life as waving a dead chicken over your phone does; none, per Google.
If your sig takes up more screen real estate than most of your posts, maybe you should trim it a bit...
 
ravidavi
Old
#10  
Member
Thanks Meter 11
Posts: 81
Join Date: Dec 2010
Location: Austin
Quote:
Originally Posted by distortedloop View Post
Yeah, it's pretty clear that the unlock the bootloader step isn't necessary for most of what we want to do. Just a habit from earlier devices, perhaps?
...
At any rate, I wish we'd discovered this sooner, it would have saved several people some grief in having to lose saved games (Angry Birds!) when they finally decided to root.
You say "for most of what we want to do." Could you think of a case where you would need to unlock it now? It's now shown to be unnecessary for rooting and installing custom recovery/ROM.

Is there any way to get the word out? This thread isn't stickied, and all the stickied threads on rooting & custom ROMs currently assert that you have to unlock the bootloader.

Ravi