Some things you should know about rooting and flashing ClockworkMod recovery - Click General

I had some problems with rooting and flashing ClockworkMod, and when I solved it, sunitknandi asked me if I could post info which some people may find it useful, so here it is.
sunitknandi said:
Things to know while rooting stock ROM:
1. HTC Tattoo is HTC's first NAND locked device preventing users to write to system and recovery under normal conditions.
2. This NAND lock can be defeated by inserting tattoo_hack.ko module. This module was created on taking the help of info from a leaked QualComm datasheet.
3. The module needs to be inserted prior to writing to system or flashing recovery.
4. The manual rooting method and Maveric/NTenisOT 1-click method flashes a custom boot.img after rooting so that the NAND remains unlocked everytime the device is used. On the other hand, Universal Androot unlocks the NAND temporarily while rooting and unrooting. If Androot is used, the device gets permanently rooted, but the NAND locks itself after a reboot, until Androot is used again or tattoo_hack is inserted.
5. Custom 1.6, 2.1, 2.2 roms have tattoo_hack added to their modules list to keep NAND unlocked while device is running. On 2.3, however, the unlock code is compiled into the kernel, so the module is not needed.
6. We deal with this module because no one has developed S-OFF for the Tattoo.
7. Most users forget about this module once their Tattoo is rooted. New users oversee this module and run into problems. The CyanogenMod wiki is misleading in 'How to root Tattoo' because of this.
Click to expand...
Click to collapse
Next post solved my problem. I had 1.6 stock ROM with original recovery, and I just could’t install ClockworkMod recovery via ROM Manager. For rooting I used Universal Androot application (Download link in attachment below).
sunitknandi said:
Go to universal androot. Hit root again. Let it complete.
Then use Root Explorer and mount /system as rw. Or u ca also use Terminal Emulator. Just type these.
su
mount -o remount rw /system
Close terminal.
Go to ROM Manager. Tap Flash ClockWorkMod recovery. First it will take time. Let it successfully flash. Tap again. Let it flash. Tap again. Let it flash.
I am telling you to tap this many times. Because CWM 5.0.2.0 doesnt flash easily. I got so many failed flashes even on CM7. It only gets flashed after a couple of time.
Otherwise, hit menu button on ROM Manager, slect settings and check mark 'Erase recovery before flashing'. Go back and flash recovery twice.
Finally reboot manually. No need to use ROMManager's reboot option. I read that it works rather badly on Android 1.x. Boot with HOME+POWER.
Lemme know.
Btw, the safest method to flash recovery is NTenis's tool. Used it many times without problems because it flashes the boot to disable the write-protection.
Click to expand...
Click to collapse
Thanks again, sunitknandi.

Thanks bro.
Universal Androot users, always remember to re-root and mount ur /system as rw before flashing recovery from ROM Manager if u r using stock ROM. Thats what u need to do in short.
Hope this helps many people, as I know there are guys around who do not like to use a PC to root their Tattoo.

Related

[GUIDE] Root & recovery WITHOUT oem unlock & wipe (2.3.2 & older, plus now 2.3)

[GUIDE] Root & recovery WITHOUT oem unlock & wipe (2.3.2 & older, plus now 2.3)
UPDATE #2 - Fitchman has reported successful root and rom flash without unlocking the bootloader by using Ginger Break. Full details in this post: http://forum.xda-developers.com/showpost.php?p=13236136&postcount=135
UPDATE - IMPORTANT: This method does not work with Android 2.3.3. Search the forum or this post in this thread for a way to update to 2.3.3 and root without unlocking if you haven't updated yet.
Alternatively, use this method on 2.3.2 and lower, then use titanium to back up everything, store it on your laptop (along with all your sdcard's data), then do the oem unlock step first and then continue from there with the rest of the guide.
Not my original idea, but a consolidation of a discussion between inakipaz and shrivelfig and myself in another thread and being posted here for easier finding by future root-seekers.
Shrivelfig's tested the method to re-root a previously rooted pone with a re-locked bootloader, and inakipaz has done it on a phone that's never had the bootloader unlocked.
The advantage here is that those who chose not to root when they first got the phone won't lose any app data or sdcard data like the methods that have you unlock the bootloader do. The disadvantage is your bootloader remains locked, which may prevent you flashing certain things in the future.
edit: see ravidavi's posts below; he's shown you can even flash custom roms that are clockwork compatible while having a locked bootloader with this method.
Download these two files:
clockwork recovery v3.0.0.5 or clockwork recovery v3.0.0.5 mirror if above not working
su-2.3.6.1-ef-signed.zip
Koush's blog for the latest clockwork updates (find Nexus S in the list).
Also, if you don't already have the necessary android sdk and drivers on your computer, get them from here: http://developer.android.com/sdk/index.html and install them. Some Windows users report better luck just installing pdanet. There's a decent guide for Windows users on installing the sdk here.
Place the recovery file on your laptop where you can access it while using the sdk fastboot commands.
Place the su zip one in the top level folder of your sdcard.
Put your phone in fastboot mode (power off, then hold volume up and power key at the same time until the phone boots to a white screen).
Use fastboot to boot the phone into the clockwork recovery:
Code:
fastboot boot recovery-clockwork-3.0.0.5-crespo.img
If you're not sure how to get fastboot working on your computer, follow the excellent instructions that Allgamer gives in this GUIDE, but don't do the oem unlock command!
Once in clockwork, flash the su file to the phone by following these steps below.
To navigate in the clockwork recovery, you use the volume keys to scroll up/down through the menus, and the on/off button to select what's highlighted.
(note: some report success without these first 3 steps, others don't get a succesful root without, I recommend doing them)
select mounts and storage.
select mount /system
select go back
select install ZIP from sdcard
select choose zip from sdcard
select su-version#-signed.zip file you downloaded earlier
select yes - install su-version#-signed.zip
confirm it says "Install from sdcard complete"
select go back
select reboot
After the phone reboots, you should be rooted, with a locked bootloader, and none of your data erased.
That said, never hurts to have a backup of your precious data on the sdcard that you can copy over to the computer.
This method doesn't install busybox, so go to the Market and download/install busybox directly, or get Titanium Backup and check it's "problems?" button and let it install busybox for you. There's also an app called root checker that supposedly verifies you have a working root on your phone.
Once you have a successful root installed, I'd suggest getting back into clockwork recovery and running a nandroid back up from clockwork's backs and restore menu. Then copy that file from your sdcard (in the /clockwork/backups folder) to your laptop for safe-keeping and an easy full system restore to a known working config.
Usual disclaimers about I'm not responsible for damage to your phone or loss of data apply. Use any rooting method at your own risk.
Thanks and all the real credit go to inakipaz, shrivelfig and allgamer, and of course to koush, and ChainsDD for the superuser apk.
Worked perfectly. I used fastboot from my Mac (outlined in the stickied Mac Root thread). Root checker verifies that I have root.
And by the way, my phone and I are both root/ROM cherry. First android phone, first time rooter. Will work up the guts to flash a ROM soon, but of course there's no chance of doing THAT without unlocking the bootloader.
Thanks to all involved in this!
yeah! good work!
Srsly. Awsom.
Someone sticky this....
Question: When you do the fastboot boot command, does that overwrite the stock recovery with Clockwork? Or is it just booting into the recovery img without actually flashing it?
I would think this method also gives you a way to back up before unlocking the bootloader.
1) fastboot boot into Clockwork as described here
2) Full nandroid backup from Clockwork
3) Mount "SD" from Clockwork over USB, copy everything to computer (since it wipes everything)
4) Go back and unlock the bootloader as usual, resulting in a full wipe
5) Flash Clockwork Recovery again through whichever method
6) Mount "SD" from Clockwork over USB, copy the backup back to phone
7) Restore nandroid
And now you've unlocked the bootloader without amnesia =)
ravidavi said:
And by the way, my phone and I are both root/ROM cherry. First android phone, first time rooter. Will work up the guts to flash a ROM soon, but of course there's no chance of doing THAT without unlocking the bootloader.
Thanks to all involved in this!
Click to expand...
Click to collapse
Are you sure you need to unlock the bootloader to flash a ROM? Now that you have root, try installing ROM Manager from the Market, and see if it lets you flash custom recovery with bootloader still locked. If so, then yes you can install a ROM!
Also, the fact that you're able to boot into Clockwork using "fastboot boot" - that also means you can install a ROM .zip file right from there.
cmstlist said:
Question: When you do the fastboot boot command, does that overwrite the stock recovery with Clockwork? Or is it just booting into the recovery img without actually flashing it?
Click to expand...
Click to collapse
"fastboot boot" only launches the recovery no unlock needed. "fastboot flash" flash the recovery
cmstlist said:
Are you sure you need to unlock the bootloader to flash a ROM? Now that you have root, try installing ROM Manager from the Market, and see if it lets you flash custom recovery with bootloader still locked. If so, then yes you can install a ROM!.
Click to expand...
Click to collapse
It worked! Here's the process I used, starting from a completely unmodded Nexus S.
1: Use the method detailed here to gain root access without unlocking the bootloader.
2: Using a root-enabled file explorer (I used Super Manager), rename install-recovery.sh (in /etc) to install-recovery.sh.old . You'll need to remount as r/w to do this. NOTE: You don't *have* to do this step, but if you don't, then you can only use clockwork once after which it will be erased on reboot.
3: Using ROM Manager, install Clockwork Recovery.
4: Pleasure yourself, because your bootloader is still locked and nothing was erased.
I have yet to try actually flashing a custom ROM. Does this mean that it can also be done without unlocking bootloader?
Well damn, whaddaya know. I just flashed MoDaCo r10 without unlocking the bootloader, and without losing any personal data on /sdcard.
I figure someone at XDA should like this.
Pretty much followed distortedloop's advice. Starting from a fully stock Nexus S with Android 2.3.2 (GRH78C):
* Root using the method on this thread.
* Rename install-recovery.su to install-recovery-old.su. (in /bin)
* Install Clockwork Recovery from ROM Manager.
* Download whatever ROM you want (compatible with Clockwork), rename to update.zip, and copy to sdcard.
* Reboot into Clockwork.
* Wipe cache, reset to factory (IF REQUIRED BY NEW ROM). This was my first install of MoDaCo, and that requires it. This step does NOT erase your personal files on sdcard, just all android-related files.
* Install update.zip from Clockwork.
* Continue self-pleasuring ... you now have a custom rom without touching your bootloader or wiping your personal sdcard data.
Maybe it's just because I'm a noob here, but it seems to me that this is a BIG deal. All root/ROM installation methods that I've seen so far have required an unlocked bootloader. This seems to be the first time a Nexus S has been unlocked and custom-ROM'd without unlocking the bootloader and wiping the entire /sdcard.
Ravi
Yeah, it's pretty clear that the unlock the bootloader step isn't necessary for most of what we want to do. Just a habit from earlier devices, perhaps?
What's really odd is now we have to wonder what's the purpose of the oem unlock erasing your sdcard? Speculation was that it was a security feature to keep people from accessing your data if they stole your phone; they couldn't flash something on the phone to get access, but clearly they can. Fastboot into a custom recovery and you own the phone.
Perhaps this is a security hole Google will try to fix some day?
At any rate, I wish we'd discovered this sooner, it would have saved several people some grief in having to lose saved games (Angry Birds!) when they finally decided to root.
distortedloop said:
Yeah, it's pretty clear that the unlock the bootloader step isn't necessary for most of what we want to do. Just a habit from earlier devices, perhaps?
...
At any rate, I wish we'd discovered this sooner, it would have saved several people some grief in having to lose saved games (Angry Birds!) when they finally decided to root.
Click to expand...
Click to collapse
You say "for most of what we want to do." Could you think of a case where you would need to unlock it now? It's now shown to be unnecessary for rooting and installing custom recovery/ROM.
Is there any way to get the word out? This thread isn't stickied, and all the stickied threads on rooting & custom ROMs currently assert that you have to unlock the bootloader.
Ravi
ravidavi said:
You say "for most of what we want to do." Could you think of a case where you would need to unlock it now? It's now shown to be unnecessary for rooting and installing custom recovery/ROM.
Click to expand...
Click to collapse
I'm thinking that something like Superboot might need to have the bootloader unlocked, since it replaces the boot image, right? But I'm not sure.
ravidavi said:
Is there any way to get the word out? This thread isn't stickied, and all the stickied threads on rooting & custom ROMs currently assert that you have to unlock the bootloader.
Ravi
Click to expand...
Click to collapse
There's only a page and a half of posts in the development section right now, so it's not likely to disappear any time soon, but you could ask a mod (theimpaler747 is ours) via PM to sticky it. I thought about asking myself, but seemed a bit tacky to ask for my own thread.
Meanwhile, I'd been linking people to various posts I'd made in other threads suggesting this might work, but once inakipaz and shrivelfig confirmed it, I'm just now pointing people here. I just hope people see this before wiping their phones unnecessarily.
Really, the other guides should just be updated to skip the oem unlock step. That's really the only different thing we're doing here.
i'm just waiting for more people "newbies" to confirm this actually works for them, before making it a sticky
In theory if you really really screw up your phone, you might need fastboot flash in order to recover it. But if fastboot also lets you boot into an img recovery... then you still have a recovery route that doesn't require unlocking.
Sent from my Nexus One using XDA App
I know it's a noob question and all since all you're doing is flashing a custom recovery but will you still be able to get OTA updates after doing this as well?
Sent from my Nexus S using XDA App
qreffie said:
I know it's a noob question and all since all you're doing is flashing a custom recovery but will you still be able to get OTA updates after doing this as well?
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
yes because you still have the original recovery installed
distortedloop said:
Perhaps this is a security hole Google will try to fix some day?
Click to expand...
Click to collapse
This would be my guess.
But how? Is it possible to plug this with just a software update? Time will show, I guess.
This (security hole) should also make it possible to do perfect out-of-the-box OS backups. And restores. The problem is that nobody's going to do a backup without playing with their shiny new toy first.
shrivelfig said:
This would be my guess.
But how? Is it possible to plug this with just a software update? Time will show, I guess.
This (security hole) should also make it possible to do perfect out-of-the-box OS backups. And restores. The problem is that nobody's going to do a backup without playing with their shiny new toy first.
Click to expand...
Click to collapse
I can confirm that the Nexus One does not allow this "fastboot boot" on a locked bootloader. Maybe this was just an oversight?
It is entirely possible to plug this with a software update: Samsung/Google could issue a signed update that includes a bootloader upgrade. This has been done many times by HTC for example.
I can confirm that this method works, without unlocking the BL or erasing the SD part.
This is pretty cool. I wish I new about this before I unlocked the bootloader days after I received my phone. I too wonder if this was intentional or an oversite. Google did want this phone to be for developers, but like other's said, this is also a bit of a security hole. The wiping of the sd card on unlock would protect the person if the phone was stolen, like if there was confidential corporate stuff on there. Even if you password protect your phone, someone could fastboot clockwork, mount the sd card and retrieve all the information that was on there.
cmstlist said:
It is entirely possible to plug this with a software update: Samsung/Google could issue a signed update that includes a bootloader upgrade. This has been done many times by HTC for example.
Click to expand...
Click to collapse
It's also been done by Samsung with some versions of the Galaxy S line (some of the "leaked" roms, and even one official kies push (IIRC) changed the bootloader, causing people the ability to use 3 button mode for Odin access, and causing others to lose it.

[GUIDE] Install ClockworkMod Recovery image after updated to 2.3.4 (GRJ22).

Not applicable
Delete this thread
Hello, thanks for the post.
I got a brand new Nexus S, I got a update direct from Google so I just flash it to GRJ22 :-(. I follow your guide (I have to do the step 1/2 in the other post you refer). Now I got clockwork done. But everytime I restart my phone, I always boot into clockwork. I try to 'mount sdcard' and reboot, but still boot into clockwork. How can I boot into the stock ROM?
many thanks!!
Too complicated.
Just:
1. turn on phone by holding volume up + power to go to bootloader
2. fastboot oem unlock (confirm it on the phone)
3. fastboot flash recovery recoveryfilename.img
4. Select recovery on the phone.
5. You're in ClockworkMod. Go flash a new ROM.
Let me answer myself.
I don't think the latest rom 2.3.4 is compatible with the clockwork you supplied. So I have to flash my phone back to GRH78. I downloaded the stock ROM from the internet. and then push all the images file into /sdcard/clockworkmod/backup/2010.xxx.
Next, I restore the image in clockwork menu.
after restore, reboot the phone, now I am back in business.
When the phone is boot, i lost the root again, so i went to modaco.com and get Paul's package. run it, restart, I got the root.
Finally, go to market place and get ROM Manager, install the clockwordmod. and I have a 'proper' phone.
although I don't have the least rom, at least i got a working phone that is rooted.
bante said:
Hello, thanks for the post.
I got a brand new Nexus S, I got a update direct from Google so I just flash it to GRJ22 :-(. I follow your guide (I have to do the step 1/2 in the other post you refer). Now I got clockwork done. But everytime I restart my phone, I always boot into clockwork. I try to 'mount sdcard' and reboot, but still boot into clockwork. How can I boot into the stock ROM?
many thanks!!
Click to expand...
Click to collapse
I have the same problem. How did you handle it?
Wow, why risk messing up your phone with flashing a boot.img when you can just rename /etc/install-recovery.sh to something like /etc/install-recovery.bak?
Here's one way to rename (courtesy of Matridom). Another is to use Root Explorer.
Matridom said:
The new update applies the install-recovery.sh script into our phones (not there previously.
Boot into the bootloader
flash CWM
select recovery from the bootloader (DO NOT reboot the phone)
apply the su binary
boot into the OS and test root
make sure busybox is properly installed
run ADB shell
then:
Code:
su
mount -o remount,rw /dev/block/mtdblock3 /system
mv /system/etc/install-recovery.sh /system/etc/install-recovery.bak
Boot back into the bootloader and re-flash CWM, should stay permanent now.l had applied the SU binary at the same time as the OTA update, then renamed the installer script and flashed back CWM.
Click to expand...
Click to collapse
andnaz said:
I have the same problem. How did you handle it?
Click to expand...
Click to collapse
same here someone please help ?
This is a totally unorthodox way to make the custom recovery permanent. If your phone is messed up, good luck fixing it.
There is a much easier and safer way like I mentioned.
PS: flashing recovery for 2.3.4 is the exact same as for 2.3.3!
fastboot flash recovery <recovery .img>
Sent from my Nexus S using XDA App
bante said:
Hello, thanks for the post.
I got a brand new Nexus S, I got a update direct from Google so I just flash it to GRJ22 :-(. I follow your guide (I have to do the step 1/2 in the other post you refer). Now I got clockwork done. But everytime I restart my phone, I always boot into clockwork. I try to 'mount sdcard' and reboot, but still boot into clockwork. How can I boot into the stock ROM?
many thanks!!
Click to expand...
Click to collapse
Hi Bante, I am sorry for the inconvenience. I have revert back the CWM Recovery to 3.0.2.4. You can download it at the link above, and try it again
I hope that the problem you mention wont persist anymore
zero383 said:
This is a totally unorthodox way to make the custom recovery permanent. If your phone is messed up, good luck fixing it.
There is a much easier and safer way like I mentioned.
PS: flashing recovery for 2.3.4 is the exact same as for 2.3.3!
fastboot flash recovery <recovery .img>
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
I am sorry but not all people can successfully use Command Prompt to do so.
I cant use command prompt, as it says "Image cant be loaded".
So I had to use this method.
I search around the forum and seen this as a quite common problem,
so I decided to share it
Hope you understand.
Anyway, thanks for your method too Cheers
andnaz said:
I have the same problem. How did you handle it?
Click to expand...
Click to collapse
The CWM Recovery I supplied is version 3.0.2.5,
which is not compatible.
So I replaced with version 3.0.2.4.
You just download it at the link above and follow all the step again.
You should able to solve this problem
Do notify me if any problem persist
16vMK1 said:
same here someone please help ?
Click to expand...
Click to collapse
The CWM Recovery I supplied is version 3.0.2.5,
which is not compatible.
So I replaced with version 3.0.2.4.
You just download it at the link above and follow all the step again.
You should able to solve this problem
Do notify me if any problem persist
Wow people like to make things complicated. Why install an entire rom to get ride of a script?
if you can flash cwm, you should have some basic understanding of fastboot, adb and the search options in the forums. the answers are all there already.
Sent from my Nexus S
No disrespect, I agree flashing recoverys should only be done after you understand how to use the tools to do it. there is no reason someone who is going to mod systems on their nexus shouldn't be able to use fastboot and adb properly. all the right drivers are in the sdk.
Sent from my Nexus S 4G using Tapatalk
nxt said:
Too complicated.
Just:
1. turn on phone by holding volume up + power to go to bootloader
2. fastboot oem unlock (confirm it on the phone)
3. fastboot flash recovery recoveryfilename.img
4. Select recovery on the phone.
5. You're in ClockworkMod. Go flash a new ROM.
Click to expand...
Click to collapse
This is what I did.
I rooted my NS, which had 2.3.3
Used phone with stock 2.3.3 until I figured out which ROM I want to flash.
Before I flashed any ROM, did a Nandroid Backup through CWM.
Used the ROM for a few days, but when I saw that official update is ready for download for i9020A, did do a restore from the Nandroid backup I created.
Updated from 2.3.3 to 2.3.4, phone works fantastic, video chat also works great.
After update when I tried using any of the apps required SU permission, they didn't work. I tried installing a couple of .apk files, couldn't either install it or after installation it didn't work.
Thought let me try wiping my phone clean and start all over again, may be I will use a custom ROM again, downloaded ROM, went to ROM Manager to reboot into recovery, nothing happens.
Tried booting into Recovery option manually by pressing Volume Up and Power button, nothing happens but the Bot with an Arrow appears on screen.
So, I thought I will follow this procedure to reflash CWM to my phone and get it going. I was able to use the command FastBoot once, and suceeded pushing .img file to my phone but now whenever I try using the commands from my computer, this error message appears : "This application has failed to start becasue AdbWinApi.dll was not found. Re-installing the application may fix this problem."
Why this error message if I have the sdk on my computer already through which I was once able to push .img file without any troubles?
Can anyone tell me what would be a possible solution?
Also, how can I fix this problem and get ClockWorkMod Recovery installed on my NS again?
How can I get stock recovery image on my phone if I want start all over again from scratch?
Thx a million.
Edit ::: I found the answer as to how to how to install CWM again. Thx anyways.
Other question still remains a puzzle... why am I not able to install certain programs or if did manage to install, can't run them?
I ran your method and I think I'm stuck at some step...
My phone now default boots into CWM 3.0.2.4
Recovery boots to a newer recovery I flashed.
How do I get my phone to default boot into the OS again?
Edit: nevermind, just downloaded the full 2.3.4 rom, extracted and flashed the original boot.img.
dreamsforgotten said:
All the right drivers are in the sdk.
Click to expand...
Click to collapse
After installing the sdk and a platform, I have adb, but where is fastboot?
I was getting the same error as "Image cant be loaded". after hours of struggling I found that It's only because I was not in the same directory as the img file. silly eh?
hi,did you repaiar your phone,i have try everything but it just keep going in clockwork mode,if i than pres reboot now in clockworkmode it stays on google padlock
i realy need phone if you can help or someone else,than ....
just tried this method of window7 (thanks for the work) with cwm 3.0.2.4, but got the same result like the others in this thread: cant boot the android 2.3.4, the system is always booting into the cwm, no way out.
I don't think this tool works as it should.
:-(
EDIT:
I didn't realize that window7's tool would install the cwm into the boot-partition instead of the recovery-partition.
To get my boot partition back I downloaded the 2.3.4 firmware image from http://forum.xda-developers.com/showthread.php?t=1056062 and extracted the boot.img from the zip.
with "fastboot flash boot boot.img" I restored my orginal boot partition an can boot into android again.
(fastboot is part of the android sdk)

Root Obtained **EASY!**: T-Mobile G2 2.3.4 official OTA manual update

For those of you wondering why the S-OFF feature was worth your extra time to update, this is a prime example of why S-OFF kicks royal behind.
So here is the situation I was having. Friday morning, T-Mo showed me some love and sent me the Gingerbread update. I didn't have my morning coffee so I wasn't thinking strait and authorized the update. I forgot that it would probably interfere with good ol' ClockworkMod Recovery. Sure enough, it did. So, after the OTA failed due to the recovery, I haven't been able to get T-Mo to show me some OTA love again.
However, I had previously invoked the S-OFF feature when it was discovered how to.
After following the guide at http://forum.xda-developers.com/showthread.php?t=1202060 I found myself with a G2 using stock recovery and bone stock Gingerbread (S-OFF still invoked).
After some thought, I decided to do the following:
Flash ClockworkMod via the bootloader screen, and flash SU via the ClockworkMod screen.
Note: You can only do this if you have S-OFF! And since my guide writing skills are not so pristine, I'm assuming you have some sort of working adb/bootloader/recovery knowledge.
Save the attached files (PC10IMG.zip & su.zip) to your sdcard. Reboot into the bootloader either by using the adb command adb reboot bootloader or by powering off, and then holding Vol-Down+Power.
The bootloader will scan for PC10IMG.zip and then ask you if you want to flash the recovery. Yes! You do!
After this, reboot the phone. Reboot into recovery by using the adb command adb reboot recovery, or booting back into the bootloader and navigating to the Recovery console (if you didn't delete the PC10IMG.zip, bootloader will scan it, but don't let it update again, this is redundant).
Once you are in ClockworkMod, navigate to "install zip from sdcard", then to "choose zip from zip card". Select the su.zip file from the list, and authorize the recovery console to flash the zip. Reboot the phone.
Now, you will see the coveted SuperUser app in your drawer. I figured this was wayyyy to easy to have worked, so I tested some root dependent apps, they work flawlessly. I also used the adb command adb shell followed by su once in the shell. SuperUser requested my permission and after granting it, I am able to remove the bloatware that was replaced during the downgrade, also, rebooting the phone as normal and from a removed battery does not remove this root. So I'll say it's a permaroot.
I compiled the attached files specifically for this. The ClockworkMod Recovery version is 3.0.2.4, SuperUser version is 2.3.6.1.
Thanks!
It sounds like you started where I am: Clockwork Mod, S-OFF and stock Froyo 2.2.
Q. How did you follow the steps in the thread to get onto Gingerbread? Did you remove ClockworkMod? If yes, how did you revert to stock recovery? This is the step that I'm caught on, and can't find a thread regarding. Thanks!
Edit to add:
Did you unroot the phone using these steps?
If so, were you at all scared about the warning regarding PC10IMG.zip?
I ended up using the entire stock 2.2 PC10IMG which wiped clockwork off the phone to stock recovery. I didn't do anything to unroot, since the stock rom replaced recovery, system etc but left s-offf in tact.
ETA: I also didn't read either of those articles and wasn't aware of the bricking issue, I've done the phone flashing, modding and unbricking for about 2 years now and just used experience as a guide..
Sent from my T-Mobile G2 using Tapatalk
rdmerck said:
I ended up using the entire stock 2.2 PC10IMG which wiped clockwork off the phone to stock recovery. I didn't do anything to unroot, since the stock rom replaced recovery, system etc but left s-offf in tact.
ETA: I also didn't read either of those articles and wasn't aware of the bricking issue, I've done the phone flashing, modding and unbricking for about 2 years now and just used experience as a guide..
Sent from my T-Mobile G2 using Tapatalk
Click to expand...
Click to collapse
Okay, so just to verify, you flashed CWM recovery while running the GB update? When you adb shell you open a # prompt? I've been gfree s-off'd since I got my phone so even with the leak or otherwise I've been able to just reflash the stock 1.19/1.22OTA and reroot it but I didn't think to try flashing cwm while it's stock gb'd....so tempted.
I compiled the attached files specifically for this. The ClockworkMod Recovery version is 3.0.2.4, SuperUser version is 2.3.6.1.
Click to expand...
Click to collapse
So I sit down to write up a quick guide this morning and what do I find? Nicely done. Couple of points I wanted to add to why this works -
This method fixes the things that the OTA breaks for root: New stock hboot and stock recovery are flashed and on the rom side it wipes /system/xbin which breaks the su symlink.
Flashing the PC10IMG above fixes the recovery.
Flashing the superuser package reinstalls Superuser.apk, the su binary and fixes the symlink to xbin.
But, still not hboot-eng so your fastboot options are limited.
When I did this I had replaced the DZ engineering hboot.img in rmk's package with the G2 engineering hboot.img and edited android.txt for the new G2 build. This allows you to take care of both in once flash.
Hope this is useful to someone and thank you for saving me from writing a guide!
8/27/2011 Edit:
Realized ro.secure=0 so I repacked the stock boot.img from the 2.3.4 PC10IMG.zip with the below changes to default.prop. This allows use of the "adb remount" so files can be pushed to system folders without needing to go into terminal and mounting rw.
Code:
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=0
ro.allow.mock.location=1
ro.debuggable=1
persist.service.adb.enable=1
Modified installation instructions for full root:
Flash the PC10IMG.zip with the G2 engineering bootloader in this post
Flash the superuser update.zip in the OP
Extract the attached boot.img to the platform-tools directory
Remove the PC10IMG from your sdcard and reboot into bootloader
Select fastboot
Enter the following command in terminal or cmd:
Code:
fastboot flash boot boot.img
fastboot reboot
Kind Regards,
Kevin
zkid2010 said:
Okay, so just to verify, you flashed CWM recovery while running the GB update?
Click to expand...
Click to collapse
Yes. Just flash the PC10IMG and you have clockwork recovery again. However, you absolutely need SuperCID set while in froyo or this does not work.
Kind Regards,
Kevin
Confirm Here that it works...
Root and S-OFF
Gingerbread OTA 2.3.4
Thanks Guys for your help!
Flawless!
This worked flawlessly!!
I admire you so much for figuring this out!!
Thank you so much!
HELP!
sort of noobie here..
so i just updated my g2 to 2.3.4 following http://forum.xda-developers.com/showthread.php?t=1202060
and now i want to perm root my phone and overclock it but im having troubles.
1. how do i get clockworkmod installed? i know you can install this from rom manager but it requires root. right?
cause you said.. "Just flash the PC10IMG and you have clockwork recovery again"..
i tried flashing the PC10IMG.zip but got an error and says aborted.
any help please?
thanks in advance
If you are already on 2.3.4 and had not previously rooted then this thread will be of no use to you since your G2 does not have SuperCID (again, read the wiki.)
You will need to downgrade back to froyo (other threads on this and links in the wiki.) Once rooted, then install one of the rooted stock roms in this forum or follow this guide to reinstall the recovery and superuser (hboot optional.)
Hope that gets you going in the right direction.
Kind Regards,
Kevin
Sent from my T-Mobile G2 using Tapatalk
G2 Problems??
Hi, how can i get S-OFF on my g2 since it seems i can not generate a beta key from the revolutionary website cause g2 it's not in the drop down list, don't know what to pick and i want to be able to have my g2 rooted with android 2.3.. can somebody help me please?
Thanks.
Revolutionary is not available for the Desire Z/G2. Have you flashed the leaked 2.3.3 and trying to root? PM please.
Hey I notice most of the people in this thread are Americans - would this method work for the DZ or is it just for the G2?
Sorry if this is a noobish question.
Not a noob question, this one is new for me too. Fundementals are the same, process would be the same. I don't know if there is any issue using a PC10IMG with the info for a G2 (contained in the file called android-info) so may need rebuild one modified with DZ information.
Proceed with caution and do not do anything you are not 100% sure about.
Sent from my T-Mobile G2 using Tapatalk
I'll hold off on confirming the update in that case! I'm still on stock firmware, didn't apply the update from March either. When I've read enough to be confident on how to perma-root the current firmware I might risk following the method in this thread. Then I'll post back to let you know if it works on the DZ.
My DZ came with 1.34 firmware, I rooted it on this firmware. I accidentally upgraded it and am now on the OTA gingerbread ROM. Is this method suitable in this situation or do I require to flash a rooted stock ROM for this method to work.
Accidentally manually applied the OTA? Should work, you have a G2 now!
Sent from my HTC ThunderBolt using Tapatalk
Is there any newbie guide for how to do this? From getting Clockwork on there to getting this rooted 2.3.4 on. I have a rooted 2.2 with S-OFF right now, stock. Just don't really know what to do from this point on.
How to is in the OTA thread (which needs a helping of Iron Fist.) Come back here when ready to re-root.
Sent from my T-Mobile G2 using Tapatalk
rdmerck said:
Save the attached files (PC10IMG.zip & su.zip) to your sdcard. Reboot into the bootloader either by using the adb command adb reboot bootloader or by powering off, and then holding Vol-Down+Power.
The bootloader will scan for PC10IMG.zip and then ask you if you want to flash the recovery. Yes! You do!
After this, reboot the phone. Reboot into recovery by using the adb command adb reboot recovery, or booting back into the bootloader and navigating to the Recovery console (if you didn't delete the PC10IMG.zip, bootloader will scan it, but don't let it update again, this is redundant).
Once you are in ClockworkMod, navigate to "install zip from sdcard", then to "choose zip from zip card". Select the su.zip file from the list, and authorize the recovery console to flash the zip. Reboot the phone.
Now, you will see the coveted SuperUser app in your drawer. I figured this was wayyyy to easy to have worked, so I tested some root dependent apps, they work flawlessly. I also used the adb command adb shell followed by su once in the shell. SuperUser requested my permission and after granting it, I am able to remove the bloatware that was replaced during the downgrade, also, rebooting the phone as normal and from a removed battery does not remove this root. So I'll say it's a permaroot.
I compiled the attached files specifically for this. The ClockworkMod Recovery version is 3.0.2.4, SuperUser version is 2.3.6.1.
Click to expand...
Click to collapse
**** Im at the step above finally lol this is my first root and I had to downgrade, man Ive been doing this for hours and hours. My brain is fried LMAO **** I currently have my G2 with S-OFF and a stock Gingerbread 2.3.4. I have the PC10IMG.zip and su.zip in the root or directly in my sdcard. In no folders im trying to say... I reboot into the bootloader. The bootloader will scan for PC10IMG.zip and then ask you if you want to flash the recovery. Yes! You do!
Well when I do it it doesnt ask me to "flash the recovery" it says "Parsing....(SD ZIP)
(1) RECOVERY
Do you want to start the update?
<VOL UP> YES
<VOL DOWN> NO
I accept the update by pressing vol. up. It comes back and says Update comeplete... - OK
Press Power to Reboot
I reboot and get into clockworkmod it says click "install zip from sdcard" I click it and a little hat appears but it doesnt do anything from there. I let it set a couple of min but still nothing... I have to pull battery out to get it to reboot. help pls....
Sean...

Can't flash ClockworkMod

Hi guys.
I rooted my Tattoo, and installed ROM Manager, clicked on first option "Flash latest recovery", and when it finished it showed message "Succesfully flashed". When i rebooted to recovery it just showed yellow ! and picture of phone.
Please help I need CWM to install CM 7 because I am going on a trip.
Note: I have stock rom flashed using RUU, before that I had CM 7.
Sent from my HTC Tattoo using XDA App
PavleSRB said:
Hi guys.
I rooted my Tattoo, and installed ROM Manager, clicked on first option "Flash latest recovery", and when it finished it showed message "Succesfully flashed". When i rebooted to recovery it just showed yellow ! and picture of phone.
Please help I need CWM to install CM 7 because I am going on a trip.
Note: I have stock rom flashed using RUU, before that I had CM 7.
Sent from my HTC Tattoo using XDA App
Click to expand...
Click to collapse
You could either use automated tool from the following thread
[1 Click Root and/or Recovery]Root and ClockWorkMod 5.0.2.0 [UPDATED 02/10/11]
or look at following post for doing it manually
http://forum.xda-developers.com/showpost.php?p=9192029&postcount=21
please check existing threads before posting
I can't access my computer right now, but I rooted Tattoo with Universal Androroot, and still can't flash CWM.
Note: I used Universal Androroot while ago and I did managed to flash CWM.
Sent from my HTC Tattoo using XDA App
1. Format SDCard 2. Place the ROM in the root 3. PowerOff 4. Press HOME + EndCall Button 5. ClockWorkMod Recovery Page Will Appear. 6. Wipe n Clear...Flash
Sent from my HTC Tattoo using xda premium
Can't install ClockwordMod man. Stock recovery appears instead.
Sent from my HTC Tattoo using XDA App
PavleSRB said:
I can't access my computer right now, but I rooted Tattoo with Universal Androroot, and still can't flash CWM.
Click to expand...
Click to collapse
As you are rooted, you could flash recovery using terminal on the phone.
install terminal and Superuser from market
download CWM recovery 3.0.2 from Kalims' thread and place it in root of your sdcard
download flash_image to root of your sdcard
enter following commands in terminal
Code:
su
cp /sdcard/flash_image /data/local/flash_image
cd /data/local
chmod 04755 flash_image
./flash_image recovery /sdcard/recovery_3.2.0.1.img
Thans. I will try it. Is it posibble to install newer version of CWM via terminal?
Sent from my HTC Tattoo using XDA App
I can't download flash_image, says nothinhg was found.
Sent from my HTC Tattoo using XDA App
Try this
Do u have Universal Androot still installed on ur phone? If its there, then re-root with it and launch ROM Manager immediately after that. Flash recovery TWICE. The new CWM has problems flashing in 1st go.
And secondly, if u are on stock ROM, before updating recovery, always re-root with Androot. Because after every reboot, the tattoo_hack.ko module gets unloaded from the memory if you used Universal Androot on stock ROM.
Things to know while rooting stock ROM:
1. HTC Tattoo is HTC's first NAND locked device preventing users to write to system and recovery under normal conditions.
2. This NAND lock can be defeated by inserting tattoo_hack.ko module. This module was created on taking the help of info from a leaked QualComm datasheet.
3. The module needs to be inserted prior to writing to system or flashing recovery.
4. The manual rooting method and Maveric/NTenisOT 1-click method flashes a custom boot.img after rooting so that the NAND remains unlocked everytime the device is used. On the other hand, Universal Androot unlocks the NAND temporarily while rooting and unrooting. If Androot is used, the device gets permanently rooted, but the NAND locks itself after a reboot, until Androot is used again or tattoo_hack is inserted.
5. Custom 1.6, 2.1, 2.2 roms have tattoo_hack added to their modules list to keep NAND unlocked while device is running. On 2.3, however, the unlock code is compiled into the kernel, so the module is not needed.
6. We deal with this module because no one has developed S-OFF for the Tattoo.
7. Most users forget about this module once their Tattoo is rooted. New users oversee this module and run into problems. The CyanogenMod wiki is misleading in 'How to root Tattoo' because of this.
Finally, please sticky this info if possible because I tell this to everyone who has rooting problems.
Thanks. I did everething just like you sad, but no luck.
Sent from my HTC Tattoo using XDA App
download attached flash_image.zip and remove ".zip" extension.
and try as mentioned in my previous of my post.
And remember what sunitknandi mentioned about re-rooting with androot after a reboot.
PavleSRB said:
Thanks. I did everething just like you sad, but no luck.
Sent from my HTC Tattoo using XDA App
Click to expand...
Click to collapse
Go to universal androot. Hit root again. Let it complete.
Then use Root Explorer and mount /system as rw. Or u ca also use Terminal Emulator. Just type these.
su
mount -o remount rw /system
Close terminal.
Go to ROM Manager. Tap Flash ClockWorkMod recovery. First it will take time. Let it successfully flash. Tap again. Let it flash. Tap again. Let it flash.
I am telling you to tap this many times. Because CWM 5.0.2.0 doesnt flash easily. I got so many failed flashes even on CM7. It only gets flashed after a couple of time.
Otherwise, hit menu button on ROM Manager, slect settings and check mark 'Erase recovery before flashing'. Go back and flash recovery twice.
Finally reboot manually. No need to use ROMManager's reboot option. I read that it works rather badly on Android 1.x. Boot with HOME+POWER.
Lemme know.
Btw, the safest method to flash recovery is NTenis's tool. Used it many times without problems because it flashes the boot to disable the write-protection.
sunitknandi said:
Go to universal androot. Hit root again. Let it complete.
Then use Root Explorer and mount /system as rw. Or u ca also use Terminal Emulator. Just type these.
su
mount -o remount rw /system
Close terminal.
Go to ROM Manager. Tap Flash ClockWorkMod recovery. First it will take time. Let it successfully flash. Tap again. Let it flash. Tap again. Let it flash.
I am telling you to tap this many times. Because CWM 5.0.2.0 doesnt flash easily. I got so many failed flashes even on CM7. It only gets flashed after a couple of time.
Otherwise, hit menu button on ROM Manager, slect settings and check mark 'Erase recovery before flashing'. Go back and flash recovery twice.
Finally reboot manually. No need to use ROMManager's reboot option. I read that it works rather badly on Android 1.x. Boot with HOME+POWER.
Lemme know.
Btw, the safest method to flash recovery is NTenis's tool. Used it many times without problems because it flashes the boot to disable the write-protection.
Click to expand...
Click to collapse
Thank you so so much. I rooted using Androot, then typed commands for Terminal and finally flashed CWM from ROM Manager five or six times. Then I used Home + End call buttons and CWM was there.
BTW, thanks to rallepag, too.
Sent from my HTC Tattoo using XDA App
Good so u did it. If u feel like thanking me, would u do me a favor?
Just copy my posts about the tattoo-hack and how to fixed your problem in a thread and share with others. It will come of great help.
I will try to do that via XDA app, because my monitor is currently broken.
Sent from my HTC click using XDA App
sunitknandi said:
Go to universal androot. Hit root again. Let it complete.
Then use Root Explorer and mount /system as rw. Or u ca also use Terminal Emulator. Just type these.
su
mount -o remount rw /system
Close terminal.
Go to ROM Manager. Tap Flash ClockWorkMod recovery. First it will take time. Let it successfully flash. Tap again. Let it flash. Tap again. Let it flash.
I am telling you to tap this many times. Because CWM 5.0.2.0 doesnt flash easily. I got so many failed flashes even on CM7. It only gets flashed after a couple of time
Click to expand...
Click to collapse
Thanks for this. This has been driving me mad the past week or so!
ClockWorkMod 5.0.2.0 Seems to need 5 installs to work properly (and you granting access in the 3rd or 4th install). After that you can use the install from sd card option in rommanager!
WWWeed said:
Thanks for this. This has been driving me mad the past week or so!
ClockWorkMod 5.0.2.0 Seems to need 5 installs to work properly (and you granting access in the 3rd or 4th install). After that you can use the install from sd card option in rommanager!
Click to expand...
Click to collapse
Happy to help!
Eh hehe, its the saying in vodafone's ad.

[Q] Installing ClockworkMod Recovery

Greetings all.
I have a HTC Tattoo still running with the original Android 1.6 that came with the phone. I am trying to install the latest CM7.1.0.1 but have run to a few issues due to how old the Android version is.
I had some issues here, but I was able to install Universal AndRoot and Superuser. So, the phone is fully rooted at this point.
Since the phone is running Android 1.6, Rom Manager Free will not install, since the current version does not support this version of Android. Therefore, I am unable to install ClockworkMod Recovery in this way.
I tried finding older versions of Rom Manager that support Android 1.6, but when I tried installing them, the message I got was "com.koushikdutta.rommanager could not be installed on this phone". I could not get past this...
So, I tried the manual way through adb, using Cyanogen wiki. Through this way, I am only able to get up to the point I try gaining superuser rights using the "su" binary provided. At this point, I get the following error: "su: permission denied".
My question is: is there any other way I can flash ClockworkMod Recovery?
Thanks in advance.
Hi all,
I am stuck with the same problem.
I used the one-click-root app provided in this forum -> worked.
but due to android 1.6 am not allowed to install the rommanager app.
and with ADB I am stuck- -> getting same error as above: su permission denied.
I hope anyone can guide me though the installation of the clockwork recovery.
thx
-------------------------------------------------------------------------------------------
Update:
i think i am one step further now. i installed rommanager 3.0.1.7 (found in the internet), which installed the clockwork recovery.
when i go to "download rom" it says i need a newer version
i downloaded the rom manually, coppied to sd and selected in rommanager "install from sd"
system rebooted and showed my phone and a triangle (with power+home i come into a menu)
anyone can help me here to flash the rom?
Rommanager did not install clockworkmod, i think there was a su issue...
Did you try this instructions?
Goldcard creation: http://forum.xda-developers.com/showthread.php?t=603286
Rooting&installing clockworkmod 5: http://forum.xda-developers.com/showthread.php?t=950759
THX bro, you really saved me from a sleepless night
finally after 3 days of battling my tattoo I upgraded from 1.6 to 2.3.7!!!
your links made it! thx again bro
and nice work developers! thumps-up XD
So, finally you can download normal apps for android 2.1+, 2.2+ 2.3+
Hi again,
I finally have some time to try this again. But before I do anything, do I have to create the goldcard? Because the htc is already rooted, so I was thinking maybe I only need to perform the last part of it, which is installing ClockworkMod.
Thanks again!
No, you dont need to create goldcard again
Goldcard
Hello lemmymet,
You said I don't need to create the goldcard again. But I never created a goldcard... I have superuser through Universal Androot... unless this creates a goldcard automatically for you.
Regardless, the attempt to install only recovery failed. It gave an error saying it couldn't copy 'su' file, probably because there already is one.
Any other suggestions?
Thanks again.
ulaikamor said:
Hello lemmymet,
You said I don't need to create the goldcard again. But I never created a goldcard... I have superuser through Universal Androot... unless this creates a goldcard automatically for you.
Regardless, the attempt to install only recovery failed. It gave an error saying it couldn't copy 'su' file, probably because there already is one.
Any other suggestions?
Thanks again.
Click to expand...
Click to collapse
Hey.
you realy dont need o goldcard.just leave this step away.
here are some how to videos,i think they will help you out.
http://forum.xda-developers.com/showthread.php?t=705454
ulaikamor said:
Hello lemmymet,
You said I don't need to create the goldcard again. But I never created a goldcard... I have superuser through Universal Androot... unless this creates a goldcard automatically for you.
Regardless, the attempt to install only recovery failed. It gave an error saying it couldn't copy 'su' file, probably because there already is one.
Any other suggestions?
Thanks again.
Click to expand...
Click to collapse
Following post and the messages around it, should help you flash clockwork with universal androot
http://forum.xda-developers.com/showthread.php?p=18225026#post18225026
goldcard is needed only to overcome CID check
[CID - Carrier identifier, used in locking a phone to a specific carrier's SIM cards]
with goldcard you can flash unbranded RUU, so that you can get rid of mobile carrier specific junk (for example in my case orange junk).
and you dont need it for rooting and recovery flashing.

Categories

Resources