yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] stang5litre:
This is what i get when I use your code in Systems_icons.xml

HERE

stang5litre@stang5litre:~/Projects$ apktool b SystemUI

I: Using Apktool 2.0.0

I: Checking whether sources has changed...

I: Smaling smali folder into classes.dex...

SystemUI/smali/com/android/systemui/statusbar/policy/MinitBattery$ResourceManager.smali[28,4] Error for input '.parameter': Invalid directive

SystemUI/smali/com/android/systemui/statusbar/policy/MinitBattery$ResourceManager.smali[29,4] Error for input '.parameter': Invalid directive

SystemUI/smali/com/android/systemui/statusbar/policy/MinitBattery$ResourceManager.smali[29,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE

SystemUI/smali/com/android/systemui/statusbar/policy/MinitBattery$ResourceManager.smali[79,4] Error for input '.parameter': Invalid directive

SystemUI/smali/com/android/systemui/statusbar/policy/MinitBattery$ResourceManager.smali[79,15] mismatched input '"name"' expecting END_METHOD_DIRECTIVE

SystemUI/smali/com/android/systemui/statusbar/policy/MinitBattery$ResourceManager.smali[100,4] Error for input '.parameter': Invalid directive

SystemUI/smali/com/android/systemui/statusbar/policy/MinitBattery$ResourceManager.smali[101,4] Error for input '.parameter': Invalid directive

SystemUI/smali/com/android/systemui/statusbar/policy/MinitBattery$ResourceManager.smali[100,15] mismatched input '"name"' expecting END_METHOD_DIRECTIVE

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/systemui/statusbar/policy/MinitBattery$ResourceManager.smali

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:371)

at brut.androlib.Androlib.buildSources(Androlib.java:298)

at brut.androlib.Androlib.build(Androlib.java:282)

at brut.androlib.Androlib.build(Androlib.java:256)

at brut.apktool.Main.cmdBuild(Main.java:225)

at brut.apktool.Main.main(Main.java:84)

stang5litre@stang5litre:~/Projects$
[Android Apps and Games] bluflight:
I do not know man, if you have not already tried it, download from scratch smali files and try again: http://www.mediafire.com/download/k...s3.0_MD5_a74cfe73b78bd215e6ae0b27cf4b208a.zip
[Android Apps and Games] Aulia Anwar:
Umm..why i can not choose battery icons from another authors? I can only use battery icon by "offline author":confused:
[Android Apps and Games] bluflight:
Try to delete 3minit folders inside sdcard and reboot (must have data or wifi connection active of course)

Inviato dal mio SM-G920F utilizzando Tapatalk
[Android Apps and Games] DuTY09:
Please help

Can anybody help me please i keep getting this error when recompiling.

Framework

Log

SytemUI

Any help would be grateful.
[Android Apps and Games] gharrington:
You are using old smali files that won't work with you apktool please decompile another SystemUI with the battery mod in it and use those files....
[Android Apps and Games] DuTY09:
Thank you I will try again :good: :D
[Android Apps and Games] Tromick:
Hi, i am using i9500 Omega v27 i got System UI crash. How can i update this app without crash? This is doesn't work or i did something wrong. Help!
[Android Apps and Games] chris264:
Work This Mod with Cm13? Nice Greetings
[Android Apps and Games] cwhiatt:
I am on MM with the S6 Flat and I'm experiencing the same issue (only on colourable battery icons). The battery text color appears on the first swipe screen but once I advance and unlock with my pattern the battery text inherits the color of the status bar and therefore is "hidden" or "unseen".

Any fix for this?
[Android Apps and Games] lohanbarth:
Hello, works on the moto G2 XT1068 MM .

http://xdaforums.com/moto-g-2014/themes-apps/mod-3minit-battery-mod-t3379784
[Android Apps and Games] android-incredible:
iItried this in my verizon note 4 using paulpizz rom android version 5.1.1 but the phone stay in a bootloop and i had to restore the nandroid backup.is there are any way i can install this 3minit battery mod to my note 4 (android version 5.1.1)?
[Android Apps and Games] Ufo71:
Forgive me friend [MENTION=4619873]gharrington[/MENTION] the "file" in this guide not present on MM Samsung Darklord s7 port ...you have a solution thanks or great [MENTION=5282154]pas2001[/MENTION]
[Android Apps and Games] gridan4ik:
Hi there!

I'm using 3minit v.2.2 free that was 'adapted' by an ROM-creator (Samsung Note 3, 4.4.2) and it worked fine for 2 years until last clean install of ROM last week.

As another user (p.392), I have the issue consisting of an inability to download any online theme so I have to use only offline themes. I tried deleting theme folder but it didn't help.

Is there an archive with up-to-date themes that I could put in 3minit folder?
[Android Apps and Games] koko115:
[MENTION=4619873]gharrington[/MENTION] can You make xposed module for 3minit, without modify systemUi ?
[Android Apps and Games] cwhiatt:
The battery text still does not work for colorable icons on Marshmallow
[Android Apps and Games] DaOldMan:
In our beta MM rom we have the same bug. No numbers in colorable batteries. I guess [MENTION=4619873]gharrington[/MENTION] will need to fix this in smali. Thanks again to the devs for this great mod.

P.S The bug doesn't exist in lockscreen. The percentage numbers disappear after unlocking the mobile.

Phronesis team member
[Android Apps and Games] gharrington:
I will look into it asap guys..
[Android Apps and Games] cwhiatt:
Any luck yet?
[Android Apps and Games] Fovere:
Nice.
[Android Apps and Games] Viarus_:
Nice job with this mod. I'm finally able to put on xperia battery icon into my samsung. However I'm facing with small problem and maybe somebody would be able to solve this issue. When I chose battery number 35 from Colourable section it shows double the charge of my battery. It looks like this:

I'm running on Samsung Galaxy Note 4, model SM-N910C, Android version 6.0.1, eRobot rom v4 (author of this rom made 3minit battery mod built in into his rom). Any way of solving this issue?

Regards

[MENTION=309187]edit[/MENTION]: Doesn't matter. Found solution. I would like to ask moderator to delete this post.
[Android Apps and Games] cwhiatt:
[MENTION=4619873]gharrington[/MENTION], any update on the issue with the battery text not sticking with colorable icons on MM. As previously mentioned, the battery text changes are reflected on the lock screen but are lost afterwards.
[Android Apps and Games] gharrington:
I haven't even had a chance to look yet I will let you know when I have fixed it. I will try and get to it this weekend but no guarantee.
[Android Apps and Games] cwhiatt:
Totally understand. As long as you haven't forgotten about it I'll sit tight. Thanks
[Android Apps and Games] Calimero Oeuf:
Hello

I use 3Minit Battery Settings v2.1 Pro from Omega v31 rom 4.4.2 for my GT-N7100 Galaxy Note 2 but When I try to download some themes, no themes appears, it is totally empty for all categories (users, colourable, etc...)

Also How can I update to latest version v3.1 ?

Should I only install zip with my recovery or uninstall it then edit some xml and reinstall in recovery ?

Thanks
[Android Apps and Games] dacorsa:
HI [MENTION=1195110]bdorr1105[/MENTION],

can you modify my new system marshmallow of note4 already deodexed firmware DPE3:

thanks

https://www.dropbox.com/s/1p2bs8on871eqp5/Note4-DPE3.zip?dl=0
[Android Apps and Games] PhilPan:
I'm on Resurrection Remix for MY nexus 6 p. They say this mod is in the ROM... But I can't get the battery to show. I tried both apps. And still nothing. Can you help me out
[Android Apps and Games] stang5litre:
Anyone ever run into a issue where it won't download other icons from other users? Just stock with the factory 6 or what have you. Have both apks and it works fine on my s4 but not on my s5. Thanks
[Android Apps and Games] gharrington:
3Minit Clock Mod get it here.

http://xdaforums.com/android/apps-games/3minit-clock-mod-v1-0-t3400220#post67354044
[Android Apps and Games] stang5litre:
Can you tell me why or where to look for 3minit resources? It doesn't download the other icons from users . Thanks
[Android Apps and Games] stang5litre:
Hey [MENTION=4619873]gharrington[/MENTION] do you know why it wont download other users battery icons ?

