yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] gharrington:
Yes you can just add the layout_margin attribute to the MinitBattery line you added to system_icons.xml look around the file for a example and copy and paste it.

EG:

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

This would add spacing to the left side of the battery.
[Android Apps and Games] waldox:
Great, thanks!
[Android Apps and Games] prosaschi:
Awesome

I just wanted to say again how great this MOD is! It takes the boring out of the stock battery. Thanks again!

Paul R
[Android Apps and Games] bnutz8:
Does this app help with battery life or is it cosmetic only?
[Android Apps and Games] jimbomodder:
Cosmetic

Sent from my SM-A500FU
[Android Apps and Games] gerhonimo1966:
Hello everyone.

3minit dont works on my G3 with lollipop 5.0 V20T rooted.Does anyone know where to download the files modified for my phone?The thread 3minit on G3 is closed and the links are removed.
[Android Apps and Games] dacorsa:
Hi Guys,

is there a little guide to install 3minit on the last rom for s5??

i don't have understand where is the smali dir....???

thanks
[Android Apps and Games] gharrington:
No smali dir means you are using an odexed ROM. You need to be deodexed to use this mod.
[Android Apps and Games] dacorsa:
Good morning

Thanks for your reply , I'm on boj2 rom with xposed so I think I'm on deodexed rom

Can u give me a detailed guide to help me install 3minit battery on my S5 ?

I don't find smali dir and I don't understand what is ' install framework ' and where I must take it

Thanks

Inviato dal mio SM-G900F con Rom ALEXNDR BOJ2
[Android Apps and Games] whaidim:
Hiiii does this works with lollipop 5.0
[Android Apps and Games] dacorsa:
Hi Garrington,

I have seen the video on the 1 page and now I have understand ...

I have upload the recompiled SystemUI.apk but phone hang with system process not responding

I have upload also 3minit battery setting in system privapp, or need other file 3minit battery resource?

Thanks

Inviato dal mio SM-G900F con Rom ALEXNDR BOJ2
[Android Apps and Games] bdorr1105:
You need to install the MinitBatteryResources.apk, especially if you do not have the newer smali files. Push that to /system/app and set permissions to rw-r-r or 0644 and reboot!
[Android Apps and Games] brucehulkbanner:
does this work on LG v10 running 5.1.1
[Android Apps and Games] PuntoG:
Since I don't have that phone, I can't say for sure. But I'm assuming it would as 3Minit battery is a very popular app. YMMV.
[Android Apps and Games] roirraW "edor" ehT:
I searched this thread and didn't find any mentions of TWRP that were similar to this issue.

Greetings [MENTION=4619873]gharrington[/MENTION], [MENTION=5282154]pas2001[/MENTION] and everyone else who helps actively support this thread these days. I had done this mod for a couple stock or stock-based ROMs for the SPH-L710 Sprint Galaxy S3 about a year and a half ago but haven't been active in this thread or modding ROMs for this since I got the VS985 Verizon LG G3 a year ago.

Myself and at least one other VS985 user have encountered a strange (to me) issue, and I have trouble believing it really has anything to do with this mod, but looking for ideas of what else could be the trouble.

Starting at this post http://xdaforums.com/showpost.php?p=64080340&postcount=614, I mentioned my experience with [MENTION=5094222]netookska05[/MENTION] 's 3Minit modding for [MENTION=2941286]xdabbeb[/MENTION] 's VS985 v2.0 ROM and in a later post, [MENTION=4468526]prosaschi[/MENTION] confirms the same behavior http://xdaforums.com/showpost.php?p=64112596&postcount=620. The symptom is this: Performing the mod in TWRP v2.8.7.0 and using 3MinitBatteryMod and the app work fine. After reboots everything works fine, too.

However, after flashing the mod, making a backup in TWRP and then restoring it (after wiping) results in a sysui FC loop. I think the nav bar and status bar were both missing as well, which is to be expected considering. [MENTION=5094222]netookska05[/MENTION], the one who modded this ROM's framework for this mod, couldn't reproduce the issue.

Back-ups that don't include the 3Minit mod work just fine after wiping and restoring them. This is definitely confirmed by me many times. It's puzzling. About the only thing I can think of are to compare how we installed TWRP, or the particular TWRP .img file used.

TIA for any input.

Edit: As shown in the confirming post link I gave, restoring the TWRP backup that "normally" would result in the sysui FC loop and then dirty flashing the ROM over it makes it work just fine. No idea about re-flashing the 3Minit mod manually after this, either immediately or later. I would expect that to work, but I would've expected the restored backup to work too.
[Android Apps and Games] prosaschi:
Restoring CONT

I flashed the 3minit MOD after I restored and dirty flashed the backup and the MOD worked fine. However, after I backed up that ROM I tried to restore it and was left with the original issue.

Paul

Edit: As shown in the confirming post link I gave, restoring the TWRP backup that "normally" would result in the sysui FC loop and then dirty flashing the ROM over it makes it work just fine. No idea about re-flashing the 3Minit mod manually after this, either immediately or later. I would expect that to work, but I would've expected the restored backup to work too.[/QUOTE]
[Android Apps and Games] gharrington:
Its sounds like you installed the resources app like any normal app which goes to data/app . these all get uninstalled when you do a full wipe. Reinstall it I think your issue will be gone.

In future put the resources apk in system/app and it will get backed up by twrp too. By dirty flashing it will simply install the missing resources app
[Android Apps and Games] roirraW "edor" ehT:
Thanks for the response.

I know in my case, my TWRP backup included my data/user apps, and I restored them as well. I can't speak as to the other user until he confirms the same for him.

However, [MENTION=5094222]netookska05[/MENTION] includes both the MinitBatteryResources.apk and 3MinitBatterySettings.apk in the flashable zip in system/app, and LGSystemUI.apk in system/priv-app.

I forgot until just now when I looked at the description of his mod, it also includes a mod that removes a circle from the LG lockscreen - so it's possible that it's not even remotely related to 3Minit, although it's still just as puzzling that the mod would work fine until restored via a TWRP backup.

If I can find the time in my own Android experiments, I'll compile the 3Minit mod myself, alone, with no other mod, and test the result to compare.
[Android Apps and Games] netookska05:
I used the lgsystemui from here http://xdaforums.com/verizon-lg-g3/themes-apps/mod-fix-stupid-lg-lockscreen-remove-t3238470 all I did was use the modded one for xdabbebs ROM and added the 3minit mod to it. You can try what you suggest in modding it with just the 3minit maybe the circle mod is interfering [MENTION=2560614]roirraW "edor" ehT[/MENTION]
[Android Apps and Games] roirraW "edor" ehT:
Thanks [MENTION=5094222]netookska05[/MENTION]! Actually, I'll test the ring modded one first since it's available, and see if there's a problem with the restored backup.
[Android Apps and Games] AL_IRAQI:
Hi

i tried to add to Zenfone 2 SystemUI

thats my system_icons.xml

i made zip with MinitBatteryResources & 3MinitBatterySettings to system/app and SystemUI

after reboot System didnt boot up

do i have to change something in system_icons.xml ?

Edit:

I moved

* * * <com.android.systemui.statusbar.policy.MinitBattery

Outside

* * </com.android.systemui.statusbar.phone.BatteryClusterView>

And it works fine
[Android Apps and Games] netookska05:
:good:
[Android Apps and Games] antr34:
can any1 mod for me, i tried many times n it didnt work, theres no error in decompile nor recompile, i use cm11 rom
[Android Apps and Games] franksdb:
[MENTION=4619873]gharrington[/MENTION]

Hello friend I have a problem. :confused::confused:

When modifying the systemui everything compiles fine and applied default icons but when I try to download one does not apply.

The same icon is always maintained, I can only choose between the offline icons.

Install the 3minit resource normally and always happens that

I'll thank you to help me with that.
[Android Apps and Games] alphamale:
Has anyone tried this on any 6.0 mm rom. I get system ui crashes lg g3 vs985. I used lg res that I've had saved for a while used it on kk and lp ROMs. Can someone take a look. I have the apks installed prior to trying it. Also tried pushing resources into system/app
[Android Apps and Games] franksdb:
try this only installs the pay version of the play store

https://drive.google.com/file/d/0B1S7IutVWYLVRF9NamdKZU1DUU0/view?usp=sharing
[Android Apps and Games] Bryce2010:
Hi,

I am using Canadian Note 4 (Vision-X N4 ROM Version 5.1.1 N910F COJ5).

Would love to have 3-Minit Battery Mod!

Tried following instructions but I cant recompile without error (something about path not exist apktool.yml)

Anyone have a flashable zip would be compatible? :confused:
[Android Apps and Games] alphamale:
https://www.dropbox.com/s/578krbodr8rmoqv/SystemUI.apk?dl=0
[Android Apps and Games] antr34:
it simple didnt change the battery icon, it stay the same just like nothing happen
[Android Apps and Games] bdorr1105:
You have to edit the yaml file with notepad plus plus and you delete all those paths under the compress line... Send me the yaml file... It will recompile after that... I have not done it in a while but I will remember when I see it

---------- Post added at 07:43 AM ---------- Previous post was at 07:42 AM ----------

Can you change it with the offline batteries
[Android Apps and Games] antr34:
no, i press every single battery icon in offline but non is working

in online when i press a battery icon, a command pop up but it doesnt work either. no matter what i choose "Apply" or "Apply and store". it just downloading then do nothing. i can see many battery icon in my sdcard 3minit folder
[Android Apps and Games] Bryce2010:
Thanks but I'm working today...but I do have the untouched framework & system ui files I could send u?
[Android Apps and Games] bdorr1105:
Sure
[Android Apps and Games] AL_IRAQI:
Hi

use latest files v4.0 here
[Android Apps and Games] Negan:
same errors as before
[Android Apps and Games] bdorr1105:
What Version of apk tool are you using..? Post the systemui and framework-res.apk..

What device and Android version?
[Android Apps and Games] Negan:
Using 2.02

Nexus 6

Cm 13

6.01

https://www.dropbox.com/s/drgxkefhzvs4nql/sysui_fw.zip?dl=0

very odd indeed because I've done this mod so many times and it's so easy to do! Not sure why it's so angry this time!
[Android Apps and Games] bdorr1105:
So there I went, took hours to get this damn computer to stop throwing every error in the book at compiling this into the latest dirty jar, however, after the .git folder not existing, cloning the git being a pain, file destinations being too large, missing Java even tho it was installed and fixing the variables, I managed to compile.

I tried to decompile a cm 13 6.0.1 Rom to no avail....See the code below

Decompiling "SystemUI.apk",
in workarea "_WorkArea1", using "apktool_2.0.2-dirty2.jar"
With Debug Info Disabled

With Tickle My Android 12.0.0.
(tinyurl.com\ticklemyandroid)

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

I: Using [COLOR="Red"][B]Apktool 2.0.3-0649d5-SNAPSHOT[/B][/COLOR] on SystemUI.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\150CPT_Admin\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x01080753
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x01080753
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01080753
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:65)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:61)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:57)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:46)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:47)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:369)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:33)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:120)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:105)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:247)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:136)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)

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

Decompile Not Successful!
[Android Apps and Games] Negan:
Now that is odd? I didn't have any issues decompiling. Mind you I've never tried TMA. I've just used my own tool for tinkering! If I recall when lollipop came out there was a similar issue with some oddball folder name we had to delete in order to compile the systemui. I can't remember why that was.
[Android Apps and Games] Gil81:
So I have been trying for days to get this to work on my LGG3, running Cyanide L 5.1.1.

I Decompile the systemui apk..make the xml edits and insert smali files to the policy folder. Recompile and push to system priv-apps and set permissions. I dont get any crashes. But I have no statusbar or navbar, Lol. So I know Im messing something up.

I have installed framework-res , systemui , and the cyanide res apk.. just for good measure.. To apktool. Ive tried signing the systemui, not signing, and even just switching out the edited files to the original apk. Thinking it was a signing issue. But always the same result. Any help would be gratefully appreciated.

Im assuming there must be another system_icons folder messing with edits. But Im not sure and have no idea where to even start looking for such a file. Or if that is/can be the issue.

Sorry for being a Noob. Thx.
[Android Apps and Games] bdorr1105:
So I def downloaded the tool, and still could not get it to decompile. Not sure how you did it, but see the attached errors
[Android Apps and Games] Negan:
ah ok according to the error it's your java version. Needs to be 1.7. You're 1.8

My java occasionally auto updates and I just go into control panel and uninstall the update which takes 30 seconds and then it works immediately.
[Android Apps and Games] bdorr1105:
ah well everything else is working on java 1.8, i guess it would not hurt to downgrade, lol I am good...I can send you my apktool.jar, see if any of the updates will help with recompiling if you want

I compiled it from github, please do not share it out, this is just a dirty version of 2.0.3, not official, not my work either, just compiled it
[Android Apps and Games] Negan:
Oh i have it already! did the same as you. Mind you I haven't tried applying it to my tool yet. I will and see if it helps!
[Android Apps and Games] bdorr1105:
Sounds good thanks
[Android Apps and Games] AL_IRAQI:
vrtheme works with your device ?

Edit:

or aapt ?
[Android Apps and Games] sharath.s.m:
Is there any easy steps other than doing decompilation and all...

I'm using cm12.1

Pls suggest easy way like just flash and use or other app that could perform that...

I tried flat style bar indicator but it changes all... Not just battery.... I want to change only battery
[Android Apps and Games] bdorr1105:
What you need to do is install whatever ROM you want, flash every single MOD you want, and once you are satisfied and happy with what you have, please post your SystemUI.apk and your framework-res.apk and any other framework files that you see in the /system/framewrok folder. Then I can mod your specific SystemUI.apk. this should not change the flat style bar indicator at all, it would only do that if you are flashing that style and it modifies the systemui after you flashed 3minit battery and vice versa
[Android Apps and Games] blinde:
Is it possible to add more simple battery percentage icons? I know that there are already few ones but they are either bold or too thin.
[Android Apps and Games] Negan:
So I'm thinking that since this doesn't seem to wanna compile properly on cm 13, I'll just pick this and compile my own unofficial build. not quite as convenient but totally doable
[Android Apps and Games] StAfFoRdShIrE:
Hi, I can not compile without error.

I tested with apk tool 2.0.2 and 2 for Samsung Lollipop, but still impossible to recompile my apk.

Someone will be kind enough to give me the change?

Thank you very much.

Link for my files => http://www.mediafire.com/download/2bgmmft8s032lx1/Files_for_G901f.zip

Sorry for my bad english :(
[Android Apps and Games] bdorr1105:
Did you install the resources apk?

---------- Post added at 10:53 PM ---------- Previous post was at 10:52 PM ----------

You can resize the battery with the settings app so it's the correct size
[Android Apps and Games] alphamale:
Anyone know how to edit system ui to enable 3 mint battery to show on lockscreen and notification pull down
[Android Apps and Games] blinde:
I know. Font is still too bold or thin :)
[Android Apps and Games] sharath.s.m:
My systemui--

https://mega.nz/#!8REHxRDZ!BTTzcRuAIugZYxszJWB42Y2RMvBeOStK_gxl4nvE21Q

My framework-res

https://mega.nz/#!QNs3naLC!h8_8YoYF4k5CtHJ0MqS4zSgzJoDWKiJBpLB6gbHak94

Otherfiles in framework

https://mega.nz/#!FQ02iCCZ!6EGce9hRNFWOqS4xSLKGQ-F7dJ7sE4Eh4TkuH_ziwoQ
[Android Apps and Games] Gil81:
[MENTION=1195110]bdorr1105[/MENTION]

I installed the settings.apk included in the available download. I wondered if that was incorrect. Since directions state it is not needed anymore and the resources.apk is now the needed install for proper working installation.

Am I missing a different download? Or is the apk just named wrong?

Edit: I went and found a zip you uploaded and pulled the resources apk from it and installed. I installed my nodded systemyui but got FC's. I will look and make sure I did the edits correct and try again. Thx.
[Android Apps and Games] bdorr1105:
What Rom are you on and device?
[Android Apps and Games] Gil81:
Cyanide L 5.1.1 Dev edition LG G3
[Android Apps and Games] bdorr1105:
Ok where did you find these directions at... The 3minit source has to be built in, I am unaware of cyanide doing it.... As far as I know you still do the old school way
[Android Apps and Games] Gil81:
I was doing it the old school way. I just didnt have the resources.apk in the download from the op. and yes i checked md5. It did contain the battery settings.apk though. So that is where I was confused.

Im assuming I just need to install the app. Pull my framework-res and cyanide-res.apks and install them in apktool, along with my systemui.apk.

decompile systemui and make needed changes to system_icons xml and move supplied smali files to the stated folder and recompile.

install resources.apk and push new systemui.apk to system and set permissions. Reboot.

But Im new to making these kind of changes and any help is most welcome and appreciated. When I didnt get FC's. I had no statusbar or navbar. So I must be missing something. This rom has been modded in certain ways though, perhaps I should ask the Dev his thoughts.
[Android Apps and Games] bdorr1105:
Yea you have the correct process..I will try it as well and see what the system ui is looking like..
[Android Apps and Games] Gil81:
Thanks, but dont make a special move on my part. Il get it sorted out, Now that I know that the process is correct and I have all the needed files/apks.

Besides. Im a flash-o-holic and am getting ready to jump to 6.0 Lol.

Thanks for all the quick responses and help.
[Android Apps and Games] nitishp7890:
I am not understanding the process written in op I can't find the path mentioned in op can I do this process using mobile only I am using oneplus one

Help will be appreciated

Thanks in advance

Nitish
[Android Apps and Games] bdorr1105:
---------------------------------

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 you extracted from in step 3
[Android Apps and Games] bdorr1105:
Ok, so I modded your SystemUI.apk......

Make sure you back up first

Instructions:

1. Download the attached SystemUI.apk and MinitBatteryResources.apk

2. Install Root Explorer

3. Navigate with Root Explorer to /system/app

4. Make a folder called MinitBatteryResources

5. Place MinitBatteryResources.apk inside of that folder

6. Set permissions to rw-r-r or 6-4-4

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

8. Copy modified SystemUI.apk in the folder

9. Set permissions to rw-r-r or 6-4-4

10. Reboot and enjoy!!
[Android Apps and Games] Negan:
Just an update to the issue I had a few days ago compiling. It was an issue with the SystemUI from CM 13. last two nightlies compiled fine. Had nothing to do with my tool I was using.
[Android Apps and Games] sharath.s.m:
Thnks ...if I want to remove, reflashing the rom is enough?
[Android Apps and Games] bdorr1105:
Replace the modded SystemUi.apk with the ROMs original. Always make a backup
[Android Apps and Games] Gil81:
I just wanted to take a second and say Thanks. I followed the above guide you posted and now have this Awesome mod working on my fresh Candysix install on my VS985. I hate clouding threads with Thanks post. But you most definitely deserve this one. Well Done. Great to see such support in a thread.