Friday, July 16, 2010

Root a T-Mobile G1 (HTC DREAM) and Install Cyanogenmod 6.0 (Android 2.2 Froyo)

So I spent about 5-6 hours a few days ago searching for a full tutorial of rooting a T-mobile G1 (HTC Dream) and then installing Android 2.2 Froyo on it (Cyanogenmod 6).

I could not find a full guide anywhere and I ended up using like 5 different sites and it was a huge headache! So I am creating a full tutorial here. This will have the latest radio and spl version.

I FOUND THIS TO BE THE EASIEST METHOD OF ROOTING A G1 AND INSTALLING A STABLE BUILD OF FROYO.
THIS IS DESIGNED FOR THE COMPLETE BEGINNER!!

I HAVE THIS ON MY G1 WITH NO PROBLEMS AT ALL!!!

Rooting Your Stock T-Mobile G1 (HTC DREAM) AND INSTALLING A STABLE ANDROID 2.2 FROYO BUILD. (CYANOGENMOD 6.0)

**Please make sure your phone is completely charged before doing this**
**I am not responsible for anything that happens to your phone. Do this at your own risk**
---------------------------------------------------------------------------------------------
I was pretty worried about bricking my phone, but it is almost impossible if you do this step by step and correctly. Just make sure to follow the steps!
---------------------------------------------------------------------------------------------
Prerequisites:

**ALL DATA/APPLICATIONS WILL BE REMOVED FROM YOUR PHONE AND IT WILL BE RETURNED TO FACTORY SETTINGS AFTER THE FOLLOWING STEPS. MAKE SURE YOU HAVE SYNC SET UP FOR YOUR DATA SO THAT YOU CAN RECOVER YOUR CONTACTS!** (TO SYNC GO TO SETTING > DATA SYNChronization > make sure AUTO SYNC is checked as well as contacts calendar and gmail)

Here is what you will need:
1) Your Phone
2) A Computer
3) USB Cable
Download the following file onto your computer: (DO NOT UNZIP OR CHANGE ANY FILES!)
Original DREAIMG.nbh
Cupcake Update.zip
FlashRec.apk
Amon Ra’s Recovery Image
G1 Radio
G1 HardSPL
Generic G1 ROM w/ Root
CYANOGENMOD 6 ROM
GAPPS
-------------------------------------------------------------------------------------------
I) Formatting the SD Card and Downgrading to RC29(YOU WILL DELETE EVERYTHING OFF YOUR SD CARD!)

  1. Plug your USB cable into your computer and then plug your phone in.
  2. Mount your SD card by sliding down the notification bar and selecting mount.
  3. Go to My Computer and access your SD card.
  4. BACKUP ANY FILES THAT YOU WANT ONTO YOUR COMPUTER. VERY IMPORTANT!
  5. Go back to my computer and right click on the drive that is your sd card. Click format. Choose FAT32 from the drop down and hit the format button. This removes all data from your memory card.
  6. Once the format is complete: drag and drop "DREAIMG.nbh & Update.zip files that you downloaded into the sd card. (DO NOT create a folder or anything, just put it right in the SD card)
  7. Unmount your phone by going through the notification bar and then unplug your phone from your computer. Them turn off your phone.
  8. Press and hold the camera+end key until until you see a screen with colored bars, then let go. This is the bootloader. The screen will turn gray with blue writing on it.
  9. Hit the end key to start the update. DON'T DO ANYTHING UNTIL THIS IS DONE!
  10. Once it is finished press the trackball to reboot. (If it goes back the the colored bar screen and doesn't reboot try holding the home+menu+end key, if this doesn't work, just remove the batter and put it back in and turn the phone on)
  11. Once the phone is on, just turn it back off.
  12. Now press the Home+End keys until you see a triangle with an exclamation point in it (this is recovery mode). Once you see this let go of the buttons.
  13. Open the keyboard and press the ALT and L buttons, and then Press ALT and S buttons. Now wait until the phone reboots (it will do this automatically once the update is applied) (Don't worry if you see picture of a box and a g1 or a chip with an arrow)
  14. Once the phone reboots, go ahead and and go through the welcome guide and get to the home screen.
II) Flashing a Recovery Image
  1. Now with your phone at the home screen, go to settings>applications> an turn on unknown sources.
  2. Now go to settings>SD card and Phone Storage>Unmount SD Card
  3. Now Click format sd card and go ahead and format your sd card. It will automatically remount after.
  4. Go back to the home screen and plug and mount the phone to the computer again as you did earlier.
  5. Place the following files you downloaded earlier right into the sd card: FlashRec.apk, and Amon Ra's Recovery Image (Again not in any folder or anything, just on the sd card)
  6. Once they are transferred go ahead and unmount and unplug your phone from the computer
  7. Go and download a file manager from the android market (I suggest LINDA FILE MANAGER)
  8. Once downloaded, open the file manager and go to SD card, and click the FlashRec.apk file and then click install. If it asks -> Tell it to use package installer to open it (it probably wont ask but if it does)
  9. Once installed click open (it will be on bottom left of screen)
  10. Then click the button that says "backup recovery image"
  11. Once it says "backup complete" open the keyboard and type the following: /sdcard/recovery.img
  12. The click "flash custom recovery image" and wit until it says "Flash complete"
  13. Go back to the home screen and then turn off the phone.
  14. Turn the phone back on into recovery mode by holding down the home and power buttons. You will see a bunch of text on top of a black background with an HTC logo in the middle.
