Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
itiskonrad
Old
(Last edited by itiskonrad; 3rd August 2012 at 07:11 PM.)
#1  
Senior Member - OP
Thanks Meter 175
Posts: 238
Join Date: Dec 2009
Default % battery - stock everything else

*I made this before any of these new roms came out and as such it was meant for and has been tested on only the stock Gingerbread rom that comes with the phone. I doubt it will be compatible with the new roms.*

*Typical disclaimer - short version - I'm not a dev, just a tinkerer, blah blah blah, use at your own risk, blah blah blah, god speed =)*

As requested, here's the framework-res.apk that changes nothing but adds the percent battery value to the stock battery icon. Everything else will look the same with the exception of the numbers on the battery, as such:



If you haven't swapped framework-res.apk or SystemUI.apk, please read one of my previous posts for instructions, such as:

Blue icons and removed carrier logo

You CAN very easily brick your phone if you do this incorrectly (ESPECIALLY if you use a file explorer other than root explorer)! So please ask if you're not sure about something.

Just as a refresher,
Basic instructions -
1.) download/unzip on computer
2.) copy framework-res.apk to /sysem/ folder on phone (USE ROOT EXPLORER!)
3.) change permissions to owner: read write, group: read, others: read
4.) move framework-res.apk to /system/framework folder
5.) restart phone

Any other modifications you've made to framework-res.apk will have to be reinstated afterwards.

Hope you enjoy!
Attached Files
File Type: zip stock icons - percent battery.zip - [Click for QR Code] (4.81 MB, 210 views)
The Following 2 Users Say Thank You to itiskonrad For This Useful Post: [ Click to Expand ]
 
AllstarE4
Old
#2  
Senior Member
Thanks Meter 34
Posts: 425
Join Date: Jan 2012
Ok first of all big thanks for this. However, I'm new to Android and it's a bit over my head. I'm going to have to check out your other thread I think.
 
itiskonrad
Old
#3  
Senior Member - OP
Thanks Meter 175
Posts: 238
Join Date: Dec 2009
Oh, sorry! Basically, you need root explorer from the market. I know it costs something like 3 bucks, but in my opinion, it's totally worth it if you do any mods on the phone at all. Messing with framework-res.apk with other file explorers can spell disaster. Root explorer is the only one I really trust.

1.) Using root explorer, COPY your framework-res.apk file at /system/framework/framework-res.apk to somewhere on your sd card for safekeeping, just as a backup.
2.) Move framework-res.apk from this thread's "stock icons - percent battery.zip" onto your sd card, and move it into /system folder on your phone.
3.) Long-press on this framework-res.apk in root explorer, and select permissions. Change permissions to: Owner: read/write, group: read, others: read.
4.) Move this framework-res.apk, now with the proper permissions, into /system/framework folder, and let it overwrite the original framework-res.apk.
5.) Restart your phone!
 
rsalan
Old
#4  
Senior Member
Thanks Meter 73
Posts: 394
Join Date: Jan 2012
Location: Boston
Oh, Root Browser works great for me and best of all it's free!
 
itiskonrad
Old
#5  
Senior Member - OP
Thanks Meter 175
Posts: 238
Join Date: Dec 2009
Have you used it specifically to replace framework-res.apk before? If it works for that, great! But if you haven't tried that already, be aware how the file explorer specifically handles framework-res.apk is the difference between the phone being fine or getting bricked. With root explorer, when you replace framework-res.apk, it prevents the phone from accessing the file while copying, and only actually swaps at reboot. With other file explorers like ES File Explorer, even with root permissions and all the same functionality of root explorer, when you swap framework-res.apk, the phone continues to try to read off the framework-res.apk as it is being overwritten, causing the phone to crash and an endless bootloop/brick. (I know because I tried to find a free alternative to root explorer and ended up with a brick =P) If Root Browser works for this, that's fantastic! But be careful! Unless you've already swapped framework-res.apk using this and it worked beautifully, be very very very cautious!!
 
rsalan
Old
#6  
Senior Member
Thanks Meter 73
Posts: 394
Join Date: Jan 2012
Location: Boston
Yep! I guess I lucked out when I went into it without really knowing what I was doing.
 
itiskonrad
Old
#7  
Senior Member - OP
Thanks Meter 175
Posts: 238
Join Date: Dec 2009
Haha, awesome! Great! There's a free alternative then! =) So percent worked okay with you?
 
AllstarE4
Old
#8  
Senior Member
Thanks Meter 34
Posts: 425
Join Date: Jan 2012
I just bought the Root Explorer. I'm assuming it needs to say "Mounted as R/W". Otherwise it's in read only mode?
 
itiskonrad
Old
#9  
Senior Member - OP
Thanks Meter 175
Posts: 238
Join Date: Dec 2009
Yup! RW mode needed
 
rsalan
Old
#10  
Senior Member
Thanks Meter 73
Posts: 394
Join Date: Jan 2012
Location: Boston
Quote:
Originally Posted by itiskonrad View Post
Haha, awesome! Great! There's a free alternative then! =) So percent worked okay with you?
Yeah everything looks great! Thanks.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Guide to Using Adobe Air on Android

When writing an app with performance in mind, you most likely want to write it native code using the … more

Boot Animation Paradise for your Android Device

The default boot animations on any device, no matter whichmanufacturer, are generally pretty … more