Sunday, October 2, 2011

WT..! Where's my recovery? ;)

Now, the title explains it all! You have taken great pains and care to put a nice and warm recovery into the recovery partition only to reboot your phone and find it missing! :)

That's the feeling that rises out of this situation! Fret not! Not your mistake. That's how Android boot process works!

It took me some digging to find this out and overcome this feeling I mentioned! :) So here goes!

As part of the boot process and init, android runs a script that erases any custom bootloader and replaces it with Google, not much helpful recovery (or should I even call a scary, exclamated picture, a recovery?! :))


The script being at /system/etc/install-recovery.sh
and the patch at /system/recovery-from-boot.p

Now that you're God, nothing prevents you from killing these two little mortals.
Install ES file manager, an open source, root enabled file manager from the market and delete these two files and your reign is now safe! or you could run this zip from the recovery to do this deletion for you.

Being a rooted phone, you can henceforth install the ClockWorkMod recovery from Android market itself. It's called ROM Manager. And from within it, you can flash the recovery whenever you need. You can explore ROM manager to find more useful tools (rom installation, fixing file permissions, flashing any other versions of the recovery, etc.)

Now why not install CyanogenMod and have some fun!? huh?

3. Install the super user binary

After you are done with

1. Unlocking the bootloader
2. Flashing a custom Recovery into Nexus S,
follows the final step in the rooting process!

1. Download super-user app (a zip file) from my dropbox (v2.3.6.1). This's just a backup, in case you can't find it's latest version online.

2. Move it to the root of the SD card

3. Reboot the phone into the recovery, by shutting down and turning on with Vol Down + Power button.

4. On boot screen, select recovery with vol down and confirm with power button.

5. Once into the recovery, select 'Install zip from SD card'.
(Remember, the only button you can use are vol up/down and power buttons.)

6. Select the super-user zip file (su-2.3.6.1-ef-signed, in my case) and confirm installation.

Kudos! You've successfully rooted you Nexus S! Give yourself a tap on your back! :)

Into your phone, you will find the Super User app in your Appdrawer (for your use) and the super user binary will be in the path of your device (for other apps requiring root permissions to use)

Now for the tiny glitch - loss of custom recovery after reboot!