III) Partitioning and Loading the latest radio
  1. Scroll down to "Partition SD Card"
  2. Click "Partition SD"
  3. Press the Home key to confirm
  4. Use the trackball to increase the "swap size" to 96MB then press Home key
  5. Make sure "EXT2" is set to 512 MB then Click the Home Key
  6. Make sure "Fat32 size" is set to remainder and then press the Home Key and then the phone will begin partitioning.
  7. Once partitioning is complete scroll down and select to "SD: ext2 to ext3" and then press the Home key. Wait for it to upgrade.
  8. Once the Upgrade is complete hit the "back" button to get back to the main menu. Then scroll down and select "USB-MS Toggle" and wait for it to enable.
  9. Now plug the phone into the computer again. Now transfer the files downloaded earlier: G1 Radio, G1 HardSPL, Generic G1 Rom w/ root, to the phone. (AGAIN KEEP THE FILES JUST IN THE SD CARD AND NOT IN A FOLDER OR SOMETHING)
  10. Once the transfer is complete hit the Home key to disable the USB-MS toggle and return back to the main menu of recovery mode. Unplug your phone.
  11. Scroll down and select "Flash .zip from SDcard"
  12. Select the G1 Radio file (named OTA Radio or something like that) and hit the Home key to confirm. DO NOT SELECT ANY OTHER FILE, THE RADIO MUST BE DONE FIRST.
  13. Once the Radio Flash is complete Press Home+Back to reboot the phone. It will then say "writing radio image" and then reboot back into recover mode (this will take some time)
  14. Once back into recovery mode, scroll and select "Flash zip from SDcard" again.
  15. This time choose the SPL file (named somthing like "Latest G1 SPL.zip") and then click the HOME KEY to confirm.
  16. Once it finishes, hit HOME+Back to reboot once again. It will say "writing boot image" and then reboot
    back to recovery mode.
  17. Once again scroll to "Flash zip from SDCard" and choose the Generic G1 Rom file (Named something like Generic G1 Root Rom.zip) and click Home to confirm and wait for it to finish.
  18. Once finished it should go back to the main menu and say"Install from SD card complete"
  19. Now click on the "Reboot System Now" choice. (Home+Back)
  20. Wait for the phone to reboot back into Android.
IV)Installing CYANOGENMOD 6 (Android 2.2 Froyo for HTC DREAM)
  1. Once back into Android, turn the phone back off.
  2. Hold the Home+Back keys to turn the phone on and get it back into recovery mode
  3. Select "USB-MS Toggle" and wait for it to enable
  4. Once enabled, plug your phone in and transfer the CYANOGENMOD6 and GAPPS file ito your SD card/phone. (again not in any folder, just in the sd card)
  5. Once the files are transferred, press the Home key to disable USB-MS Toggle and return to the main menu, and then unplug your phone.
  6. Scroll down and select "wipe" and then select "wipe data / factory reset" and then hit the Home key to confirm. Wait for it to finish the wipe. It will say "Data wipe complete"
  7. Hit the back key to return to the main menu.
  8. Scroll and select "Flash Zip from SDCard"
  9. Select the CYANOGENMOD 6 ROM Named something like "update-cm-6.0.0-DS-RC1-signed.zip" and hit Home to confirm and wait for it to finish.
  10. Once finished it will go back to the main menu and say "Install from SD Card Complete"
  11. Go back to "Flash Zip from SDCard"
  12. Select the Gapps File Named something like "gapps-mdpi-FRF91-3-signed.zip" and click home to confirm.
  13. Once it is finished you should be back at the main menu. Select "Reboot System Now" and wait for the phone to reboot.
  14. The reboot will take some time, (roughly 5-10 minutes) so don't freak out. Just put your phone down and go do something =)
CONGRATS! YOU have successfully rooted your G1 and installed CYANOGENMOD 6 (ANDROID 2.2 Froyo)

52 comments:

  1. Great! Thanks so much for having everything so organized and clear!

    (Part iV: 2 should read: "Hold the Home+POWER keys to turn the phone on... but they should know that by now.)

    ReplyDelete
    Replies
    1. Can anyone share all the files with new links please?
      i have rooted g1 with android 1.o now but unable to update it with 2.1 or later please guide and upload new links -amitpmistry@hotmail.com
      thanks a lot

      Delete
  2. Hi there.
    I followed your guide and now my phone is rooted and on the new Cyanogen! Your a legend I spent all evening trying to find a good guide but there just isnt one.

    They should sticky this on the forums!

    ReplyDelete
  3. Hi,

    Thanks again for your great tutorial. We, the Dutch people Android community, are very happy with it :)

    ReplyDelete
  4. i just bricked my g1 awhile ago and cost me 50 dollar through a hardware reconfig...but please someone hold me back, why this thread..coz am going to try this..sounds sooooo enticing i cant resist!!! this is cool!

    ReplyDelete
  5. Thanks for the excellent tutorial.. i assume all went well as my phone is now at a boot animation(waiting that 5-10 min)

    ReplyDelete
  6. :( I got

    "DREAMIN.nbh - FAIL
    BOOTLOADER -
    RECOVERY -
    SPLASH1 -
    SYSTEM -
    USERDATA -
    RADIO-v2 -

    Update Terminate
    UPDATE FAIL"

    when the bar finished loading.

    Any help?

    ReplyDelete
  7. Best guide on the net, thank you!
    I got through the whole process without issue except my G1 kept rebooting as soon a the Home screen loaded, fix was to use update-cm-6.0.0-DS-RC2-signed.zip not update-cm-6.0.0-DS-RC1-signed.zip

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. Hey Crawfa
    Thanks a lot I came here to get a solution for same problem. :D
    Thanks

    ReplyDelete
  10. Thank you for the great tutorial. Had my phone up an running within an hour.

    ReplyDelete
  11. I already have my phone rooted,do I need to re root?

    I have Super D 1.9.3

    ReplyDelete
  12. Hey buddy,

    Bang up job! Great walkthough!

    ReplyDelete
  13. followed to a T running 2.2 but very slow any advice?

    ReplyDelete
  14. also forgot to ask will this work with the Mytouch 3G as long as i have the base Mytouch files instead of te G1 files?

    ReplyDelete
  15. Thank you for your post. rooted this morning @ 5am. very smooth transition, just one bumb, had to flash: (gapps-mdpi-tiny-20100816-signed.zip) instead of older gapps file. besides that...PERFECT!!!

    ReplyDelete
  16. Helped me sooooo much, cant thank you enough, Great step by step, very smooth, no confusions, PERFECT TUTORIAL

    ReplyDelete
  17. great tutorial! thanks a lot!

    Cyanogenmod FTW!

    ReplyDelete
  18. I'm so thrilled! Thanks so much for this tutorial!

    ReplyDelete
  19. Booting into cyanogen now for the first time now.

    You're the man dude :D

    ReplyDelete
  20. The link for CYANOGENMOD 6 ROM is broken. Please help. Thanks

    ReplyDelete
  21. Similarly for GAPPS. Thanks again.

    ReplyDelete
  22. Seems like this is just what I need but the links for CYANOGENMOD 6 and GAPPS are broken...any ideas?

    ReplyDelete
  23. This worked great! I found one typo in the passage that caused a little dilemma:

    IV)Installing CYANOGENMOD 6 (Android 2.2 Froyo for HTC DREAM)
    Once back into Android, turn the phone back off.
    Hold the Home+Back keys to turn the phone on and get it back into recovery mode

    Instead of being the Home+Back keys, it should be the Home+End keys.

    Now that the process is complete, is it safe to delete all the files on the SD card?

    ReplyDelete
  24. This comment has been removed by the author.

    ReplyDelete
  25. can i do this without data plan? can i skip the welcome guide? at step I-14

    ReplyDelete
  26. This comment has been removed by the author.

    ReplyDelete
  27. my only way to sign in to my gmail is wifi so my question is. can i skip the the welcome guide? at step I-14 and just go straight to the homescreen and connect to the wifi..?

    ReplyDelete
  28. Instead of using CYANOGENMOD 6 ROM I presume it will be ok to use SUnAaBh v1.1 instead. Could you please advise.

    ReplyDelete
  29. Excellent, this did the trick. I bought a cheap ebay phone that someone had attempted to root, failed, and thought they had bricked it. So they sold it cheap. Your guide helped me bring it back to life and now I have a great cheap hack toy for just a few $s.

    ReplyDelete
  30. The CYANOGENMOD 6 ROM and
    GAPPS links do not work.can you please help with that?

    ReplyDelete
  31. Thanks so much for this tutorial - like you I wanted to root and mod my G1 but couldn't find a newbie guide anywhere. This guide has just the right amount of hand holding without assuming one is totally stupid but also doesn't tax us unnecessarily with info we don't need. I used rc7 because I'm in Europe and dangerspl though (and got the links for gapps and cyanogen by googling it myself), and with following your instructions everything worked first time. Now my G1 has a new lease of life. You're a hero !

    ReplyDelete
  32. For those like me, who needed to root without dataplan or sim, JesusFreke wrote a super post that really helped me to acomplish after II) on this tutorial!
    http://forum.xda-developers.com/showthread.php?t=452316
    He wrote:
    I've found a way to register the G1 in the initial registration screen that comes up the first time you boot the phone (or after you wipe the phone). It will allow you to register if you don't have a sim card at all, or if you have a sim card but no data plan.

    First, You must have either RC29 or earlier, or modded RC30. It won't work with official RC30, sorry. If you don't know for sure what version you have, but you know you haven't installed a modified RC30 build, then the easiest way to check is to reboot the phone, and once it starts up and is showing the "click the android to begin" screen, or the "no sim card" screen, then type the following on the phone keyboard

    reboot

    If it reboots, then you have RC29 or ealier. Otherwise you have RC30.

    Second, you must ...

    ReplyDelete
  33. Ooops, And the best part:
    THANK you Pastro100 !!!
    This really helpe me!!!

    Running Froyo2.2!!
    Slat

    ReplyDelete
  34. exellent and thanks for this wonderful step by step guide.

    ReplyDelete
  35. ey brother excellent post, but CYANOGENMOD 6 ROM and GAPPS doesn´t found, can you upload again. plz thx a lot

    ReplyDelete
  36. Thanks Bro, with your help i was able to breathe a new life into my beloved G1, my G1 is more more awesome thanks to you

    ReplyDelete
  37. WHAT A HELP! Thank you so much for this! Just excellent. I am so thrilled to use my G1 again! :)

    ReplyDelete
  38. cheers pal worked just fine :)

    ReplyDelete
  39. The file CYANOGENMOD 6 ROM and GAPPS are not available. Would you upload them again? Thanks a lot.

    ReplyDelete
  40. Perfect dude.......... I done it.................................................................................

    ReplyDelete
  41. links not working can u give another links

    ReplyDelete
  42. Can you please upload the files to another site, megaupload King KIM Schmitz is in jail ;) The files too

    ReplyDelete
  43. Provide the links again pleaseeeeeeeeeeeeeeeeeeeeeeeeee

    ReplyDelete
  44. I don't think the links will be fixed any time soon... waiting.

    ReplyDelete
  45. whats the point of making this great tutorial when the links are not working?

    ReplyDelete
  46. can u please upload the generic g1 rooted rom please i need that please sendd me the link fast

    ReplyDelete
  47. hi..Im college student, thanks for sharing :)

    ReplyDelete
  48. Nice Blog!! Get Upto 50% on latest Smartphones, Visit Website :http://kartbin.com to know more.

    ReplyDelete