In my continued quest to learn more and start hacking on the Android phones, I’ve recently rooted my Android based HTC Dream (aka Tmobile G1) phones.

I’ll start by explain the terminology. There are two ways in which the phones can be unlocked:

  • so called rooting, which I describe in this post, involves replacing the bootloader so that the phone can use community generated firmware images, aka ROM’s.

  • there is also unjailing or unlocking the phone so that it can be used with any SIM card on any GSM network; and I’ll talk about that in due time.

WARNING: this may very well brick your phone! Read all the instructions here, and the links I provide. If you’re still not discouraged, continue on :)

Before you proceed, I cannot stress the importance of following directions.

Manual method:

after a clean boot of RC29…

  • type in <enter><enter>telnetd<enter>

  • install the telnet app from the market

  • download a new recovery.img (I am using Cyanogen’s pimped out cm-recovery-1.4.img image)

  • download HardSPL/update.zip

  • copy the recovery.img and update.zip to the SDCARD

  • install the new recovery image…

    • mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
    • cd sdcard
    • flash_image recovery recovery.img
    • cat recovery.img > /system/recovery.img
    • sync
  • shutdown, boot holding down HOME key

  • update…

    • if using cm-recovery, when you get the menu, press alt-s
    • if using standard recovery.img, when you see the triangle logo, press alt-l then alt-s
  • follow prompts, it will reboot a few times

you now have root. As before you need to install a community modded image:

  • first upgrade radio to v1.5 from HTC official site or googlecode.com mirror

    • download, copy to SDCARD
    • boot with HOME held
    • run alt-s
  • then install a custom image. I recommend using CyanogenMod images.

    • download, copy to SDCARD
    • boot with HOME held
    • run alt-s

    NOTE: the CyanogenMod takes a long time to boot the first time.

Additional notes: