[Nexus 6P Themes and Apps] bdorr1105:
[IMG="3Minit GIF"]http://i1280.photobucket.com/albums/a493/pas2001pc/batMODxda_zps951e413f.gif[/IMG]

PLEASE READ OP​

​

This is the work of [MENTION=4619873]gharrington[/MENTION] and the 3Minit Team, please see the original thread HERE, or HERE, I only compiled for users that are unfamiliar with the use of apktool, head over to his thread and thank him if you haven't already!

------------------------------------------------------------------

VIDEO ADDED UNDER INSTALL - METHOD 2 - Video by [MENTION=5808364]jolly_roger_hook[/MENTION]

------------------------------------------------------------------

~~~I no longer have the Nexus 6, but I will continue to support this thread and Nexus 6 Shamu. At the very minimum, please post the ROM link and exact version of that ROM you are running. If you don't post it, it creates more work for the team. Help us help you

This will give you the option of choosing between over 1100 different battery images!!!​

------------------------------------------------------------------------------

Screenshots - Informational, Tips, and Tricks

------------------------------------------------------------------------------

Take Full Advantage of 3Minit. You can adjust the size of the battery in the settings menu by changing the offset. Experiment and have fun!!

---------------------------------

How To Install:

---------------------------------

Begin by Downloading the zip file below for whatever version your running or request update if not added

or

Make a flashable zip yourself with instructions below

Method 1 :

1. Reboot phone into TWRP

2. Wipe Dalvick Cache / Cache

3. Go To Install

4. Flash Zip

5. Reboot and Enjoy

Method 2:

(Only if you have force close issues from Method 1)

1. Reboot into TWRP

2. Go to mount and mount system

3. Go to advanced then file manager locate your system UI(system/priv-app/systemui/systemui.apk) and deleted it then flash the zip

4. Free version of app here 3MinitBatterySettings.apk

[YOUTUBE]7USm0oMvGWg[/YOUTUBE]

INSTALL VIDEO TUTORIAL CLICK HERE

Method 3 :

(If Method 1 or 2 Fail)

1. Download the zip file for your ROM in download section

2. Extract the SystemUI.apk and MinitBatteryResources.apk from the zip

3. Copy these 2 files to your phone

4. Navigate to /system/app with Root Explorer

5. Create a folder named MinitBatteryResources

6. Copy MinitBatteryResources.apk inside of that folder

7. Set permissions to rw-r-r or 0644

8. Navigate to /system/priv-app/SystemUI

9. Copy the modded SystemUI.apk attached to this post

10. Set permissions to rw-r-r or 0644 (If it reboots before you can do that, just set permissions after pgone reboots)

11. Reboot phone and hopefully you are good to go!

ATTENTION: USEFUL INFO - DON'T IGNORE - (KEEP IN MIND I USE THE PAID VERSION SO I DON'T KNOW WHAT FREE ONE DOESN'T HAVE

If the battery seems small, you can change the offset to make it larger so it's not so tiny you can't see it. The Offline batteries that are included, they seem to be perfect size all together. Just tinker around with it, that's just the size I use

For Batteries that you download by Colourable, You have to move the slider down to zero on Battery Text Colour or a percentage will be over top of that battery. Additionally, the mid level color I set to zero or else it will turn yellow at 50%. I turn it to zero and I actually use the 25% slider. You can put them all to zero if you like and the battery will do what it is meant to do. This only applies to the Colourable one's. The slider will not even adjust for different Batteries. See the Screenshot below

**Please report any issues you have...in a kindly manner ;)

---------------------------------

HOW TO DO IT YOURSELF

---------------------------------

If you want to do this yourself, you will need to have a deodexed ROM that you are working with. If you know how to deoedex that's good for you, but if you are not able to do that, and the ROM is not deodexed, then you are out of luck. There are smali files that you need to add to the system ui which are only found in deodexed APKs

