FORUMS

OnePlus 2 Forums: Discuss Everything About The OP2!

Now that the OnePlus 2 has been officially unveiled and that we have had close-up … more

Intel & Micron Announce “Revolutionary” Storage Tech

Intel & Micron have announced 3D Xpoint technology—”the … more

Google Now Interfaces With Third-Party Messaging Apps

Google has announced that Ok Google voice commands can now be used to send … more

Make Your Lockscreen More Productive With Widgets

Are you running Android Lollipop? Do you miss the ability to add widgets to your lock … more

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

588 posts
Thanks Meter: 2,891
 
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
More
Appreciated if you provide flashable zip for all your mod.
One by one.
Thanks.

Sent from my SM-N9005 using Tapatalk
 
 
26th January 2014, 05:29 AM |#12  
Senior Member
Thanks Meter: 26
 
More
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: 2,931
 
Donate to Me
More
Quote:
Originally Posted by nguyenxuanhoa

Things you'll need:
APKTool
Notepad++
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:

Code:
    const-string v7, "status_bar_show_battery_percent"

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

4. Now find:
Code:
    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 N900.zip

http://sourceforge.net/projects/vnro...0.zip/download

Quote:
Originally Posted by termit901

Bold fonts

Find in BatteryMeterView.smali

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

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

    const/4 v8, 0x1
result:
Attachment 2536151

Quote:
Originally Posted by termit901

Red text

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

    const/high16 v8, -0x30
Attachment 2536312
------
max brighter
Code:
 -0x1
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
 
More
tried to flash the file attached but nothing after reboot.. i am on 4.4.2 kitkat stock rom
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes