New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
raspdeep
Old
#1  
Senior Member - OP
Thanks Meter 13
Posts: 631
Join Date: Nov 2007
Default Circular Battery on Status Bar

Use adb from Android SDK, the tools directory
(http://developer.android.com/sdk/index.html)

1) Pull framework-res.apk from /system/framework/ by command:
> adb pull /system/framework/framework-res.apk .

2) Make a copy of the original framework-res.apk to framework-res-original.apk in your tools folder (in case you screw things up )

3) Rename framework-res.apk in your tools folder to framework-res.zip

4) Open framework-res.zip

5) Replace the "circular battery" files I have attached to res/drawable-mdpi directory in the zip file

6) Use normal compression when replacing the files

7) Rename the zip file back to apk extension

8) Push framework-res.apk back to /system/framework by commands:
> adb remount
> adb push framework-res.apk /system/framework/
> adb shell reboot

Credit to giant_rider, I pulled the files out from his SuperEclair ROM

If anyone wants to create an signed apk for easy update, be my guest
Attached Images
 
Attached Files
File Type: zip circular battery.zip - [Click for QR Code] (15.2 KB, 1451 views)
The Following User Says Thank You to raspdeep For This Useful Post: [ Click to Expand ]
 
risqu3
Old
#2  
Member
Thanks Meter 4
Posts: 71
Join Date: Jan 2010
Location: Toronto
awesome, will definitely use!
 
( M3GA )
Old
#3  
( M3GA )'s Avatar
Junior Member
Thanks Meter 0
Posts: 14
Join Date: Feb 2010
Location: ATL
Unhappy Need Help

I have tried this twice & it always reverts back to the standard battery icons. I push the new file with the circular battery files you uploaded. However, when I pull the framework file again to check the icons(after I reboot my phone & see that it hasn't changed) it its back to normal with the standard ones. I can't imagine why Any ideas ? ? ?
 
rgawenda
Old
#4  
rgawenda's Avatar
Senior Member
Thanks Meter 76
Posts: 246
Join Date: Jul 2009
Quote:
Originally Posted by ( M3GA ) View Post
I have tried this twice & it always reverts back to the standard battery icons. I push the new file with the circular battery files you uploaded. However, when I pull the framework file again to check the icons(after I reboot my phone & see that it hasn't changed) it its back to normal with the standard ones. I can't imagine why Any ideas ? ? ?
Ready for Stericson's Metamorph apk
http://www.ansemreport.com/Kspec/KspecBattery.zip
CyanogenMod 10.1 / nexus⁴
Quote:
Originally Posted by Firerat View Post
I'm assuming you are a windows user, since you can't find it yourself
  • How to recognize a karmawhore? They ask you to press the THANKS button on their signature.
  • Not to be mistaken with micropenis, which need you to see a BIG graphical signature that doesn't contribute anything useful.
 
kakyoin
Old
#5  
Member
Thanks Meter 0
Posts: 37
Join Date: Oct 2009
Quote:
Originally Posted by raspdeep View Post

5) Replace the "circular battery" files I have attached to res/drawable-mdpi directory in the zip file
i am confuse with this step, my original file only has "drawable" & "drawable-land" folders, so do i add a new folder containing your circular battery png called "drawable-mdpi"

my Magic just stay on the splash screen when i do this

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

so i restore and try replace the circular battery png to the original battery png in my "drawable" (copy n paste)

my Magic still stay on the splash screen.

pls help
 
Evil-Monkey
Old
#6  
Evil-Monkey's Avatar
Senior Member
Thanks Meter 87
Posts: 424
Join Date: May 2010
Location: San Diego
Default Re: Circular Battery on Status Bar

Quote:
Quote:
I have tried this twice & it always reverts back to the standard battery icons. I push the new file with the circular battery files you uploaded. Howe
Ready for Stericson's Metamorph apk
http://www.ansemreport.com/Kspec/KspecBattery.zip
Thanks. Can it be applyed to any rom?
-------------------------------------
Sent via the XDA Tapatalk App

[Service] Simple Mobile
[Android] HTC One S[4] | [ROM] Viper 2.2 Pro
[Hboot] 1.06 | S-OFF | [Recovery] CWM 6.0.3.1 Touch
[Kernel] JB Bricked | Latest Stable | [Radio] 1.13

[Android] Mytouch 4G [Retired via Hulk Smash]
[Android] MyTouch 32B [Retired old]

 
kakyoin
Old
#7  
Member
Thanks Meter 0
Posts: 37
Join Date: Oct 2009
Quote:
Originally Posted by Evil-Monkey View Post
Thanks. Can it be applyed to any rom?
-------------------------------------
Sent via the XDA Tapatalk App
it worked for me on CM4.x.x.x donut and CM5

its actually very simple, just follow step (1) and pull the file, look for your original battery png files and replace it with the circular battery files, both original and circular battery status should have the same png file names
 
Evil-Monkey
Old
#8  
Evil-Monkey's Avatar
Senior Member
Thanks Meter 87
Posts: 424
Join Date: May 2010
Location: San Diego
Quote:
Originally Posted by kakyoin View Post
it worked for me on CM4.x.x.x donut and CM5

its actually very simple, just follow step (1) and pull the file, look for your original battery png files and replace it with the circular battery files, both original and circular battery status should have the same png file names
sweet. Im currently running pays 1.6 and i want to try to run an eclair but theyre all ugly as hell and i dont want a fully themed rom, i just want specific icons ect.

ive been looking into this for a while So i have some noob questions if you will.

1: do i need to "re-sign" the apk?

2: can i apply this method to all the icons on a rom.
for example, i like the "dowloading" icon from my current rom but would like it on an the eclair.
same goes for the text icon on the notifications bar, i like the green one but clair normally uses a black one
could i switch them out?

[Service] Simple Mobile
[Android] HTC One S[4] | [ROM] Viper 2.2 Pro
[Hboot] 1.06 | S-OFF | [Recovery] CWM 6.0.3.1 Touch
[Kernel] JB Bricked | Latest Stable | [Radio] 1.13

[Android] Mytouch 4G [Retired via Hulk Smash]
[Android] MyTouch 32B [Retired old]

 
Evil-Monkey
Old
#9  
Evil-Monkey's Avatar
Senior Member
Thanks Meter 87
Posts: 424
Join Date: May 2010
Location: San Diego
Quote:
Originally Posted by rgawenda View Post
Ready for Stericson's Metamorph apk
http://www.ansemreport.com/Kspec/KspecBattery.zip
i tried this and metamorph wouldnt do it.

[Service] Simple Mobile
[Android] HTC One S[4] | [ROM] Viper 2.2 Pro
[Hboot] 1.06 | S-OFF | [Recovery] CWM 6.0.3.1 Touch
[Kernel] JB Bricked | Latest Stable | [Radio] 1.13

[Android] Mytouch 4G [Retired via Hulk Smash]
[Android] MyTouch 32B [Retired old]

 
youngalumni
Old
(Last edited by youngalumni; 15th July 2010 at 07:46 PM.)
#10  
youngalumni's Avatar
Member
Thanks Meter 0
Posts: 31
Join Date: May 2009
Location: Elgin
Default issues with cm6

i am consistantly getting an error message when trying to push the file onto the device stating that the device does not have room has this been addressed?

Quote:
C:\androidSDK\tools>adb push framework-res.apk /system/framework
failed to copy 'framework-res.apk' to '/system/framework/framework-res.apk': No
space left on device


XDA PORTAL POSTS

Dos and Don’ts of Android Design

As long as you’re coming from some type of programming background, the unseen part of app … more

Expand Your Choice of Icons with Icon Themer

Icons are some of the most commonly themed elements of the Android UI, and there is certainly no … more

MicrowaveTimePicker Brings 4.2 TimePicker to 2.1+ Devices

It’s frustrating to see slick new features that you can’t use when … more

What’s Possible with CASUAL & How to Make Your Own CASUAL – XDA Developer TV

XDA Elite Recognized Developer AdamOutler is known … more