yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] deuce_biggins:
I edited the smali files to be able to recompile easily with 2.0.0.9b.

SystemUI works great with "Offline" battery selection, when I choose pas2001 or nadmaj it just spins....forever, anybody else?

EDIT: I switched off WiFi, as soon I hit 4G they started to show...odd
[Android Apps and Games] bombaybadboy:
Under 30 sec here

Sent from Uncharted i9500
[Android Apps and Games] pas2001:
See from your edit I found this sometime.

Can load with 3g not wifi. Then I reset router and it ok.
[Android Apps and Games] pas2001:
My new type
[Android Apps and Games] Big Cam:
Do these have charging animations? Also do they change color the lower the percentage gets?
[Android Apps and Games] pas2001:
Let me talk about bat type that came in download folder and in batteryicon folder.

If you wanna copy the icons from download folder to kept in baticon folder and select from setting tab. You should rename the charge icons from "stat_sys_battery_charge_xx" to "stat_sys_battery_charge_animxx"

---------- Post added at 11:50 PM ---------- Previous post was at 11:47 PM ----------

Yes have charging anim . But for this beta version not complete all. As see type 1 4 and 5 worked while 3 and 3 not yet.

For lower percentage change color I do it in some types mate.

---------- Post added at 11:51 PM ---------- Previous post was at 11:50 PM ----------
[Android Apps and Games] S3V3N:
only work Samsung?? LG G2 not work :(
[Android Apps and Games] JoeFCaputo113:
Can someone help me out on Sprint Galaxy S5 (MOAR ROM)?! I keep getting errors when I try and recompile, tried last night for 2 hrs straight and failed miserably :/

framework-res APK

twframework-res APK

SystemUI APK

PS- Here is the error I get:
[Android Apps and Games] gharrington:
I don't have time to mod SystemUI for you now but as I said a few post back the apktool version you are using is beta and won't work use the latest stable version 1.5.2 this error has been reports a resolved using this.

http://xdaforums.com/showthread.php?p=53834370
[Android Apps and Games] cerj:
Working and looking fantastic on the Sprint Note 3... Thank you GHarrington, pas2001 and the whole 3Minit family...
[Android Apps and Games] JoeFCaputo113:
Still can't get it to work :/
[Android Apps and Games] metalfan78:
Got it working, looks good. I made a set of stock gs5 icons for it as well. [MENTION=5282154]pas2001[/MENTION], your icons worked great but they were bigger than stock gs5 icons. How would I add mine to the server?

---------- Post added at 02:05 PM ---------- Previous post was at 01:56 PM ----------

Here are my icons

http://www.androidfilehost.com/?fid=23501681358556652
[Android Apps and Games] cerj:
Will the ui compile with no edits?
[Android Apps and Games] deuce_biggins:
Just to follow suit from what cerj said...thank you [MENTION=4619873]gharrington[/MENTION], [MENTION=4309610]NadMaj[/MENTION], and [MENTION=5282154]pas2001[/MENTION]. Works great on Verizon Note 3!

Sent from my SM-N900V all Kromed out!
[Android Apps and Games] metalfan78:
Are you using the stock frameworks in apktool and then decompiling the MOAR SystemUI?

---------- Post added at 03:10 PM ---------- Previous post was at 03:06 PM ----------

I know rompnit has done a lot of edits and that may be the problem too.
[Android Apps and Games] bombaybadboy:
just had a quick look as i dont have time to port but i would take a closer look at these lines in your statusbar.xml

Line 23: <include android:id="@id/battery_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/battery_cluster_view" />
Line 24: <TextView android:textSize="@dimen/status_bar_battery_text_size" android:textColor="#ffffffff" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" android:importantForAccessibility="no" android:fontFamily="sans-serif" android:layout_marginStart="@dimen/status_bar_battery_text_marginStart" />
Line 25: <ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="3.0dip" />

your systemUI looks modded already and uses png battery icons already, is this from a kk rom? i have used battery pngs for kk but not in this way it looks more jb, i attached a text file of my status_bar.xml hope it helps sorry cant help more
[Android Apps and Games] JoeFCaputo113:
I got it to compile eventually but I got constant systemui force closes and couldn't use the phone at all lol. And yeah I am using the systemui from MOAR ROM and not stock one. [MENTION=4930664]cerj[/MENTION] [MENTION=2326685]metalfan78[/MENTION]
[Android Apps and Games] roirraW "edor" ehT:
Thanks for this! Works on my SPH-L710 Galaxy S3 on a very custom KitKat ROM based on official, with my self-made animated battery icon.

[BATTERY] Plasma Battery! ??? & wickeddecimalbarwide_colors

Charging still shot

Sent from my Sprint Samsung Galaxy SIII on TouchWiz 4.4.2 with Conquest: Singularity v6.3, Ktoonsez' latest kernel and the latest Philz Touch Recovery.
[Android Apps and Games] carl1961:
3Minit Battery Mod using TickleMyAndroid

Video of Doing a 3Minit Battery Mod For AT&T Galaxy Note 3 using TickleMyAndroid hope it helps people to succeed with there battery modding

Download Link >>>>>>>>3MinitBatteryMod_gharrington_TickleMyAndroid_Ticklefish_by_carl1961.zip
[Android Apps and Games] pas2001:
Your signature....Or can say banner...???:p

OK actually it advertise of tutorial videoclip right?

Thank mate. downloading to see.
[Android Apps and Games] carl1961:
Opp's sorry yes

Video of Doing a 3Minit Battery Mod For AT&T Galaxy Note 3 using TickleMyAndroid
[Android Apps and Games] pas2001:
Yes i look at it mate. Think will help many users but can increase text size for link? I think difficult to look for.[emoji2]
[Android Apps and Games] carl1961:
ok done...;)
[Android Apps and Games] gharrington:
Great mate thanks. If ok with you I will add link to op under install instructions?
[Android Apps and Games] carl1961:
Sure that's fine ;) I uploaded another to You tube but the video they converted was hard to read it was one where you did the extra work on the code maybe there is a better way to do that. but at least your link to this thread is there.

3Minit Battery Mod TickleMyAndroid

(select High definition to see writing)

http://youtu.be/9JN1hQOYRY0
[Android Apps and Games] wetbiker7:
Thank you for making such an absolutely amazing mod. The amount and quality of battery icons to choose from is incredible.

I tip my hat to all involved in its creation. :good:
[Android Apps and Games] mydonose:
For my Special friend

Thank you :o
[Android Apps and Games] Mr_Happy:
Put my own icons in /mnt/sdcard/3MinitBatteryIcons and that works....

Except for the charging icons. When charging it only shows included icons, and not from /mnt/sdcard/3MinitBatteryIcons.

'Regular' icons are named: stat_sys_battery_<#>.png

'Charging' icons: stat_sys_battery_charge_<#>.png

Am I missing something.....?
[Android Apps and Games] pas2001:
Accept these mate.
[Android Apps and Games] *wii360*:
I think your charging icons have wrong name. See my Screenshot
[Android Apps and Games] pas2001:
Yes for folder usestat_sys_battery_ charge_animxx
[Android Apps and Games] Mr_Happy:
Ahh yes.... Missed the anim :silly:

Thanks...

(btw. like your theme :good:)
[Android Apps and Games] parkerj7uc:
This is awesome!!!!
[Android Apps and Games] pas2001:
Here friend http://www.mediafire.com/download/prl0z80z5b5c62w/systemUImydonose.rar

If it work please tell the detail to the post that which rom which device (I remember but want it note in the post mate)
[Android Apps and Games] talkingmonkeys:
Can anyone help me with making this recompile with apktool 2? A lot of my mods to my systemui are done with this version so using the older tool for this will just cause more errors. A lot of it is changing parameter "context" lines to param p1, "context", "context" just being an example. Attached are the smali files I've edited already along with the error log I'm getting recompiling it.

Also not sure of what to do with just .paramater lines. They're all just .param p1 now in mine. These lines will be at line 28 in MinitBattery$ResourceManager. and lines 186, 187, 198, 199, 210, 211, 222, 233 in MinitBattery. The 3rd smali file works just fine.

https://www.dropbox.com/sh/zwsb384448hs77d/AABtxVW-giTRVFMXKjVMqmYBa

All of that might be fine because right before posting this the only error I'm getting is this one below

I: Using Apktool 2.0.0-Beta9 on SystemUI3minit.apk

I: Smaling...

..\_working\SystemUI3minit.apk\smali\com\android\systemui\statusbar\policy\MinitBattery$ResourceManager.smali[70,15] no viable alternative at input 'e'

..\_working\SystemUI3minit.apk\smali\com\android\systemui\statusbar\policy\MinitBattery$ResourceManager.smali[70,17] no viable alternative at input 'Landroid/content/pm/PackageManager$NameNotFoundException;'
[Android Apps and Games] parkerj7uc:
Deleted
[Android Apps and Games] talkingmonkeys:
Please read my post again and see that I'm trying to find a way around this because 1.5.2 will give me more errors. Its simple to fix and give an alternative to it but I'm just unsure of a few things. [MENTION=4237879]Versatile1[/MENTION] if you have a chance to look at this in my post above I'd appreciate it. What you posted for another mod is how I learned about this.
[Android Apps and Games] parkerj7uc:
My mistake. That's why I deleted. [emoji3]
[Android Apps and Games] Versatile1:
I will take a look at it today and see.
[Android Apps and Games] -SAM-:
Yes brother i tried it and im getting same error without any changes it means the problem is in apktool.

But i dont know what to do .

Thanx for your response.
[Android Apps and Games] Droidcore:
[MENTION=5282154]pas2001[/MENTION] can you make me 1 more? :)

https://www.dropbox.com/s/upbdhn09e65sa0f/Omnirom.zip

Just one :rolleyes:
[Android Apps and Games] Pain-N-Panic:
Hey gharrington, I've been trying to reproduce your results using this method....apktool 1.5.2 will still not decompile. I'm taking the resources.arsc file and zipping it into a file called 1.apk and moving it to the correct apktool framework folder. However, when I then try to decompile my systemui.apk I get multiple errors =( Anything else you could suggest for me to do? I'll post the error here in a few.
[Android Apps and Games] carl1961:
[MENTION=5188663]Pain-N-Panic[/MENTION] , search for slim beam apktool and use it.
[Android Apps and Games] Pain-N-Panic:
Already tried that. Slim beam will install the framework, decompile the systemui but it will not compile. gharrington was able to mod my systemUI but strictly using apktool 1.5.2 by manually installing the framework....this is what I am currently trying to reproduce. However I am still getting errors. This is the error I am receiving:

C:\apktool>apktool d systemui.apk

I: Baksmaling...

I: Loading resource table...

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected. Dropping resources: drawable-hdpi-v8-ERR0

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected. Dropping resources: drawable-xhdpi-v8-ERR1

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected. Dropping resources: drawable-xxhdpi-v8-ERR2

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected. Dropping resources: color-v8-ERR3

W: Config flags size > 36. Exceeding bytes: 0x2000000.

W: Invalid config flags detected. Dropping resources: style-v8-ERR4

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\(my name is here)\apktool\framework\1.apk

W: Could not decode attr value, using undecoded value instead: ns=android, name=

sharedUserId, value=0x00000025

Exception in thread "main" java.lang.NullPointerException

at java.io.Writer.write(Unknown Source)

at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSeria

lizer.java:38)

at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:

673)

at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSer

ializerDelegate.java:106)

at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT

ag(StaticXmlSerializerWrapper.java:267)

at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati

cXmlSerializerWrapper.java:211)

at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD

ecoder.java:80)

at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe

coder.java:130)

at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPull

StreamDecoder.java:144)

at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecode

r.java:131)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:218

)

at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)

at brut.apktool.Main.cmdDecode(Main.java:146)

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

C:\apktool>
[Android Apps and Games] gharrington:
For those who need to use apktool other than 1.5.2 just get an already modified SystemUI and decompile with the apktool of your choice. The 3Minit smali files from there can then be used with that apktool version.
[Android Apps and Games] samzdaman:
Thank you so much for this. I didn't know something like this was out there. Problems with an old Galaxy S2 battery that I might as well try.
[Android Apps and Games] carl1961:
[MENTION=5188663]Pain-N-Panic[/MENTION] these or your exact files you uploaded I used in this video

3Minit Battery Mod TickleMyAndroid

I'm not happy with youtubes conversion.

http://youtu.be/9JN1hQOYRY0

This is Your original code in Red Box

gharrington Code fix's in Green Box's

gharrington 3Minit Code from OP to add in Blue Box

attached is slim beans same apktool used in TMA if you choose to do manually

apktool-slimbean-1.5.3-KitKat is 1.5.2 fixed to deal with the custom code in these moded systemUI files
[Android Apps and Games] pas2001:
What device what rom?

---------- Post added at 06:49 AM ---------- Previous post was at 06:48 AM ----------

Will see if have time today all needed files inside?

---------- Post added at 06:51 AM ---------- Previous post was at 06:49 AM ----------

What prob?

---------- Post added at 07:37 AM ---------- Previous post was at 06:51 AM ----------

where twframework?Please post thread link too.
[Android Apps and Games] carl1961:
[MENTION=5282154]pas2001[/MENTION], he has AOSP rom so he might not have a twframework.apk I think twframework is for samsung Touch Wizard.

[MENTION=5282154]pas2001[/MENTION], His looks like the same code gharrington did for Pain-N-Panic

[MENTION=5132538]DroidX77[/MENTION] did it with the same code gharrington did for Pain-N-Panic it uncompiled and recompiled ok with 1.52
[Android Apps and Games] talkingmonkeys:
This did the trick I pmed you the changed files if you'd like to add them to the op.
[Android Apps and Games] enewman17:
The first .parameter you can get rid of.

parameter "context" lines to param p1, "context",

you want to change those to .param p2, "context"

then the no viable alternative at input 'e' you have to quote the e "e"

Here ya go buddy this should do it for ya.
[Android Apps and Games] enewman17:
Seriously we posted the same time. OMG
[Android Apps and Games] pas2001:
Thank Mr. I not get used to this rom type so dont know Omnirom.

---------- Post added at 08:28 AM ---------- Previous post was at 08:25 AM ----------

This is you make already?? Thank very much for your kind mate.

I still busy for upload some new users bat icon.
[Android Apps and Games] Versatile1:
You can try and remove the extra "0's" like from 0x200000 to 0x2 or whatever
[Android Apps and Games] talkingmonkeys:
:highfive: So that you also know to get it to recompile I just replaced the image view battery line with his code. Anxiously waiting for recovery to boot to try this out.
[Android Apps and Games] pas2001:
My#125​
[Android Apps and Games] amrinal:
Hi, anyone hv use it on x-note rom? Is it work?
[Android Apps and Games] DaOldMan:
X-Note uses the OGBatteryMod. The layout changes are a bit different because of that.

Thomas
[Android Apps and Games] amrinal:
thats the reason why i asking,,,, i wish someone has made a simple way to use this great batt-mod on x-note.. btw thanks fyi..
[Android Apps and Games] Negan:
Is there any reason that would prevent this from working on aosp? I've been debating trying
[Android Apps and Games] gharrington:
It should work fine mate.
[Android Apps and Games] gharrington:
Is works great mate.
[Android Apps and Games] Negan:
Well I know what I'm doing tonight!

Edit: not cooperating at all! Cm11s

Gonna be fun making this work!
[Android Apps and Games] carl1961:
[MENTION=4619873]gharrington[/MENTION]

finally figured how to get youtube to show

(select High definition to see writing)

[YOUTUBE]8BbxE3WugSY[/YOUTUBE]
[Android Apps and Games] gharrington:
Please upload staus_bar.xml mate.
[Android Apps and Games] knightzero07:
Thanks! I was using OGbattery mod before.. this is similar to it except that you can easily add more icons without create new apk and pushing into system.

I just have 1 question though. How do you add more icons and upload it to server?
[Android Apps and Games] *wii360*:
Send your favorite icons to Pas2001, gharrington or me and we'll add to user folder.

Gesendet von meinem GT-I9505 mit Tapatalk
[Android Apps and Games] knightzero07:
I see. Thanks! Great work guys.
[Android Apps and Games] CasTTeLLo:
I am trying to port it to xnotev18 but no luck.....
[Android Apps and Games] gharrington:
Upload your SystemUI and framework files I will do when I find time mate.
[Android Apps and Games] Negan:
No luck with that. However I have attached my decompiled systemui, framework.apk and systemui.apk should you wish to see them

https://mega.co.nz/#!PEwWBT6J!ccun_kcvNpPZxI3b5tf2M47fBgl25uNt21-44xcT0oA
[Android Apps and Games] knightzero07:
I hope you could also do the same for other status bar icons. Is it possible?

---------- Post added at 08:26 PM ---------- Previous post was at 08:19 PM ----------

[MENTION=5098295]markbencze[/MENTION] i checked your files. you have msim_status_bar.xml.. i guess you used the the status_bar.xml were in your systemui uses a custom status bar xml. have you tried editing msim_status_bar.xml?
[Android Apps and Games] Negan:
No I hadn't thought of that. Thanks for the tip. I'll try that

first attempt, didn't change anything but didn't fc the systemui! perhaps I need to mod both the staus_bar.xml and also the msim_status_bar.xml.

I'll try that and see if it works

Update: didn't work. Caused fc.
[Android Apps and Games] tft:
it would made more sense if two versions were posted of the smali files depending on the version of smali/baksmali used.. for every 1 person that gets this to work, 5 others receive the apk compile error. looking back at this thread, at least 40 pages are of people posting compile errors. would of saved so much work for people trying to get this install this..
[Android Apps and Games] CasTTeLLo:
Check pm
[Android Apps and Games] Hamidreza2010:
[MENTION=4619873]gharrington[/MENTION] can i do this for sony xperia sp and 4.3 fw?

thanks before
[Android Apps and Games] davidisflash:
CM11 d2lte 4.4.4?

Hi-

Has anyone been able to do the mod for SystemUI.apk on CM11 for d2lte? If not I can provide the apk

Thanks
[Android Apps and Games] Negan:
Well I'm still struggling to do it on 11s!

Although they say it will work. I may need their help to make it work
[Android Apps and Games] gharrington:
When you say struggling what do you mean exactly? Whats not working?
[Android Apps and Games] gharrington:
Here for cm11 mate. Based on jfltexx but should work fine on others.
[Android Apps and Games] CasTTeLLo:
Thanks mate....what was my mistake before?
[Android Apps and Games] davidisflash:
Thanks. I'm still struggling with this. Tried both SystemUI.apk files you posted. I have a d2lte device currently running the M9 stable CM11 4.4.4 just released a few days ago.

Steps I tried:

1) Install your 3minit battery mod apk. This is fine

2) Used a root browser to try and install either SystemUI.apk mod. Both installations failed

3) Tried pushing each to system\app. I was able to override the file there

3a) For each, I then restart the phone

3b) Go into 3 minit battery mod. Apply an icon. Nothing changes

Any idea?

---------- Post added at 08:48 AM ---------- Previous post was at 08:06 AM ----------

*Edit* Additionally tried the following

1) Realized I pushed SystemUI.apk to system/app wrong. Took your apk, pushed it to /system. Changed permissions to xx-x-x. Copied to system/app. Restarted. Attempted to apply battery icon. No go

Has the modded CM11 systemui.apk worked for anyone? Inside of it do we still need to make a smali folder and copy in the smali files as a subdir of res/layout? Lastly if we still need to modify the modded SystemUI.apk OP provided for CM11, since it would just be adding a folder can you just rename apk to zip, add in, rename back since no sources are changed?
[Android Apps and Games] cdzo72:
It goes into system/priv-app
[Android Apps and Games] davidisflash:
Thanks. Copied system.apk to system, set those permissions. Copied to system/priv-app. Restarted. Now I have no status bar. Tried applying a battery icon, still no status bar. This is the apk OP posted second, not any I modded
[Android Apps and Games] jthrasher47:
You set the permissions to RW-R-R? Or 0644?
[Android Apps and Games] davidisflash:
RW-R-R prior to copying to the destination folder. Then I reboot. I did this in Rom Toolbox's Root Browser plugin
[Android Apps and Games] Negan:
Well I'm not having issues compiling. I am having issues making it work. After flashing I either get systemui fc or nothing happens.

Unfortunately that systemui you attached did not work either. Fc'd on me.

I believe that I'll get this to work eventually but a lot of speed bumps on the way

And in case you wanted it I attached my systemui and framework on post 835
[Android Apps and Games] jthrasher47:
That is your problem you need to copy the SystemUI.apk to system/priv-app then set the permissions then reboot... I don't know about on cm11 but on touchwiz you can't just copy Over bc the permission default to rwxrwrr so you always have to set permissions after you copy.. And is 3Minit installed as a data app or system? Mine is data and no issues
[Android Apps and Games] davidisflash:
I would think I installed as data app since I simply just installed the apk from my external sd card.

I just browsed to the priv-app folder and tried to set the permissions but they were already set:

Owner: Read-Write

Group: Read

Others: Read

Do I need to set special permissions like GUID, etc?

Also, OP posted in two consecutive posts a system.apk attachment. I'm trying the second one. I don't need to do anything to the apk for CM11 4.4.4 right?
[Android Apps and Games] jthrasher47:
If GHarrington posted it then no he would not send you something that is incorrect on purpose but after you copy make sure the permissions are correct
[Android Apps and Games] davidisflash:
Oh yeah no disrespect to OP. Phenomenal mod. I don't think what he sent is incorrect...what I meant was, did it basically have all the decompile / mod apk files / recompile steps done for us with the only last step being that we just copy the smalis into it (that would be the easy step I would think)

GHarrington, can you help a brotha out? :)

Thank you all for the prompt responses. Definitely one of the better threads I've seen on XDA in a very very long time
[Android Apps and Games] jthrasher47:
Edit: the user below solved! ?
[Android Apps and Games] Negan:
Ok man I haven't got mine to work but just take my zip, extract it and copy your systemui into the priv-app folder (delete my systemui first) rezip and flash it. You don't have to worry about messing with permissions.

But you may also wanna make a zip of with your stock systemui in it first in case you fc

https://mega.co.nz/#!TcwEGRxb!UJL954zWqn7Tcf6P6hKe4Cb72P6FRaP8pdIWTTusGa8