yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] damien667:
What does approving have anything to do with source code? Once the phone powers off, if its on a charger, it will boot right back into recovery... maybe you should try reading the patch set, so you can see that... the only way to fix this is to implement a separate UI when the poweroff_charging kernel option is passed to the recovery kernel on bootup.
[G2 and Desire Z Android Development] Vlad83:
Damien can you elaborate?
[G2 and Desire Z Android Development] elracing21:
Read the nightly thread

Sent from my gSpot2
[G2 and Desire Z Android Development] damien667:
The only thing the patch adds is a power off menu option. Once the phone is off, if it is on a charger it will turn back on.
[G2 and Desire Z Android Development] elracing21:
I guess I was misinformed

Sent from my gSpot2
[G2 and Desire Z Android Development] Vlad83:
Yeah I get that. I was looking more for the changes you're refering to in the kernel...
[G2 and Desire Z Android Development] Vlad83:
I guess you're refering to my post. I just added Steve and Koushik as reviewers to the patch in gerrit so they get notified...

I was misinformed my self and didn't look over the code.

Damien, if you don't mind, I am curious as to how you would go about the changes in the kernel. I am just starting to learn C and coding Linux...
[G2 and Desire Z Android Development] eremeya:
I installed Rom manager and clockworkmod 3.0.0.5 last night and did a backup, then this morning I did another backup right before installing CM7 rom. Anyway, I followed the instructions to backup then wipe/format my phone and now when I go to install the rom through clockwork it can't mount my sd card. Any ideas as to how I can fix this?
[G2 and Desire Z Android Development] damien667:
Its not a kernel patch, its a init.rc service than runs before recovery that reads the kernel command line for the offmode_charging variable... if it sees it it stops recovery from starting (even though you are in fact already booted into the recovery system) and starts a keypressing service (to reboot phone into regular boot mode when power button is pressed) and also the battery charging service that is supposed to display the battery icon charging animation (which doesn't work in cwm)... those services (binaries) were grabbed from the OTA recovery... if you read my previous posts, you would know.

POST 326

and

POST 354
[G2 and Desire Z Android Development] no6969el:
Not that I would want to go back to 2.2 but this is cool news that I didn't know. (I too remembered the issue with the first 3.0 cwm)

sent from gv1.5 on g2
[G2 and Desire Z Android Development] no6969el:
If there is any possibility you can plug your sdcard to a computer to check if its still detectable?

sent from gv1.5 on g2
[G2 and Desire Z Android Development] eremeya:
I'm at work now so I'll have to try when I get home
[G2 and Desire Z Android Development] Vlad83:
Yeah I saw post 354 but missed 356...

Thanks
[G2 and Desire Z Android Development] GermanGuy:
I am not able to install the update zip for enabling AdHoc network, listed in a different post here on ClockworkMod 3 running CM 6.1.1. It says somthing about a "scripter problem". Would I be able to flash an older ClockworkMod to be able to run the zip, and then flash back to ClockworkMod 3?
[G2 and Desire Z Android Development] coredalae:
yea this cwm stopped support of a scripting way that was discontinnued after android 1.6 (but continnued in cwm / amon ra to allow a smooth transition)

if you flash back cmw 2.x.x then flash the old zip. then reflash cmw 3.0.0.5 it should be fine
[G2 and Desire Z Android Development] elracing21:
What did the update of rom manager change?

Sent from my gSpot2
[G2 and Desire Z Android Development] OriginalGabriel:
Seriously, there hasn't been a changelog since 3.0.0.2 and the last two versions (x.8 and x.9) have had some serious lag issues (and CM7 Nightly 4 hasn't shown up even though it was posted yesterday).
[G2 and Desire Z Android Development] G1ForFun:
Let's not forget the two different versions both labeled 3.0.0.5 but one sucks and the other doesn't. Talk about confusing.

Oh how I miss the days of Amon ra.
[G2 and Desire Z Android Development] OriginalGabriel:
Those are the recovery images, we're asking about ROM Manager. As for the recovery image, the x.5 shown in ROM Manager works, the previous x.5 (which I think was only available as a web download) was the one that didn't play nice with Froyo ROMs
[G2 and Desire Z Android Development] G1ForFun:
Yes that is what I am talking about.
[G2 and Desire Z Android Development] robot_agenda:
The file is no longer there. Any updated links?
[G2 and Desire Z Android Development] vivmar:
The Flash image link doesn't work..someone can make a mirror?
[G2 and Desire Z Android Development] steviewevie:
Try the link at http://wiki.cyanogenmod.com/index.php?title=Flash_image
[G2 and Desire Z Android Development] G1ForFun:
Anyone have a copy of the modified 3.0.0.5 recovery that allows you to have the phone off while charging?

The link in this post is dead...

http://xdaforums.com/showpost.php?p=10723593&postcount=354
[G2 and Desire Z Android Development] hjlow:
mirror posted at my blog
[G2 and Desire Z Android Development] rajackar:
I can't imaging this question not being asked before but searching didn't turn up much.

Is there a way to force boot into clockwork by holding a button at boot?

I've got CM7 rom that won't boot through so I'd like to restore a backup but I can't boot into clockworkrecovery to restore the backup. I've tried holding vol-down and such but this only takes me to the HTC recovery mode. The other option would be to flash the original software and reroot, s-off and reinstall rommanager and clockwork.

Edit:

Problem fixed.

I had an original HTC zip on my sd card and that kept me from selecting recovery in the boot loader. Just removed and after that I could enter clockwork and restore my backup :)
[G2 and Desire Z Android Development] Lennyuk:
no the only way is to boot via power and volume down then select recovery from this list, if its only taking you to stock htc recovery then it means you don't have a CWM flashed (installed).

If you have hboot s-off then you can use fastboot to flash cwm recovery.
[G2 and Desire Z Android Development] Redbaser:
Clockwork Recovery 3.0 whit Rom manager

Hello,

I Tried too install Clockwork Recovery 3.0 whit Rom manager on my DZ.

When I Boot into Clockwork Recovery, then it show the White HTC on the screen, I can't get it right. I now installed the old one, 2.5.... than i had no problem too reboot in the Clockwork Recovery.

Can any one help me.

I want too flash the [ROM] CyanogenMod-7 for G2/DZ :: V7.0.0-RC1 (02/15/2011).
[G2 and Desire Z Android Development] EdKeys:
Delete the 3.0.0.5 .img file off your sd card. You will find it in the clockworkmod folder. Mine is in clockworkmod/download/mirror.... After you delete it, make sure you have the latest ROM Manager installed 3.0.1.0 and then reflash through ROM Manager again. ROM Manager will download the latest version of clockworkmod 3.0.0.5 and flash it.
[G2 and Desire Z Android Development] Redbaser:
Thnx, I find the File en saw thats a bit smaller then the old one, a lot smaller, The size was 28KB, I think when I download this one, there was a problem.

I will try it again, when I'm @ home whit a wifi conection.

??? When I want to go back too my old Rom, do I need the 2.5.... Recovery

??? Do I need a NANDROID Backup whit the new Recovery or the old one
[G2 and Desire Z Android Development] EdKeys:
If you get the latest verson of Clockworkmod 3.0.0.5 it will flash all roms and restore old and new nandroids. There is a beta 3.0.0.5 floating around. Don't use that. Be sure you have the latest available through ROM Manager....same version 3.0.0.5.
[G2 and Desire Z Android Development] Redbaser:
Thnx, I'm very Happy.
[G2 and Desire Z Android Development] fallinprince:
Is it possible to run a Nandroid backup without viewing your screen? if so what commands (i cant remember the steps into the backup feature)

im running the latest 3.0 Clockwork mod on my phone as well as a recovery required for cyanogen 7

Titanium backup is also installed to my phone. as well as ADB on my computer

Long story short the screen on my phone isnt turning on. However i can still use the touch pad and all the buttons on the phone work. I'm fairly certain its hardware related due to not coming back on Ever. Not just the cyanogen screen on delay bug
[G2 and Desire Z Android Development] mrbusiness85:
Help

Whenever I boot into recovery on my G2 it just sits there with a hat and orange circle when I try to do a wipe/factory reset. please help
[G2 and Desire Z Android Development] cjward23:
There seems to be an issue with flashing CWM via rom manager I have tried a few download links and none of them seem to work. Does anyone have a copy they can upload?
[G2 and Desire Z Android Development] androidcues:
Pls be more specific. Did you try reflashing repetitiously? Sometimes it takes an extra flash to make it stick.
[G2 and Desire Z Android Development] cjward23:
It's not actually for me trying to help someone out in the Q&A section. There seems to be an issue with flashing the recovery from Rom manager. I have tried reflashing the latest recovery and tried flashing an old recovery and all the time I get the same error message "their was an error whilst flashing recovery" i've tried a few times and so have others.

As I said I was unable to find a link that works to download the recovery so it could be flashed manually. I think was hoping that someone could either upload it or knows of a link that works.
[G2 and Desire Z Android Development] geova87:
can someone please post a link to the old recovery image... cant install enomther rom with 3....
[G2 and Desire Z Android Development] EdKeys:
I have a copy in my dropbox

http://db.tt/COGSgeV
[G2 and Desire Z Android Development] amazinglarry311:
http://mirror.kanged.net/recoveries/ - All the official links for recovery

flashable zips (just reboot to recovery for change to take effect):

View attachment CwM-2.5.1.3-vision-signed.zip

Mirror

View attachment CwM-3.0.0.5-vision-signed.zip

Mirror
[G2 and Desire Z Android Development] geova87:
Thanx all :)
[G2 and Desire Z Android Development] insink71:
Two thumbs up... Great Recovery.

Also I love that Rom Manager separates out the Gapps packages now as well. :)
[G2 and Desire Z Android Development] sparksco:
Hi there, I just wanted you all to know that the charging while off option has been fixed with mexdriod recovery...i find it very annoying that even on my evo shift4g I have the same issue. Please fix, thnaks!
[G2 and Desire Z Android Development] damien667:
really? you didnt follow this thread a month ago when i fixed it and people posted mirrors? what, have you lived under a rock? (yes, geico reference)
[G2 and Desire Z Android Development] pershoot:
here is the latest CWM, built from src 2 days ago, for vision.

working good for restoration: ginger -> froyo -> ginger (ext4/3).

http://droidbasement.com/g2/cwm_recovery_3.0.2.4.img
[G2 and Desire Z Android Development] sparksco:
Here's the real source http://androidcustomroms.com/recovery-clockwork-3.0.0.5-poweroff_charging.img
[G2 and Desire Z Android Development] pershoot:
is your source available, and/or have you submitted to gerrit for review?

if not, and you would like me to do so on your behalf, please let me know.

thx.
[G2 and Desire Z Android Development] amazinglarry311:
Okay, now you're just starting to sound like a fool. Those are NOT charge while off recoveries, they are the official builds mirrored from the link I provided put into flashable form.

GO AWAY. You're doing nothing but making yourself look bad.
[G2 and Desire Z Android Development] damien667:
there is no source... you can grab the recovery.img and use a rom kitchen to decompress it and make changes to the recovery rootfs. i have explained in previous posts what changes i did (which include grabbing binaries from official t-mo OTA recovery).
[G2 and Desire Z Android Development] nipper68:
Did you ever find a solution/explanation for this? The same issue is happening to me. Not sure if it's a clockwork issue or bootloader, or what.

EDIT: Sorry, pls disregard - my bad. Just found the posts about the latest udated images for CWM.
[G2 and Desire Z Android Development] sparksco:
In case you didn't notice I posted the source code about five post back.
[G2 and Desire Z Android Development] amazinglarry311:
In case you didn't notice, that isn't source code, it's just another recovery image.
[G2 and Desire Z Android Development] blahbl4hblah:
That's the source code for the recovery image, Oh wait

Your recovery image is also recovery image

So where is your source code for the recovery you modded?
[G2 and Desire Z Android Development] amazinglarry311:
if you idiots would take some time to read things before you spout off you'd know.

but i will explain it for you since you just cant seem to search.

- from the mytouch4g image thread i started, explaining how i created the mytouch4g image from scratch using the method explained by damien in january february of THIS VERY THREAD. EDIT: files in the /res folder are offmode_charging_images, now create your own and piss off. figure out how to unpack the recovery.img first.

now could you kindly get back to something constructive instead of trying to start pissing contests you obviously aren't equipped for?
[G2 and Desire Z Android Development] damien667:
+1... this isn't rocket science... or even compiling anything from source... it's a F-ing mod!!!!
[G2 and Desire Z Android Development] Blades:
What does detect_key actually do? Guessing it just monitors GPIO for a push of the power button.. and choice_fn? I don't have any guesses on that..

I don't think that people get that recovery is a binary run in a different environment (its own kernel and rootfs).. it runs busybox as its default shell too.. it does however, use the same kernel as whatever CM device it was compiled for (a copy, not literally the same file).. thus the ability to overclock while in recovery. heh :)

should add

write /sys/block/mmcblk1/bdi/read_ahead_kb 4096

just saying.. could help with restoring from sd card.. don't go raging out on me, you two.
[G2 and Desire Z Android Development] damien667:
/me rage..... jk

you are more than welcome to do it yourself... you just need a rom kitchen to decompress and recompress the recovery.img...

edit: my assumptions are the same about detect_key and choice_fn... I was too lazy to figure out what they did, assumed it wasn't anything malcicious after a couple of tests, and no one complained about any adverse effects... so I didn't do anything about it... in fact, if you can figure out why the battery percent icon doesn't show like in the original OTA recovery (I think it has something to do with how the recovery binary sets up the framebuffer or something), that's something else that I never got quite right... the /res folder has all of the images, but nothing comes on the screen (I know some people prefer nothing on the screen anyway... but it bothered me that it didn't work 100% by just copying binaries over).
[G2 and Desire Z Android Development] Blades:
Silly question, but what about the whole directory of png files? Those aren't binaries and would definitely break things if they weren't there. Hello you could put whatever files you wanted in place.. just as long as they were the same dimensions and filenames.

In res - off_mode_charging_images. Btw... there's a file called keys that you can meow at..

Here's an excerpt, its an enthralling read.

$ cat keys

{64,0x577ec62d,{2810480219,4186700531,1823894669,2513715705,4153867336,4124551093,312

9515677,2423126444,1781150696,2626008457,666670741,487309695,452404508,69624420,13162

35642,2324922162,833543125,1215385165,3372099962,3392031474,1557537309,676619178,3201

704614,528591289,6636213,1565812340,4220322031,3818493582,280674000,3303391626,202787

0923,2236731252,3583918027,223739661,2940945476,2875594439,4062898694,2719442315,....

What happens after 2719442315? What will happen to 223739661? Read more to find out!

On a less enthralling note, that could mean detect_key is not actually referring to a push of the power key. I'd remove the binary and see if something has a hissy fit - but I don't care for charging my phone with the screen on.. nor do I like creepy htc files. Should check the latest htc test rom's recovery.img and see if they changed any of the binaries. Would make a great prank to play on someone who has a g2... swapping just one of those battery charging progress pics for a pic of a weiner (ala fight club) .
[G2 and Desire Z Android Development] damien667:
firt rule about fight club... you don't recharge weiners.....
[G2 and Desire Z Android Development] elracing21:
Today I had a recovery update I think its 3.0.2.4

Anybody know the changes

Sent from my gSpot2
[G2 and Desire Z Android Development] Shaquiel Harris:
yeah. Probably Fixes. But i can charge the phone with it off so thats a huge +1 for me.
[G2 and Desire Z Android Development] amazinglarry311:
ext fixes, and it now charges while it's off.

NOTE: all four binaries as well as offmode_charging_images and the init.rc changes are exactly the same as the mod damien did on this one and the ones i did for other devices.

thanks damien667, koush saw the mt4g thread i made and made the changes:
[G2 and Desire Z Android Development] damien667:
w00t... I only figured it out in January ... thanks for pushing it farther amazinglarry311... still wondering if anyone will figure out how to get the framebuffer /res images to show the current charge level...I know it has to do with the way offmode_charging enables the fb... just too busy with dayjob to commit more time to it...
[G2 and Desire Z Android Development] Rozza C:
Sorry for the noob question, but I searched this thread and can't seem to find a definite answer.

I'm trying to install this Recovery through ROM Manager on my Desire Z. The only option appearing is G2 when I try.

I just want a clarification that choosing the option won't break my phone.

Thanks.
[G2 and Desire Z Android Development] theSpam:
It works :)

The Desire Z is the G2.
[G2 and Desire Z Android Development] Rozza C:
I know. But I was just being a little extra cautious. :)

Thanks.

Off I go!
[G2 and Desire Z Android Development] Brooks316:
Is there anyway to set a different key as the enter/select button, my trackpad button is on the fritz and only responds if I apply a lot of pressure, sadly this often results in more than one press being recoreded and makes navigating the recovery a pain. Any suggestions?
[G2 and Desire Z Android Development] merdely:
The camera button also works.
[G2 and Desire Z Android Development] BookCase:
April 21, 2011 - ROM Manager

Nevermind. Rebooted and the problem was fixed. :cool:
[G2 and Desire Z Android Development] crachel:
I've always felt a little uneasy with CWM dalvik cache wipe. It just seemed too quick, if that makes any sense. So, I convinced myself today that it is working correctly:

Reboot into recovery

mount /data

adb shell

cd /data/dalvik-cache

ls

... and I see all the dalvik entries

so I run CWM's clear dalvik-cache and repeat the steps above, and sure enough the directory is gone. There are other posts around XDA about this, but some weren't looking in /data/dalvik-cache and others claimed clearing the /cache partion was sufficient, which it actually is not in the case of the Desire Z
[G2 and Desire Z Android Development] popimp315:
Partitioning...it doesn't seem to work? Is it just me or what?
[G2 and Desire Z Android Development] whistler4ever:
Thanks Koush for the awesome application.
[G2 and Desire Z Android Development] oMszKikiIzWavyo:
I Also Think The Partitions Don't Work Because I Have A 8GB And I Partitioned It, Its Only Showing 3GB. If Anyone Can Help, I Would Definitely Appreciate It
[G2 and Desire Z Android Development] jmwils3:
can we get a tad more info? how did you partition it? what size/type is it? and you know that if you partition the card, the amount of memory poartitioned on it wont be directly available through recovery, unless you have a modded recovery version installed that allows for the mounting of sdext partitions, such as those of team pyro or team mexdroid (pyro being my personal fave, but to each his own :P)
[G2 and Desire Z Android Development] oMszKikiIzWavyo:
Sorry I Was Just About To Re Edit My Post. The Rom Im Using Is Enomther's TheOfficial G2. I Have The Modded Recovery Version (2.5.1.3). I Formatted The Sd-ext To 4096M/Swap To 64M. I Realized That The EXT Partition Doesn't Show When I Tried Partitioning It Using UBuntu. The Only Problem Is Whenever I Reboot My Phone, My Applications No Longer Show On The Home Launcher. It Could Be The Rom. I Maybe Posting This In The Wrong Direction. Please Bare With Me I Just Upgraded My G1 To A G2 :(
[G2 and Desire Z Android Development] jmwils3:
not a problem, friend. Its very possible that it is the rom causing this, although that rom (and that recovery version, for that matter), is rather dated. try updating to a newer recovery, the two modded recoveries i mentioned being your best bet for ext support. hit me up on gtalk if you need any more assistance, Ill be glad to help (same name there as here).
[G2 and Desire Z Android Development] oMszKikiIzWavyo:
Okay Thank You, I Really Appreciate It :D
[G2 and Desire Z Android Development] jmwils3:
not a problem :) and there is a button for that
[G2 and Desire Z Android Development] tep065:
data lost from sd

Greetings, using a G2, 8 gig class 6 Transcend SD card, clockwork 3.0.2.4. I rebooted into recovery and did a backup prior to installing a new rom update, after the the back back up completed, i went to install zip from sd. it would just show a hat with the circular arrow. any menu option would show that symbol. I powered down, powered back up into recovery, and same thing. I rebooted fully and the phone says its an empty card, like everything gone. Rebooted a couple times same thing. Connected the SD to pc and it asks to partition it. In Paragon HD manager, it shows the disk as being fully unallocated. Like all the partitions got wiped. I did a surface test and it didn't return any results. ran the undelete partition wiz( for about 15 minutes and its not finding anything(figure if it didn't find anything after that long, it wouldn't), i did a quick search and it didn't find any deleted partitions. Although when I edit/view the sectors, it does show data(i'm assuming) I figure its pretty much wiped out (last full backup of the SD was in april :/). Any clue why this happened so I could prevent it in the future?
[G2 and Desire Z Android Development] EdKeys:
New ClockworkMod Recovery available through ROM Manager. CWM 5.0.0.1 - cyan blue.
[G2 and Desire Z Android Development] tsubus:
Thanks for the update, checking it out right now!
[G2 and Desire Z Android Development] tun4f1sh:
Just a small warning...

Upgraded to CWM 5.0.0.1, no issues -- able to boot into recovery, saw shiny new cyan, yay.

Attempted to restore a nandroid from ROM manager, got stuck at HTC splash. Pulled battery and booted back into existing ROM. Reverting back to 3.0.2.4 for the time being.
[G2 and Desire Z Android Development] ultma75:
When I flashed the new recovery and rebooted, I got stuck at HTC splash screen. Had to pull out the battery but the new recovery is sexy
[G2 and Desire Z Android Development] tsubus:
I have:

Installed the new recovery

Rebooted the phone in recovery

Performed a nandroid backup

Rebooted the phone in CM7

Rebooted the phone in recovery

Restored the backup that I had just made

Rebooted the phone in CM7

Seems to be working fine for these tasks. There might be issues when restoring backups made with older versions of CWM.
[G2 and Desire Z Android Development] tun4f1sh:
So, what I'm finding with the new 5.x recovery, is that it seems to intermittently NOT boot into recovery. For example:

ROM Manager > Restore Nandroid > Stuck at HTC splash > Pull Battery > Boot into bootloader, select recovery > Boots into recovery and begins the nandroid operation.

Seems to be pretty easy to reproduce this (on my device)