[Q] HBOOT 1.16 flashing CWM for CM7.1 Help - HTC Incredible S

Hey guys im trying to flash CWM onto my incs, I have already unlocked the bootloader via htcdev site.
Every time i attempt to flash it through fastboot usb it doesnt work
I have downloaded the cwm img file for the incs, but have no idea what the md5 txt under the download link means, do I have to do something with that txt in order to do it correctly?
I have the img file saved into the same folder on my pc along with fastboot.exe, adb.exe adbwinapi.dll and adbwinusbapi.dll
I then open cmd and type in cd c:\android (andoid is the folder name with the files above)
After this I connect my phone via usb to the pc and put it into fastboot usb mode
I then type into cmd the following command fastboot flash recovery recovery.img and it gives me the message error: cannot load recovery image, I renamed the cwm img file to recovery.img
Ive even tried entering this command fastboot flash recovery c:\android\recovery img but it gives me the same error message am I doing this right or am i missing something? ive followed all the steps from this thread even read all comments http://forum.xda-developers.com/showthread.php?t=1122694
any help would be greatly appreciated, Thanks

Never mind I managed to flash CWM and Flash CM7

Related

I need some serious help

well i happened to have some problems with a theme i was using that made the icons appear themed even in cyanogens roms , and i was told that i needed to flash the htc adp image to fix that
the problem comes here i flashed the htc adp image but i forgot to read what cyanogen said that i had to flash his rom before rebooting
so i just found that cyanogen gives us something to follow just in case it happens what happened to me here http://wiki.cyanogenmod.com/index.php/RE-recovery-img
i went to ''if you currently have an engineering or a Hard SPL'' and followed all the procedures until i got to number 4 where it asks me to Change directory to where you have saved your recovery image..i've tried lots of paths but none seems to work...ADB NOOB HERE so please help
when you didnt follow the process, you lost root.
you have to start from scratch.
.............................................................................
i typed
cd C:\recovery-RA-dream-v1.5.2.img
and it tells me the directory name is invalid what am i doing wrong?
recovery image is not a directory, it'a file. What are you trying to do?
borodin1 said:
recovery image is not a directory, it'a file. What are you trying to do?
Click to expand...
Click to collapse
im trying to flash amon ra recovery via fastboot
Easier to do it from adb
Code:
adb remount
adb shell flash_image recovery C:\recovery-RA-dream-v1.5.2.img
reboot
Just a tip: I usually rename files into something easier to type, like ra152.img. Up to you though.
You can also do it from terminal (place file on the root of sdcard)
Code:
su
flash_image recovery /sdcard/filename.img
reboot
If you must do it via fastboot
Start your phone in fastboot mode (camera/power)
Code:
fastboot flash recovery recovery-RA-dream-v1.5.2.img
fastboot reboot
borodin1 said:
Easier to do it from adb
Code:
adb remount
adb shell flash_image recovery C:\recovery-RA-dream-v1.5.2.img
reboot
Just a tip: I usually rename files into something easier to type, like ra152.img. Up to you though.
You can also do it from terminal (place file on the root of sdcard)
Code:
su
flash_image recovery /sdcard/filename.img
reboot
If you must do it via fastboot
Start your phone in fastboot mode (camera/power)
Code:
fastboot flash recovery recovery-RA-dream-v1.5.2.img
fastboot reboot
Click to expand...
Click to collapse
i would do this..but i cant since i messed up when flashing the htc adp image im following cyanogens tutorial http://wiki.cyanogenmod.com/index.php/RE-recovery-img and it says that i have to flash the new recovery through fastboot , and the part im stuck at is step 4 where he says that i need to Change directory to where you have saved your recovery image
if you can get into the main phone operating system via a boot up then use linda file manager to move them
when i type this
fastboot recovery recovery-RA-dream-v1.5.2.img
i get this message "error: cannot load 'recovery-RA-dream-v1.5.2.img
then i changed the directory to where the recovery image was and when i tried to flash i got this message
'fastboot' is not recognized as an internal or external command, operable program or batch file
Not sure, I'm not anywhere near my computer. Try putting your recovery image into different locations (i always put it on desktop) and rename it to something simpler, without any punctuation or special characters (i suggest rec.img). Also... make absolutely sure that you're NOT naming it rec.img.img . Make sure that your PC is not hiding your extensions.
Then, connect your phone to the computer, start your phone in fastboot mode (not Hboot or serial, if you see serial or Hboot on your screen then tap return button)
In command line type
Code:
fastboot devices
to make sure that you're connected
then type
Code:
cd desktop
your directory should change to something like C:\user\desktop (make SURE there are no spaces anywhere in user name, fastboot has problem with that. I had to rename my account to "EugeneAndLiz"a from "Eugene and Liza" because of that)
then type
Code:
fastboot recovery rec.img
fastboot reboot
and let us know how did it go for you. I'l be lurking around here for a while, hopefully we can resolve this.
Good luck
borodin1 said:
Not sure, I'm not anywhere near my computer. Try putting your recovery image into different locations (i always put it on desktop) and rename it to something simpler, without any punctuation or special characters (i suggest rec.img). Also... make absolutely sure that you're NOT naming it rec.img.img . Make sure that your PC is not hiding your extensions.
Then, connect your phone to the computer, start your phone in fastboot mode (not Hboot or serial, if you see serial or Hboot on your screen then tap return button)
In command line type
Code:
fastboot devices
to make sure that you're connected
then type
Code:
cd desktop
your directory should change to something like C:\user\desktop (make SURE there are no spaces anywhere in user name, fastboot has problem with that. I had to rename my account to "EugeneAndLiz"a from "Eugene and Liza" because of that)
then type
Code:
fastboot recovery rec.img
fastboot reboot
and let us know how did it go for you. I'l be lurking around here for a while, hopefully we can resolve this.
Good luck
Click to expand...
Click to collapse
im going to tell you step by step what i do
turn the phone off
hold power and back
i see the androids on skateboards and it says fastboot in red letters
i connect my phone via usb then the name changes to fastboot usb
run the cmd
once there i type where adb is located which is cd C:\android-sdk-windows\tools
then when i type fastboot devices
i see the serial number of my phone
now when i type cd desktop i get this message "the system cannot find the path specified"
and if i ignore that and try to flash
fastboot flash recovery rec.img (yes i did rename the recovery image)
it says that it cant load 'rec.img'
Got it! Put your image file into the "tools' folder and once you see your device in the fastboot just flash it from there
Code:
cmd
cd C:\android-sdk-windows\tools
fastboot devices
fastboot flash recovery rec.img
fastboot reboot
Sorry about all this complication... the main idea is that your recovery needs to be in the same directory as you're when you're flashing. So if earlier you went to tools folder then your file needs to be there as well.
Try it out.
it worked...it said sending 'recovery' <4456 KB>... okay
writting 'recovery'...okay
fastboot reboot
then when i go to the system recovery..its the same htc adp one
i tried to flash amon ra's recovery and cyanogens
oh nevermind..instead of rebooting the phone i just unpluged the device and wnet directly into the system recovery and YES i have cyanogens recovery thank you so much borodin1
hmmmm that's weird because you got confirmation....
1. Did you download right recovery? You had to becaue you tried 2 of them and you can only make the same mistake once lol
2. AmonRA's recovery has the same image in the background as HTCs, are you sure that it's still HTC's recovery?
Other then that... I'm clueless
Can you get su in the adb shell? Try flashing it from adb....
You got me stomped on this.... Anyone else wants to take a shot at this????
i dont know what happened but when i flashed the recovery image on fastboot and then rebooted the phone...then turn off the phone and went to the system recovery and the htc adp recovery appeared...blue letters and the scrolling options..but when i did not reboot the phone after flashing the image and went directly to the system recovery i had the recovery i flashed...then i applyed the updateand everything is good now
weird uh?
will that new recovery stick?... I'm starting to remember something but it's vague... give me few minutes Reboot couple of times into recovery and back for now and see what happens...
it did stick..i just rebooted into recovery and i have the new recovery..haha
Great! Happy modding!

