Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
sunwee
Old
(Last edited by sunwee; 28th May 2011 at 02:28 AM.) Reason: attachment made available at post 5
#1  
Senior Member - OP
Thanks Meter 27
Posts: 397
Join Date: May 2009
Default [MOD] Gingerbread Horizontal Battery with 1% increment KE7

I've always used this mod in SGS1. I like it better than the vertical one because the numbers are better spread out and not so squishy.

Anyway here's my mod of Rawat's battery mod. The gfx were from old sgs1 framework and I really forgot where I got it from. Thanks to whoever who did the gfx. Thanks also to Rawat for the initial framework-res.apk.

I really only did the cut&paste and some testing, so I take no credit for this.

Hope someone finds it useful

Sorry I've been up too long doing this mod, it's time to zzz, so I can't write a detail installation instructions. But Chalid has made another similar mod (vertical battery) and has kindly put up some very detailed instructions there. Thanks! http://forum.xda-developers.com/show....php?t=1091177



Note: This is for KE7 firmware only, not tested with other versions.



edit: ok, seems fixed, so i've added back the attachment. refer post 5.
The Following 2 Users Say Thank You to sunwee For This Useful Post: [ Click to Expand ]
 
prophet42
Old
(Last edited by prophet42; 25th May 2011 at 08:53 PM.)
#2  
Member
Thanks Meter 6
Posts: 40
Join Date: Jan 2010
Location: Northampton
Installed on KE7..... However:

As expected it wipes all accounts on the phone (such as google/facebook etc.), but everytime I go into settings, accounts and sync to re-add them the whole phone freezes. As in as soon as I hit "accounts and sync" everything crashes, then goes black with only the the top of the display (I forget what you call it, with the phone signal, battery indicator etx. visable.

Then it comes back to life, but I have to restart luncher pro. Have to switch off wireless, and back on again otherwise it doesn't work either.

Also happens if I try and add any new account via contacts, or gmail.

Reverting back to original framework-res.apk cures the crashing problem. But then it's back to stock battery indicator =(
 
sunwee
Old
#3  
Senior Member - OP
Thanks Meter 27
Posts: 397
Join Date: May 2009
you are right. i didn't notice this coz when i replaced mine, it didn't wipe out any account, no i didn't go into settings.

ok, removed attachment for now and see if i can redo it. sorry for any inconveniences.
 
prophet42
Old
#4  
Member
Thanks Meter 6
Posts: 40
Join Date: Jan 2010
Location: Northampton
Shame. I liked it better than the vertical one.
Would deffo have used it. I'll keep an eye out to see if you repost it, and try again.
 
sunwee
Old
#5  
Senior Member - OP
Thanks Meter 27
Posts: 397
Join Date: May 2009
Quote:
Originally Posted by prophet42 View Post
Shame. I liked it better than the vertical one.
Would deffo have used it. I'll keep an eye out to see if you repost it, and try again.
well ok, but i am not well versed in android hacking, so it's kind of a learning process for me too

i've re-done the framework-res, tested it for a day and seems to be fine now. here it is if you want to try it again.
Attached Files
File Type: rar framework-res.rar - [Click for QR Code] (4.60 MB, 270 views)
 
cTrox
Old
#6  
Senior Member
Thanks Meter 170
Posts: 558
Join Date: Apr 2010
The Account wiping can happen if you don't set the permissions right. Copy the framework-res.apk to /system first, change permissions to rw-r-r (644) and then move the file to /system/framework
 
Little Dragon
Old
#7  
Senior Member
Thanks Meter 51
Posts: 593
Join Date: Aug 2010
Location: Toronto
Is it working? This looks sweet

Sent from my SAMSUNG-SGH-I897 using XDA App
 
Pfeffernuss
Old
(Last edited by Pfeffernuss; 27th May 2011 at 09:32 PM.)
#8  
Pfeffernuss's Avatar
Senior Member
Thanks Meter 314
Posts: 1,827
Join Date: Jun 2009
Location: Wassenaar
For the record, tried it on KE2, just for fun. Result:



Like a charm (that is: so far, don't know if anything "breaks" when using this framework on KE2, YMMV...)
 
ermacwins
Old
#9  
ermacwins's Avatar
Senior Member
Thanks Meter 248
Posts: 2,592
Join Date: Aug 2009
Quote:
Originally Posted by cTrox View Post
The Account wiping can happen if you don't set the permissions right. Copy the framework-res.apk to /system first, change permissions to rw-r-r (644) and then move the file to /system/framework
what boxes need to ckecked if done with root explorer?
LG Nexus 4: CyanogenMod 10.1
Samsung Galaxy SII: MIUI 2.12.7
LG Optimus 2X: ParanoidAndroid v2.5 - Build 04
HP Touchpad: AOKP Milestone 6
iPad 2
 
sunwee
Old
#10  
Senior Member - OP
Thanks Meter 27
Posts: 397
Join Date: May 2009
Quote:
Originally Posted by ermacwins View Post
what boxes need to ckecked if done with root explorer?
owner rw, group r, others r

 
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

Open Source CPU Info App for Windows

So you’re playing with your shiny new Windows 8 tablet PC, when one of your like-minded geeky … more

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