yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] grabekmj333:
Instructions Not Clear...

This has probably been asked before and maybe I am just missing it within this thread or another thread altogether. First off there is nothing more I like doing than to customize my phone as much as possible. Everything from Custom ROMs to Xposed Mods. 3Minit Battery Mod seem like another way for me to keep customizing. Unfortunately I feel the instruction are a little lacking. I see the in the OP there is a "How to" Section which takes you to 3Minit web page. The guide on that site does give instruction but for people that do not do these type of Mods all the time, those instruction are not that helpful. The most confusing part is the Modifying of the SystemUI.apk. I have not done much Compiling and Decompile of APKs. To the best of my knowledge this is something best done on Linux Systems which I only have Windows. If someone could expand the instruction just a little more to include how to use the APKTool? Where to download the APKTool?And how to get it to run on a Windows System? Any help would be greatly appreciated. Thanks in advance.
[Android Apps and Games] bdorr1105:
Here, give this a try, it will replace your curretn SystemUI.apk and install the free version of 3Minit Battery settings into the /system/app directory....Please report your results

3Minit_Battery_Noterized_Stable2.zip
[Android Apps and Games] BigMosley:
Thank you! I will make a backup, try it out and report back.

---------- Post added at 07:15 PM ---------- Previous post was at 06:45 PM ----------

Worked great! Thanks alot I really appreciate it. I have 1 question though, I went thru the categories and downloaded a bunch how do I switch between them?
[Android Apps and Games] bdorr1105:
You are welcome, you literally just click on the battery you downloaded and it switches...

Edit * it is under the stored type in 3minit settings
[Android Apps and Games] BigMosley:
Can you screenshot this? I'm not seeing it, all I'm seeing is set files location, support forums and more apps on the bottom.
[Android Apps and Games] BigMosley:
Is that in the paid app? I don't have that column.
[Android Apps and Games] bdorr1105:
Yea I have the paid one, when you search for a better, hit apply and save, I would just get the paid version it's only 99c and it's totally worth it plus it supports the dev.

Edit* if you do that, go to system/app and delete the 3minitSettings folder, be careful not to delete the resources or you will get crashes in the SystemUI.... Then install the paid version from the market and you are all set
[Android Apps and Games] BigMosley:
I purchased it years ago on the s3 I believe, I will go that route. Thanks again.
[Android Apps and Games] bdorr1105:
No problem, make sure you read my edit statement above
[Android Apps and Games] NEXT14:
Just looking back to say thank you that you've done something great.

I love your app.

Thank you.

Keep up the great work
[Android Apps and Games] travarilo:
Hi guys,

I tried this mod on 5.1.1 but the only change that I got was on the notification header, no change on status bar..

Does anyone face the same?

Or maybe there were same questions but I haven't read yet?

Thanks..
[Android Apps and Games] Drayspencer:
Can someone please make a flash-able zip for me. I am using ROM "CMRemix-trltespr-LP.5.1.1.Official-V8.0" I have attached my apks. TIA
[Android Apps and Games] bdorr1105:
What xml file did you edit in res/layout? Did you place the smali files in the correct location? Also made sure to install the MinitResources.apk?

Is this for the Sprint Note 4?
[Android Apps and Games] Drayspencer:
Sorry, yes the Note 4.
[Android Apps and Games] 7ama Yk:
Is that work with Lenovo A5500_f

cause lenovo have a lot of problem :confused:
[Android Apps and Games] travarilo:
I edited the system_icons.xml only, and yes I placed smali in the correct location..

MinitResources I push into system..

I can change the icon even the size, but it's only appeared on notification header, no change on status bar..

I did it on Resurrection Remix 5.1.1..

But, I tried on Mokee 5.1.1, everything works fine with same procedure that I did..

Is there any reason why it doesn't work on some ROMs?

