Battery % when screen is locked - Sony Ericsson XPERIA X10 Mini

Is there a way to mod this?
Battery % displayed when screen is locked all the time and not only when < 20% or when phone is charging?

Yeah, was wondering about this too. I like the way it display the percentage on the lockscreen but it kinda suck when it only did it when under 20% or when it's charging.

I think, like the battery percentage/circular mod, you must edit some .xml files (plus also add the png files) into the framework-res in order to achieve that. Take a look at the battery percentage mod framework and search the appropiate xml files, so you know what is changed into them. Then you must find the corresponding .xml file concerning the layout of the lock screen.
BTW, you need to decompile the framework in order to read/edit the .xml files and then compile it again.

Related

Possible to port "Super Circle Battery" ?

Hello.
Is it possible to port this Mod: http://forum.xda-developers.com/showthread.php?t=724778 to our Hero?
'Cause than there isnt a need to install 3rd party apps (akku or battery).
I hope u can help me.
Best regards.
Yes it is but I need to know what ROM your using
HTC Hero and ROM VillainRom 12.0.0, please
I am using Cronos 2.1.1
It would be really fantastic if u can port this.
C0mpu13rFr34k said:
Yes it is but I need to know what ROM your using
Click to expand...
Click to collapse
I'd like it for Villain 12 aswel.
Is it a big job to convert?... Do you swap out the images individually once found or is there a less time consuming method?
Can I get a list of which folders and filenames relate to which object. i.e...
Battery meter is located .....
Wifi notification .....
Or am I being too lazy and should just look myself and make a list?
It's simply just exctracting the icons and then replacing them Going to do it later but i'm off for a soccer match for now xD
i think it is a little bit more than that, i already replaced the icons, and they show up, but standard behaviour is that it shows 20,40,60,80 and 100% etc. so just replacing the icons will show you the circle style in 80% and 60% etc.. but there is no 65 or 41 or whatever view. i guess the xml file for the battery stats in the drawable folder also needs to be edited.
Only thing is i have no experience yet in editing these xml's.
Gh0stw4lk3r said:
i think it is a little bit more than that, i already replaced the icons, and they show up, but standard behaviour is that it shows 20,40,60,80 and 100% etc. so just replacing the icons will show you the circle style in 80% and 60% etc.. but there is no 65 or 41 or whatever view. i guess the xml file for the battery stats in the drawable folder also needs to be edited.
Only thing is i have no experience yet in editing these xml's.
Click to expand...
Click to collapse
Oh crap didn't think about that. I haven't done any XML file editing either sorry...

Battery % in statusbar

Working on adding battery % to status bar. I got the drawings done, I am just unsure of how to repackage framework-res and load it onto my phone without damage.
Below is the apk with battery%. The edited files are in /res/drawable-hdpi with the name stat_sys_battery....
http://rapidshare.com/files/451781222/framework-res.apk
Does the apk have to be odex'ed to run on a non-deodexed system? I am new to this but want to start theming so hopefully someone can help me out.
The way it has worked formne in the past is to.open not extract the original apk using 7zip. Then delete the old images for thebattery that are in the original apk. Then paste the edited files into the original apk that is open in 7zip. Then close 7zip. 7zip will process the files then close. Now paste the edited apk to ur phone and reboot. That's all there is to it.
hmm interesting, is there any risk of bricking the phone in doing so? Thats my only concern. My phone is only rooted, not deodex'ed.
As long as u make a back up of ur original framework apk then the worst that sill happen is that it goes into a boot loop. This can then be undone. So no. No way of permanently bricking your phone.
ok thanks, I tried pushing from adb but got read-only failure. I can't figure out to adb in recovery to do push. That is if thats the right method.
U need to have root. That is why u can't write to the system partition. Once u have root u will b fine.
I do have root. I got it to work but I saved the backgrounds of the pictures as blank so there is just a black square filling up background! lol I can't figure out how to take a screenshot of it as when I have it connected to the comp the charging symbol is popping up.
Scared myself for a moment, soft bricked my phone trying to push back the original framework-res.apk and it dg's fix method didn't work the first 2 times. I'm done playing for the night. First self mod!
there is a gauge battery widget in the market place that i downloaded. it has the battery % in the status bar. and when you select your status bar it will also give you your temperature and voltage.
what's the app called?
veuro said:
what's the app called?
Click to expand...
Click to collapse
i use Battery Indicator Pro, they have the same feature and looks pretty good
Please make icons of the battery with percentages ranging from 1 to 100 percent. I will then use these icons to create a battery percentage mod that shows the percentages in 1% increments. Then post them to rapidshare. I would appreciate it greatly if you could do this. Tnx.
battery gauge widget is the one i use
ionstorm3 said:
Please make icons of the battery with percentages ranging from 1 to 100 percent. I will then use these icons to create a battery percentage mod that shows the percentages in 1% increments. Then post them to rapidshare. I would appreciate it greatly if you could do this. Tnx.
Click to expand...
Click to collapse
2 things:
I thought, though I haven't checked recently, that it was hardware problem that wouldn't allow for 1% increments. Though circle battery widget estimates that.
How do I make it so the battery icons have the same background as the taskbar?
riotburn said:
2 things:
I thought, though I haven't checked recently, that it was hardware problem that wouldn't allow for 1% increments. Though circle battery widget estimates that.
How do I make it so the battery icons have the same background as the taskbar?
Click to expand...
Click to collapse
The first thing, it's not hardware, it's software. Motorola uses the 10% increments to actually save battery life because it doesn't need to refresh as often to display the battery percentage.
The second thing, I don't know.
live4nyy said:
The first thing, it's not hardware, it's software. Motorola uses the 10% increments to actually save battery life because it doesn't need to refresh as often to display the battery percentage.
The second thing, I don't know.
Click to expand...
Click to collapse
hmmm I have to figure out the background then because when I compress it, it saves with a black background. But when I use the take the original image from the phone and pull it into gimp, its only icon and no background.
I think it mightve been because I didn't compress it save the alpha.
Question, Do you guys want the battery % in the battery icon itself or sitting above it?
Also the icon for the color indicator of the icon is only 50pixels long thus the actual bar itself will only go down by 2%, so would you want icons with a 2% increment or prefer 1%
riotburn said:
I think it mightve been because I didn't compress it save the alpha.
Question, Do you guys want the battery % in the battery icon itself or sitting above it?
Also the icon for the color indicator of the icon is only 50pixels long thus the actual bar itself will only go down by 2%, so would you want icons with a 2% increment or prefer 1%
Click to expand...
Click to collapse
I would be happy with 5% increments
Let us know how it goes, I would like to try it out.
Sent from my MB860 using XDA Premium App
Very interested in this as well - I want that stupid battery icon on the right side to go away because I'm stuck using Battery Indicator Pro to tell me what's going on and taking up even more space after the AT&T text on the notification bar! Even still, the thing only tells me in increments of 10 - how hard would it be to use the source code from the Circle Battery Widget to display the CORRECT percentages (yes yes, I know they are estimated, but that thing WORKS, let me tell you....) in the space where the stock battery icon is on the right side of the notification bar?

[Q] How do I change the battery percentages

Hi all,
I'm looking for any assistance to help me change the default battery percentages from 5% increments to 1%.
I've decompiled the framework-res.apk using apk tool and edited the xml file in the res/drawable folder, replaced the battery icons with my newer ones but don't know what to do next.
I've tried to recompile the apk but it give me errors relating to the battery alterations that I have made.
I've searched to see if there's a guide available but no joy...can anyone help please.
I was under the impression it was a hardware thing, but perhaps it's firmware that determines the increments.
For my Motorola Defy my app ( Awesome Widgets ) shows in increments of 10%, but for other phones it shows increments of 1%.
I'm pretty sure your phone works in increments of 1% as default though.
All the best,
Ash
You can use UOT kitchen set the modified
ifong said:
You can use UOT kitchen set the modified
Click to expand...
Click to collapse
Yes, have used the UOT kitchen in the past but would like to know how to do it manually if possible

[Q]Some Problem For Cm9(adobe battery step 10%)

Hello, I am from China.
My English is not good, so I hope that the results of the Google Translator allows you to read.
I flash the latest CM9.[ICS-4.0.3_r1-cm_spyder-2012-03-02-15_53].
Not satisfied with the batteries, I use UOT to adjust the power to do. Want to make itaccurate to 1%, but encountered some problems. Power to raise the ceiling to 150 percent, I do not know what I did wrong.
So, I try to modify. Xml file[../SystemUI.apk/res/drawable],modified and reboot, I found the notification bar disappears.
Do not know how we can make electricity is accurate to 1%. Hope you can answer thenext.
Trouble!
Supplement:
This is my reference page:
forum.xda-devel[*]opers.com/showthread.php?t=1459111
According to this post, I first decompile the two APK and then copy the XML file, move the picture into SystemUI directory.
Then compiled into the APK file into the phone to replace the error.
I used the method on the CM7 but not to 1%.
Oh,the title is:about battery step 10%....So Sorry...

Battery icons in KitKat

Where are they? I checked the framework-res and SystemUI of an AOSP rom, and they're just not there. Does anyone know?
Sent from my GT-I9100
I join the question, i searched in all possible drawable folders and nothing, just grey pngs at ..\framework\framework-res\res\drawable-xhdpi\stat_sys_battery... :S
yuriy636 said:
I join the question, i searched in all possible drawable folders and nothing, just grey pngs at ..\framework\framework-res\res\drawable-xhdpi\stat_sys_battery... :S
Click to expand...
Click to collapse
Changing them changes nothing. I've also been looking, haven't found them yet
has anybody found where the battery can be changed?I changed and added my mods in almost every apk, such as contacts,sytemui,framework-res,dialer you name it -I have them in there but still shows the default very frustrating!Same thing with the dial pad it also shows default on the initial dialer but the in-call dialer I was able to theme.
EDIT Nevermind -I have found out the battery among some otherthings are now generated in code in 4.4 ,So sorry to all the modders that like to change things easy.It will now require much more to make changes that were once a matter of changing a few png files or maybe and xml here and there.Lerts hope there are themers out there that find a way around this
I found this post what mean that battery icons is draw by code:
http://forum.xda-developers.com/showthread.php?t=2513466
Right now, the only thing I could find is how to add the % number in the icon.
https://play.google.com/store/apps/details?id=de.kroegerama.android4batpercent
Before.
As the icons are drawn, can't we remove the goto scrpt and use a old drawn icon xml file
try my last mod guys, it can be found in my signature..

Categories

Resources