yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] htchd2fix:
for people not used to hd2 toolkit....

after replacing the image in you pc open toolkit

check install recovery

click install

read instruction at windows that open up.

very easy great recovery

wish new roms with yes no menu install had touch screen feature......
[HD2 Android NAND Development] DaraM:
daily usage ROM

Hey, Munjeni,

Really love the daily ROM, and still using it since early part of December...

Any update coming? I know it is off-topic, sorry....but I can't resisted....:D

Million thanks!!!
[HD2 Android NAND Development] roloracer:
really loving the new beta4 , don't see me using any other recovery from now on, great job!:D
[HD2 Android NAND Development] munjeni:
Hey, thanks all! I'm realy happy to see you happy :) Yes, I have plan to add basic themable support but after implementing all my ideas inside recovery! Now I need help. Problem is poll() function, I never played with an "wait condition" in my (WEB) programing, so I not understand how to create an function that will be used to fill an int in background on 5s (for example, that function will be ussed for reading /sys/class/power_supply/battery/capacity and fill an int on 5s interval or on "capacity change"). Anyone have skills to post here (or PM me) an basic function that fill do the poll() job? (minui/events.c)

EDIT:

I created an skin -> http://img221.imageshack.us/img221/3558/iconclockwork.png what you think if I add that as a default skin for CWM Touch??
[HD2 Android NAND Development] Braakie:
This is a great skin for the standard CWM Touch
[HD2 Android NAND Development] roloracer:
I think is really nice and it would look awesome if the font would be white and selection panel would be a grey color. :D
[HD2 Android NAND Development] t0mm13b:
Hummm... This has come to my attention as I noticed this, and would kindly seek clarification on where the original source came from as funnily enough this was published on this forum going back to August 31st 2011.
[HD2 Android NAND Development] munjeni:
source in this thread I made and is unique, so this is a great coincidence! My first work with recovery come from 30.12.2011 from this thread -> http://xdaforums.com/showthread.php?t=1277851&page=26 I think that explains enough :)
[HD2 Android NAND Development] hecatae:
removed post as requested by munjeni
[HD2 Android NAND Development] munjeni:
No dude, read carefully this thread -> http://xdaforums.com/showthread.php?t=1277851&page=26 and you will see that I not use any other source, my work with touch cwm is totaly my work and I will post my source soon and you will see that I am 100% right! Wait 10 minutes until I post diff.patch

https://github.com/t0mm13b/PhoTomCWM give me date for commit when touch support is pushed to github, I realy want to see diference!

EDIT:

If I'm right, and you like my work, and you want to use my work with your CWM, fill free to include my name in your git! Here is my work! Any my future work with recovery will be non public (source)!
[HD2 Android NAND Development] t0mm13b:
The sources were committed to github on 6th September, 2011 as a FYI, it was spanned across this forum, and here for Zte Skate, and also here, here and here for Zte Racer.
[HD2 Android NAND Development] munjeni:
Ok, If I'm right I want an apology from you and all your posts before this post to be edited, ok? Source is in post 94!
[HD2 Android NAND Development] t0mm13b:
Not issuing an apology! Period!

Show the sources!

Not just one singular file called Android.mk that you've included in the patch - which is beyond a joke!
[HD2 Android NAND Development] corrsea:
This CWM rocks. Keep up the great work!
[HD2 Android NAND Development] munjeni:
I posted all my changes maded to gingerbread cm7 source, all changes is in patch, so I waiting you to compare mine work and your work, and finaly your apology, ok? Read patch again and you will see that there is not only android.mk!!
[HD2 Android NAND Development] t0mm13b:
Thank you for showing your source and apologize for my tone across this thread. If you'd like any assistance on developing this, I'd be happy to help out.
[HD2 Android NAND Development] munjeni:
Ok, I appreciate your apologize, thanks!
[HD2 Android NAND Development] htchd2fix:
Why don't you set this in private?

i don't understand why use so many pages for nothing?

Thanx to munjeni for your recovery ...

and tomm

yours looks great too but onestly i didnt notice untill today..is it possible to make a 5.0.2.7 cwr???

thanx
[HD2 Android NAND Development] arif-ali:
Look. The competition is great. Twrp2, 4ext, thus one, it gives people more choice. Will make products better with competition. And there's also Phoenix, which agrabren us coming with soon.

Btw, Keep up the great work
[HD2 Android NAND Development] roloracer:
I'm glad the stand off is over and we can get back to testing and getting munjeni to add the new background he made with maybe a new color to match for the next beta for all of us to enjoy! :cool:
[HD2 Android NAND Development] Aitrus:
There is a recovery in the nexus one forums that is similar to this one. That has the battery % and the clock maybe you can see how that person did his?

Here by madmaxx. http://xdaforums.com/showthread.php?t=1419813

I hope this helps you.
[HD2 Android NAND Development] dermann:
This is pretty nice! I have a question, are the soft buttons suppose to flicker with the vibration? It's a small flicker and it's very fast, it took me a bit to notice it. However its nothing that would stop me from using it.

keep up the good work. ;)
[HD2 Android NAND Development] kylew1212:
Keep up the good work! I wanted to tell you that this new recovery has made headline news. It's on the portal of xda. It's a featured article! Looking forward to the completed product!:):):):):):):):):):):):):):)
[HD2 Android NAND Development] Looki75:
Thanks for this GREAT recovery!

With the usual one, I was always thinking: "oh boy, once more I will have to click-click-click buttons and risk that they fail"!

I am using Beta4 from yesterday, and I noticed some issues I would like to share here (if it can be corrected, would be great):

1/ On the top line, I see "batt=" but there is not value...

2/ When I make a NAND backup or restore, the progression bar is completely moved to the bottom of the screen, almost invisible (out of the screen)

Thanks
[HD2 Android NAND Development] mexicandroid:
Sticky????

Im waiting for this to get out of beta to use but this should definetly be a STICKY in my opinion.

MODS PLEASE CONSIDER THIS THREAD AS STICKY

it is even mentioned in the first page, I mean come on its touch recovery lol
[HD2 Android NAND Development] vua777:
if you wanna see how is that touch recovery work on HD2, try here http://xdaforums.com/showpost.php?p=20703121&postcount=77
[HD2 Android NAND Development] vua777:
another concept from Nexus

[youtube]2LOL5im2t3I[/youtube]
[HD2 Android NAND Development] contactwajeeh:
Installed this recovery. Working great thanks to Munjeni. Wanted to report a bug that when ever I try to install the roms which has interactive interface (yes/no script) or we can say allinone (dorimanx, rcmix). I am unable to find the buttons on these screens i have to navigate using volume up/down keys in these menus. Hope this is also sorted out soon.

Thanks

Wajee
[HD2 Android NAND Development] munjeni:
Thanks to all for sugestions!

Please let me know in which menu/submenu you see bug, I not understand where to look.

Yes I have plan to add battery indicator, leds, maybe clock itd, curently I going to find best way about polling interface that will be used to get all intervals in real time, so I will update this thread with progress. Also after battery indicator...etc I have plan to go working/translating all text outputs to pictures so it will look cool :) and also will create auto calculation for screens/positions/sizes that will be compatible with other phones with smaller screen and biger screen, have plan to inprove button efects...etc... Today we celebrate Christmas and after the holidays I will continue to work.
[HD2 Android NAND Development] essi_baba:
Thanks

woooow its work grate and very very nice thank you.:D
[HD2 Android NAND Development] DJ_MiX:
I attached a Recovery Zip format.

Just go to recovery and select zip.

Tested by me
[HD2 Android NAND Development] contactwajeeh:
I was talking about the all in one roms (by dorimanx and sbryan(rcmix3d)) they do have yes/no options during installation. That is where the buttons disappear. Hope that is of your help.

Thanks

Wajee
[HD2 Android NAND Development] tkpamorn:
Thank you for good job
[HD2 Android NAND Development] Maximillion195:
This is great its good to give my hard buttons a rest, cant wait for battery indicator hate not knowing what the battery is on in CWR.

Cheers for the good work keep it up :)
[HD2 Android NAND Development] pee-wee:
This is what I'm looking for, so I don't need to repartition again :)

Thanks...

Sent from my HTC HD2
[HD2 Android NAND Development] essi_baba:
suggest

hi thanks for this

please fix or add to new ver:

1-progress bar in down page must change location and fix in upper row

2-battery % not showed

3-in bottom please add begger area for icons , some time after touched keys not work i`m must be touched center area in icons to work .

4-for better up and downing add function to touch and hold for turbo scroll or auto scrolling. ;):cool:
[HD2 Android NAND Development] lan78691:
Maybe your next project should be adding touchscreen support to Magldr? :)

I am willing to help if needed be because I would really like touchscreen functionality on all aspects of the phone if possible.
[HD2 Android NAND Development] tmihai20:
Can vibration be turned off? I flashed your touch recovery now, since I tested some IceCreamSandwich roms.
[HD2 Android NAND Development] TheInVisibleGoD:
MAGLDR is closed-source, that's not possible!
[HD2 Android NAND Development] lan78691:
well then nevermind....lol. i don't know why they didn't make that open-source :(
[HD2 Android NAND Development] wilwilwel:
I've the same "problem".

I've done a Task29

Installed mglrd

Instaled cwm recovery touch

Flashed NexusHD2 ICS v1.0

rebooted

went into recovery and mounted all

rebooted

chose to boot of nand

it loads ginit.gz and etc

and gets stuck at htc boot logo

What am I doing wrong?

Solved:

My bad the standard size is at 150 ICS requires 210 and 10 cache, after changing it works flawles

dumb me, sorry for polluting the thread
[HD2 Android NAND Development] munjeni:
Hi all, here http://www.multiupload.com/CFBZJ7WCNJ is an version that I implemented battery level converted to icon :), this is an beta 4 ++ version, fixed progress bar, fixed/increased touch button region, added new skin, changed font color to gray (too looks like skin). Only problem for now is I not understand how to implement polling function for real time polling/battery level) so to get real battery level you need to press button up or button down! Please let me know your opinions...

New version including battery level icon look like -> http://img209.imageshack.us/img209/3558/iconclockwork.png
[HD2 Android NAND Development] arif-ali:
maybe worth looking at the twrp or twrp2 code, maybe they have something like that already, as they show battery level as well on both twrp 1.1.1 and twrp 2

https://github.com/TeamWin/Team-Win-Recovery-Project

https://github.com/TeamWin/TWRP2

One or the other may help your cause. The first one is a normal volume up/down button recovery, and the second one is the back-end of their touch recovery
[HD2 Android NAND Development] munjeni:
Is it showing realtime battery level or it showing battery level only once "on init" (I saw that allready in an recovery)??
[HD2 Android NAND Development] pee-wee:
It would be noce if can install through CWM

Sent from my HTC HD2
[HD2 Android NAND Development] munjeni:
Its easy, just open zip from -> http://xdaforums.com/showpost.php?p=21103510&postcount=116 and replace recovery-leo.img with current recovery-raw.img (do not forget to rename to recovery-leo.img) :)

@arif-alli, your version is great! Please give me link to part of code where is battery polling, I tried your version and you are right about polling (its in real time), thanks!
[HD2 Android NAND Development] arif-ali:
The code is not mine, it's owned by TeamWin, I only ported 1.1.1 to HD2, and they got it work working for twrp2 with my help, the GUI code is not in the public domain, and will never be
[HD2 Android NAND Development] munjeni:
Hey man, found part of code and parts of time! Thanks for link of the twrp!
[HD2 Android NAND Development] arif-ali:
no problem at all, we are here to help each other where we can

In my opinion, That is the whole point of XDA
[HD2 Android NAND Development] mlkjuggalo:
the new batt icon and background image is sweet but i think the text color should stay blue the grey is kinda hard to see on the black background other than that it nice thanks and keep up the good :)

edit here is the cwm zip with new version :)
[HD2 Android NAND Development] Macelangelo77:
Thanks for your work, munjeni. I like it very much.

Would it be possible to provide a flashable zip by default? It makes it easier to install on the go, as I'm away from home a lot and I can't use any PC at work for repacking manually, due to security policies.

Thanks in advance.

Sincerely,

Mac

Sent from my HTC HD2 with XDA Premium app
[HD2 Android NAND Development] munjeni:
Huh, :o there is battery and time function but no polling function:(

@arif-ali maybe you know what I need for polling (I looking in touch events polling function but not know how to do it for battery)? If you want I will share with you whole source!

ok next version will be in zip!
[HD2 Android NAND Development] arif-ali:
Does the below code not do it in extra-functions.cpp

int get_battery_level(void)
{
static int lastVal = -1;
static time_t nextSecCheck = 0;

struct timeval curTime;
gettimeofday(&curTime, NULL);
if (curTime.tv_sec > nextSecCheck)
{
char cap_s[4];
FILE * cap = fopen("/sys/class/power_supply/battery/capacity","rt");
if (cap)
{
fgets(cap_s, 4, cap);
fclose(cap);
lastVal = atoi(cap_s);
if (lastVal > 100) lastVal = 100;
if (lastVal < 0) lastVal = 0;
}
nextSecCheck = curTime.tv_sec + 60;
}
return lastVal;
}

Edit; ah that's not pollling
[HD2 Android NAND Development] pee-wee:
Thanks :D

Hehehe you're the man :D

Sent from my HTC HD2
[HD2 Android NAND Development] Looki75:
Wonderful! The battery icon is awesome!

I particularly love to have the battery level in CWR...

Indeed, I use to go into CWR to "fast charge" my battery when I don't need the phone; as CWR is very low power consumption, the battery is charged very fast; thanks to your new CWR, I can now even check the battery level while "fast charging"! This is fantastic!

The new skin is very nice too!

Some ideas/improvements:

1/ The battery icon is not visible at start, it becomes visible only when you start moving in the menu; also the value is updated only when you move in the menu. Is it normal? Can it be updated regularly (each 30secs, or each 60secs would be enough I think)?

2/ The skin presents the banding issue. To solve that, you can use a filter in Photoshop (filter name is Telegraphics\5_5_5). Please find attached this filter for Photoshop (the filter is FREE, you could have found it on Telegraphics website, but as I have it ready, I decided to help you :)).

3/ I have no opinion on the text color: I didn't mind the orange, I liked the blue, I like the gray... :)

Continue your great work!

It's fantastic!!!
[HD2 Android NAND Development] munjeni:
I need an polling function that will run in background like an daemon and function need to poll for example all 5 seconds (there I will implement all: battery level, leds...etc) :) If you found way please help me!

full source patch
[HD2 Android NAND Development] arif-ali:
:)

that doesn't look like any source code, he he

An idea, maybe create another binary for polling purposes, which then creates a new event every 60 seconds, and then in the main recovery source code create some kind of eventhandler which traps it, and updates the GUI

Then add the binary into init.rc
[HD2 Android NAND Development] munjeni:
Its good idea but hard for me to understand how to do it! Have lots of the ideas but problem is only polling :) I sent you PM

Yes I have plan to add leds...etc but as you see in my post I looking for polling function that will be used to get all values in real time! When I found way how to do that I will implement it all to get screen indicators in real time! Battery text to icon function is full completed but instead of polling its bassed on touch up/down event... will be fixed soon!
[HD2 Android NAND Development] Looki75:
Yes, I'm sorry, I realized the conversation was going-on on about the polling only after I posted... :o
[HD2 Android NAND Development] Macelangelo77:
Would you please consider to create a high contrast theme, when implementing themes? I'm slightly visual impaired and have trouble reading the text as well as the buttons with your new theme. The banding, as mentioned in a previous post, makes the buttons even harder to read. Default or bright white on a black background would be great. I know, it's boring, but it makes reading a lot easier. At least for me.

Regarding themes, would it be hard to implement a similar way like with 4EXT recovery? They use themes which can be flashed through CWM and backups are made on SD. It also would be great if there was a way to theme CWM itself without there need to compile it from source....

Thanks in advance

Sincerely,

Mac

Sent from my HTC HD2 with XDA Premium app
[HD2 Android NAND Development] eterno13:
thanks for this man
[HD2 Android NAND Development] munjeni:
Hi, ok, I have plan to create tutorial about changing themes (will implement an easy thing for example placing custom themes to sd card - if no sd card themes than default cwm theme will be ussed, or if sd card theme exist than custom theme will be used ...etc, what you think?), but after finishing battery indicator and leds!
[HD2 Android NAND Development] zenida:
I suggest you to put the Back and Ok buttons to opposite sides, maybe one on the left and one on the right side (like on Nexus video shared here) because those are important keys that do 2 different choise and someone can missclick the wrong one making a mistake ;)

Oh... Now I like your theme choise (the black one) clearer and more readable, so I think that I'll use it soon...
[HD2 Android NAND Development] YZ:
I like the new version with the battery icon. You have done a great job! :)
[HD2 Android NAND Development] roloracer:
glad to see the gray themed CWM is out , I'll be updating it soon.:D
[HD2 Android NAND Development] corrsea:
Love the new theme. Also the buttons seem more responsive. Testing it out now. keep up the good work!
[HD2 Android NAND Development] pee-wee:
I think I love this grey theme :)

Sent from my HTC HD2
[HD2 Android NAND Development] Macelangelo77:
Sounds great to me :) Looking forward to it...

Sincerely,

Mac
[HD2 Android NAND Development] adidas4death:
[Q]CLK?

Greetings!

Guys, how can I install this 'cause I have CLK. :confused:

Thanks in advance

adidas4death​
[HD2 Android NAND Development] ratelutz:
download the package and extract it

boot phone into bootloader

fastboot flash recovery <path_to_recovery-raw.img>
[HD2 Android NAND Development] zach.antre:
You can either replace recovery img with the one from a CWM update zip

or

using a pc

fastboot flash recovery recovery.img
[HD2 Android NAND Development] Authi:
Hi, I prefer beta 4 blue theme, so I returned to beta 4 after tested beta 4 battery icon. :confused:

I have cLK 1.5.0 instaled, and it's true, doing like this, works fine. ;)
[HD2 Android NAND Development] munjeni:
Beta 5 done, please read first post about changes :)
[HD2 Android NAND Development] zenida:
UP for suggestion... waiting reply
[HD2 Android NAND Development] munjeni:
Ok tomorrow buttons will be realigned:)
[HD2 Android NAND Development] zenida:
I tried to install your recovery from my "traditional" cwm 5.0.2.7 but it failed.

Error Report:

Writing recovery partition...
assert failed: write_raw_image("/tmp/recovery.img", "recovery")
E: Error in /sdcard/CWMTouchHD2.zip
(Status 7)
Installation aborted.

CWM was corrupted then I needed to reflash CWM and restore a backup of my ROM
[HD2 Android NAND Development] wilwilwel:
What language is this writen? Is it in c++? Im used to flash as3 and a lil c+ .. maybe i should learn the language to see if in capable to code on phone systems
[HD2 Android NAND Development] roloracer:
In clk, just download the cwm zip go into cwm, flash it, and then go into advanced and choose reboot recovery.

On a side note I have to say so far the grey is my favorite theme on the CWM, great job munjeni! :D
[HD2 Android NAND Development] momuch:
+1
[HD2 Android NAND Development] mlkjuggalo:
wow the v5 is sweet installed just fine the battery icon works in real time and got to love the phone charges while in recovery keep up the good work can't wait to see what you do next
[HD2 Android NAND Development] munjeni:
Huh, yes, some recovery could not installing from zip but you not need to restore backup of the rom! Use adb to reinstall corrupted recovery:

adb shell

mount -t vfat -o rw /dev/block/mmcblk0p1 /sdcard

Exit from adb

adb push recovery-raw.img /sdcard/

adb shell

erase_image recovery

flash_image recovery recovery-raw.img

umount /sdcard

reboot
[HD2 Android NAND Development] zenida:
Unfortunately I didn't know this way... I had to reflash CWM through repartitioning... so I needed to restore my backup

Tnx anyway ;) next time I'll do like that
[HD2 Android NAND Development] CR5N:
I like this, save those buttons!

A possible bug though, when I cleared battery stats the phone hung and had to pull battery.

Also text on the recovery screen after flashing says beta4 (when I hit the download link for beta5 on OP.)
[HD2 Android NAND Development] mlkjuggalo:
i have the same says beta 4 after flashing zip :confused:
[HD2 Android NAND Development] ccbm3:
Great job on the touch recovery! one suggestion though. Theres alot of ROMs that now use the yes/no script can you implement a way so that it can be seen? I was waiting for nearly 10 mins for the yes/no option but instead i had the press the buttons in order to see it for about 1 second then it would go back to the previous screen
[HD2 Android NAND Development] carl1961:
just verified too no yes/no support everything else is great!!
[HD2 Android NAND Development] munjeni:
I realy newer seen that yes/no thing so I waiting an explanation or screen shoot about yes/no feature... I will add that support but you need to help me with an screen shoot or by an explanation about that!

Did phone hung up during charging?

Beta 4 -> sorry I forgot to change to 5 :)
[HD2 Android NAND Development] zbeky:
Download for example dorimanx kernel - its installation has many yes/no choices
[HD2 Android NAND Development] munjeni:
Ok, can I see that yes/no menu? Is it menu or? In which recovery I can see that yes/no menu? For what use is yes/no? Sorry, really not understand! Any direct link to dorimanx kernel?
[HD2 Android NAND Development] zbeky:
http://xdaforums.com/showthread.php?t=1322639

It´s nothing in recovery menu. You just start flashing it as normal ROM or kernel and during instalation there are choices on screen (clk/magldr, 2wr/no-2wr, ...). You push volume buttons to choose and call button to confirm
[HD2 Android NAND Development] babyvox550:
Really good work
[HD2 Android NAND Development] kazantip1288:
munjeni,

add to the 1st post - if zip file of this beta 5 don't flashing then just unzip recovery-raw.img and put it in the folder with Recovery with replacing in flash.cfg this part recovery rrecov|ro|nospr filesize
[HD2 Android NAND Development] gogodu5sU:
Thanks munjeni! Can't await theme support. :p
[HD2 Android NAND Development] carl1961:
In the clk thread you can use the 5.0.2.6 recovery it has the yes/no support they have link in first page for source code
[HD2 Android NAND Development] ricky886:
Who can make beta 5 of update zip?

I don't know how to make it;)