Sunday, April 21, 2013

Rooting a Nexus One under Linux

For anyone else rooting a Nexus One under Linux

Peter Williams gives the best, most readable instructions I've found. I was able to use them successfully with three modifications
  1. I had to replace the su binary/zip he mentions with another one. I unzipped it to quickly look over the contents. I used Superuser-3.1.3-arm-signed.zip which can be found at http://androidsu.com/superuser/ (The one mentioned in Peter's instructions is no longer available - but there are virus-laden packages with that name)
  2. I used recovery-clockwork-5.0.2.0-passion.img from http://www.clockworkmod.com/rommanager because I am not comfortable giving some program I found in a forum link root access. clockworkmod seems to have actual products for which people pay real money and thus has a reputation to uphold. Note that you use the trackball to select in clockworkmod, not the power button.
  3. I booted the recovery image using different commands. They did two things. The first command saved me from holding down the power button to go into fastboot mode. The second command boots the recovery image only in memory. The normal commands flash it in and then the OS overwrites it on full boot.
    • adb reboot-bootloader
    • fastboot boot recovery-clockwork-5.0.2.0-passion.img