Edited : I am using Xiaomi Redmi 1s anyway...
[Android Apps and Games] mrsubway:
I've bought this mod and tried to do the compiling myself with no luck. I'm running muniz_ri's rooted G900a Lolipop. Can someone help?
[Android Apps and Games] rashidkn:
are this mod work on nexus 5 runing cyanogemod 12.1 caf??
[Android Apps and Games] gharrington:
No one can help without your framework-res.apk and twframework-res.apk
[Android Apps and Games] gharrington:
Yes I have had this working on Cyanogen mod 12.1. But cyanogen mod add their own battery too so you must apply the width="0.0dp" and height="0.0dp" to this too! It is usually 1 line above the stock battery in system_icons.xml
[Android Apps and Games] gharrington:
Here mate be sure to install the MinitBatteryResources.apk before flashing this. I recommend putting it a flashable zip file, I don't really like the swap and restart method I have had issues in the past.
[Android Apps and Games] travarilo:
Hi mate [MENTION=4619873]gharrington[/MENTION], how about my case?

Using xiaomi redmi 1s with Resurrection Remix 5.1.1 based on CM12.1, no error either on decompiling or installing, but the only change was only on the notification header and still got the stock battery icon on status bar..

What did I miss?
[Android Apps and Games] gharrington:
Only thing I can think of is you have put the xml modification in the wrong location upload your files I will take a quick look.
[Android Apps and Games] travarilo:
attached..

hope will find a solution for it.. :D

thanks before..
[Android Apps and Games] Drayspencer:
[MENTION=4619873]gharrington[/MENTION] Thanks, works fine!
[Android Apps and Games] mrsubway:
Sorry. I didn't know.
[Android Apps and Games] remotehugger:
any idea why this is happening with rebooter app ? I def. have Su access and latest BB installed -
[Android Apps and Games] ivanfix:
It's possible to install this mod on a odexed samsung rom (obviously with root)?

Decompiling the file SystemUI.apk there isn't smali folder...
[Android Apps and Games] pas2001:
You answer your own question already mate. No smali folder then no where to add 3 files.
[Android Apps and Games] Thebear j koss:
Just deodex your systemui. If you can use apktool to decompile and recompile apps there are plenty of easy to use 1 click deodexing tools. Then you can add this great mod to your device. There are even tools like Tickle My Android and i believe Virtuous 10 studio that have deodexing tool, apktool, signing keys, adb, zipalign, and pretty much whatever else you may need all in 1 package. Simple and easy to use...

Your morals are WRONG!! Your ideas are WRONG!! You're too far GONE... and god punishes you for your sins.
[Android Apps and Games] pas2001:
If 1 click deodexing tool is the name of tool. I interested friend. Could you guide me? Thank.
[Android Apps and Games] travarilo:
guys [MENTION=1195110]bdorr1105[/MENTION] [MENTION=4619873]gharrington[/MENTION],

finally I found what the problem is...

there are two system_icons.xml inside the SystemUI.apk, system_icons.xml and msim_system_icons.xml and I have to change the dip value and add your line on both of them...

maybe it can be a concern to anyone who face the same problem.. :)

Thanks..
[Android Apps and Games] bdorr1105:
Thanks far that input although I have not seen this on any cm12.1 rom, or AOSP rom on the nexus 6 and I am supporting 8 to 9 ROMs to include one Note 4...

What phone are you using?
[Android Apps and Games] travarilo:
I am using XIaomi Redmi 1s with Resurrection Remix ROM...

I had been tried on many ROMs like Nameless, Paranoid Android, and Mokee, but only Mokee shows the custom battery icon before... :D

Perhaps it was on multi SIM phone only... :p
[Android Apps and Games] Thebear j koss:
http://xdaforums.com/showthread.php?t=1633333

This works on lollipop, i know other deodexing tools were having issues. Try this awesome all in 1 tool. Been using it for a while, this is made for the lazy everyday android user like myself who has little to no knowledge of computers or fiddling with command prompt and environments. Amazing dev who is always on top of updates to apktool, baksmali, deodexing tools and really anything else android mod related. You won't be disappointed. And be sure to thank [MENTION=4315551]Ticklefish[/MENTION] for this great all in 1 android modding tool.

Your morals are WRONG!! Your ideas are WRONG!! You're too far GONE... and god punishes you for your sins.

---------- Post added at 03:14 PM ---------- Previous post was at 02:38 PM ----------

You can also try this- http://xdaforums.com/showthread.php?t=2735156. Not sure if it's been updated as i just use the TMA program for all my modding needs now.

Your morals are WRONG!! Your ideas are WRONG!! You're too far GONE... and god punishes you for your sins.
[Android Apps and Games] grabekmj333:
Lollipop ????

Maybe I am missing something. After searching through this Thread it seems like people have been able to get this to work on Lollipop OS. My confusion come from the fact that the Lollipop OS is built completely different then other Android OS's. You cannot just get to System APKs anymore. Everything is compressed and packed into IMG files and DAT files. If someone could give better detail as to how they got it to work or if this Mod is even possible when on a Android OS 5.0 or higher.

Thanks!!!
[Android Apps and Games] Thebear j koss:
What device? Which rom? For all anyone knows you can be on any phone out there. This works fine with lollipop devices. The battery on kit kat and above are not images or even vectors (xmls that control the look and function of whst you see) the battery is now a color in smali, white being the most prevalent. But it is easy to just change the color if you have done any smali editing before. Your device/rom may need an extra step or 2 to get this working but most likely not. Just follow the ditections on how to implement this, as everything you really need is provided. The smali files are provided and will change the stupid 1 color you have now to instead pull the images you select from the 3 minit app. If you have any trouble, someone i am sure can try to help you out. Just with all mods you are held responsible and you should make a backup before attempting any modifications yo your phone. This is just my opinion but i feel pretty strongly about this, i don't see why anyone would still be using an odex rom at this point. Most all devices have many custom roms that are very easily modified. If you have root and you want to mod or theme your phone their is absolutely 0 benefits to being odex. You can even use stock deodex roms if you don't want to mess around too much. If you flashed a stock odexed rom, i am 99.99999% sure there is a deodex version as well. Only difference between the 2 is being able to modify smali. Being deodexed is waay simpler, whatever benefits you think being odexed are lies and totally outdated. You may get 2% more battery per battery cycle and mat save 20 seconds on boot start up time. It is not smoother, apps don't run better and devices like the new nexus has the ability to even ignore odex files if it sees there is a classes.dex within the apk.

Sorry for loooong posf but just trying to maybe help some people out...

Your morals are WRONG!! Your ideas are WRONG!! You're too far GONE... and god punishes you for your sins.
[Android Apps and Games] mrsubway:
So, I downloaded apktools, installed the frameworks, decompiled, made the changes and the file will not recompile. Over an hour of work. I'm literally pleading for help.
[Android Apps and Games] gharrington:
Really it took you an hour? Lol just flaming at least you have tried. I download your files i will do it asap
[Android Apps and Games] mrsubway:
Please. Not asap. You are helping me. Please don't hurry and thank you.
[Android Apps and Games] Ticklefish:
Huh. I think it's possible that I may love this man... :D
[Android Apps and Games] pas2001:
And i think i may love you (r) too (l) [MENTION=4315551]Ticklefish[/MENTION] . If some question let me visit your thread. Will try asap.
[Android Apps and Games] Negan:
Just curious if the server is down? Can't seem to download anything for the last little while
[Android Apps and Games] pas2001:
Work normally for me.
[Android Apps and Games] gharrington:
Working good here too. Make sure you have the latest app if still not working delete 3Minit Downloads folder on sdcard
[Android Apps and Games] thoiloidainhan:
http://pastebin.com/M7gUGWN9

Help please. cant get it to recompile. :crying::crying::crying:

Edit: I noticed the apk in the smali folder error, still the same error after taking it out though
[Android Apps and Games] bdorr1105:
Did you make sure you you downloaded the apk 2.0.0 smali files.... Also what rom are you trying to do this on?
[Android Apps and Games] thoiloidainhan:
There's only smali for apktool 2.x now on the site I think so I probably got the right file. The rom is euphoria os, formerly known as Mahdi rom
[Android Apps and Games] bdorr1105:
I meant that the 2.x.x smali... I have done it for euphoria for the nexus 6
[Android Apps and Games] gharrington:
Here mate. Don't forget to install the Resources.apk first before flashing it or you will get fcs.
[Android Apps and Games] mrsubway:
I cannot begin to thank you enough! Worked like a charm! I've made about 5 backup copies of this file! Again, thanks so much! I'm sorry I can't do more, but please have a beer or two on me, and thanks again! :):)

---------- Post added at 04:21 AM ---------- Previous post was at 04:05 AM ----------

I've been a Microsoft tech for years, and I've gotten pretty good with Android, but the advanced Linux stuff kicks my a$$. I blame Bill Gates.
[Android Apps and Games] gharrington:
Glad it works mate, thanks very much for the beers really appreciated :)
[Android Apps and Games] manuelmagix:
how to 3minit for dual sim?
[Android Apps and Games] pas2001:
Try moding msim system icons.xml also. I moded for some one... but unlucky no response yet.
[Android Apps and Games] manuelmagix:
Yes I tried but dont work for me. I think smali is the answer.

Enviado desde mi Aquaris M5 mediante Tapatalk
[Android Apps and Games] davidisflash:
trick, and automation script

Such an amazing guide and tool. Many thanks to gharrington, carl, pas9001. As you can see they are super quick to respond and help.

I find that when making your xml file changes, you should consider using Notepad++. It's free and can be found here:

https://notepad-plus-plus.org/download/v6.7.9.2.html

It has a free plugin for xml. When you make your changes, have the plugin check to make sure there are no errors in the file. It checks syntax in case of typos.

I have also tried to attach a script I made that I"m using. You can find countless apps on play store that can run a linux script file like this one. I think though xda doesn't let me post it.

Usage: I have it in my Downloads folder on my sdcard, the same folder as the SystemUI.apk that's modified and the 3MinitBatterySettings apk that need to be pushed to your system. Run the script with root privileges (you can always edit the paths it uses in your favorite editor). Whenever I update my ROM now, instead of manually copying files to the system/priv-app folder and changing permisions, this script does the following:

- Deletes existing files

- Copies your updated files

- Changes permissions for SystemUI,apk to rw-r-r-

- Restarts your system

Here are the commands in the script (you can just make the file yourself):

mount -o rw,remount /system

cp /mnt/extSdCard/Downloads/SystemUI.apk /system/priv-app

cp /mnt/extSdCard/Downloads/3MinitBatterySettings.apk /system/priv-app

chmod 644 /system/priv-app/SystemUI.apk

rm /system/priv-app/SystemUI/SystemUI.apk

cp /system/priv-app/SystemUI.apk /system/priv-app/SystemUI

reboot

Take care :)
[Android Apps and Games] Archangel:
Really great mod,,,somehow I have two batteries side by side in the status bar LOL?? Wondering if you can guide me in the right direction.

Edit- nevermind got it thank for you a great mod!!!!!!!!!!!!
[Android Apps and Games] pas2001:
Dont work mean you edit both xml? Then result is?
[Android Apps and Games] manuelmagix:
Lost systemui..

Here muy systemui and framework

https://mega.nz/#F!04oW1QDY!K2qkBWsq9fPXMj1rnBcsJg

Enviado desde mi Aquaris M5 mediante Tapatalk
[Android Apps and Games] gharrington:
Use 7zip and copy META-INF and AndroidMainifest. Xml from original apk to modded one and try flashing it again
[Android Apps and Games] manuelmagix:
Yes, I have done so.

But muy new decice, its double sim

if only change system icons, work fine in notification panel, but dont change status bar.

if I change too msim system iconos them dont work.

Before, worked fine for me, another device, LGG2, with cm, kk, and lollipop

Enviado desde mi Aquaris M5 mediante Tapatalk
[Android Apps and Games] gharrington:
I will look at your SystemUI as soon as I find time
[Android Apps and Games] devilsdouble:
Hello sir, I want to know one thing. I use a Note 3, which was running a custom ROM, and it had 3minit mod installed and it came with an Add On option called 3minit battery mod with white status bar icons. As the name says, it made all the status bar icons' colour White. Now I am on stock ROM, and the colours are not White, kind of Greyish, which I don't like at all!

So my question is can I have that zip package, which I can flash and have all the icons white in this deodexed stock ROM?

I don't posses any idea about development but I can do my best to help. I can't utter how much grateful I will be if I get a little help on this matter. I know this sounds a little weird as its just a colour, but its a huge thing to me, aesthetically pleasing.

Thanks in advance.
[Android Apps and Games] gharrington:
The reason this happens is because you no longer have this mod in your rom you have 2 options 1: add this mod back to your stock rom 2: decompile you SystemUI.apk and look in system_icons. Xml of status_bar.xml for alpha="xxxx" and remove this line it will then make the stock icons more white for you.
[Android Apps and Games] devilsdouble:
Thanks a lot for replying sir.

Kindly tell me what I need to do to make this mod available for the stock ROM I am running. Also if that doesn't work I am open to do the second option too, however I have no idea how to decompile systemUI.apk. As I said, I can go to any length to make this happen :)
[Android Apps and Games] thoiloidainhan:
Need to set up apktool first. Do a google search and you will find plenty guides
[Android Apps and Games] mrsubway:
I decompiled fine. It was recompiling that killed me. I'm using Windows 8.1 64bit. I'm currently setting up a Linux partition just to mess with Android. What's weird is I couldn't recompile the apk even without modifying it. Thank God for Gharrington.
[Android Apps and Games] thoiloidainhan:
I had a bit of a problem recompile before. Turned out I need to install the framework as well. Then there's a problem with preserving the signature of the newly complied SystemUI.apk by copying over the manifest.xml and meta-inf folder from the original SystemUI. Those are the noob errors that I encountered. Taking care of those and everything is fine
[Android Apps and Games] gharrington:
Here mate. Don't forget to install the MinitBatteryResources.apk

BEFORE

flashing the mod or you will get fc`s.

Please tell us what rom this is for so people can use it when they search
[Android Apps and Games] manuelmagix:
thx gharrington, dont fc, but status bar has disappeared. :)
[Android Apps and Games] gharrington:
Very strange. Please try cache/dalvik wipe
[Android Apps and Games] manuelmagix:
cache/dalwik wipe, follow disappeared.

[emoji9]

Enviado desde mi Aquaris M5 mediante Tapatalk
[Android Apps and Games] gharrington:
The only cause of statusbar dissapear is incorrect apk signature. That's not the case with the one i sent. Are you sure the SystenUI apk you sent is the one from your current rom? If so I will try it once more tomorrow other than that I am not sure of the cause...
[Android Apps and Games] manuelmagix:
hi, sui is correct, if I only change system icon> battery in notificación panel> 3minit.

In status bar> battery stock.

If also change msim system icon> dont status bar and dont notification panel.

Enviado desde mi Aquaris M5 mediante Tapatalk
[Android Apps and Games] devilsdouble:
Guys here are my systemui.apk and framework-res files.

https://drive.google.com/file/d/0B3dAMHacbZmtRmdNNVJIcnNkVXM/view?usp=sharing

https://drive.google.com/file/d/0B3dAMHacbZmtbENyVmdEajJiUTA/view?usp=sharing

I just want to mention one thing, I couldn't find the systemUI.apk under its usual place, that is system/apps, but it was someplace else. I just searched on the file manager and the result came up, but it is placed in a different path, kindly notice the screenshot attached.

I would really love if the status bar icons are absolutely white. All of them. Here is the post where I mentioned how different the icons are normally, http://xdaforums.com/galaxy-note-3/...w-lollipop-t2990920/post61301918#post61301918

So if someone could please waste some time of his/ hers and make a mod like that I would be more than grateful.

Thanks in advance.
[Android Apps and Games] amrinal:
hi,,, anyone need 3 minit battery for DarkLord S6 V2.0

try it

3MinitBattery for DarkLord S6 V2.0
[Android Apps and Games] Drayspencer:
Delete
[Android Apps and Games] davidisflash:
Latest Cm12.1 nightly for trltetmo is tricky as the system_icons.xml has additional battery level definitions. See below snippet where I not only made the changes per this guide, but had one more line where I had to specify 0.0 dip for width and height...thought I would just let everyone know as this seems new. Update: My changes didn't seem to work

<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="@dimen/signal_cluster_battery_padding" />

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

<com.android.systemui.BatteryLevelTextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />

<com.android.systemui.DockBatteryMeterView android:id="@id/dock_battery" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="@dimen/signal_cluster_battery_padding" />

<com.android.systemui.BatteryLevelTextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:lay
[Android Apps and Games] davidisflash:
Please help

Per the changes above to CM12.1 nightly system_icons.xml, I no longer can figure out how to get 3minit battery mod to work whereas before the latest nightlies, I had no problems doing the mod myself. These new battery meter view and text views are giving me problems.

Can you please help? See attached
[Android Apps and Games] bunjop:
Thank you
[Android Apps and Games] pas2001:
Hi glad to see thai guy here.
[Android Apps and Games] davidisflash:
Has anyone yet successfully performed the mod when the system_icons.xml file has multiple battery view definitions? Is this order sensitive where I need to ensure that the line we add for 3minit that specifies wrap content is the last in the file?