System_Icons.xml any help is greatly appreciated . Love your work . Clock is awesome!!!

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"

xmlns:android="http://schemas.android.com/apk/res/android">

<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:alpha="0.74" />

<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">

<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.0dip" android:layout_marginEnd="@dimen/rssi_battery_gap" layout="@layout/signal_cluster_view" />

<TextView android:textSize="@dimen/battery_text_size" android:textColor="@color/battery_text_color" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:alpha="0.74" android:importantForAccessibility="no" android:fontFamily="sans-serif" android:layout_marginStart="@dimen/battery_text_marginStart" />

<LinearLayout android:gravity="right" android:layout_gravity="center_vertical" android:id="@id/hide_battery" android:layout_width="wrap_content" android:layout_height="wrap_content">

<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/battery_icon_width" android:layout_height="@dimen/battery_icon_height" android:layout_marginBottom="1.0dip" />

</LinearLayout>

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

</LinearLayout>

</LinearLayout>
[Android Apps and Games] KillersEnergy:
How can i make 3minit works on encrypted phone? It look like it try to get its resources from /data or /data/media/0 (sdcard) before i type the encryption password and obviously my SystemUI force close and it's difficult to type the password between the force closes:crying:is there a workaround or a solution like make it search for its data when /data becomes avalaible(mounted) or make it search to another path?:)
[Android Apps and Games] gharrington:
Delete the 3Minit Downloads folder from your sdcard and try again
[Android Apps and Games] gharrington:
The problem with that is that android reports the card ready to use before the password is typed. I don't use encryption on my device but I must making an update soon so I will see what I can do.
[Android Apps and Games] gharrington:
If you have the paid app you can just download it from the playstore. Or if you have the free app follow the link on page #1 it has been updated.
[Android Apps and Games] stang5litre:
Doesn't work still shows this
[Android Apps and Games] gharrington:
What app version?
[Android Apps and Games] stang5litre:
I just dl the one that's in the OP.

That looks to be a problem. I also have the resources apk.
[Android Apps and Games] gharrington:
I can confirm both paid and free apps are working here. On page #1 I have posted a link to git go there and grab the app it the latest 3.1 free version uninstall the old one and try that.
[Android Apps and Games] G.M.L:
Yes I'm use ics and I wiil use ics because me and many other people don't have the easy to take phones with other versions and we stay in ours little L3 so I'm asking again and please answer in my question is this mod for ics or no?
[Android Apps and Games] cerj:
GHarrington, you are a Titan, a Man among men.. Thank you.. Another game changer
[Android Apps and Games] pas2001:
Sorry I can't answer for this. You may wait for [MENTION=4619873]gharrington[/MENTION] the creator.
[Android Apps and Games] G.M.L:
OK thank you
[Android Apps and Games] sognare69:
I test your mod with help of [MENTION=5282154]pas2001[/MENTION] and everything work perfect.

Thank you for your mods

My rom is [ROM]Uncharted Rom 4.4.2 [I9500UBUFNE2] Samsung Galaxy S4 9500
[Android Apps and Games] bombaybadboy:
Should have read the last page before building it for Uncharted :) thanks for the great work gary :thumbup:

sent from Uncharted Rom i9500
[Android Apps and Games] ksr007:
I have followed in OP but get errors, here the screenshot !
[Android Apps and Games] alandd86:
hi ghari can u make it as flashable zip plz ?

thxxx:good:
[Android Apps and Games] metalfan78:
Tried this on my gs5, app installs fine and functions, SystemUI compiles but fc's.
[Android Apps and Games] gharrington:
Change your apktool mate. Make sure you have latest.
[Android Apps and Games] gharrington:
Yes I will upload one soon mate.
[Android Apps and Games] gharrington:
Set the permissions of SystemUI.apk mate.
[Android Apps and Games] gharrington:
Thanks for feedback.
[Android Apps and Games] gharrington:
The mod for SystemUI should work fine you may get problem with app. If app installs and works fine the go for it.
[Android Apps and Games] HeisehKiiN:
This seems too good to be true

on KitKat

:p

I'll try later and report. Thanks!
[Android Apps and Games] metalfan78:
Permissions are set, maybe I did something else wrong
[Android Apps and Games] HeisehKiiN:
Same here.

Tried with TickleMyAndroid v9.1, Advanced ApkTools v2.0 and Apk Tools v3.50.
[Android Apps and Games] gharrington:
The latest stable apktool is 1.5.2 also check you aapt find info here:

https://code.google.com/p/android-apktool/
[Android Apps and Games] deuce_biggins:
Thanks [MENTION=4619873]gharrington[/MENTION], does not compile with apktool 2.0.0.b9 but does with 1.5.2. Awesome job!
[Android Apps and Games] gharrington:
I have just added a modded SystemUI.apk flashable for NF1 I9505 in downloads tab. Enjoy.
[Android Apps and Games] gharrington:
For this to work you must create a folder called 3MinitBatteryIcons and put you battery images with correct names inside. Then the setting will be available.

As for icons in gallery I will add option to create .nomedia files so it hides from gallery.
[Android Apps and Games] DevilDog512:
YES! Thank you sir! Don't suppose you know how to make the clock that shiny chrome color like in your #53 battery? Clock would have to use a .png right?
[Android Apps and Games] gharrington:
No the clock does not use .png mate
[Android Apps and Games] DevilDog512:
Ya. Didn't think so. Perhaps your next great project? Lol. Just went back to work myself. Need to setup PayPal and I'll be sending you and my fren Cerj something to show my thanks.
[Android Apps and Games] pas2001:
Hey ...you can deal with your favorite tacho bat?

Want to put it as one type in Users folder?
[Android Apps and Games] NEXT14:
I followed what is in post 326. I have my png easily replaced and then flashed.
[Android Apps and Games] pas2001:
Mean it ok?
[Android Apps and Games] NEXT14:
yes it's enough for me. But how was I can put it in a user so that I also have a preview image in the selection?
[Android Apps and Games] pas2001:
You do nothing . I will do if you ok.
[Android Apps and Games] NEXT14:
ok with my name?
[Android Apps and Games] pas2001:
Yes ok?
[Android Apps and Games] NEXT14:
yeah sir
[Android Apps and Games] pas2001:
Which post no. You share link?
[Android Apps and Games] NEXT14:
You have pm
[Android Apps and Games] the_vanya1:
Pls add KitKat battery icons with percentages
[Android Apps and Games] pas2001:
You can use now?

The icon u said is easy mate the point is you can use now?
[Android Apps and Games] StAfFoRdShIrE:
Please it's possible to update my SystemUI (Omega V34 fo GT-9505) ?

Thank in advance.
[Android Apps and Games] AL_IRAQI:
you have to upload framework-res.apk and twframework-res.apk from framework folder
[Android Apps and Games] StAfFoRdShIrE:
OK thank bro. ;)

Files removed and new link => My Files => https://mega.co.nz/#!40AE2bbb!WibCK6AvgOeA-SnGLsv5RwoXXZgBdQqFaG1KUCJB_Gs
[Android Apps and Games] AL_IRAQI:
Flash it from recovery

https://mega.co.nz/#!Y91QWD7T!23TMS_w9Plx65ROCfArmg6o4JQBn5-ookxjeeMYs3dQ

*backup first :)
[Android Apps and Games] stang5litre:
Ok will do this one says 2014. I don't mind getting the paid version if I get it working. Love your work
[Android Apps and Games] KillersEnergy:
Thank you very much :o ;)
[Android Apps and Games] gharrington:
Another thing go in to your device settings in to application manager and check the app has its permission allowed or it can write the battery to the sdcard.
[Android Apps and Games] stang5litre:
[MENTION=4619873]gharrington[/MENTION] Thanks a million. The new one had a new smali I was missing. All is well. Amd looking good. Great work man!!
[Android Apps and Games] cwhiatt:
Does battery color text work with colourable icons and Marshmallow yey?
[Android Apps and Games] gharrington:
It's a know issue on MM I will release a fix soon.
[Android Apps and Games] gharrington:
No percentage text on MM

