Top Forum Discussions

[MOD][GUIDE]Enable %battery in 4.4 KitKat

588 posts
Thanks Meter: 2,894
By nguyenxuanhoa, Senior Member on 24th January 2014, 08:55 AM
Post Reply Subscribe to Thread Email Thread
25th January 2014, 04:11 PM |#11  
firasusman's Avatar
Senior Member
Flag Dubai
Thanks Meter: 11,177
Donate to Me
Appreciated if you provide flashable zip for all your mod.
One by one.

Sent from my SM-N9005 using Tapatalk
26th January 2014, 05:29 AM |#12  
Senior Member
Thanks Meter: 26
I'm on echo rom v7, which is based on official stock 4.4.2

I flashed the above soundforge file and the battery background color didn't change. It's still white.

The only issue is that when the battery becomes less than 70%, the percentage text is hard to read! So I prefer the yellow background.
Attached Thumbnails
Click image for larger version

Name:	2014-01-25.jpg
Views:	146
Size:	4.0 KB
ID:	2539572  
26th January 2014, 06:29 AM |#13  
filchi756's Avatar
Senior Member
Flag Zhuhai
Thanks Meter: 3,000
Donate to Me
Originally Posted by nguyenxuanhoa

Things you'll need:
SystemUI.apk from your 4.4 ROM

1. Using APKTool, decompile SystemUI.apk

2. Open \smali\com\android\systemui\BatteryMeterView.smali in Notepad++

3. If you don't already have the white %battery enabled, enable it now. Find:

    const-string v7, "status_bar_show_battery_percent"

    const/4 v9, 0x0
and change 0x0 to 0x1

4. Now find:
    iget-object v7, p0, Lcom/android/systemui/BatteryMeterView;->mTextPaint:Landroid/graphics/Paint;

    const/4 v7, -0x1
and change "const/4 v8, -0x1" to "const/high16 v8, -0x100" (this is changing white (-0x1) to black (-0x100))

5. Save the changes and recompile the APK making sure to retain the original signature. Push back to /system/priv-app/ and set with RW/R/R permissions. Voila, now you have black text for your %battery

downlad Enable _battery in 4.4 KitKat

Originally Posted by termit901

Bold fonts

Find in BatteryMeterView.smali

    .line 263
    const-string v7, "sans-serif-condensed"

    const/4 v8, 0x0
    .line 263
    const-string v7, "sans-serif"

    const/4 v8, 0x1
Attachment 2536151

Originally Posted by termit901

Red text

    .line 262
    iget-object v7, p0, Lcom/android/systemui/BatteryMeterView;->mTextPaint:Landroid/graphics/Paint;

    const/high16 v8, -0x30
Attachment 2536312
max brighter
Attachment 2536408

thank you all for the guides, successfully made one for Omega 7 rom.
The Following User Says Thank You to filchi756 For This Useful Post: [ View ]
28th January 2014, 07:11 PM |#14  
Junior Member
Thanks Meter: 3
tried to flash the file attached but nothing after reboot.. i am on 4.4.2 kitkat stock rom
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes