Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

3Minit Battery Mod Updated: [03/09/14]

OP gharrington

30th June 2014, 09:17 AM   |  #1  
gharrington's Avatar
OP Senior Member
Flag Brisbane
Thanks Meter: 11,362
 
2,498 posts
Join Date:Joined: Apr 2012
Donate to Me
More


This mod allows you to view an increasing 1,070 battery types, from different users. With a single click, the battery will download and set itself on to the status bar.

Storage space is not affected by thousands of unused .png's. They're stored on a server and the App only downloads the type you use.






Decompile SystemUI.apk and navigate to: res/layout/status_bar.xml (for some older samsung devices: tw_status_bar.xml) or system_icons.xml for android 5.x
Use apktool v2.x.x or you may get recompile errors

.Look for the line that contains:

Code:
android:id="@id/battery
In the line that contains android:id="@id/battery find:

Code:
android:layout_width="wrap_content" and android:layout_height="wrap_content"
And change to:

Code:
android:layout_width="0.0dip" and android:layout_height="0.0dip"
then directly under this line add:

Code:
<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />
Download the files and place the .smali files in smali/com/android/systemui/statusbar/policy folder. Then push 3MinitBatteryResources.apk to system/app or system/priv-app folder. As from 30/12/14

Recompile and set permissions.

Here is a how to video made by @carl1961 thanks.



You are free to use and bake this mod and app into your rom provided you give full and proper credits and you provide a link to this thread. Also, you cannot alter in any way without permission from me first.

This is not a open source project and I share with you as is. All codes belong to me and are copyrighted.


App and smali files

Please consider buying the paid app to support development of this and future mods, you will also get no ads and an extra tab to make changing your favourite battery types quicker and easier.


My wife and kids for giving up their time with me so I can do this. Love you guys.
@pas2001 for batterys, renaming icons and testing.
@*wii360* for renaming batterys and testing.
@xxmrgreenxx for renaming batterys.
@NadMaj for his battery archive.
************************************************** **

List of users name we must thank (they share battery icons to USERS folder )

type 0 @wiecho65
type 1 - 4 @jaguaralani
type 5 @friedrich420 and Echoe Team
type 6-11 @BioVolt from http://forum.xda-developers.com/showpost.php?p=30686254
type 12 @NEXT14
type 13 @mcnaught82
type 14 @mydonose
type 15 @peppe130
type 16 - 21 @Carotix
type 22 @roirraW "edor" ehT
type 23 - 27 @brittnearl
type 28 @viktor_android
type 29 @goa
type 30 @icedventimocha
type 31 @mikeauto3
Thank to you all verymuch

Disclaimer: Download at your own risk. I am not responsible for any damage/data loss etc from flashing this framework.

XDA:DevDB Information
3Minit Battery Mod, App for all devices (see above for details)

Contributors
gharrington, pas2001

Version Information
Status: Stable
Current Stable Version: 2.2
Stable Release Date: 2014-09-03

Created 2014-06-30
Last Updated 2014-11-26
Last edited by gharrington; 26th December 2014 at 11:27 PM.
The Following 237 Users Say Thank You to gharrington For This Useful Post: [ View ]
30th June 2014, 09:17 AM   |  #2  
gharrington's Avatar
OP Senior Member
Flag Brisbane
Thanks Meter: 11,362
 
2,498 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Post Changelog

V2.2 (01/10/2014)
+Ability to choose the default save location
+Bug fixes

V2.1 (03/09/2014)
+Bug fixes
+Better support for older devices with a lower density screen
+italian and arabic translations
+New support link in settings tab
+ads to help support mod
+new notification system so I can notify you of upcoming updates.

V2.0 (23/08/2014)
+Notification dialog for new battery types and authors
+Now creates .nomedia files to hide batteries from gallery (if you are an existing user you must restart device after running new app for first time)
+Fixed charging animations
+New authors
+Choose colourable battery colour (Normal, mid, and low)
+Set colourable battery text colour
+Set colourable battery text size
+Set mid and low battery value
+Bug fixes
+New UI theming
+Language translations for Thai, Polish and German (Thanks to 3Minit team members for this)

V1.0 (24/07/2014)
Completely new app with multithreading for fast download speeds.
+ Can save battery types to storage for later use.
+ Can change battery size
+ Bug fixes

V0.1 (BETA) (30/06/2014)
Initial release


Last edited by gharrington; 1st October 2014 at 09:55 AM.
The Following 54 Users Say Thank You to gharrington For This Useful Post: [ View ]
30th June 2014, 09:17 AM   |  #3  
gharrington's Avatar
OP Senior Member
Flag Brisbane
Thanks Meter: 11,362
 
2,498 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Troubleshooting
Coming soon.
Last edited by gharrington; 5th November 2014 at 09:58 AM.
The Following 24 Users Say Thank You to gharrington For This Useful Post: [ View ]
30th June 2014, 09:30 AM   |  #4  
pas2001's Avatar
Senior Member
Flag Bangkok
Thanks Meter: 2,327
 
2,112 posts
Join Date:Joined: May 2013
Donate to Me
More
RAW INDEX (Temporary)


Thread portion

This part I mean to paste the link to threads that share our mod and respect our shared policy . So if you guys open your own thread to share please tell me to add your thread link here . The things we need is don't change such any parts of mod and app...clarify in thread about our right as the following friends do in their threads .

GALAXY TAB2 P 3100 from @-SAM-
http://forum.xda-developers.com/show....php?t=2875372

OnePlus One...3minit Battery mod V2 - CM 11 STABLE from @markbencze

http://forum.xda-developers.com/onep...table-t2851108

OnePlus One....3Minit Battery Mod for Stock CM11s 33R from @DaOldMan

http://forum.xda-developers.com/onep...8#post55264498


LG G3...3Minit Battery Mod V10H/I/J from @S3V3N

http://forum.xda-developers.com/lg-g...10h-j-t2857716

Nexus5 3minit bat mod from @markbencze

http://forum.xda-developers.com/goog...3/post55169524

Sprint Samsung Galaxy Note 3 : VisionX 3minit Battery Mod from @DevilDog512

http://forum.xda-developers.com/note...ttery-t2836239

Verizon Samsung Galaxy Note 3 : 3Minit BatteryMod + Flashlight Tog for Stock/Rooted/NC4 from @deuce_biggins
http://forum.xda-developers.com/veri...ooted-t2828305


++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++


GT I 9100 PAC ROM 4.4.4 http://forum.xda-developers.com/show...php?p=55020154

GT I 9100 OMEGA ROM v24 , GT I 9100 GoA ROM v7 http://forum.xda-developers.com/show...postcount=1149

GT I 9100 OMEGA ROM v13 AOKP http://forum.xda-developers.com/show...postcount=1149

GT I 9100G Galaxy S2 4.4.4 SOKP http://forum.xda-developers.com/show...postcount=1358

I 9500 NG3 http://forum.xda-developers.com/show...postcount=1128

i 9500 Omni Rom 4.4.4 Galaxy s4 http://forum.xda-developers.com/show...postcount=1316

i 9500 GNH2 http://forum.xda-developers.com/show...postcount=1343



I 9505 Emperium ROM V.10 NG8 http://forum.xda-developers.com/show...postcount=1135

And. http://forum.xda-developers.com/show...php?p=55099089

GT I 9505 OMEGA ROM v36 http://forum.xda-developers.com/show...postcount=1149



Galaxy S4 Active i537 KK. http://forum.xda-developers.com/show...postcount=1347


LG G2MINI ( D620 ) http://forum.xda-developers.com/show...postcount=1127

LG G3 STOCK ODEXED ROM http://forum.xda-developers.com/show...php?p=55014194

Should delete systemui.odex before flash???

LG G3 http://forum.xda-developers.com/show...postcount=1256


TAB3 8.0 stock rom NF4 4.4.2 http://www.mediafire.com/download/ul...UI_TAB3_80.rar


AT&T Note 3 SM-N900A http://forum.xda-developers.com/show...postcount=1138

Galaxy Note 3 ZHUEN Rom http://forum.xda-developers.com/show...postcount=1345


SM-N9005 XNOTE Rom http://forum.xda-developers.com/show...postcount=1141



Galaxy s5 ang9 http://forum.xda-developers.com/show...postcount=1154

Galaxy S5 G900F ang2 Phoenix ROM http://www.mediafire.com/download/4d...Phoenix_s5.rar

OnePlus One official odex 33r rom http://forum.xda-developers.com/show...postcount=1400
----------------------------------------------------------
V.2.1 start from #1406 post
I 9500 GNH4 with 3minit app 2.1 installed http://forum.xda-developers.com/show...postcount=1416


GT I 9505 OMEGA ROM v37 http://forum.xda-developers.com/show...postcount=1744

T-Mobile Samsung Galaxy Note 3 EffortLess ROM | REV 8 http://forum.xda-developers.com/show...postcount=1665

T-Mobile Samsung Galaxy Note 3 the x-note v20 rom. http://forum.xda-developers.com/show...postcount=1716

Galaxy S5 SM-G900H SystemUI.apk. NG3 stock. deodex . http://forum.xda-developers.com/show...postcount=1734
------------------------------------------------------

V.2.2 start from #1799 post

i9500 GNI1 http://forum.xda-developers.com/show...postcount=1805


CM12 Note4 http://forum.xda-developers.com/show...postcount=2468

************************************************** *************
THIS IS S5 FRAMEWORK FILES I PASTE FOR HANDY MEN WHO DON'T HAVE YET
Thank for @friedrich420

http://www.mediafire.com/download/xc...FRAMEWORKS.rar

Last edited by pas2001; 21st December 2014 at 05:52 AM.
The Following 18 Users Say Thank You to pas2001 For This Useful Post: [ View ]
30th June 2014, 10:06 AM   |  #5  
Goldie's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter: 18,504
 
8,545 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Nice work mate

Sent from my SM-G900F using Tapatalk
The Following User Says Thank You to Goldie For This Useful Post: [ View ]
30th June 2014, 10:07 AM   |  #6  
alvin551's Avatar
Senior Member
Flag Swansea
Thanks Meter: 642
 
895 posts
Join Date:Joined: Mar 2012
Donate to Me
More
Nice work Gary!! looking forward to trying this when i get home

Edit: Am I missing the download link?
Last edited by alvin551; 30th June 2014 at 10:12 AM.
The Following 3 Users Say Thank You to alvin551 For This Useful Post: [ View ]
30th June 2014, 10:20 AM   |  #7  
gharrington's Avatar
OP Senior Member
Flag Brisbane
Thanks Meter: 11,362
 
2,498 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Quote:
Originally Posted by alvin551

Nice work Gary!! looking forward to trying this when i get home

Edit: Am I missing the download link?

Click Downloads tab at the top of thread mate.
The Following 8 Users Say Thank You to gharrington For This Useful Post: [ View ]
30th June 2014, 10:33 AM   |  #8  
NadMaj's Avatar
Recognized Contributor
Flag Tagaytay
Thanks Meter: 3,915
 
2,485 posts
Join Date:Joined: Oct 2011
More
awesome work mate.... thanks for all the hard work..
The Following 3 Users Say Thank You to NadMaj For This Useful Post: [ View ]
30th June 2014, 10:52 AM   |  #9  
Mr Impossible's Avatar
Senior Member
Flag 305
Thanks Meter: 996
 
698 posts
Join Date:Joined: Dec 2012
Donate to Me
More
Awesome Gary!

Sent from my SM-G900F using Tapatalk
The Following User Says Thank You to Mr Impossible For This Useful Post: [ View ]
30th June 2014, 01:32 PM   |  #10  
gharrington's Avatar
OP Senior Member
Flag Brisbane
Thanks Meter: 11,362
 
2,498 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Any feed back guys?

The Following 3 Users Say Thank You to gharrington For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
3 minit, battery mods
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes