• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Circle Battery Indicator

I never used the -t option, I just did apktool d framework-res.apk framework_clean to put it in my framework_clean folder.

Once you do that, add the new images to the drawable-hdpi folder, modify the stats_battery.xml files, then do the apktool b command. It will recreate the manifest, for you. The manifest has filename to ID mappings, so you don't want to edit this by hand, look in the values\public.xml file in the decompiled apk folder to get an idea if your really interested, just don't edit them.
 
aflat.

can you tell me what files you edited and what framework-res file you started with?

I started with rEVOlution R2's framework-res and did the following:
edited stat_sys_battery_charge.xml
edited stat_sys_battery.xml
replaced (and added more) discharging and charging symbols
replaced lock screen charging symbols

when I build the apk, I get a ton of errors and the file doesn't get built :confused:

I've been able to rebuild the framework-res from the 2.3.15 leaked rom though.
I've uploaded the files. can you take a look at the xmls? It seems I got a little too ambitious.
http://www.megaupload.com/?d=BTJFIX2K

Edit:
Seems that starting with the themed framework-res.apk is the problem.
 
I am using the stock framework-res and adding these changes and the r2d2 lock sliders, so I don't know how a themed one would act.
 
Thanks DRLyman.

I want to do it myself though. So if anyone knows how to edit public.xml (specifically if the IDs can be random, but unique), please let me know.
 
The public.xml is the extracted values from resource.arsc or androidmanifest.xml, not exactly sure which one. That's why you need to use apktool to compile, then replace them in the original framework-res
 
The public.xml is the extracted values from resource.arsc or androidmanifest.xml, not exactly sure which one. That's why you need to use apktool to compile, then replace them in the original framework-res

For some reason, I got the apk to compile properly. I checked public.xml and everything is listed. Now I'm bootlooping when I try to install? Anyone run into this?

Aflat, if you don't mind can you post the two xmls you edited?

Thanks
 
hey guys, kinda unrelated to the battery thing your trying, but I'm trying to theme the stock text messaging apk to have a black background instead of white. do you guys know what the apk file name is? I thought it might be messaging.apk but I dont think its right.
or do you guys know if it can even be themed like this? to change the background color?
 
For some reason, I got the apk to compile properly. I checked public.xml and everything is listed. Now I'm bootlooping when I try to install? Anyone run into this?

Aflat, if you don't mind can you post the two xmls you edited?

Thanks

I looked at your xml files, they looked fine. I ran into the bootloop too, did you replace the Androidmanifest, resource.ascp and the res folder like the other link said to, or did you try to use the compiled apk? I tried to use the compiled apk, and got either bootloops, or endless app crashes from google voice search, and other appks.
 
I looked at your xml files, they looked fine. I ran into the bootloop too, did you replace the Androidmanifest, resource.ascp and the res folder like the other link said to, or did you try to use the compiled apk? I tried to use the compiled apk, and got either bootloops, or endless app crashes from google voice search, and other appks.

I've tried both ways. The problem is with the way the themed .apks were created. I've reached the conclusion that nextheme, rEVOlution etc cannot be re-decompiled and compiled without errors.

I've managed to mod and successfully rebuild the ZapX framework-res.apk and boot. That led to some errors in the settings menu and a few fcs though.
I get the feeling that my xml files may have a problem; i'll redo it after work tonight.

Thanks for all your help man.
 
This might be of some interest. Using it on my X and it works well so far. You don't want the zip in the first post, look for a modified zip in post #11. Used Metamorph to put it on the phone and all went smoothly.
[METAMORPH] [10/7] Glowing Circle Battery Icon - xda-developers

does this give you 10% increments? did you apply this on top of another theme or were you unthemed?
Im trying to get 10% increments on nextheme. I know theres a zip for it if your on apex but I havnt seen one for a regular themed 2.2 yet
 
does this give you 10% increments? did you apply this on top of another theme or were you unthemed?
Im trying to get 10% increments on nextheme. I know theres a zip for it if your on apex but I havnt seen one for a regular themed 2.2 yet

If you get it done, I'll put it up on Nextheme 10% thread I have going. Otherwise, I'll give it a shot tonight after work. I have to go back to stock since I'm on RubiX.
 
Ok I have been following this thread with great hope. I would really like to have the circle clock in my notification bar replacing my existing standard look battery. yawdapaah are you attempting to create ine that can be added to an existing rom and theme. I have BlackGlass and would like to keep it but add some other things like this clock.
 
Ok I have been following this thread with great hope. I would really like to have the circle clock in my notification bar replacing my existing standard look battery. yawdapaah are you attempting to create ine that can be added to an existing rom and theme. I have BlackGlass and would like to keep it but add some other things like this clock.

Another user showed me this site earlier, which I used to put a circle battery icon on my notification bar, on top of Rubix and a theme:

Battery Icons – droidpirate.com

Maybe you can find something you like there and use metamorph to put it on your phone.
 
Back
Top Bottom