No percentage text on MM in colourable items bug is now fixed. I will release an update in the coming days I want to tidy up and add some stuff.
[Android Apps and Games] gharrington:
Paid users can now set the font for the percentage text in colourable types
[Android Apps and Games] HackeRM76:
In play store no new update

Inviato dal mio SM-G935F
[Android Apps and Games] gharrington:
Update 4.1.0

Update 4.1.0

fixed percentage text in colourable types not showing on MM

Added select font for percentage text in colourable types (Paid Only)

Small updates and tweeks to free app.

Bumped free app to version 4.1.0 to match paid version

Changes max battery size in free app to 40 in place of 30

Paid app will be available in the app store in a couple of hours

This is a smali file and app update for both free and paid versions

Download
[Android Apps and Games] gharrington:
Just noticed a small bug you will get double percentage text I will release the fix tomorrow sorry I uploaded the wrong smali files..
[Android Apps and Games] koko115:
I add only 3 new smali (MinitBattery$1.smali, MinitBattery$ResourceManager.smali, MinitBattery.smali)

and in colorable battery i have text in battery only in lock screen.

Galaxy S7, Paid 3minit from play store.

This is code in system_icons.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="@dimen/signal_cluster_gap">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.5dip" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/battery_text_size" android:textColor="@color/batterymeter_text_color" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="no" android:fontFamily="sec-roboto-light" android:layout_marginEnd="@dimen/battery_text_margin_end" />
<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" />
<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
[Android Apps and Games] gharrington:
Please post the first 5 lines of MinitBattery.smali you are using
[Android Apps and Games] koko115:
i download new smali for 4.1 from github 1h ago.

.class public Lcom/android/systemui/statusbar/policy/MinitBattery;
.super Landroid/widget/RelativeLayout;
.source "MinitBattery.java"

# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/android/systemui/statusbar/policy/MinitBattery$ResourceManager;
}
.end annotation

# instance fields
.field private mBattery:Landroid/widget/ImageView;

.field private mBatteryColor:I
[Android Apps and Games] gharrington:
All I can suggest for now is to try the mod again looks like you have the correct smali files also make sure the new SystemUI flashes correctly.

Failing that wait for the new smalis I will release tomorrow.
[Android Apps and Games] koko115:
Sorry for bad alarm. ITS working. I flash ugły systemui... Working super. Thx

Ps. Can You make black text battery on white status bar ? Because on white dont swe text.
[Android Apps and Games] explotxion:
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"

xmlns:android="http://schemas.android.com/apk/res/android">

<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />

<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="@dimen/signal_cluster_gap">

<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.5dip" layout="@layout/signal_cluster_view" />

<TextView android:textSize="@dimen/battery_text_size" android:textColor="@color/batterymeter_text_color" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="no" android:fontFamily="sec-roboto-light" android:layout_marginEnd="@dimen/battery_text_margin_end" />

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

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

</LinearLayout>

</LinearLayout>

sorry fail of me
[Android Apps and Games] edzamber:
Hi [MENTION=4619873]gharrington[/MENTION]

I update with your github files and i didn't found double percentage bug text...

Using 3minit paid.

Or i missunderstand what bug your are talking about
[Android Apps and Games] explotxion:
settings color only in paid app no?
[Android Apps and Games] edzamber:
No, in free app too
[Android Apps and Games] albertmurcia:
Only for Android M ? , FC in lollipop in SystemUI, thanks.

Enviado desde mi SM-T805
[Android Apps and Games] cerberii:
"this app version is out of date. Please install the new version" and then it quits. I cannot edit any settings. I dont want to install new version. It was working fine yesterday, Ive changed nothing. Why did you do this?
[Android Apps and Games] gharrington:
Fine in lollipop too.
[Android Apps and Games] cerberii:
how do I update then? since I am being forced when its totally not needed
[Android Apps and Games] gharrington:
Because I am selfish wanting to make sure every one gets the best from my mods and apps and don't want lots of complaints when something doesn't work need week when devs update their roms and you still stuck on the old app.