[RECOVERY] ClockworkMod Recovery for G2

Search This thread

jojo_16

Senior Member
Oct 7, 2010
269
13
HI
Actually this is easily fixable. (if only i knew c and had the exact source for the vision version of clockwork recovery)

The device boots with the kernel parameter "androidboot.mode=offmode_charging"
as can be seen via "cat /proc/cmdline"
Its also in /cache/recovery/log" as "ro.bootmode=offmode_charging"

Someone needs to implement a charging program into clockwork recovery that checks for this variable on bootup and launches a charging gui with true charging led control and a progressbar.
When the charger/usb is unplugged it simply exits recovery and turns off the phone.

Regards,
OllieD

My power button's broken it helped me to reboot my phone. will the next update will fix the CWR?? i hope not
 

chief2842

Senior Member
Jun 15, 2007
633
64
Can't seem to boot into recovery after upgrading it just sits at the HTC screen any clues on how to fix this?
 

steviewevie

Retired Forum Moderator
Oct 28, 2009
5,333
616
UK
Can't seem to boot into recovery after upgrading it just sits at the HTC screen any clues on how to fix this?

After upgrading to a new version of ROM Manager you mean ? What did you upgrade exactly ? Or did you flash a new ROM ?

Are you saying it will boot ok, just not into recovery ? Or it won't boot at all ? If it just won't boot into recovery then try flashing Clockwork again.
 

Pflunz

Senior Member
Nov 25, 2010
78
9
Had the same problem I think.
I uppdated to cm7 with cw3, and did a nandroid backup with cw3 bevor. When I tried to restore my backup, cw3 said finished. But on booting it stayed on the HTC logo.
So I went into bootloader (volume down and power) and flashed via fastboot the `old` cw2.4.1 image or something like that (the actual cw recovery of v2). After that, I could restore the backup and it bootet fine.

Sent from my HTC Vision using XDA App
 

arcance

Senior Member
Sep 28, 2010
105
7
39
royal ironworks
Actually this is easily fixable. (if only i knew c and had the exact source for the vision version of clockwork recovery)

The device boots with the kernel parameter "androidboot.mode=offmode_charging"
as can be seen via "cat /proc/cmdline"
Its also in /cache/recovery/log" as "ro.bootmode=offmode_charging"

Someone needs to implement a charging program into clockwork recovery that checks for this variable on bootup and launches a charging gui with true charging led control and a progressbar.
When the charger/usb is unplugged it simply exits recovery and turns off the phone.

Regards,
OllieD

I hope fix this or soled ,
and wait

Regards,
 

Mikey

Retired Senior Moderator
Oct 10, 2007
6,262
1,743
Wheaton, Il
Google Pixel Fold
For Reference

Too perform a change of your recovery image you MUST HAVE ROOT AND BE S-OFF :)

If you use adb install of terminal:
Use adb shell in command box instead of su


Assuming you dont have flash_image installed, the instructions are:

1-Download flash_image and copy to root of SD card.
2-*rename file to recovery* and copy recovery.img to the root of the SD card.

or
Placing the files in root of your C:\
adb push C:\flash_image /system/bin/flash_image
adb push C:\recovery.img /sdcard/recovery.img

3-
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cat /sdcard/flash_image > /system/bin/flash_image
chmod 755 /system/bin/flash_image
flash_image recovery /sdcard/recovery.img
rm /system/etc/install-recovery.sh
rm /system/recovery-from-boot.p
reboot recovery
If you already have Flash_image installed these are the steps I used and worked:
3a-
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
flash_image recovery /sdcard/recovery.img
rm /system/etc/install-recovery.sh
rm /system/recovery-from-boot.p
reboot recovery
You might get errors when you perform the rm commands, that's ok.
 
Last edited:
H

Himay

Guest
Actually this is easily fixable. (if only i knew c and had the exact source for the vision version of clockwork recovery)

The device boots with the kernel parameter "androidboot.mode=offmode_charging"
as can be seen via "cat /proc/cmdline"
Its also in /cache/recovery/log" as "ro.bootmode=offmode_charging"

Someone needs to implement a charging program into clockwork recovery that checks for this variable on bootup and launches a charging gui with true charging led control and a progressbar.
When the charger/usb is unplugged it simply exits recovery and turns off the phone.

Regards,
OllieD
Erm, like this source?

https://github.com/CyanogenMod/android_bootable_recovery

;)
 

ffff00

Senior Member
May 21, 2009
194
10
Las Vegas
So I wanna setup a script to push my rom the the sdcard, reboot recovery, flash the rom, and reboot.

I'm wondering how to pass the command to flash the rom to recovery from adb/terminal.
From what I've seen, I'd be working with /cache/recovery/command, right?
 

the orange bandit

Senior Member
Apr 6, 2010
625
69
Texas
www.rickycadden.com
So I wanna setup a script to push my rom the the sdcard, reboot recovery, flash the rom, and reboot.

I'm wondering how to pass the command to flash the rom to recovery from adb/terminal.
From what I've seen, I'd be working with /cache/recovery/command, right?

ROM Manager is free on the market and does exactly that - even asks if you want to wipe/nandroid before flashing the ROM. Once you choose, it reboots into recovery, wipes/nandroid/flashes (whatever you chose), and then automatically reboots when it's done.
 

ffff00

Senior Member
May 21, 2009
194
10
Las Vegas
ROM Manager is free on the market and does exactly that - even asks if you want to wipe/nandroid before flashing the ROM. Once you choose, it reboots into recovery, wipes/nandroid/flashes (whatever you chose), and then automatically reboots when it's done.

Thanks for the quick reply, I already know about Rom Manager though.
The thing is that I'd love to do it all from a single script from my computer, because I always download roms on it. I'm most likely just a short command passed to recovery, which would solve my lazyness.

Basically I'm a lazy ass and would like to make things happen in less steps.
 

Ashex1

Senior Member
Feb 2, 2010
189
5
I flashed Clockwork Recovery via Rom Manager then flashed the Persian Font zip and have lost the boot animation. I've never used Clockwork on my Desire before so I don't know what the expected behavior is.

Has anyone else lost their boot animation after flashing Clockwork? Tried pushing bootanimation.zip to /data/local but had no change.


Bell HTC Desire Z (Debranded) 1.34
 

Wing_Zero85

Senior Member
Nov 2, 2010
323
43
If I wan't to try CM7 i need to install CWR 3.x .
I've found online CWR 3.0.0.0 , 3.0.0.2 , 3.0.0.5 . Which is the more stable?
I've tried 3.0.0.0 and it' can't restore a backuo made with 2.5.1.3. Is that normal?
 

KoolKidsKlub

Senior Member
Aug 8, 2010
179
11
If I wan't to try CM7 i need to install CWR 3.x .
I've found online CWR 3.0.0.0 , 3.0.0.2 , 3.0.0.5 . Which is the more stable?
I've tried 3.0.0.0 and it' can't restore a backuo made with 2.5.1.3. Is that normal?

From what I have heard, if your on a 3.x recovery, you can't restore backups made on a 2.x recovery, you would have to flash back the 2.x recovery before you could use your old backup again.
 

KoolKidsKlub

Senior Member
Aug 8, 2010
179
11
whenever i try to backup my current rom it keeps sending me an error message that it is unable to mount system. any thoughts?
I have read that you need to mount the /system partition first from within the recovery. Or something like that, I don't remember who said it or what for but I just remembered it and thought that it might help.
 

techemically

Senior Member
Jan 15, 2010
72
3
Cannot turn off my vision/G2 after clockwork recovery flash

I recently rooted and flashed the clockwork recovery (version 2.5.1.3) and now when I turn off the phone (with quick boot app or by holding power button down and selecting "power off") the phone appears to shut down for about 2 seconds then automatically is booted into recovery mode! Has anyone else seen this? Is this known with my version? Has anyone erased the recovery and re flashed with negative consequences in my situation?

EDIT:erased and re flashed cw: this has not changed/resolved the issue.... :(

EDIT #2: OK, so all this happens ONLY when plugged into the HTC wall charger. If I unplug the phone and turn it off it will stay off...until I plug it into the wall again. Once plugged in it will automatically boot up into recovery mode without ANY buttons being pressed! Peculiar bug I must say; any ideas?
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 18
    Installation instructions:
    1. YOUR PHONE MUST ALREADY BE S-OFF. SEE THE OTHER THREADS IN THIS FORUM ON HOW TO DO THAT.
    2. I recommend getting on Wi-Fi.
    3. Download ROM Manager from the Market. You MUST have at least 2.5.0.6.
    4. Flash Recovery.
    5. Choose G2 as your phone.
    6. Accept the Superuser prompt.
    7. Use ROM Manager to create a Backup.
    8. Watch the backup go!

    That's it! This is completely painless and safe!

    If you appreciate my work, please buy the Premium version of ROM Manager!

    If you can't seem to get ROM Manager off the market, you can get it from my homepage:
    http://www.koushikdutta.com/2010/02/clockwork-recovery-image.html
    http://koush.tandtgaming.com//recoveries/RomManager.apk

    Or to manually install the recovery via fastboot, use this:
    http://koush.tandtgaming.com/recoveries/recovery-clockwork-2.5.1.2-vision.img
    3
    Sorry for the wait.

    sorry for the slow response... busy with the dayjob... I'm sure you understand. If you can mirror it, be my guest... hopefully megaupload allows more downloads. :D

    http://www.megaupload.com/?d=F5RZQV26
    3
    solved? sorta?

    I can confirm the boot into recovery when power off and charging is still present on CWM 3.0.0.x.

    EDIT: ^^^ themetatron beat me to it

    yes it does happen with 3.x recovery

    So I decided to play around with the clockworkmod recovery image for version 2.5.1.3 to try to mimic the charging state that the OTA recovery does when it displays the battery icon... and got it to behave properly sans the battery image by just adding /sbin/offmode_charging (and some other ones form OTA) and the service line associated with starting the binaries to init.rc (all taken from OTA recovery)... my G2 still has CM 2.5.1.3 but now I can leave the phone off and it will continue to charge without the screen being on, when you unplug it it will turn off (confirmed through an "uptime" through abd), and when you press the power button with it plugged in it will boot up to normal mode.... if anyone is interested in the recovery.img with these mods, here's a link:

    http://rapidshare.com/files/442828224/recovery-clockworkmod-vision-offmode_charging.img
    NOTE: your phone IS still on when you plug it in after turning it off (meaning you can ADB into it, and check uptime and such)... however... if the power goes out or you unplug it... it will turn OFF and stay off.
    2
    Everytime I have my charger plugged and turn the phone off, it goes straight to recovery mode and I can turn it off fully :confused:

    Anyone else have a similar problem? :mad:

    Simple answer:
    If you read thru this thread almost on every page is the answer buddy. This is a bug on clockwork recovery that will most likely never get fixed.

    From the developer:
    The G2 boots into "recovery" when powered off and charging to show you the charge icon. It's a special mode. This will probably never be fixed, because HTC's recovery code is not open source, so I would not know how to fix it.

    New development posted just 15 posts prior to your question:
    So I decided to play around with the clockworkmod recovery image for version 2.5.1.3 to try to mimic the charging state that the OTA recovery does when it displays the battery icon... and got it to behave properly sans the battery image by just adding /sbin/offmode_charging (and some other ones form OTA) and the service line associated with starting the binaries to init.rc (all taken from OTA recovery)... my G2 still has CM 2.5.1.3 but now I can leave the phone off and it will continue to charge without the screen being on, when you unplug it it will turn off (confirmed through an "uptime" through abd), and when you press the power button with it plugged in it will boot up to normal mode.... if anyone is interested in the recovery.img with these mods, here's a link:

    http://rapidshare.com/files/442828224/recovery-clockworkmod-vision-offmode_charging.img
    NOTE: your phone IS still on when you plug it in after turning it off (meaning you can ADB into it, and check uptime and such)... however... if the power goes out or you unplug it... it will turn OFF and stay off.

    Or alternatively, you can go back to the stock recovery or the stock engineering recovery (if you search, there are already tons of threads on this).
    2
    OffMode Charging

    The G2 boots into "recovery" when powered off and charging to show you the charge icon. It's a special mode. This will probably never be fixed, because HTC's recovery code is not open source, so I would not know how to fix it.

    Actually this is easily fixable. (if only i knew c and had the exact source for the vision version of clockwork recovery)

    The device boots with the kernel parameter "androidboot.mode=offmode_charging"
    as can be seen via "cat /proc/cmdline"
    Its also in /cache/recovery/log" as "ro.bootmode=offmode_charging"

    Someone needs to implement a charging program into clockwork recovery that checks for this variable on bootup and launches a charging gui with true charging led control and a progressbar.
    When the charger/usb is unplugged it simply exits recovery and turns off the phone.

    Regards,
    OllieD