[Android General] By Zonik:
Guide 3minit Battery for Nougat

An alternative to add 3minit if in case for you did not work other methods, this method is easier

A big thanks to [MENTION=4619873]gharrington[/MENTION] for amazing mod, original post here https://xdaforums.com/sho...ostcount=11079

a simple modification to this mod:

••3minit battery Position (Right/Left)

••Hide Battery Stock

••Hide Battery Percentage

••New desing app

Well, we started!!

1.-Decompile you SystemUI and mergue files

==========================================

2.-Go to system_icons.xml(res/layout folder)

Time to hide Battery Stock!

Add the lines with the sign +++

+++<com.android.systemui.rz.LeftLayout android:layout_width="wrap_content" android:layout_height="wrap_content" key="hide_stock_battery">
<FrameLayout android:id="@id/battery_root" android:layout_width="wrap_content" android:layout_height="wrap_content">
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/status_bar_battery_icon_width" android:layout_height="@dimen/status_bar_battery_icon_height" android:layout_marginBottom="@dimen/battery_margin_bottom" />
</FrameLayout>
+++</com.android.systemui.rz.LeftLayout>

Time to edit 3minit

Add this before of:

</LinearLayout>

<com.zonik.switch.mZonikSwtich android:layout_width="wrap_content" android:layout_height="wrap_content" key="3minit_position" value="0">
<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.zonik.switch.mZonikSwtich>

3.-Go to notification_icon_area.xml (res/layout folder)

after of

xmlns:android="http://schemas.android.com/apk/res/android">

Add this

<com.zonik.switch.mZonikSwtich android:layout_width="wrap_content" android:layout_height="wrap_content" key="3minit_position" value="1">
<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.zonik.switch.mZonikSwtich>

Done now compile :fingers-crossed:

4.- Rom Control

in Arrays.xml

<string-array name="z_custom_3minit_entries">
<item>On the right</item>
<item>On the left</item>
<item>Hide</item>
</string-array>
<string-array name="z_custom_3minit_values">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>

in preferences

<PreferenceScreen android:title="3Minit Battery Control">
<com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:title="Stock Battery" android:key="hide_stock_battery" android:defaultValue="1" android:summaryOn="Battery Stock shown" android:summaryOff="Battery Stock is hidden" />
<com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:title="Battery Percentage" android:key="display_battery_percentage" android:defaultValue="1" android:summaryOn="Battery text shown" android:summaryOff="Battery text is hidden" />
<com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:title="3Minit Battery" android:key="minit_battery_visible" android:defaultValue="false" android:summaryOn="Show" android:summaryOff="Hide" app:packageNameToKill="com.android.systemui" app:isSilent="false" />
<com.wubydax.romcontrol.v2.prefs.MyListPreference android:title="3Minit Position" android:entries="@array/z_custom_3minit_entries" android:key="3minit_position" android:defaultValue="1" android:entryValues="@array/z_custom_3minit_values" />
<com.wubydax.romcontrol.v2.prefs.OpenAppPreference android:title="3Minit Battery Settings" android:summary="Manage battery icon on statusbar" app:componentName="com.three.minit.minitbatterysettings/com.three.minit.minitbatterysettings.MainActivity" />
</PreferenceScreen>