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.





Recovery Img Links ARE BROKEN!!!!!!!!!!!
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
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
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
Just curious, what is good about flashing the G1? What benefits do you get? Thanks!
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?
i have the sam problem with my g1
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
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.
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.
Says flash image permission denies. How do I validate permissions to do stuff with the flash image?
Search our site for how to flash a recovery image and there should be another procedure. Try that one and let us know what happens.
Search the site for flash a recovery and there should be another procedure. Try the other one and let us know what happens.
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?
Use our How To Root the G1 procedure instead of the Super One Click or Universal procedure.
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!!!!
Use our How To Root the G1 procedure instead of the Super One Click or Universal procedure.
I type the last line and i get ./flash_image: permission denied Im so close please help
I have the same problem!!
I have the same problem!!
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!
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
When i get to number 6, it says sdcard: not found
help!
i keep getting segmentation fault after typing in “su”. What does this mean, and how can i fix it? thanks
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?
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
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?
Means you didn’t do it right. Start over. Make sure you type everything in exactly.
Means you didn’t do it right. Start over. Make sure you type everything in exactly.
I want to know if a custom flash recovery image nessesary in order to load custom roms on my rooted G1? Thanks in Advance.
Do the How To Root Procedure, then the How To Load a Custom ROM procedure and just follow the steps one by one and you’ll be fine š
After I hit mount and put the next line in it says permission denied….. Whyu is that?
Did you root the phone? Try to reroot it.
when i type su after typing adb shell and hitting enter i get su not found
when i type su after typing adb shell and hitting enter i get su not found
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?
Same ?? Any help
I am getting the same as Mr Scott
I am getting the same as Mr Scott
same here
keep trying, make sure your file is (recovery.img)
keep trying soon or later it should take
also try remounting sd card
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.Ā
I am getting the same as Mr Scott
I am getting the same as Mr Scott
Same ?? Any help
When I do the mount -o remount step nothing happens, it just types the command again and nothing happens.
When I do the mount -o remount step nothing happens, it just types the command again and nothing happens.
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?
Nothing is supposed to happen… it should just give you a new line and then you continue.
No, continue with the procedure.
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.
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.
sorry im new at this, I cant unzip recovery image? would it work if i left it as a zip file???
Download winzip or winrar to unzip it.
Download winzip or winrar to unzip it.
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?
You need to turn it off and then turn it on holding down home and power.
You need to turn it off and then turn it on holding down home and power.
i did that and it still wouldnt go to the loader. idk what i did wrong?
I get after the mount :operation not permitted. what to do?!
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?
so i got to the last step and it says flash image not found how do i get this to work?
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
hi, why when I type “adb push recovery.img /sdcard” in cmd, don`t want to copy the files? cmd says:
“C:AndroidSDKtools>adb push recovery.img /sdcard
1033 KB/s (0 bytes in 4712448.004s)”
Help me please!
After i type
.flash_image recovery /sdcard/recovery.img
i get
.flash_image: Permission denied
After i type
.flash_image recovery /sdcard/recovery.img
i get
.flash_image: Permission denied
i get to the last step and then it says ./flash_image: not found
su said permission denied how i fix it please help
Have the phone screen on in home, when it ask about SuperUser permission, allow it
after sw you can try su than it will work so fine
This may or may not help but I noticed that the phone can’t be in stand by/screen saver mode when entering ‘su’.
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
http://www.youtube.com/watch?v=b3AG-eMcBiI This isnt a spam/trick/troll message, im having a bit of a problem and i dont think i could type it so i recorded it to show u the problem, anyone can watch but i need help!!!
http://www.youtube.com/watch?v=b3AG-eMcBiI This isnt a spam/trick/troll message, im having a bit of a problem and i dont think i could type it so i recorded it to show u the problem, anyone can watch but i need help!!!