Recommended Tools: Notepad ++, Advanced APK Tool, 7zip

1. You need to download the Smali FIles for APK Tool 2.x.x which can be found at http://www.3minit.com/

2. From Root Explorer - Copy Your SystemUI.apk and framework-res.apk to your SD Card

3. Pull SystemUI.apk and framework-res.apk off your phone and on your Computer

Extremely Important (Note: Use 7zip to extract META-INF folder and AndroidManifest.xml to Desktop before you decompile)

4. Install the Framework and decompile your SystemUI.apk (This requires Decompile knowledge - You should know what I am talking about)

5. Once decompiled, navigate to res/layout/system_icons.xml and open with notepad ++

6. Find:

android:layout_width="9.5dip"

and

android:layout_height="14.5dip"

Note: These values may not be an exact match, doesn't matter

Change both values to

android:layout_width="[COLOR="Red"]0.0dip[/COLOR]"

and

android:layout_height="[COLOR="red"]0.0dip[/COLOR]"

7. Hit enter and directly underneath that line add:

<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />

[COLOR="red"][/COLOR]

8. Save your work and close notepad ++

9. You now to need to navigate to smali/com/android/systemui/statusbar/policy folder

10. Copy the 4 smali files into that policy folder

11. Time to recompile the SystemUI.apk

12. Once Compiling of SystemUI.apk is complete, open archive with 7zip (DON'T EXTRACT)

13. Delete META-INF folder and AndroidManifest.xml from newly compiled SystemUI.apk

14. Add the originals from Step 3

15. Download the 3Minit_Battery_free_NameYourZip.zip or 3Minit_Battery_paid_NameYourZip.zip (This will be your Flashable Zip)

16. Use 7zip to open NameYourZip and navigate to system/priv-app/SystemUI

17. Drag the Newly Compiled Completed SystemUI.apk into system/priv-app/SystemUI

18. Your Zip can now be flashed... Name the Zip whatever You want!!

Don't worry, if you need help because you are having issues, post your SystemUI.apk and framework-res.apk and give me the exact ROM and version you are running so we can help. I make no promises.

I am also not teaching how to Deodex or Decompile an APK....You must have knowledge in that area to do this...Good luck

If the battery seems small, you can change the offset to make it larger so it's not so tiny you can't see it. The Offline batteries that are included, they seem to be perfect size all together. Just tinker around with it, that's just the size I use

For Batteries by Colourable, You have to move the slider down to zero on Battery Text Colour or a percentage will be over top of that battery. Additionally, the mid level color I set to zero or else it will turn yellow at 50%. I turn it to zero and I actually use the 25% slider. You can put them all to zero if you like and the battery will do what it is meant to do. This only applies to the Colourable one's. The slider will not even adjust for different Batteries. See the Screenshot below

**Please report any issues you have...in a kindly manner ;)

Give Thanks To:

[MENTION=4619873]gharrington[/MENTION] - For the Awesome MOD and hardwork

[MENTION=5078388]BDFreak[/MENTION] - For the Awesome APK Tool

[MENTION=1195110]bdorr1105[/MENTION] - For the OP and file used to recreate this mod for N6

[MENTION=5808364]jolly_roger_hook[/MENTION] - For Maintainig the OP and Running it while [MENTION=1195110]bdorr1105[/MENTION] Was gone

[MENTION=5345493]1Zero3forlife[/MENTION] - For Helping me with others and providing help to others

[MENTION=4469513]twcobra[/MENTION] - For helping keep ROMS up to date for the team

XDA:DevDB Information

3Minit Battery for Nexus 6, ALL ROMs for the Nexus 6 - created by [MENTION=4619873]gharrington[/MENTION]

Contributors

gharrington, bdorr1105, jolly_roger_hook, Twcobra

Version Information

Status: Stable

Current Stable Version: 4.0.1

Stable Release Date: 2015-11-03

Created 2014-06-30

Last Updated 2015-11-03