Thursday, March 24, 2011

Rooting android nexus s

Hello All, so after a few week of using y nexus s i decided to root it and flash with cyanogen, here is how this is done :
  1. rooting the device : basically means getting access to superuser account :
    1. BACKUP ALL THE DATA ON THE PHONE (i lost my video :( cause the stupid phone formated the sdcard (which it doesnt have) )
    2. make sure you have DEBUG enabled on the phone in Settings->Application->Development
    3. connect the phone by USB
    4. first you must have the adk installed (instructions here), this will help you in case of you have an emergency, try to execute
      adb
      (can be found in the android sdk folder)
      • list the devices :
        ./adb devices 
      • get shell :
        ./adb shell 
      once you get the shell you can move to the next step (
      exit
      the shell)
    5. reboot the phone in bootloader mode :
      ./adb reboot bootloader 
      or : turn off the phone and while booting press VOLUME UP + POWER
    6. oem unlock the phone (download fastboot from here) THIS WILL FORMAT SDCARD
      ./fastboot oem unlock
  2. installing cyanogen or just rooting ?
    1. install Cloworkmod recovery console (this is something to help with installing software on the flash filesystem), download from here
      fastboot flash recovery recovery-clockwork-3.0.0.5-crespo.img
    2. To complete rooting with your current firmware you need to install the Superuser for Android 2.0 and Up Flashable Zip , but if you want to install Cyanogen then skip this.
      1. Once in recovery mode, select Mounts and Storage then select Mount USB Storage so we can transfer files to the sd while it is in recovery mode.
      2. Copy the Superuser.zip file to the root of your internal storage (do NOT extract it, do NOT put it in any folders, just on the phone’s storage itself).
      3. Select Unmount on the phone.
      4. Select Mount System, then select Go Back to get back to the main menu.
      5. Then scroll to flash zip from sdcard and then choose zip from sd card and select the superuser.zip file and wait for it to finish flashing.
      6. Once it is done, select Go Back then Reboot System and wait for the phone to reboot.
    3. Download the latest version of CyanogenMod. ( Don't forget to install Google Addons latter )
    4. Place the CyanogenMod update.zip file on the root of the SD card (as described above)
    5. In ClockworkMod Recovery, use the side volume buttons to move around, and either the power button or the trackball to select "Wipe data/factory reset."
    6. Then select the option to "Wipe cache partition."
    7. Select "Install zip from sdcard.", select "Choose zip from sdcard.", select the CyanogenMod update.zip. ( Install the Google Addons by performing this step and choosing the Google Apps update.zip. )
    8. Once the installation has finished, select +++++Go Back+++++ to get back to the main menu, and select the Reboot system now option. The Nexus S should now boot into CyanogenMod.
  • video of this process, it is much easier to understand than just instructions
  • more detailed/technical aspect of this on the cyanogen wiki