FORUMS

[GUIDE] [TUT] 3Minit Battery

100 posts
Thanks Meter: 164
 
Post Reply Email Thread
GUIDE 3Minit Battery
Work and Tested - CM 12.1 & LP Based

1. Decompile systemUI.apk
(FIRST)Mregae all smali -->>
(SECOND)At the file:
SystemUI\res\layout\system_icons.xml
Add this line

Quote:

<com.android.systemui.statusbar.policy.MinitBatter y android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="0.0dip" />

*Compile systemUI.apk DONE*

2. Decompile settings.apk
settings\res\xml\display_settings.XML
Add this lines

PHP Code:
        <PreferenceScreen android:title="@string/3Minit_Battery_Mod" android:key="battery_mod" android:summary="@string/Settings_Battery_Mod">
        <
intent android:targetPackage="com.three.minit.minitbatterysettings" android:action="android.intent.action.MAIN" android:targetClass="com.three.minit.minitbatterysettings.MainActivity" />
        </
PreferenceScreen
settings\res\values\strings.XML
Add this lines

Quote:

<string name="3Minit_Battery_Mod">3Minit Battery Mod</string>
<string name="Settings_Battery_Mod">Battery Mod Settings</string>

*Compile settings.apk DONE*

Files and Compare Press Me
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2016-12-21-08-15-52.png
Views:	264
Size:	127.5 KB
ID:	4018501   Click image for larger version

Name:	Screenshot_2016-12-21-08-16-31.png
Views:	270
Size:	61.5 KB
ID:	4018502   Click image for larger version

Name:	Screenshot_2016-12-21-08-16-36.png
Views:	254
Size:	61.7 KB
ID:	4018503   Click image for larger version

Name:	Screenshot_2016-12-21-08-16-39.png
Views:	230
Size:	75.7 KB
ID:	4018504  
The Following 3 Users Say Thank You to ahmed.nasser.hk For This Useful Post: [ View ] Gift ahmed.nasser.hk Ad-Free
27th January 2017, 10:48 AM |#2  
glfsd's Avatar
Senior Member
Thanks Meter: 1,275
 
Donate to Me
More
@ahmed.nasser.hk excellent guide, but there is a small mistake. there is a space that there should not be

Code:
........ android:targetClass="com.three.minit.minitbatterys ettings.MainActivity" />
27th January 2017, 12:17 PM |#3  
Astrako's Avatar
Recognized Developer
Flag Badajoz
Thanks Meter: 7,286
 
Donate to Me
More
Thanks for this nice mod and easy to follow tutorial!
27th January 2017, 04:38 PM |#4  
Junior Member
Thanks Meter: 1
 
More
Thank you Bro !!! Very easy

But I have found a small error:
<com.android.systemui.statusbar.policy.MinitBatter y android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="0.0dip" />

PD: On the guide its good.
27th January 2017, 07:37 PM |#5  
ahmed.nasser.hk's Avatar
OP Senior Member
Flag Hurghada
Thanks Meter: 164
 
More
Quote:
Originally Posted by glfsd

@ahmed.nasser.hk excellent guide, but there is a small mistake. there is a space that there should not be

Code:
........ android:targetClass="com.three.minit.minitbatterys ettings.MainActivity" />

Thanks for attention and observation, Modified
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes