Remove All Ads from XDA
Honor 9 Lite

[HOWTO] ClockworkMod Recovery & TWRP - Upgrade/Downgrade (Touch/Non-Touch Recovery)

529 posts
Thanks Meter: 316
By PorchSong, Senior Member on 6th May 2012, 11:25 PM
Post Reply Email Thread

Please be VERY careful when using this method as you can brick your phone. Make sure you triple check the file you downloaded is the right size and placed in the right area, but most importantly that the command lines you type are exactly right. If you are not comfortable using this method, then please do not and go find a flashable version of these recoveries.

I've posted a procedure to format/'flash' your recovery while on your phone in one of the threads on here and was asked by a Forum Mod to make a quickie guide to be placed as a sticky on the dev boards so others might benefit.

Anyway, here is a very quick and easy way to change your ClockworkMod recovery with a couple of command lines.

The TWRP link is in the second post.

Now for the ClockworkMod Instructions:

1. First, go here and look up your ClockworkMod recovery that pertains to your phone:
2. Download the .img file for your phone and save it on your computer.
3. Rename the .img file to recovery.img and save it to your internal sd card of your phone. For example: recovery-clockwork- ------> recovery.img
4. Open up Terminal Emulator on your phone and type the following 2 commands:

dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p22

(please note the second command is a one line command with spaces between "dd & if=" and ".img & of=")

If your Rom identifies your internal sdcard as /emmc instead of /sdcard, then make the adjustment to command line (dd if=/emmc/recovery.img) instead of what is posted above.

That simple.

You can also issue these commands from adb shell if you are connected to your computer.

If Terminal Emulator does not have Superuser or SuperSU permissions for root privileges then make sure it does. You can also go from NON Touch CWM to Touch CWM using this and vice versa. Simply make sure you have the right recovery for your phone and rename it to recovery.img.

As for explanations:

dd if= command is a common Unix program whose primary purpose is the low-level copying and conversion of raw data.

dd stands for "data description"
if stands for "input file"
of stands for "output file"

the = is the location of the data you are using. ie. /sdcard/recovery.img

the /dev/block/mmcblk0p22 is the location/partition of the recovery on your phone.

So essentially you are doing a low level rewrite of the recovery image on your phone via command lines.

***Also, the best way to remember this command line is to not to. Copy the command line and save it to your own personal contact info in Google under Notes and then you will have it with you wherever you go. You really do not want to mess with getting it wrong. You could brick your phone if you mess things up.

Anyway, I hope this helps. . . . it really is very easy to execute without fault.
The Following 44 Users Say Thank You to PorchSong For This Useful Post: [ View ] Gift PorchSong Ad-Free
6th May 2012, 11:26 PM |#2  
PorchSong's Avatar
OP Senior Member
Flag Denver
Thanks Meter: 316
Works with TWRP too.
This also works with changing to and from TWRP. Download the image (for our phones it's TWRP rename it to recovery.img and follow the above instructions and you are good to go.

Follow this link to get the image file:

***I attached the old TWRP is case you run into problems with the newer versions not restoring backups properly or renaming backups correctly.***
Attached Files
File Type: img openrecovery-twrp- - [Click for QR Code] (6.62 MB, 1996 views)
The Following 5 Users Say Thank You to PorchSong For This Useful Post: [ View ] Gift PorchSong Ad-Free
6th May 2012, 11:48 PM |#3  
noellenchris's Avatar
Inactive Recognized Developer / Retired Moderator
Flag Marlton, NJ
Thanks Meter: 889
Excellent Thread, I hope Dev's requiring specific CWM versions can link to your post.

Thanks for your efforts.

7th May 2012, 12:50 AM |#4  
SiNJiN76's Avatar
Senior Member
Thanks Meter: 600
Thanks for the instructions! Thanks even more for explaining the command lines.
The Following User Says Thank You to SiNJiN76 For This Useful Post: [ View ] Gift SiNJiN76 Ad-Free
7th May 2012, 07:22 AM |#5  
BIGWORM's Avatar
Forum Moderator
Flag Tulare
Thanks Meter: 667
Just thought I'd point out a small bug with the Touch Recovery. If you flash one of the newer ICS roms like Darkside Evolution through the Touch Recovery, once booted, the ROM WILL NOT SLEEP through time out. I've confirmed this with 2 separate ICS roms. Flashing non-touch recovery through Rom Manager fixes this problem.
9th May 2012, 06:20 PM |#6  
ddgarcia05's Avatar
Senior Member
Flag Edinburg / Mcallen, Texas
Thanks Meter: 129
Wouldn't it be easier to use gscript and run the commands as you need them?

Thanks for the HOW TO I actually was looking for it.
10th May 2012, 02:19 AM |#7  
Thanks Meter: 6
What is wrong with ROM Manager? I use it to go between Touch and normal all the time and it works flawlessly.
10th May 2012, 03:24 AM |#8  
PorchSong's Avatar
OP Senior Member
Flag Denver
Thanks Meter: 316
Originally Posted by dextroamphetamine

What is wrong with ROM Manager? I use it to go between Touch and normal all the time and it works flawlessly.

For some people Rom Manager doesn't work. On the T-Mobile SGH-T989 Galaxy SII, Rom Manager will only allow you to go to not And, I think you have to upgrade Rom Manager to go to Touch. I bought Rom Manager, and don't use Touch Recovery, so I am not sure.

I like to use the command structure verses program because I know it works, it's fast, and I can see the results if an error occurs.
13th May 2012, 03:59 AM |#9  
SiNJiN76's Avatar
Senior Member
Thanks Meter: 600
Oh yeah...this was really simple...Thanks...went from Touch back to Non Touch.
13th May 2012, 08:44 PM |#10  
ajster1989's Avatar
Senior Member
Flag NYC
Thanks Meter: 386
Donate to Me
Give this a try
If you want a simple way to flash the Touch Recovery then give this a try. I will be adding the Hard Recovery as well in the next release.

SGSII T989 Root Toolkit
The Following User Says Thank You to ajster1989 For This Useful Post: [ View ] Gift ajster1989 Ad-Free
17th May 2012, 07:48 AM |#11  
starskyrob's Avatar
Retired Recognized Developer
Flag Gloversville, NY
Thanks Meter: 1,485
Donate to Me
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes