yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] Dude360:
Mod Update - Sense 2.1 Remaps

Added:

Fully Transparent Rosie & Personalize button remap

70% Transparent Rosie & Personalize button remap

30% Transparent Rosie & Personalize button remap

4 Column Transparent App Drawer & Personalize button remap

5 Column App Drawer & Personalize button remap

5 Column Transparent App Drawer & Personalize button remap

Thanks to FlinxOver for the remap. Dont forget to install LaunchKey ;)
[Desire HD Android Development] :
I raised the battery calibration issue before, and it isn't the script at fault. It appears to be a feature of Android; however I've given up on battery calibration as it has no effect with this behaviour occuring.
[Desire HD Android Development] Sybregunne:
Anybody here with the skills to develop apk's? I have been trying to write a UI for configuring Daemonset. The idea is robust: here is a general flow of what I have in mind...

onCreate...

issue cat /system/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

-read the output

-convert to array

-add as spinner values for frequency settings

issue cat /system/devices/system/cpu/cpu0/cpufreq/scaling_available_governors

-read output

-convert to array

-add as spinner values for governor settings

in the same way read each /system/etc/virtuos_oc/ files and set as initial values on the UI

after that the UI is ready just use the spinner (dropdown) to select frequencies and governors.

------------------------------

Here is where I'm at right now.

cat fails and the UI just freezes. So can anyone help?
[Desire HD Android Development] clouds5:
So what u are saying is that android system deletes the batterystats.bin?
[Desire HD Android Development] :
Okay, I really, really believe that there has been huge misunderstanding from the Android community as to what batterystats.bin is.

All I sincerely believe it is is the file that stores your battery

history

for the graph in Settings. Nothing more. I had suspected this for a few weeks now, but hadn't looked as I have needed my phone, and in the event I was wrong, at least now I'd have the time to sort it out.

Take your phone off the charger and of course we all know that our battery usage is graphed.

Reboot into Recovery, wipe battery stats, then reboot and have a look at your battery graph again. You'll notice that it has reset.

I can almost guarantee that it does nothing whatsoever for battery life, it is merely data for your history from your previous full charge onwards.

Maybe I can claim to be the person who discovered batterystats.bin is merely for the graph...:D
[Desire HD Android Development] Dude360:
Doesnt the battery and the OS communicate with each other through the batterystats.bin though?

So if you wipe stats at 50% charge, Android reads the .bin and sees that its empty so assumes a full charge of 100%.

Isnt this what the trouble of charging to 100% and 0mha in CurrentWidget was about?

Getting a 100% charged battery before wiping stats so the drain was better as Android reads a correct batterystats.bin?

The reason the graphs reset is that there is nothing to read as youve wiped it and the OS hasnt been able to log anything to it yet?
[Desire HD Android Development] bennyma:
Where do i download these?
[Desire HD Android Development] Dude360:
Link in my sig :)
[Desire HD Android Development] AndriodLover:
http://xdaforums.com/showthread.php?p=14774168

Edit: a little late.
[Desire HD Android Development] Patrics83:
Okey guys. I might just share my teory also then. :D

And don't kill me if I'm wrong :P

1, Batterystats.bin does not get deleted by the Android system by default.

2, Batterystats.bin is collecting information about how we use our devices. Like a car when it adapts the fuel and correcting ignition, fule/air mixture :P Just kidding but anyway. It creates a statistic file for the system to work after.

3, We wipe batterystats.bin after ROM flash becasue we want to make sure we get as accurat battery drain as possible. It will however take a couple of days to really give us a good batterystats.bin

4, Many ppl probably thinks that it get's deleted since the date and time has been changed.. That's not correct ofc. It will change date and time for example after reboot, plugin charger and stuff like that.
[Desire HD Android Development] :
You're right, batterystats.bin is where the graph gets the history from. However, try wiping and rebooting, and it'll still read its proper percentage, not 100%

The reason for people wiping at a full, 0mA charge is because the theory is that the batterystats.bin file stores the full capacity, the empty capacity, and everything in between. That is the theory though; it doesn't seem to be the case.

Of course, battery usage is not affected by the file; just the perceived percentage that we see, but we all know that already.

Basically, all Android is doing is logging battery usage from 100% charge; as soon as the gauge hits 100%, it will reset batterystats.bin when unplugged. What I'm saying is that it is not for getting the most out of the battery, as it is getting wiped every full charge.

4EXT reads battery percentage by reading what the last percentage was according to batterystats.bin; I don't think it calculates the actual charge. You delete batterystats.bin and reboot recovery, it will read 0% charge.
[Desire HD Android Development] Dude360:
Yeah because to get accurate drain it needs more than a couple of hours logging! After this the battery starts to settle down and Android is able to relate back to its previous, accurate stats.

As for 4, it makes perfect sense, time & date will change when any file is written to or overwritten.
[Desire HD Android Development] Dude360:
TBH as long as I can get over 10hrs out of my DHD Im happy :)

OOI where/who was the first people to think about wiping batterystats?
[Desire HD Android Development] KEYSERSOZE27:
Noob Question From Me

Hi,

Sorry for asking a noob question, I will like to flash the Android Revolution HD Rom on my Desire HD (bought in Singapore), but before I do that can someone point me to a link on how do I flash my phone back to stock Rom from a custom Rom and where do I download a HTC stock Rom (Singapore)

Apologies for posting a noob question

Thank you :o
[Desire HD Android Development] :
1. Then why is it that the file is being completely wiped and is only 4.9xKB in size?

2. It collects information based on usage, but it appears to be wiped when unplugged. And these are electronics; the amount of electricity used can't be optimised, it will use whatever it needs. Fuel/air ratios are completely different; the fuel to air ratio is monitored to try and keep it as close as possible to what it is supposed to be at, at a given RPM (the mapping), to produce the most power possible.

3. Depends if the file is wiped when unplugged.

4. The date on mine doesn't work xD I'm basing it on the change in file size.

EDIT: Okay, now on my computer, so can actually see everything I want to respond to!

Dude360: Let's start from scratch :) Basically, what I'm saying is that everything that you see in the battery usage history section, comes from batterystats.bin. Yes, you're right, that includes WiFi usage, HSDPA, everything that uses a quantifiable amount of power. This includes the graph. WiFi drain and all this

is

battery history.

Yes, 4EXT reads it from there because that's the only place it can read it from...hence why it does it like that :)

Patrics83: If you plug your phone into the charger, and charge it to anything that isn't full (up to 99%), batterystats.bin will not be wiped. batterystats.bin does not appear to be having an accurate effect on drain.

If you charge it to 100%, unplug it, batterystats.bin is wiped, completely (under 5KB in size). It's exactly the same as wiping it manually. As I said above, my date reading isn't correct in ES File Explorer, so I can't tell by date anyway. So it won't be basing charge on previous information.

Next time you unplug your phone on full charge, take a look and you'll see what I mean. However, I very much doubt that it is more than a log for battery usage info.
[Desire HD Android Development] arovik:
Can someone tell me what "rosie" is?
[Desire HD Android Development] fault123:
Then how can one explain the fact that every time we unplug the charger at 100% the file begins from 2.5 (or something like that) kb and it ends up with 65 KB at 0 % of battery?

It is logical to accept that at every full charge the file begins from zero and logs everything for statistical purposes only. The moment it is plugged to charger, it deletes it to prepare for the new round of statistics. IMHO it has not much to do with battery life.
[Desire HD Android Development] :
This post is what I mean.

I have updated my previous post, as I didn't want to double post.
[Desire HD Android Development] Wacco001:
A whole lotta of it is an AC/DC song (LOL) ;) and .. the rosie you refer too is HTC's "rosie" Android User Interface (Sense UI).. (Rosie is the codename. )
[Desire HD Android Development] roboprint:
You can flash your stock rom exactly the same method like you will flash Android Revolution HD .

This is link for the stock rom's. just find yours

http://xdaforums.com/showthread.php?t=824357&highlight=stock+rom

I don't believe that you will back to stock rom after flashing ARHD 5.2.3 :)
[Desire HD Android Development] Patrics83:
I hope someone how really knows what it really does steps in here and tells us. Because I'm pretty sure no one here really knows for sure :D
[Desire HD Android Development] roboprint:
I don't know even delete this file or not? :D
[Desire HD Android Development] :
1. I have deleted the battery script and tried it; it isn't to do with the battery script.

2. I appear to be the internet's biggest pessemist :D Sorry! :D

3. Ignore my point, I meant it depends on whether or not it works the way I think it might.

4. Ah, I won't pay for that :P I don't need to anyway, I think that the size change says it all :)
[Desire HD Android Development] lukogriffioen:
1. The calibration script does that, not android. The calibration script will be removed in next release as its not calibrating but only deleting the file every full charge.
[Desire HD Android Development] Sybregunne:
It doesn't affect battery life. But if you unplug ur phone before 0mA and the battery stat resets, next charge (in theory) would make ur battery 100% even earlier and without waiting for the 0mA again the time to charge fully becomes shorter, and drain seems faster hence the percieved effect of faster drain.
[Desire HD Android Development] hopscotchjunkie:
I'm also sure that it's not the script that deleting the file; there's nothing in the script that should allow it to run more than once, and the file it creates on completion (/data/.battery-calibrated) hasn't been modified on my system since I first flashed the ROM which would indicate that it hasn't run since then (unless seo's accidentally managed to create a script which ignores all the commands in it except one).

Nevertheless I've deleted the battery calibration script and am currently charging so we'll see what happens when it's done. I remember someone else saying they'd done this as well so I anticipate getting the same result. Unless Mike releases 5.2.3 before I get to 100%.
[Desire HD Android Development] Saluco:
1st of all

you are not posting in the right section (how about Q & A)

2nd why would you wanna go back ????

3rd since you are a ROOKIE.. 1st you should learn a little about rooting , downgrading and installing a custom ROM

i strongly suggest to read carefully this threads

http://xdaforums.com/showthread.php?t=905003

http://xdaforums.com/showthread.php?t=857537

http://xdaforums.com/showthread.php?t=855403

for going back you would need the Official Gingerbread RUU (search on XDA or google sure you would find one....i can't do everything for U :p ) and to get back to S-On (you would know what is that after you read the links)

Have fun reading and good luck

some advice

ALWAYS BACK UP....EVERYTHING

IF SOMETHING GOES WRONG....YOU ARE DEFINETILY NOT DOING SOMETHING RIGHT :D
[Desire HD Android Development] :
Tell you what, let's see what happens when the script is removed in 5.2.3. I'm sceptical only because I've heard about this behaviour before. If the removed script stops this from happening, then...so be it :)
[Desire HD Android Development] KEYSERSOZE27:
Thanks for the reply... just a few more questions...:o:o

1: To flash back to Stock Rom do I use the ""install zip from sdcard" method....do I have the zip the stock rom as the original file is an executable file ?

2: Do I have a do a "HTC Desire HD S-OFF" and "Radio S-OFF in order to flash new radio" before I install the Rom or are all these done in when I instal the Android Revolution HD Rom via "install zip from sdcard"?

Thank you in advance:p
[Desire HD Android Development] Dude360:
I definitely dont but its fun to learn :D
[Desire HD Android Development] Patrics83:
Yeah that's why we all are here. To have fun and learn new stuff everyday :D

So an advice from me. Dron't drink and read threads at XDA.

Because you won't remember a damn thing ;)
[Desire HD Android Development] Wacco001:
I even forgot why I was drinking .. :D
[Desire HD Android Development] frakki:
I've a wifi issue, too! Suddenly wifi stopped working! No chance to reactivate it! tried to reflahs 5.2.2... nothing
[Desire HD Android Development] roboprint:
To install ARHD you should have s-off and root system.

You will not flash ARHD without this.

Read carefully Saluco answer for your first post:

http://xdaforums.com/showpost.php?p=15946762&postcount=42624
[Desire HD Android Development] :
Hmmmmmmmm What did you say I forget &^%$£ :D
[Desire HD Android Development] Whiskey103:
Impossible :D.. Hum.. What did you say?

Edit: ****.. That joke was taken.. Didn't see it when I was replying :(

But it give some insite info about how the Team is thinking/drinking ;)
[Desire HD Android Development] Crusoe86:
Hardcore WiFi issue...

Thats a pitty... 1% with an issue... No reason to talk about... :p

Does your phone see the networks and is not available to connect to them, or are there no networks in the list of the phone?!

Which radio do you have?

Do you try other ROMs then ARHD?

Cyanogen oder MIUI?
[Desire HD Android Development] arovik:
I find it good to turn my thougts on other things now, like ARHD.

After a horrible weekend here in Norway.

Please pray for the victims of the heartless terror in Norway!
[Desire HD Android Development] Whiskey103:
Will do mate.. Such things should never be allowed to happen.
[Desire HD Android Development] frakki:
The phone sees the Networks but is unable to connect!

I'm Using the recommend radio from first post!

No i have not tried other roms, cause arhd allways worked fine but suddenly wifi stopped working!
[Desire HD Android Development] Patrics83:
I guess there is not just flashoholics here :p

Damn guys please try to stay sober until 5.2.3 is released :D
[Desire HD Android Development] byanou69:
We'll try but we are so excited... :o

Mike please do something (good) for us !!! :D
[Desire HD Android Development] Patrics83:
Yeah can't belive it really happend. :(
[Desire HD Android Development] frakki:
factory reset, super-wipe etc.. installing 5.2.2 new ... still no wifi connection! now trying other radio, if thats not working i will try 5.1.11 hopefully it will bring back wifi !
[Desire HD Android Development] Crusoe86:
What you descibe is the same effect that I have when I reboot the phone.

But after I switch off the WiFi and turn it back on, then I am able to connect to the WLAN I want.

Are you able to connect to WLAN after the first reboot after flashing?
[Desire HD Android Development] :
Utterly tragic. I'm not religious, but I'm praying for the victims and their families. RIP.
[Desire HD Android Development] Saluco:
1....to revert...you would need, as i said "Gingerbread RUU ...exe"...you would run this from your windows PC (after you reverted to S-ON...read the Guides)

2. OFC , you need Radio S-On to flash a radio and in the process of ROOTING, after you downgrade and temp toot with Visionary you would get Eng S-OFF using the tool from the Guides....again...you must read the guides

also about 20-30 pages ago in this thread was guy who also reverted to Stock...read his posts and some one who specified the steps of installing a Custom ROM
[Desire HD Android Development] Saluco:
Whiskey...talking about ...DRINKING

to paraphrase Al Pacino in Scent Of a Woman

I can Call you "John " Daniels, since i know you from (not) such a long time :D
[Desire HD Android Development] frakki:
No! No chance for connection! Flashed newes radio! nothing. now trying 5.1.11

Its stoll not working! Flashed 5.1.11 no wifi connection

Is there any chance to bring wifi back to life?
[Desire HD Android Development] M@jkel:
Hmmm, now that's interesting... I noticed that those random reboots that I am expieriencing are mostly happening when being connected to a wifi network :( I've yet to confirm that it doesn't happen on 3G.
[Desire HD Android Development] Crusoe86:
That is a strange issue.

You see networks, but you are not able to connect. Please try another ROM.

For example the one from LeeDroid.

If this does not work, I would try a stock ROM. And if that also not work, maybe it is a hardware issue.

But... Are you able to connect to your WLAN with a Laptop or other mobile phone? You can try to restart your Router. I have a Netgear WNDR3700 with DD-WRT, now I have a rock solid firmware on it, but I had a lot of problems with older and newer releases of DD-WRT. Some devices could connect. Other not. Maybe it is not the fault of your phone. Do you have the possibility to connect to another WLAN? Maybe you can create one with your PC/Laptop.
[Desire HD Android Development] bangsergio:
I had something similar after flash 1.2 kernel got WLAN error no chance to tic off/an and after restore backup got bootloops not sure if backup was corrupt or if is related new recovery, anyway fixed with Install from scratch.

Sent from my Desire HD
[Desire HD Android Development] Crusoe86:
But that seems not to work for him :(

He said that he flashed the ROM more than one time...

Really strange... Lets see if he try some of my hints...
[Desire HD Android Development] frakki:
I was about to throw this damn thing on the wall! I was able to connect with my laptop, with my ps3 with my oldfashioned Samsung Omnia with everything. Mag Guyver would have been able to get connection with a nail and and a piece of paper!!!

But i've dropped of went downstairs were another accesspoint is working and suddenly wifi icon popped up!. Now it works again here without changing anything!!!!

Thx all for your help! im trying to flash 5.2.2 again see if it works :)
[Desire HD Android Development] DroidXAce:
Very good battery life!

I would easily two days (the battery is not fast)

I still do not see the 5.2.3

Behind the friend? :)
[Desire HD Android Development] Crusoe86:
Hahaha... Pretty cool... :D

Nice to hear that it is maybe solved...

We WiFi issue guys have to stay togehter, now that even mike has leave us alone with our problems :p

Please report if it still works after flash :)
[Desire HD Android Development] frakki:
5.2.2 up and running! Wifi UP AND RUNNING :)
[Desire HD Android Development] Crusoe86:
Cool... Hopefully it keeps running now :D
[Desire HD Android Development] redx2evil:
mike,

would like to ask how can i go around if i wanna run the no-sense script but i wanna keep the rosie launcher?
[Desire HD Android Development] haelmchen:
no-sense only real task is to delete rosie
[Desire HD Android Development] Patrics83:
Take a look at my tool ;)

You will find it in my sig.
[Desire HD Android Development] redx2evil:
awesome! thanks a lot mate!
[Desire HD Android Development] mike1986.:
About battery auto-calibration script.

Seo told me this:

.battery-calibrated takes time to be created. 100% on the indicator doesn't mean that battery is fully charged. Normally it's 100% + 1 hour or so.

Sorry for the delay in 5.2.3. Klquicksall is working on new kernel with possibility to changed VDD levels on the fly + some other stuff.
[Desire HD Android Development] Armrhero:
Hi Mike and all,

Do we have a chance to see the release of 5.2.3 this evening despite the remaining work or is it going to be only in the course of the week??

Good luck for the rest of work.

Arma.
[Desire HD Android Development] mike1986.:
your cat is wrong.

Instead of:

cat /system/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

it should be:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

Instead of:

cat /system/devices/system/cpu/cpu0/cpufreq/scaling_available_governors

it should be:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
[Desire HD Android Development] Crusoe86:
Hello mike,

I am still working on a workaroud for the WiFi issue guys...

Because my last request was not answered, maybe you have missed it by all the other posts, I want to ask again.

Is there a file where the services are managed and startet in a defined order?

The init.rc script does not contain the informations I need... And I've not found anything with Google.
[Desire HD Android Development] mike1986.:
Hey mate, to be honest I don't know what HTC did to WiFi on 2.50 release but I know for sure, that in fact WiFi was fixed in some part, because we no longer need wifi fix from 2.36 base. I also don't want to mix 2 bases - it always gives some complications. Let's just wait for the fix from HTC :)
[Desire HD Android Development] clouds5:
Does this mean no 5.2.3 tonight? Then i'll close this browser tab and stop hitting f5 :D
[Desire HD Android Development] Crusoe86:
We should wait for a fix from HTC? How long do you think we have to wait?

It takes a long time to get HTC to the decision to unlock the bootloader...

How long it will take, if we want to get a problem fixed that only a few customers have?
[Desire HD Android Development] mike1986.:
I will do my best to upload it tonight. But can't promise anything.
[Desire HD Android Development] Wacco001:
Very nice idea, an UI for configuring Daemonset .. Hope it will work and love to see the first release to try !!!.. :)
[Desire HD Android Development] Wacco001:
+1

LOL, you guys keep surprising/impressing me more and more :D .. Thumbs Up !!!
[Desire HD Android Development] hopscotchjunkie:
Re: battery stats being wiped on each charge (if anyone's still interested)

Deleted the battery calibration script, rebooted, charged to 100% + 0mA, unplugged and batterystats.bin is back down to 5kB in size (last modified time = time of unplugging). Was ~30kB before charging.

So, whatever's happening to the battery stats is what always happens, regardless of whether there's a script to delete the file on first full charge or not. To the people claiming the script runs each time: are you actually seeing the batterystats.bin deleted each time (i.e. the file is no longer there when you unplug), or are you assuming deletion from the reduced file size and the last-modified timestamp?
[Desire HD Android Development] MarckX:
Does "on the fly" mean that there will be an app or script to modify VDD-levels for us users? :)
[Desire HD Android Development] lenthele:
Had a weird issue today... I was playing Bejeweled 2 when suddenly my Phone rebooted and then was stuck in a bootloop! Only thing I could do was removing the battery... After that it booted normally! I have never had any issues regarding bootloops. That was really strange!
[Desire HD Android Development] :
That's due to instability. What kernel are you running, and at what speeds?
[Desire HD Android Development] exxpired:
This has happened to me a few times!

Im running the kernal that came with 5.2.2 @ 1.3ghz
[Desire HD Android Development] Honusnap:
Certainly too much overclocking...
[Desire HD Android Development] Whiskey103:
Yes it is... ;)
[Desire HD Android Development] lenthele:
You're probably right... Had it running on 1,3 GHz. Now I'm back to 1,2!
[Desire HD Android Development] MarckX:
OMG!!! :eek: Can't wait to test it... You guys keep to amaze me in every way! :D