How To: Flash a Custom Recovery Image on the HTC G1 / Dream

OBSOLETE: SIMPLY DOWNLOAD ROM MANAGER FROM THE MARKET AND SELECT FLASH RECOVERY TO FLASH A RECOVERY INSTEAD OF THIS PROCEDURE. THEN HEAD TO SECTION IV TO CONTINUE.

I. Before You Begin

1. You must have done our How To Root (AndRoot Method) procedure.

II. Setup ADB

1. Head over to our How To Setup ADB procedure, once done and you can see your phone’s serial number, come back to this procedure and continue.

III. Flash a Recovery Image

1. Download the custom recovery image for your phone and flash_image and save them to your computer.

G1/Dream
Roger’s Dream

Flash_image (Updated 09.24.10)

2. Copy the recovery image and flash_image to the C:\AndroidSDK\Tools folder you setup during the ADB setup procedure. (Its the same folder that has adb.exe in it).

3. Plug your phone in via USB cable and make sure USB debugging is still checked on from the ADB procedure. Do NOT mount the sd card, just leave it unmounted.

4. Open a command prompt on the computer by clicking on the Start menu and typing cmd and hitting enter.

5. In the command prompt type the following with hitting enter at the end of each line (if you get an error after the “adb push flash_image” line below, make sure you downloaded it and copied it into the tools folder of the AndroidSDK as instructed in steps 1 and 2 of this section):

cd\
cd c:\androidsdk\tools
adb push recovery.img /sdcard
adb push flash_image /sdcard
adb shell
su
mount

6. When you hit enter after typing in mount it will give you a list. Look in the list towards the bottom for a line that looks like “/dev/block//vold/179:1 /sdcard”. It may be slightly different but it will have /dev/block at the beginning and /sdcard at the end. We are going to now type mount [AndTheLineWeJustFoundThatLooksLikeTheOneAbove].

mount -o remount,exec /dev/block//vold/179:1 /sdcard

(Again keep in mind yours maybe be slightly different than mine here, make sure to change what you type here according to what you saw in the options after typing mount originally)

7. Then continue typing with hitting enter at the end of each line:

cd /sdcard
./flash_image recovery /sdcard/recovery.img

6. You should now have a custom recovery image! Turn off the phone and turn it back on by holding down Home and Power until the recovery screen comes up. Once it is up, head to the next procedure to load a ROM.

IV. Loading a Custom ROM

1. Head to our How To Load a Custom ROM procedure to continue.

227 thoughts on “How To: Flash a Custom Recovery Image on the HTC G1 / Dream”

  1. after typing adb shell it say device off line. im reading everyones comments and i’d hate to give up. ive tried over and over. please help

  2. after typing adb shell it say device off line. im reading everyones comments and i’d hate to give up. ive tried over and over. please help

  3. ok for all the people that say the flash doesn’t work. i just went through all the steps on my g1. the thing is attention to detail…good luck guys

  4. I am getting:
    [1] Segmentation fault su

    When i attempt to use the su command. I’ve redone with root twice, rebooted the phone and deleted and re installed the flash image and recovery. I am at a total loss. Anyone?

  5. it’s really works for my htc g1 brand-new.if the device says offline, i just unplugged and plugged again (several times happen)….anyway thank you very much,it’s helpfull

  6. I am trying to push images and when I hit enter I get a whole bunch of text. I place them in the tools folder and I use the current name for the sdk manager.

  7. I am trying to push images and when I hit enter I get a whole bunch of text. I place them in the tools folder and I use the current name for the sdk manager.

  8. when I type su, I am getting link image error. It says, link_image[1638]: 1340 could not load needed library ‘ libbinder.so’ for ‘su’ CANNOT LINK EXECUTABLE……………..How can I fix this?

      1. when I am doing the steps on the third step it keeps telling me that adb is not a valid prompt or something like that… what is going wrong? I know the G1 is outdated but i got it as a first android for my little brother and it is way too sluggish not to put a custom rom on it… plz help me im about to loose my 80 bucks I am going to throw this thing!!!!

  9. Help please!! when i try entering in su i get this message saying link_image [1638]: 1224 could not load needed library ‘libbinder.so’ for ‘su’ CANNOT LINK EXECUTABLE
    what should i do?!? please help!

    1. ya that seems to happen sometimes. has something to do with his one click app. try rerooting using one of the other methods on the site or report it to the app developer and ask him if he’s addressed the issue in his app yet

  10. hii… i used your root g1 tutorial (its working right) but when i try do at recovery image its still give me the same problem, same error with de libbinder.so, what more can i do?

  11. I“m getting a looong error when I write adb push recovery.img /sdcard. please help meeee!!! tried to download the files several times. I¨m sure that both of them are at the tools folder. what can I do

  12. hi, i just followed all the instructions and when i got to the ./flash_image recovery /sdcard/recovery.img and pressed enter it says that /flash_image: not found

    can somebody help me please?

  13. Just managed to get to the last step, and instead of a blank line i get:
    “./flash_image: permission denied” – which is strange as my phones properly routed and has superuser permissions available…

    Any ideas?

          1. keep trying, make sure your file is (recovery.img)
            keep trying soon or later it should take
            also try remounting sd card

          2. Bookoojoo, Hughes, and scott,

            Try this.

            Go to the androidsdk folder that you have on your computer. then go into the tools folder and look for a file named “flash.exe or flashi image.exe or something with flash.exe.

            then when you locate that file, put that into the root of the sd card and try again.Ā 

            also root your phone through “superoneclick” it helps a lot.

            P.S. you can also flash this without a computer. just download the terminal emulator from the market. run it and type “su” so that you can gain super user permission. hope that help.Ā 

  14. When I type
    mount -o remount,exec /dev/block//vold/179:1 /sdcard

    it repeats itself and does nothing else? Is something suppose to happen?

  15. When i got to type in adb push recovery.img/sdcard and i hit enter it just gives me a list of commands for adb and stuff i can do. It does not download it to the sdcard like it was shown in the video please help me thank you.

  16. When i got to type in adb push recovery.img/sdcard and i hit enter it just gives me a list of commands for adb and stuff i can do. It does not download it to the sdcard like it was shown in the video please help me thank you.

  17. i finished the last step and the it worked but when i pressed home and power it wouldn’t go to the recovery menu. Did I do something wrong?

  18. okay i really need help šŸ™ after i type in adb push recovery.img/sdcard it starts to load this really long information of something. but i kept typing what i need to type and after i did the “su” part it said permission denied….whats going on?

  19. after i finished the last step and and ready to reboot it wont get past the first g1 screen when i hold down the home key.but wen i dont it starts up normally

    1. This may or may not help but I noticed that the phone can’t be in stand by/screen saver mode when entering ‘su’.

  20. hey wats going on… i have a question about the g1. i was trying to install android 2.2 and they told me i had to downgrade to 1.0 rc29 and then upgrade to cupcake…the thing is i get a error message every time…im really confused and i hate that im stuck on rc29….help plz

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.