When flashing radio/spl

Through fastboot do you extract the .img file and then place that in your SD card?
Or can you simply flash the .zip file through fastboot?
Extract the .img to your pc.
fastboot flash radio c:\locationof.img
Sorry I don;t understand what you said or maybe I did.
Extract the .img to your pc
Place the .img in your sd card
start up fastboot and flash?
AustinAce said:
Sorry I don;t understand what you said or maybe I did.
Extract the .img to your pc
Place the .img in your sd card
start up fastboot and flash?
Click to expand...
Click to collapse
after you placed .img to your pc, you dont need to place it again on your sdcard!!
fastboot your mobile and connect it via USB
do you remember what you did when you installed recovery??
fastboot flash recovery recovery-RA.img
you should do the same, but with radio!!
fastboot flash radio c:\location_of_radio.img
Extract it to a folder on your pc, such as your desktop, then use the command to flash the radio
fastboot flash radio C:\Users\NAME\Desktop\radio.img
Obviously, you replace NAME with your username for your computer, and you do a similar code to flash the spl.
assuming your not on vista you can simply type fastboot flash radio, then physically drag the radio file onto the cmd line and it will input the file location....
Apparently I have to download some SDK files in order to fastboot over USB. So this was entirely no help unless someone wants to take me step by step on THEE ENTIRE PROCESS then be my guest.
or your could do your own work and read the FASTBOOT for dummies thread....
literally 3 lines up from this thread

