Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,743,029 Members 43,812 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
PorchSong
Old
(Last edited by PorchSong; 3rd November 2012 at 05:56 PM.)
#1  
PorchSong's Avatar
Senior Member - OP
Thanks Meter 230
Posts: 407
Join Date: Nov 2007
Location: Denver
Default [HOWTO] ClockworkMod Recovery & TWRP - Upgrade/Downgrade (Touch/Non-Touch Recovery)

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.
Phone - T-Mobile Galaxy S II SGH-T989
Rom - CM 10.1
Launcher - Nova Prime
Kernel - 3.0.66
Modem - T989UVMC6
Recovery - TWRP 2.5.0.0
SDCARD - Team 16GB Class 10 SDHC
The Following 44 Users Say Thank You to PorchSong For This Useful Post: [ Click to Expand ]
 
PorchSong
Old
(Last edited by PorchSong; 3rd November 2012 at 05:53 PM.)
#2  
PorchSong's Avatar
Senior Member - OP
Thanks Meter 230
Posts: 407
Join Date: Nov 2007
Location: Denver
Default 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, 1721 views)
Phone - T-Mobile Galaxy S II SGH-T989
Rom - CM 10.1
Launcher - Nova Prime
Kernel - 3.0.66
Modem - T989UVMC6
Recovery - TWRP 2.5.0.0
SDCARD - Team 16GB Class 10 SDHC
The Following 5 Users Say Thank You to PorchSong For This Useful Post: [ Click to Expand ]
 
noellenchris
Old
#3  
noellenchris's Avatar
Recognized Developer / Retired Forum Moderator
Thanks Meter 694
Posts: 2,328
Join Date: May 2007
Location: Marlton, NJ
Excellent Thread, I hope Dev's requiring specific CWM versions can link to your post.

Thanks for your efforts.

Noellenchris
XDA Forum MOD


TMOUS Galaxy Note III Rooted Tweaked
Samsung Galaxy Gear 1 Null_23 Soon to have Android Wear Running
TMOUS Galaxy S4 Stock(Son's)
HP TouchPad CM9 Nightlies
-----------------------------------
T-Mobile HTC HD2 (I will keep this one till it dies!)
Cotulla's MAGLDR NAND w/CWM & CM10

[TMOUS Galaxy Note II][TMOUS Galaxy S III][TMOUS Galaxy S II][AT&T Fuze (Rafael)]
[Cingular(Refurb) 8525 (Hermes 100)][Sprint Vogue] [Cingular 8125 Wizard...gone now;(]

XDA Forum Rules

These phone's are addicting! The more tweaks/apps etc. I read about the more I have to cram into my phone! Can my phone overdose???
 
SiNJiN76
Old
#4  
SiNJiN76's Avatar
Senior Member
Thanks Meter 197
Posts: 2,706
Join Date: Sep 2009
Thanks for the instructions! Thanks even more for explaining the command lines.
The Following User Says Thank You to SiNJiN76 For This Useful Post: [ Click to Expand ]
 
tzbigworm
Old
#5  
tzbigworm's Avatar
Senior Member
Thanks Meter 87
Posts: 1,011
Join Date: Sep 2009
Location: Visalia
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.
 
ddgarcia05
Old
#6  
ddgarcia05's Avatar
Senior Member
Thanks Meter 125
Posts: 2,246
Join Date: Mar 2010
Location: Edinburg / Mcallen, Texas
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.
 
dextroamphetamine
Old
#7  
Member
Thanks Meter 6
Posts: 65
Join Date: Jan 2012
What is wrong with ROM Manager? I use it to go between Touch and normal all the time and it works flawlessly.
 
PorchSong
Old
#8  
PorchSong's Avatar
Senior Member - OP
Thanks Meter 230
Posts: 407
Join Date: Nov 2007
Location: Denver
Quote:
Originally Posted by dextroamphetamine View Post
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.
Phone - T-Mobile Galaxy S II SGH-T989
Rom - CM 10.1
Launcher - Nova Prime
Kernel - 3.0.66
Modem - T989UVMC6
Recovery - TWRP 2.5.0.0
SDCARD - Team 16GB Class 10 SDHC
 
SiNJiN76
Old
#9  
SiNJiN76's Avatar
Senior Member
Thanks Meter 197
Posts: 2,706
Join Date: Sep 2009
Oh yeah...this was really simple...Thanks...went from Touch back to Non Touch.
 
ajster1989
Old
(Last edited by ajster1989; 13th May 2012 at 07:48 PM.)
#10  
ajster1989's Avatar
Senior Member
Thanks Meter 368
Posts: 508
Join Date: Feb 2011
Location: NYC

 
DONATE TO ME
Default 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
Ajster1989 - Thanks for hitting "Thanks"

Projects:
Samsung Galaxy S II Toolkit
Samsung Galaxy Note 3 Toolkit (Development started on 1/25/2013, stay tuned)

Phones:

T-Mobile Galaxy Note 3 N900T
Stock Rom - Damn you KNOX!

T-Mobile Galaxy Note II T889
Stock Rom (for now)

T-Mobile Galaxy S II T989 Hercules
Rooted Stock Rom - CWM Touch

T-Mobile Galaxy S Vibrant
Miui-210200

By me a Red Bull...

The Following User Says Thank You to ajster1989 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes