[Q] framework-res akku shows wrong % ? - XPERIA X8 Themes and Apps

Hello,
I build my first framework-res.apk and change some icons. All icons would by showed fine but the batterie percent numbers would be wrong. It looks like that the new battery icons never jump on the new % when the battery goes down. When I switch off the phone an power on then the battery shows an new % but not the same like the system. It only go down in this steps: 100% - 90% - 80% and so on but never 98% or 88% or 75% and so on. What did I wrong?

You have to create an image for each percent. So you'll need to create 100 images.

And you need to edit xml files and make 120 icons for charging and normal batterÿ.
Sent from my Legend using XDA App

Related

Battery Status Icon Compared to About Phone

Has anyone else noticed the battery status icon seemingly displays less available battery power compared to the 10 block Battery Level in About Phone --> Status ?
Icon shows less than half full (about a third in the icon) when five blocks are filled (half full) ?
Which is correct ?
I agree with you - i am confused with which is correct.
The top battery icon is always less than the "About Phone" settings.
Maybe if we installed a 3rd party battery app....hmm....
Which one though ?? hmmm...
i think that they have an app on the market that displays percentage of battey left dont know the name of it though
joemax said:
Has anyone else noticed the battery status icon seemingly displays less available battery power compared to the 10 block Battery Level in About Phone --> Status ?
Icon shows less than half full (about a third in the icon) when five blocks are filled (half full) ?
Which is correct ?
Click to expand...
Click to collapse
maybe you could cross chek with the battery status from here.... from dialpad dial *#*#4636#*#* and then go to battery status . you can croos chek from here which is most accurate
Useful code, many thanks, will do this next time the battery is low.
Is there a list of these you could share ?
joemax said:
Useful code, many thanks, will do this next time the battery is low.
Is there a list of these you could share ?
Click to expand...
Click to collapse
No problem. Well , i only used the one i gave you to lock my phone on 3 g network once.
U can take a look at some other codes here:
http://forum.xda-developers.com/showthread.php?p=4198158
they are from the magic forum. I never tried them out though.

Fix WP7 HD2 Battery Indicator Level

Guys i have found a way to fix battery indicator to show the battery level as it should be...
1) First of all charge your phone
2) After that go to registry editor on your phone and go to
Code:
[B]Local machine/system/state/batteryux/MainIntervalIndex[/B]
and change the value from 6 (or any value it shows there) to 20...now press OK! You wil see that the battery level on top has been changed!
Now again edit it and go from 20 to 80 and press OK...
RESTART YOUR PHONE AND THEN CHARGE IT!
Now you will see that the battery level has changed and shows the battery level like it should be...
Until now it seems like its working... Will leave it unti later to see if the battery will continue to show the correct level...
Try it and tell me your thoughts!
You can find the registry editor attached.
DO IT ON YOUR OWN RISK..MESSING WITH REGISTRY IS DANGEROUS! I AM NOT RESPONSIBLE FOR ANY DAMAGE CAUSED TO YOUR PHONE!
Find more registry tweaks here:
Code:
[URL="http://forum.xda-developers.com/showthread.php?t=907971"]http://forum.xda-developers.com/showthread.php?t=907971[/URL]
Great work!
I will try and report later.
Thanx
Ok after some tests it seems like the value changed by its self... From 10 to 5 and level shows less than the middle.. I tried to change it to 80.. Will test more until i find the correct one
arkatis said:
Guys i have found a way to fix battery indicator to show the battery level as it should be...
1) First of all charge your phone
2) After that go to registry editor on your phone and go to
Local machine/system/state/batteryux/indicator and change the value from 6 to 10...
Click to expand...
Click to collapse
Sorry, but i don't have the indicator value and i can't change it.
I only have Local Machine/System/State/BatteryUX/MainIntervalIndex
pekas said:
Sorry, but i don't have the indicator value and i can't change it.
I only have Local Machine/System/State/BatteryUX/MainIntervalIndex
Click to expand...
Click to collapse
My mistake mate! Yeap this is the correct path! Change it from 6 (or any value that shows there) to 20 and from 20 to 80 and it should work like it supposed to be!
Something that i noticed is that the value is Dynamic (means that the value changes by it's self) You just make the trick and it should work!
It's been 1 hour now and it seems that the battery indicator shows the correct level! So i must say that this tweak works!
Too give you an idea of what this tweak is about! Some guys here says that the Radio plays a Big Role in battery life... Imo this have nothing to do with the battery drainage of your phone... Your Battery indicator shows false levels of the battery! E.x you charge your phone for 1 hour and battery is about 60% when you unplug it! WP7 doesn't know the correct battery level because of a false value in registry!
This "BETA" tweak will fix this problem..
Confirm me this is working.
and i post it in WP7 registry thread.
Thanks
i've just apply it i don't know yet if this work.
Glad it worked for you also guys! Thanks!
It doesn't work for me
Can u post a screenshot to see how it looks like?
pekas said:
It doesn't work for me
Can u post a screenshot to see how it looks like?
Click to expand...
Click to collapse
Ok here is the thing:
1)charge your phone until the green light shows up
2)unplug it from A/C and open registry editor
3)go to the reg path
4)edit the value from 6 to 20...press ok..Now you will see the battery indicator level has been changed! Again go and edit the value and from 20 go to 80..press ok! Restart and enjoy!
To see that this is working.. go and edit the value and put number 4 or 2! The indicator will show you that you have 40%-50%..
So if you edit it again and follow the instructions you will see that the battery level will now show 80%-90% which is correct because you charged your phone before!
I can't see any " virtual battery drainage" anymore because the indicator now shows the correct batt level!
Tell me your results!
Yeap, it's working.
Thanx
whats the recomended registry editor.....
thanks
Original Value keeps coming back...
I am puzzled...my phone's led turns green, next I unplug it, open reg editor, my value is @ 11. Next I change it to 20, confirm OK (no change on batt indicator btw), then change it to 80 and restart. Cell boots up with full batt indicator. I plug it in, it's charging for couple mins, and again hits green light. When I view the registry key, value is back on 11 .
Any suggestion or correction regarding my description would be appreciated
godwinvandamme said:
whats the recomended registry editor.....
thanks
Click to expand...
Click to collapse
There's a link in the starting post. You'll need WP development tools in order to deploy this app onto your device
LuckTR said:
I am puzzled...my phone's led turns green, next I unplug it, open reg editor, my value is @ 11. Next I change it to 20, confirm OK (no change on batt indicator btw), then change it to 80 and restart. Cell boots up with full batt indicator. I plug it in, it's charging for couple mins, and again hits green light. When I view the registry key, value is back on 11 .
Any suggestion or correction regarding my description would be appreciated
Click to expand...
Click to collapse
Good Question mate! As i said the value is dynamic and it can change to anything!
This is weird though cause when i made the tweak and checked back in registry my value were 6 again! But....no battery drainage after that! I don't know why but still my phone's juice is above the middle! (which is logical because i fully charged my HD2) So make the tweak, test it a couple of hours,check if the battery "drainage" it's logical and report here!
I Confirm that this is working real nicely!
Arkatis, pal, you're absolutely right. The value always comes back down to whatever it was originally (11 in my case), but my battery life went simply through the roof. I went running while listening to the music, made couple phone calls via BT handsfree, checked marketplace (via cell data) and sent some messages...still sitting almost on full. My batt would be at least 1/4th down before I performed the reg tweak that you've suggested. Dunno what you did, but I like it . Btw, did you notice that there's another key @ HKLM\System\State\Battery with numeric variable called VALUE DATA? Let us know if you dare to tinker with that one . Thanks lot for your outstanding tip, pal!
What if your battery is almost at the end and you still thinks it is almost full? You've changed something visual maybe? Think about it.
Sent from my HTC HD2 using XDA App
in the Registry Editior come this
Acess to the registry key ``HKEY_Local_Maschine\System`` is restricted.
is this normal? I use Registry Editor version 1.0.1.0 beta of Touchxperience
Simply get ver1.4 of the Reg Editor Schaps always adds new features to it and access to more keys
I'm trying out the tweak right now. So far I got the result of LuckTR (11 in registry, device reboots with full indicator , but charges). Will report back later how battery life is.
TheOnly1 said:
Simply get ver1.4 of the Reg Editor Schaps always adds new features to it and access to more keys
I'm trying out the tweak right now. So far I got the result of LuckTR (11 in registry, device reboots with full indicator , but charges). Will report back later how battery life is.
Click to expand...
Click to collapse
can you please me the download link, Thanks
EDIT: i have found the right version

[Q] Removing or hiding the battery icon?

I have an extended battery on my atrix. For some reason, the battery icon (stock) can't see it, so it's showing my phone at 60% signal (when the battery is a 3500MAH battery, and really, shouldn't be at 60 after 4 hours!)....so, how do I remove the battery icon? I'm running .83 with GreyBlur and Pink theme. Can I remove it in the theme and reload the theme?
go into the battery manager under settings and click the battery icon. what is using most of your CPU?
also the battery stats might need to be reset
have a search how to do it
Ok thank you. It says display is using like 40% and if I'm not on the phone the display is off, and brightness is set really low.
Sent from my MB860 using Tapatalk

Problem with the htc legend

Hello
I have the device and out of power very quickly
I load the phone to 100 percent
And after an hour I was at 50 percent and a very hot phone
The heat of the phone after an hour is 42 degrees
How can I fix it?
when you go into the battery monitor inside the settings menu does it give any indication what app / component is sucking on the battery?
(the high temperature is a byproduct of the fast battery-drain)
where is the battery monitor
i need to download it from the market?
no, it's a built-in feature. are you using the legend with a htc stock rom? - i think it's accesible via settings > about > battery > battery use (in custom roms the wording might be a little different)...
DISPLAY 96%
dialer 4%
this is the battery use
yehielpv said:
DISPLAY 96%
dialer 4%
this is the battery use
Click to expand...
Click to collapse
Do you have a time out set to turn the screen off when you not using your phone? Or does your screen stay on all the time?
What your battery usage is reporting is that your screen is on all the time.
Sent from my HTC Legend using XDA App

Question Battery Charge Limit - where is CTRL file?

I am unable to get the Battery Charge Limit app to work on the TMOBILE variant of this device. The app allows you to set start/stop charging %, which helps prolong battery state.
Does anyone know where the control file is located? I tried searching in /sys/class/* but couldn't find anything like chg_enabled or something similiar.
For OP9Pro, the file is located here: /sys/class/oplus_chg/usb/chg_enable
For OPN200, I don't know
Doing a
find . 2>/dev/null | grep charg
Click to expand...
Click to collapse
gave me
/sys/devices/virtual/oplus_chg/battery/mmi_charging_enable
Click to expand...
Click to collapse
Writing 0 to this file disables charging and writing 1 enables charging. Note that the charging icon shows that the battery is charging if the device is plugged in even if the file has a 0, but checking with a battery app will show that charging is disabled.
I also noticed that the battery charge limit app doesn't work if you start the app when the battery is already above the maximum limit, it only works if you start the app with the battery at or above the limit you set in the app.
Also I didn't realize this but you can also use ACC and run
acc -p
Click to expand...
Click to collapse
to find likely control files. useful to know for switching to a new device and trying to find a control file.
aznxwill said:
I am unable to get the Battery Charge Limit app to work on the TMOBILE variant of this device. The app allows you to set start/stop charging %, which helps prolong battery state.
Does anyone know where the control file is located? I tried searching in /sys/class/* but couldn't find anything like chg_enabled or something similiar.
For OP9Pro, the file is located here: /sys/class/oplus_chg/usb/chg_enable
For OPN200, I don't know
Click to expand...
Click to collapse
any luck with this? been unable to get it working on mine as well
l0csta said:
any luck with this? been unable to get it working on mine as well
Click to expand...
Click to collapse
It seems @towardsdawn is spot on.
I configured Battery Charge Limit (you can find in Playstore) to use the charge control file located here:
Code:
/sys/class/oplus_chg/battery/mmi_charging_enable
And it seems to work. If the current battery % is HIGHER than the STOP CHARGE %, then the Battery Charge Limit application will say DISCHARGING but battery icons from homescreen and lockscreen will indicate it's charging. Even though battery icon from homescreen and lockscreen says it's charging, I did not see battery % increase.
If you charge the phone when it's BELOW the STOP CHARGE %, then the Battery Charge Limit application will say it's charging and the battery % will increase after some time until it reaches STOP CHARGE %.
Overall, it seems to work, it's just the battery charging status from Battery Charge Limit app and phone icons are not aligned. One thing I do notice is if current % is ABOVE the STOP CHARGE %, then it will stay at that % while plugged in.
just a heads up, make sure to disable battery saver as well as advanced battery optimizations when charging, these modes will kill the Battery Charge Limit app even if you have it set to "Don't optimize". had some issues getting it to work overnight and doing this worked for me.
a little ironic isn't it
looks like I spoke too soon, I fiddled around with the settings and still can't get it to work consistently. sometimes it works, sometimes it doesn't. I switched to ACCA and that works much better.
aznxwill said:
It seems @towardsdawn is spot on.
I configured Battery Charge Limit (you can find in Playstore) to use the charge control file located here:
Code:
/sys/class/oplus_chg/battery/mmi_charging_enable
And it seems to work. If the current battery % is HIGHER than the STOP CHARGE %, then the Battery Charge Limit application will say DISCHARGING but battery icons from homescreen and lockscreen will indicate it's charging. Even though battery icon from homescreen and lockscreen says it's charging, I did not see battery % increase.
If you charge the phone when it's BELOW the STOP CHARGE %, then the Battery Charge Limit application will say it's charging and the battery % will increase after some time until it reaches STOP CHARGE %.
Overall, it seems to work, it's just the battery charging status from Battery Charge Limit app and phone icons are not aligned. One thing I do notice is if current % is ABOVE the STOP CHARGE %, then it will stay at that % while plugged in.
Click to expand...
Click to collapse
Battery Charge Limit is one of my fav apps.
I thought that you have to have root to use this app, no?
Could you provide a beginner's guide on your method? Noobs need it!
clu1688 said:
Battery Charge Limit is one of my fav apps.
I thought that you have to have root to use this app, no?
Could you provide a beginner's guide on your method? Noobs need it!
Click to expand...
Click to collapse
Here is a quick guide to using ACCA which I find to work much more consistently on the Nord N200 than Battery Charge Limit:
Unlock bootloader (see this thread, I used the debloat script. make sure to remove the line that gets rid of Gboard)
Root your phone with Magisk (see this thread)
Visit this website to download F-droid, then in the F-droid client download ACCA. ACCA will say installation failed for some reason, but it still works
Edit the default profile under the Profiles tab.
Under Capacity Control edit Charging switch.
Click Add Charging Switch.
Type in
Code:
/sys/class/oplus_chg/battery/mmi_charging_enable
for charging switch
Type in 1 for On value and 0 for Off value. Click ok.
Tap on the new charging switch. Click Test charging switch with the charger plugged in. It should popup saying the switch works, if it doesn't then you'll have to troubleshoot that.
Click Save.
Edit the other settings to what you want, then click the save icon in the top right.
Tap on the default profile to switch to it.
You may or may not need to do this, but under android battery settings I disabled battery optimization for ACCA and I also turned off all of the advanced optimization settings.
towardsdawn said:
just a heads up, make sure to disable battery saver as well as advanced battery optimizations when charging, these modes will kill the Battery Charge Limit app even if you have it set to "Don't optimize". had some issues getting it to work overnight and doing this worked for me.
a little ironic isn't it
looks like I spoke too soon, I fiddled around with the settings and still can't get it to work consistently. sometimes it works, sometimes it doesn't. I switched to ACCA and that works much better.
Click to expand...
Click to collapse
Seems I am running into same issue - sometimes it works and sometimes it doesn't with Battery Charge Limit. I'll check out ACCA.
@clu1688 - you should check out the post above mine with ACCA. It seems Battery Charge Limit app doesn't work consistently.

Categories

Resources