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. wow man youre are the greatsted plaese sent me over youre msn i wana contact you man ones again i did it verry good.
    thanx bro youre amezing

  2. I copied the recovery.img to the tools folder and it says no such file or directory when typing adb push recovery.img /sdcard what do i do i followed the directions to the letter.

  3. Hello, I am using a T-mobile G1 (rooted, used AndRoot method) and when I try to go into the recovery image (try to flash a new rom), I always have to do the flash recovery image step.

  4. Hello, I am using a T-mobile G1 (rooted, used AndRoot method) and when I try to go into the recovery image, I always have to do the flash recovery image step.

  5. Hey, thanks for all the work. I am having trouble with the recover image zip. I can’t unzip it? Is there a special program I am suppose to have loaded on my pc in order to unzip it before copying it over to AndroidSDK folder? Please let me know. I did everything else. Thanks.

  6. LAST LINE!! So disappointing… When I type ‘./flash_image recovery /sdcard/recovery.img’ it says ‘error reading /sdcard/recovery.img: I/O error’ Is the recovery.img corrupt or something? Yelp!

  7. alrighty it finally worked for my only been trying a for about six hours, look if it doesnt work start from the start, and re root your phone with androot , follow steps exactly, you must use linda file manger also set your screen never to turn off when connected so you can allow the adb shell to access your phone, by pressing the correct button when superuser options pop up and ask if your want to allow the adb shell to acess your phone, also when you first put androot on your phone make sure that superuser app installed at the same time , if not reinstall androot, also make sure you type everything as is as per theunlockr shows up above in the command prompt or it obivously will not work properly like putting spaces where spaces are needed,
    Well that helped me , it may be the same for everyone else
    HTC Dream 4eva

  8. Can any one help me I can get the push on the recovery.img but when I get to push flach_image it keeps saying file not found what am I doing wrong????? everything seems to work up until this point…..?????

  9. i also get to the ./flash_image line and get permission denied i read all the posts problem doesnt seem to be adressed can u list some steps please adb works and phone rooted. also when i hold power and home buttons it simply freezes on htc dream opening screen no triangle or exclamation

  10. On the very last line step when you type ./flash_image recovery /sdcard/recovery.img it says ./flash_image: permission denied after I press enter. I’ve seen that I am not the only person with this problem, but there doesnt seem to be any solution in the comments section. As far as I know I’ve done everything exactly, and I honestly don’t know what I’m supposed to do now. Please help.

  11. when i put the adb devices in to get the code i get one but after it says device offline
    how do i change that
    Thank you

  12. I got it! You have to pay attention on the video because there are spaces that you do not notice while reading the text! i.e.
    adb push recovery.img /sdcard
    adb push flash_image /sdcard

    I could hardly notice that there was a space between recovery.img and /sdcard! this was messing me up!
    Also, on
    mount -o remount,exec /dev/block//vold/179:1 /sdcard
    I couldn’t see the space between mount and -o and the space after exec. This helped me out, I hope it helps more people!

  13. after i type in su, it says something like 
    Error Type 3
    error activity class {com.koushikdutta.superuser/com.koushikdutta.superuser.SuperuserRequestActivity} does not exist. Any ideas what could be wrong? perhaps superuser app isnt working correctly?

  14. Fakeemailnamegsndkfn

    In case anyone is still looking for the answer to “operation not permitted.” What you have to do is unroot it with androot and reroot it WITHOUT super user installed.

  15. Richharddeneenja

    after reading this over and over having trouble on the ./flash_image recovery_______ 
    when you push the “adb push recovery.img /sdcard” & “adb push flash_image /sdcard”

    make sure you SPACE after “.img” & “image”
    i think this is why everyone keeps getting not found on the last step 

  16. Elementfiretree

    hello my g1 will not go in to recovery mode i have a recovery image but nothing it just sits at the g1 screen i need help

  17. When I’m at the part where I have to find the “dev/block…” with sdcard at the end, It’s not coming up. Any suggestions?

  18. Hey guys it’s maybe just me but you don’t have to follow these instructions just go to the market and download Rom Manager and let it flash that recovery for you I did these steps before successfully but rom manager is wayyyyyy easier.

  19. Okay .. when ever i type “su” Nothing Pops-up on my phone screen though i have the super user thing … also whenever i try to open super user it always get halted and pops-up the force close window! … what should i do :'(

  20. i am having a serious promblem flash image is saying permission denied and i already have super user permission plz help

  21. 5 button’s on my g1 not working the send call ,the home, menu and the back also the trackball  can some one help me it’s heard to use the phone with out this buttons

  22. 5 button’s on my g1 not working the send call ,the home, menu and the
    back also the trackball  can some one help me it’s heard to use the
    phone with out this buttons  plz plz

    1. Do you have superuser installed on your phone? Ive had the same problem. Go to the market and download superuser then try again

  23. HELLOW !! it works fine until last command line where comes an error:

    flash_image : permission denied 

    i allready allowed in SuperUser and “remeber” option selected.

    Phone: T-mobile G1 , android 1.6 

    i tryied the ROMmanager way but after i press Flash Clockworkmod , it flashed, show me what version is and when i select from ROMmanager “Reboot into Recovery” it goes in Android System Recovery ( classic recovery mode )

    UNLOCKR !!! PLEASE HELP ME OUT AT LEAST ONE OF THAT PROBLEMS !!

  24. people, i spent about 8 hours and things did not work out for me, I was using Windows 64 Bit, therefore the day after I tried it on Windows XP 32 bit and bada bim bada booom it worked like a charm in less than 15 minutes. The instructions are perfect. Just follow them, I did not do anything different. 

Leave a Comment

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