About your Boot Img errors!

Hi, I have heard a few of you have been getting error when Flashing a boot img recovery and fastboot.
Today I noticed the same thing to my device. I fixed it....
Here's how
1. Download This KDZ
Clockwork Recovery Rom.kdz
2. Download KDZ_UPD_En
From Here: KDZ_upd_fw_en
3. Extract the KDZ zip you downloaded and run KDZ_Updater.exe
4. In the dropdown menu's select 3GQPT and If your phone is running select DIAG
5. Open the clockwork recovery rom.kdz hit the open button and find it in your file directories.
6. Then Select Update now.
[TIPS] - If you are using a PC use the back ports of the PC
- If the update fails restart your PC and do steps 4 and 5 again.
- If your update doesn't finish and your phone doesn't work, keep trying again
Wait for it to finish
After it has finished.
1. Your phone may not boot if you came from a custom rom. Reboot into fastboot and type Command in CMD: (Make Sure you have fastboot and fastboot drivers installed) (My fastboot is in C:\Android
cd C:\Android
fastboot -w (wipe all data)
2. Download CWM recovery img from here
3. Rename the img to recovery.img that you just downloaded
4. Copy that to where your fastboot is setup. eg mine is in C:\android
5. Type commands: fastboot flash recovery recovery.img
6. Then type Fastboot reboot
Now reflash you rom and you should have no errors
airbus360 said:
Hi, I have heard a few of you have been getting error when Flashing a boot img recovery and fastboot.
Today I noticed the same thing to my device. I fixed it....
Here's how
1. Download This KDZ
Clockwork Recovery Rom.kdz
2. Download KDZ_UPD_En
From Here: KDZ_upd_fw_en
3. Extract the KDZ zip you downloaded and run KDZ_Updater.exe
4. In the dropdown menu's select 3GQPT and If your phone is running select DIAG
5. Open the clockwork recovery rom.kdz hit the open button and find it in your file directories.
6. Then Select Update now.
[TIPS] - If you are using a PC use the back ports of the PC
- If the update fails restart your PC and do steps 4 and 5 again.
- If your update doesn't finish and your phone doesn't work, keep trying again
Wait for it to finish
After it has finished.
1. Your phone may not boot if you came from a custom rom. Reboot into fastboot and type Command in CMD: (Make Sure you have fastboot and fastboot drivers installed) (My fastboot is in C:\Android
cd C:\Android
fastboot -w (wipe all data)
2. Download CWM recovery img from here
3. Rename the img to recovery.img that you just downloaded
4. Copy that to where your fastboot is setup. eg mine is in C:\android
5. Type commands: fastboot flash recovery recovery.img
6. Then type Fastboot reboot
Now reflash you rom and you should have no errors
Click to expand...
Click to collapse
You are the best!!!
Gonna try it out!!
I got a problem!!
Everytime i type fastbot (something)
it says fastboot is not a command!!
Any help???
I didn't try it now cause i am in the middle of
doing the battery tweak!!!
But before thats what it said!!
I typed fastboot -w
and it said it is not a command!!!
androidboss7 said:
You are the best!!!
Gonna try it out!!
I got a problem!!
Everytime i type fastbot (something)
it says fastboot is not a command!!
Any help???
I didn't try it now cause i am in the middle of
doing the battery tweak!!!
But before thats what it said!!
I typed fastboot -w
and it said it is not a command!!!
Click to expand...
Click to collapse
Have u got adb installed? if not go to android developers com and download it. Then change you directory to where u installed adb, example, put it in your c drive and type cd C:\android-sdk\sdk\tools >Enter>
then do the commands
airbus360 said:
Have u got adb installed? if not go to android developers com and download it. Then change you directory to where u installed adb, example, put it in your c drive and type cd C:\android-sdk\sdk\tools >Enter>
then do the commands
Click to expand...
Click to collapse
Thanks and I so have fastboot installed but maybe not sdk!!
Edit: i did your steps from 1-6 and now my phone is stuck on the android boot logo!!!!
Is this2.1 stock?? Also there is no mode called 3 GQPT!!
I followed all the instrutions and now my phone is stuck on the android logo!!!
Please help!!! (Its been quite a while)
Edit2: Sorry my fault i didn't do fastboot -w!!
It would be good if you wrote that on your post!!!
And i am thinking of staying on stock 2.1 !!!

[Q] Error when trying to go back to stock via fastboot method

So i kind of got a situation here , i originally wanted to be rooted and have my nexus 6 non encrypted so i had unlocked and rooted my phone. After i ran the "./fastboot erase userdata" command i flashed the custom recovery again and booted into it. From there i thought i would be able to "./adb sideload" a stock custom rom non encrypted but for some reason i was having difficulty running that command. My laptop was not seeing the phone, so after about 30 min of playing around with it trying to get it to work i figured id just start over fresh. From this point i dont have an OS installed so i knew i would have to download the appropriate files for the nexus 6 so i did. I tried both methods, the "./flash-all.sh" command and flashing everything one by one rebooting the bootloader in between flashes and still kept getting this same error
fastboot(1561,0xa04aa1d4) malloc: *** mach_vm_map(size=1681293312) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
failed to allocate 1679613116 bytes
error: update package missing system.img
and now im stuck in fastboot mode at least, but cannot revert back to stock unless im missing something here. Can someone help please
AnthonyAldrete said:
So i kind of got a situation here , i originally wanted to be rooted and have my nexus 6 non encrypted so i had unlocked and rooted my phone. After i ran the "./fastboot erase userdata" command i flashed the custom recovery again and booted into it. From there i thought i would be able to "./adb sideload" a stock custom rom non encrypted but for some reason i was having difficulty running that command. My laptop was not seeing the phone, so after about 30 min of playing around with it trying to get it to work i figured id just start over fresh. From this point i dont have an OS installed so i knew i would have to download the appropriate files for the nexus 6 so i did. I tried both methods, the "./flash-all.sh" command and flashing everything one by one rebooting the bootloader in between flashes and still kept getting this same error
fastboot(1561,0xa04aa1d4) malloc: *** mach_vm_map(size=1681293312) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
failed to allocate 1679613116 bytes
error: update package missing system.img
and now im stuck in fastboot mode at least, but cannot revert back to stock unless im missing something here. Can someone help please
Click to expand...
Click to collapse
it looks like the script is looking for a file that is not in the proper directory
the flash all script has never worked for me I have always had to manually flash the images.
looks like you are on a mac since you are using the ./with the command
follow the directions below and you should get back to stock
since you are already in bootloader mode
Download the required factory image files to your computer and extract them
Create an empty directory. All of the files that are required, need to be in one (i.e., the same) directory. It does not matter what it is called, but all the files need to be in there, with NO subfolders. EVERYTHING needs to be extracted into this one directory; (it is easier this way)
Download the version of Android you want to your new directory. Make sure you are using a nexus 6 image.
Extract the files from within the .tgz file which you downloaded in step 3 using 7-zip, not WinZip or WinRAR or whatever.
Make sure you have extracted ALL the files (including extracting any files in any archives inside the .tgz file). You should have six (6) files ending with .img in the directory you created in step 1. The other files you extracted from the .tgz are not necessary;
Open a command prompt in the same directory (i.e., make sure you are in the same directory as your files are located). You can hold the shift key when you are in the folder in Windows explorer and right-click in a blank spot and it will open a command prompt. In Ubuntu or MAC just cd to the directory.
Type in the commands into the command prompt
Make sure your computer recognizes your device by typing: fastboot devices
Flash the bootloader: fastboot flash bootloader bootloader-some-description-number.img
Reboot: fastboot reboot-bootloader
Flash the radio: fastboot flash radio radio-some-description-number.img
Reboot: fastboot reboot-bootloader
Flash the system partition: fastboot flash system system.img
Flash the data partition: fastboot flash userdata userdata.img
Flash the kernel/ramdisk: fastboot flash boot boot.img
Flash the recovery partition: fastboot flash recovery recovery.img
Erase the cache partition: fastboot format cache
Reboot: fastboot reboot
Done! The first boot will likely take quite a bit longer than you are used to, as Android builds the cache.
Now you have a fully stock image on your device. The only thing that is different from out-of-the-box condition is that your bootloader is unlocked.
No you can root or decrypt. Search for directions on the forum or the internet.
funny i just did this exact same thing like you instructed and was about to reply to this post saying i resolved it hahah. Thanks anyways though =), i dont understand why i was getting that though because i had every file in the same place
No worries glad you got it working
qnc said:
No worries glad you got it working
Click to expand...
Click to collapse
Also found out that you Dont do the ./fastboot erase userdate command because it puts 0s in and leaves the phone unbootable which was my root cause for my phone being stuck. Instead, after flashing the boot.IMG you do the ./fastboot partition userdata instead and it will do a factory reset and when booting it will not encrypt the phone.
qnc said:
it looks like the script is looking for a file that is not in the proper directory
the flash all script has never worked for me I have always had to manually flash the images.
looks like you are on a mac since you are using the ./with the command
follow the directions below and you should get back to stock
since you are already in bootloader mode
Download the required factory image files to your computer and extract them
Create an empty directory. All of the files that are required, need to be in one (i.e., the same) directory. It does not matter what it is called, but all the files need to be in there, with NO subfolders. EVERYTHING needs to be extracted into this one directory; (it is easier this way)
Download the version of Android you want to your new directory. Make sure you are using a nexus 6 image.
Extract the files from within the .tgz file which you downloaded in step 3 using 7-zip, not WinZip or WinRAR or whatever.
Make sure you have extracted ALL the files (including extracting any files in any archives inside the .tgz file). You should have six (6) files ending with .img in the directory you created in step 1. The other files you extracted from the .tgz are not necessary;
Open a command prompt in the same directory (i.e., make sure you are in the same directory as your files are located). You can hold the shift key when you are in the folder in Windows explorer and right-click in a blank spot and it will open a command prompt. In Ubuntu or MAC just cd to the directory.
Type in the commands into the command prompt
Make sure your computer recognizes your device by typing: fastboot devices
Flash the bootloader: fastboot flash bootloader bootloader-some-description-number.img
Reboot: fastboot reboot-bootloader
Flash the radio: fastboot flash radio radio-some-description-number.img
Reboot: fastboot reboot-bootloader
Flash the system partition: fastboot flash system system.img
Flash the data partition: fastboot flash userdata userdata.img
Flash the kernel/ramdisk: fastboot flash boot boot.img
Flash the recovery partition: fastboot flash recovery recovery.img
Erase the cache partition: fastboot format cache
Reboot: fastboot reboot
Done! The first boot will likely take quite a bit longer than you are used to, as Android builds the cache.
Now you have a fully stock image on your device. The only thing that is different from out-of-the-box condition is that your bootloader is unlocked.
No you can root or decrypt. Search for directions on the forum or the internet.
Click to expand...
Click to collapse
And I was having the same issues executing the flash all command too until I opened the command in a text editor and for every command put the "./" in front and was able to execute it but this is the first time I've gotten an error. My nexus5 worked with this command no problem
worked for me but still could not decrypt
qnc said:
it looks like the script is looking for a file that is not in the proper directory
the flash all script has never worked for me I have always had to manually flash the images.
looks like you are on a mac since you are using the ./with the command
follow the directions below and you should get back to stock
since you are already in bootloader mode
Download the required factory image files to your computer and extract them
Create an empty directory. All of the files that are required, need to be in one (i.e., the same) directory. It does not matter what it is called, but all the files need to be in there, with NO subfolders. EVERYTHING needs to be extracted into this one directory; (it is easier this way)
Download the version of Android you want to your new directory. Make sure you are using a nexus 6 image.
Extract the files from within the .tgz file which you downloaded in step 3 using 7-zip, not WinZip or WinRAR or whatever.
Make sure you have extracted ALL the files (including extracting any files in any archives inside the .tgz file). You should have six (6) files ending with .img in the directory you created in step 1. The other files you extracted from the .tgz are not necessary;
Open a command prompt in the same directory (i.e., make sure you are in the same directory as your files are located). You can hold the shift key when you are in the folder in Windows explorer and right-click in a blank spot and it will open a command prompt. In Ubuntu or MAC just cd to the directory.
Type in the commands into the command prompt
Make sure your computer recognizes your device by typing: fastboot devices
Flash the bootloader: fastboot flash bootloader bootloader-some-description-number.img
Reboot: fastboot reboot-bootloader
Flash the radio: fastboot flash radio radio-some-description-number.img
Reboot: fastboot reboot-bootloader
Flash the system partition: fastboot flash system system.img
Flash the data partition: fastboot flash userdata userdata.img
Flash the kernel/ramdisk: fastboot flash boot boot.img
Flash the recovery partition: fastboot flash recovery recovery.img
Erase the cache partition: fastboot format cache
Reboot: fastboot reboot
Done! The first boot will likely take quite a bit longer than you are used to, as Android builds the cache.
Now you have a fully stock image on your device. The only thing that is different from out-of-the-box condition is that your bootloader is unlocked.
No you can root or decrypt. Search for directions on the forum or the internet.
Click to expand...
Click to collapse
so all of this worked for me and its back up and running, but my phone still says that its encrypted

problem to install twrp one my m7

hello everyone
i have tried to install the twrp on my m7 but when i use the command ""fastboot flash recovery name.img"
it says
fastboot flash recovery twrp.img
error: cannot load 'twrp.img'
i also have some problem when i use other command like "adb reboot bootloader"
adb server is out of date. killing...
ADB server didn't ACK
* failed to start daemon *
error:
can someone help me pleas ?
1. download latest adb/fastboot drivers/apps/whatchamacallits.
2. are you in the correct path of where the .img file is?
3. Has your phone been prepped to accept a custom recovery?
93zx7 said:
1. download latest adb/fastboot drivers/apps/whatchamacallits.
2. are you in the correct path of where the .img file is?
3. Has your phone been prepped to accept a custom recovery?
Click to expand...
Click to collapse
1 i cant find it I looked in a lot of forum
I have downloaded and installed the adb setup 1.4.3 I thought it was the latest version
2 I open the cmd in the folder where is my img
Should I put this folder somewhere speciale ?
I have watched a lot of tutorial on YouTube and no one's was telling me to put it in a special place
3 yes my phone is debugged and the bootloader is unlocked and I have a good cable
ADB Drivers: https://adb.clockworkmod.com/
No special location needed. Try redownloading the img file and reflashing after installing the adb drivers from CWM website

Categories

Resources