Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP PorchSong

6th May 2012, 11:25 PM   |  #1  
PorchSong's Avatar
OP Senior Member
Flag Denver
Thanks Meter: 237
 
419 posts
Join Date:Joined: Nov 2007
More
IF YOU TRASH YOUR PHONE USING THIS PROCEDURE, THEN IT IS A VERY GOOD INDICATION YOU ARE AN IDIOT AND SHOULD NOT BE FLASHING ANY ROMS NOR PARTICIPATING ON THESE FORUMS. . . . JUST SAYIN'. . . .

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: http://www.clockworkmod.com/rommanager
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-6.0.1.4-hercules.img ------> recovery.img
4. Open up Terminal Emulator on your phone and type the following 2 commands:

su
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.
Last edited by PorchSong; 3rd November 2012 at 06:56 PM.
The Following 44 Users Say Thank You to PorchSong For This Useful Post: [ View ]
6th May 2012, 11:26 PM   |  #2  
PorchSong's Avatar
OP Senior Member
Flag Denver
Thanks Meter: 237
 
419 posts
Join Date:Joined: Nov 2007
More
Works with TWRP too.
This also works with changing to and from TWRP. Download the image (for our phones it's TWRP 2.3.1.1) rename it to recovery.img and follow the above instructions and you are good to go.

Follow this link to get the image file: http://teamw.in/project/twrp2/101

***I attached the old TWRP 2.2.2.0 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-2.2.2.0-hercules.img - [Click for QR Code] (6.62 MB, 1764 views)
Last edited by PorchSong; 3rd November 2012 at 06:53 PM.
The Following 5 Users Say Thank You to PorchSong For This Useful Post: [ View ]
6th May 2012, 11:48 PM   |  #3  
noellenchris's Avatar
Recognized Developer / Retired Forum Moderator
Flag Marlton, NJ
Thanks Meter: 830
 
2,508 posts
Join Date:Joined: May 2007
More
Excellent Thread, I hope Dev's requiring specific CWM versions can link to your post.

Thanks for your efforts.

Noellenchris
XDA Forum MOD
7th May 2012, 12:50 AM   |  #4  
SiNJiN76's Avatar
Senior Member
Thanks Meter: 224
 
2,848 posts
Join Date:Joined: Sep 2009
More
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 ]
7th May 2012, 07:22 AM   |  #5  
tzbigworm's Avatar
Senior Member
Flag Visalia
Thanks Meter: 96
 
1,038 posts
Join Date:Joined: Sep 2009
More
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: 126
 
2,252 posts
Join Date:Joined: Mar 2010
More
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  
Member
Thanks Meter: 6
 
65 posts
Join Date:Joined: Jan 2012
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: 237
 
419 posts
Join Date:Joined: Nov 2007
More
Quote:
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 5.0.2.6 not 5.0.2.7. 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: 224
 
2,848 posts
Join Date:Joined: Sep 2009
More
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: 380
 
513 posts
Join Date:Joined: Feb 2011
Donate to Me
More
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
http://forum.xda-developers.com/show....php?t=1650908
Last edited by ajster1989; 13th May 2012 at 08:48 PM.

The Following User Says Thank You to ajster1989 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes