[Q] (ask) help hacking batt status - Android Software/Hacking General [Developers Only]

hi, i'm sorry if i had post this question in the wrong thread.
to the point, i really want to have my battery to show the percentage in the way like 74% or 43% asa for now they are showing only 70% or 40% and so on (it shows per 10% steps)
Can anyone please tell me how can i do it or which part of the system can enable this on my phone.
I'm using Motorola XT502 atm, recently i tried to flash the Cyanogen mod gingerbread for my phone and it shows the batt % like that but all of the froyo rom i'm using are displaying the batt percentage in 10th steps.
Thank you for reading.

help please ???

download a theme for your rom
open it with 7zip
open framework-res.apk from the downloaded theme with 7zip
pull framework-res.apk from your rom
open your rom's framework-res.apk from your rom with 7zip
copy framework-res.jar from downloaded theme/system/framework to your rom's/system/framework
copy the stat_battery_%.png icons from downloaded theme's framework-res.apk/res/hdpi to your rom's framework-res.apk/res/hdpi
push framework.jar to /system/framework
push framework-res.apk to /system/framework

@svtfmook
fyi, i already got the 1% battery step in my framework-res.apk but it still shows 10% steps.
so i have to get a working 1% step at battery status ROM and inject it's framework.jar to my rom so i can have the 1% steps right?
thank's a lot buddy, i'll try it now...

no can do, still it shows per 10%

Related

LifeMeter - Custom Battery Life Icon

Attached is also a ZIP file for Froyo (2.2). Unzip the file, which will contain the framework-res.apk which is what you will use!.
So, I've gotten around to working on a modification to a stock application, the 'battery-remaining' icons in the upper right hand corner of the screen. This is for ROMs based off damageless, regaw, and I believe fresh Android 2.1 release keys. Please post your ROM of you are willing to try it out and I haven't named your ROM yet. Do a nandroid backup in case something goes wrong.
This modification uses my work on the framework-res.apk and JsChiSurf's mod that adds the percent of battery left on the icon.
So, here's the guide:
1) Download my framework-res.apk and JsChiSurf's percent-battery.zip and place them in your Android SDK tools directory. Mine is C:\Android\tools, so that's the instructions I will be giving.
2) Attach your phone to your computer using your USB cable.
3) Open up a command prompt, navigate to your tools directory, and make sure your device shows up:
Example:
Code:
C:\>cd C:\Android\tools
C:\Android\tools>adb devices
List of devices attached
{serial Removed} device
C:\Android\tools>
4) Copy your current framework-res.apk to your SD Card using these commands, one per line as shown below:
Code:
adb shell
cd /system/framework
cp framework-res.apk /sdcard/
5) Now, copy my framework-res.apk over your current one:
Code:
exit
adb push framework-res.apk /system/framework/framework-res.apk
When I did this, my phone rebooted. It then showed my new battery icon without a battery percentage in the middle. I then used JsChiSurf's battery percentage mod, which you will download from this thread, place it on your SD Card, and flash it from recovery. The first boot after this flash will take a while because your cache gets rebuilt. Enjoy!
If you like my work, and want to shoot me a dollar or two for a 40 oz (lol) go to my site in my sig and press donate Or, let me know what else you'd like and I will work on getting it created for you.
Please ignore the crap quality of the second screenshot. I had no other way to get a screenshot of how the mod looked while off charge, aside form this drocap thing that I don't like.
My post. Mine.
I'm assuming this slowly ticks down one percent at a time?
mrcharlesiv said:
I'm assuming this slowly ticks down one percent at a time?
Click to expand...
Click to collapse
The icon uses the 7 points of battery that I was able to use from the RegawMOD framework-res.apk ...
0%, 10%, 20%, 40%, 60%, 80%, 100%
does this work with froyo
This is for 2.1 for now. Shoot me your framework-res.apk and I will make it for 2.2.
Sent from my HERO200 using XDA App
jerry43812 said:
This is for 2.1 for now. Shoot me your framework-res.apk and I will make it for 2.2.
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
thanks here ya go
ramagwula said:
thanks here ya go
Click to expand...
Click to collapse
nicey on the 2.2 thanks jerry!
sdotcarlisle said:
nicey on the 2.2 thanks jerry!
Click to expand...
Click to collapse
You're welcome dude. 2.2 will be coming soon. Anyone else, who has used this, please report back and let me know it worked, thanks!
I also need someone to contact me that knows how to make an update.zip etc. because I really would appreciate a walkthrough with someone. Thank you again!
Please refer to post #1, in the beginning of the post, for 2.2's version of this modification.
i already had the battery percent mod.
im running fresh 2.3.3.
when i pushed he framework and the phone rebooted..everything force closes.
primerib said:
i already had the battery percent mod.
im running fresh 2.3.3.
when i pushed he framework and the phone rebooted..everything force closes.
Click to expand...
Click to collapse
I don't know if it's cause im tired, but i don't know what you are saying... I get that you are running fresh 2.3.3, and everything force closes... but what did you do? Push this framework on top of a diffrent battery icon?
Might wanna restore your Nandroid backup that you should have made, and shoot me the framework-res.apk out of the fresh 2.3.3 ROM and I will knock that out for you as well. None of the work I did would have caused force closes for you...

Trying to install new battery icon in Baked Snack 1.7

First post here first of all.
I found the super circle battery mod and would really like to install that.
I downloaded version 3, and didnt read through everything, but tried just flashing that zip file in recovery, but nothing happened.
Read through and tried something else. I copied my framework-res.apk file out of the system/framework directory. Opened it in winrar and compared it with the new circle battery apk. Removed the files from the original in drawable-hdpi and drawable and copied the new ones into those folders. Only changing the affected files.
I then made a zip file with the modified framework-res.apk and attempted flashing it in recovery, but nothing happened again, phone still works fine just battery symbol remains the same.
I am very new to all this and am just learning, so any help is greatly appreciated.
Thanks
Jon
http://forum.xda-developers.com/showpost.php?p=7996725&postcount=303
For amon 1.8, place flash1 and flash2 on the root of your zip and follow the directions accordingly.
You da man! Thanks a lot. So the first flash removes all the battery icon instances from drawable, then the second installs them i assume?
jonaddis84 said:
You da man! Thanks a lot. So the first flash removes all the battery icon instances from drawable, then the second installs them i assume?
Click to expand...
Click to collapse
In a sense yes. Most of the battery mods were made for deodexed roms and so I had to find that solution for the stock odex.
i add it to any rom by taking the files, using apkmanager to decompile, add the battery pngs and xmls from drawable, then recompile.
enjoy your day

[I9003]Theme - GB for DDKB2

Hi Guys
All those who are using DDBK2, here are four different version of themes
1. GB Theme - No battery mod
2. GB Theme - 1% battery mod (no battery charge mod)
3. GB Theme - 1% battery and battery charging mod
4. GB Black theme - 1% battery and battery charging mod
Prerequisite
1. Rooted device
2. ROM DDKB2
3. Knowledge of adb or root explorer
How to install
1. Extract the files
2. Copy the files in copy the files framework-res.apk and twfamework-res.apk into /system/framework
2.1 Only for black theme, copy the files in app folder to /system/app
3. Restart the device
Make sure you have enough space else you will get into bootloop
PS: kindly take backup of existing files; i will not be responsible if you brick your device
Thanks to ronhoover for making 1% mods, 1% charge mod and black theme
Links
GB 1% mod themes
GB Black Theme
All themes
GJ On this sir Get an epic thanks from my side Now some nice GB themes would be epic

[Q] stat_sys_battery_charge.xml issue

I have been making my own battery mod for the sensation ICS Robo rom.
I use apk Manager 5.02 to decompile the framework-res.apk file and it decompiles successfully. I then change the 200 png files and then changed the stat_sys_battery_charge.xml to suit. I am making a battery icon that shows up purely as text so if it 100% it will show up as 100
I want the charge XML to show a green number when charging and a white number when not charging. When I compile the framework-res.apk file it compiles with out any errors. I then sign the file, rename it framework-res.apk and flash it.
It works ok, but makes the status bar at the top much bigger and throws the rest of the rom out. Any ideas were I went wrong?
Here is a copy of the xml file - it has been renamed from .xml to .txt so I can upload!
Found out what was wrong. I was using the wrong version of apktool.jar. Downloaded the correct version and now can edit my own ICS fies

[Q] Modifying the Battery meter icons

Howdy!
I'm trying to modify the default battery meter in my android (4.1.2).
I want to replace it with the ring,nice and stylish battery meter used in cyanogenMod.
There's currently no CyanogenMod Rom ported to my device (GT-S5282).
What I've done so far:
Locate icon resources in:
SystemUI.apk
SecSettings.apk
frameworks.jar
and some other items. I wasn't able to the find the meter's icon in these though.
Any help will be appreciated. Thanks.:cyclops:
cedroid09 said:
Howdy!
I'm trying to modify the default battery meter in my android (4.1.2).
I want to replace it with the ring,nice and stylish battery meter used in cyanogenMod.
There's currently no CyanogenMod Rom ported to my device (GT-S5282).
What I've done so far:
Locate icon resources in:
SystemUI.apk
SecSettings.apk
frameworks.jar
and some other items. I wasn't able to the find the meter's icon in these though.
Any help will be appreciated. Thanks.:cyclops:
Click to expand...
Click to collapse
As far as I remember those png files are located into framework-res.apk (then res/drawable-xhdpi) (AOSP roms though).

Categories

Resources