[MOD] 3Minit Battery - Read OP - Request Only! - LP / 6.0 [12/10/15]

serch826

Senior Member
Dec 28, 2009
677
313
0
Stockholm



PLEASE READ OP






This is the work of @gharrington 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 @jolly_roger_hook
------------------------------------------------------------------




~~~I no longer have the Nexus 6, but I will continue to support this thread. 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!!





---------------------------------
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



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 ;)



----------------------------
DOWNLOAD SECTION
----------------------------



LOLLIPOP ROMS




Request ONLY NOW


**If you decide that this mod isn't for you...Request a removal zip. You must state your ROM, current version of that ROM, and provide a link to the OP. If you do not do this I will ignore your request. Not trying to be mean about it, just don't have time to ask over and over. Help me help you




MARSHMALLOW ROMS



1. Pure Nexus ROM

Current Version - pure_nexus_shamu-6.0-20151121

Download Free Version - (If You didn't buy the 3Minit App) HERE

Download Paid Version - (If you already purchased the 3Minit App) HERE
(For PAID VERSION ONLY - After Flashing zip, download 3Minit paid version from playstore if you have not already done so)


2. Lite ROM

Current Version - MRA58R-Lite-6.0r3-11052015

Download Free Version - (If You didn't buy the 3Minit App) HERE

Download Paid Version - (If you already purchased the 3Minit App) HERE
(For PAID VERSION ONLY - After Flashing zip, download 3Minit paid version from playstore if you have not already done so)


3. xTRaSmooth ROM

Current Version - xTRaSmooth_MRA58R_Shamu_19.11.2015

Download Free Version - (If You didn't buy the 3Minit App) HERE

Download Paid Version - (If you already purchased the 3Minit App) HERE
(For PAID VERSION ONLY - After Flashing zip, download 3Minit paid version from playstore if you have not already done so)


4. Roasted Marshmallow

Current Version - Roasted_Marshmallow_v1.0_MRA58K

Download Free Version - (If You didn't buy the 3Minit App) HERE

Download Paid Version - (If you already purchased the 3Minit App) HERE
(For PAID VERSION ONLY - After Flashing zip, download 3Minit paid version from playstore if you have not already done so)


5. JDX ROM

Current Version - jdx-shamu-4.0.1

Download Free Version - (If You didn't buy the 3Minit App) HERE

Download Free Version w/ Center Clock - (If You didn't buy the 3Minit App) HERE

Download Paid Version - (If you already purchased the 3Minit App) HERE

Download Paid Version w/ Center Clock- (If you already purchased the 3Minit App) HERE
(For PAID VERSION ONLY - After Flashing zip, download 3Minit paid version from playstore if you have not already done so)


7. Chroma ROM

Current Version - chroma_shamu-2015-12-7

Download Free Version - (If You didn't buy the 3Minit App) HERE

Download Paid Version - (If you already purchased the 3Minit App) HERE
(For PAID VERSION ONLY - After Flashing zip, download 3Minit paid version from playstore if you have not already done so)


8. SinLess ROM

Current Version - SinLessROM_v9.0.0_M_Shamu

Download Free Version - (If You didn't buy the 3Minit App) HERE

Download Paid Version - (If you already purchased the 3Minit App) HERE
(For PAID VERSION ONLY - After Flashing zip, download 3Minit paid version from playstore if you have not already done so)


9. Minimus ROM

Current Version - minimus_shamu-2015-10-13

Download Free Version - (If You didn't buy the 3Minit App) HERE

Download Paid Version - (If you already purchased the 3Minit App) HERE
(For PAID VERSION ONLY - After Flashing zip, download 3Minit paid version from playstore if you have not already done so)


10. UberMallow ROM

Current Version - uber_shamu-2015-11-16

Download Free Version - (If You didn't buy the 3Minit App) HERE

Download Paid Version - (If you already purchased the 3Minit App) HERE
(For PAID VERSION ONLY - After Flashing zip, download 3Minit paid version from playstore if you have not already done so)


11. N6ShamuM ROM

Current Version - N6ShamuM_v2.0.0

Download Free Version - (If You didn't buy the 3Minit App) HERE

Download Free Version w/ Center Clock - (If You didn't buy the 3Minit App) HERE

Download Paid Version - (If you already purchased the 3Minit App) HERE

Download Paid Version w/ Center Clock - (If You didn't buy the 3Minit App) HERE
(For PAID VERSION ONLY - After Flashing zip, download 3Minit paid version from playstore if you have not already done so)


12. Cataclysm ROM

Current Version - CataclysmMod-Nov_20_2015-SHAMU-MRA58R_Beta

Download Free Version - (If You didn't buy the 3Minit App) HERE

Download Paid Version - (If you already purchased the 3Minit App) HERE
(For PAID VERSION ONLY - After Flashing zip, download 3Minit paid version from playstore if you have not already done so)


13. Benzo-Zerosix ROM

Current Version - benzo-sixzerozero-20151116-0610-shamu

Download Free Version - (If You didn't buy the 3Minit App) HERE

Download Paid Version - (If you already purchased the 3Minit App) HERE
(For PAID VERSION ONLY - After Flashing zip, download 3Minit paid version from playstore if you have not already done so)


14. Dirty Unicorns

Current Version - DU_shamu_6.0_20151104-2122.v10.0-TEST

Download Free Version - (If You didn't buy the 3Minit App) HERE

Download Paid Version - (If you already purchased the 3Minit App) HERE
(For PAID VERSION ONLY - After Flashing zip, download 3Minit paid version from playstore if you have not already done so)


15. crdroid

Current Version - crdroid-6.0.0-20151114-shamu

Download Free Version - (If You didn't buy the 3Minit App) HERE

Download Paid Version - (If you already purchased the 3Minit App) HERE
(For PAID VERSION ONLY - After Flashing zip, download 3Minit paid version from playstore if you have not already done so)



**If you decide that this mod isn't for you...Request a removal zip. You must state your ROM, current version of that ROM, and provide a link to the OP. If you do not do this I will ignore your request. Not trying to be mean about it, just don't have time to ask over and over. Help me help you



---------------------------------
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:

Code:
android:layout_width="9.5dip"
and

Code:
android:layout_height="14.5dip"
Note: These values may not be an exact match, doesn't matter

Change both values to

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

Code:
android:layout_height="[COLOR="red"]0.0dip[/COLOR]"
7. Hit enter and directly underneath that line add:

Code:
<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />
Code:
[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:
@gharrington - For the Awesome MOD and hardwork
@BDFreak - For the Awesome APK Tool
@jolly_roger_hook - For Maintainig the OP and Running it while @bdorr1105 Was gone
@1Zero3forlife - For Helping me with others and providing help to others
@twcobra - For helping keep ROMS up to date for the team
@serch826 - For helping keep ROMS up to date for the team, testing, and troubleshooting



XDA:DevDB Information
3Minit Battery for Nexus 6, ALL ROMs for the Nexus 6 - created by @gharrington

Contributors
gharrington, bdorr1105, jolly_roger_hook, Twcobra, serch826

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
 
Last edited by a moderator:

bdorr1105

Senior Member
Sep 6, 2008
4,129
3,112
0
I've downloaded and flashed the zip, installed the app from the Play Store. Choose a battery style, and apply after download option. Battery doesn't change. Any tips?

It's all just an illusion
I believe I found the issue and it looked to be with the zip, I do not believe it replaced the old systemUI.....I updated the zip it should work now...

EDIT**** Zip was the problem - It works now -------> Double check to see for all of thos who flashed if there is a loose systemui in your /system/priv-app folder. If so delete it
 
Last edited:

bdorr1105

Senior Member
Sep 6, 2008
4,129
3,112
0
What do you mean by a loose systemui?
Instead of it being in the SystemUI folder inside of priv-app, it was just loose inside the priv-app folder which is why it was not working. The correct modded SystemUI should be in /system/priv-app/SystemUI/SystemUI.apk

Sent from my Nexus 6
 

aalupatti

Senior Member
Feb 20, 2011
2,871
700
0
I have been trying to get this work for a long time. Do u think u can mod one for a different ROM if I provide the systemui ?
Thanks
 

bdorr1105

Senior Member
Sep 6, 2008
4,129
3,112
0
Works perfect. Your are my new star... Thank you so much.. I was trying to get this to work for the past many months....

I am going to post this in the blisspop rom thread.
No problem man, glad its working. I have had my bumps and bruises with it as well