yashsingh1/xdaforums huggingface dataset:
[Android Themes] zrox:
[MENTION=225651]op[/MENTION] thnx so much
[Android Themes] Dzol Cp:
Awesome!

[INFO] [MOD AVAILABLE]

1. [MENTION=4315551]Ticklefish[/MENTION]

2. [MENTION=5010066]DarkStryder[/MENTION]

3. Me
[Android Themes] DarkStryder:
Mod where bro?
[Android Themes] Dzol Cp:
Mod in here bro,

You help user mod their systemui..same as i do it for you few month back before you able to do it youself like now.

Cheers.
[Android Themes] shevchovski:
../../../mnt/sdcard/apktool/SystemUI_src/smali/com/android/systemui/statusbar/policy/Traffic$1.smali[24,4] Error for input '.parameter': Invalid directive

../../../mnt/sdcard/apktool/SystemUI_src/smali/com/android/systemui/statusbar/policy/Traffic$1.smali[39,4] Error for input '.parameter': Invalid directive

../../../mnt/sdcard/apktool/SystemUI_src/smali/com/android/systemui/statusbar/policy/Traffic$1.smali[40,4] Error for input '.parameter': Invalid directive

../../../mnt/sdcard/apktool/SystemUI_src/smali/com/android/systemui/statusbar/policy/Traffic$1.smali[39,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE

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

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

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

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

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

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

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

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

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

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

I: Using Apktool 2.0.0-Beta7 on SystemUI_src

I: Smaling...

What's wrong with this bro??? :confused:
[Android Themes] Ticklefish:
You've quoted the whole post. That's one of the things that's wrong..

The other one is the apktool you've used. You need to use apktool 1.5.2. Apktool 2.0.0b7 won't work with some old smali files.
[Android Themes] shevchovski:
Okee broo :thumbup: thanks for it.. I try now :D
[Android Themes] shevchovski:
Yeahh working full broo.. But I don't know with this?? :rolleyes:

aapt: warning: string 'data_connection_datach_timeout_error_msg' has no default translation in /sdcard/apktool/SystemUI_src/res; found: ru
[Android Themes] Josehg:
Don't worry about it. It's a simple language translation warning. Everything will be ok.

Cheers

Enviado desde mi GT-I9100 mediante Tapatalk
[Android Themes] ersan18:
brother can you help me, I try this guide and I read all the post this thread, but I have same problem,nothing happen if I finished compile and push SystemUI in /system/app and persimions it. this my SystemUI Finished compile, thanks before. :)

Android versions 4.0.4 mediatek :)
[Android Themes] Ticklefish:
We're going to need your framework-res.apk as well if you want us to take a look at your apk. :good:
[Android Themes] ersan18:
brother,I'm sorry i'm forget it :)
[Android Themes] :
Instead of add public values before recompilation, You can recompile back after XML's additions, preserve the signature, decompile back and put the public values already generated :)
[Android Themes] yimi369:
how to add switch on/off display on statusbar? please
[Android Themes] Ticklefish:
What is it that you want to display/not display?
[Android Themes] ersan18:
somebody,cannot to help my problem?
[Android Themes] :
what is Your problem? :)
[Android Themes] yimi369:
sorry, I just want add a switch in settings to control display/hide the meter on statusbar. Thank you very much!
[Android Themes] Ticklefish:
Tricky..

What you could do instead is put a button in the statusbar itself that can do this.

Have a look at this tutorial here:

http://xdaforums.com/showthread.php?t=2629747
[Android Themes] :
i think he want to add a checkbox preference to enable/disable kbmeter when he want :)
[Android Themes] Ticklefish:
Yeah, I think so too. The trouble is, I've no idea how to do this.. :crying:
[Android Themes] DSA:
If he's not using a rom control app he will need to code the settings app to incorporate the toggle

And the data traffic smali will need to be modded to add the toggle....its not easy if you don't have experience (adding the context, key, modding locals or registers)...there are plenty of tutorials that could be modified to suit his needs
[Android Themes] :
Me too... i have no idea... but I can surely try looking at some commit... (like I did for clear all recents button)

it's a little bit difficult :)

Because we should add a checkbox preference on xml's... somewhere in settings... e.g. Display settings...

add checkbox preference on display setting's smali and define a clickable key for kbmeter...

and add the smalis inside settings... but these smali need to be written again to get properly working from settings to systemui...

I think I will look at Chameleon OS smalis... or Gravitybox source code... and when I'll have time I will try to implement this checkbox... it requires time and little tests :)
[Android Themes] yimi369:
Yes, This is exactly what I mean. Please Look here, he did, but it is not a guide, not suitable for all devices.

http://xdaforums.com/showthread.php?t=2624257

My device is Samsung Note3(N900) with kitkat（4.42）.

Thank you aggin.

---------- Post added at 02:06 PM ---------- Previous post was at 01:57 PM ----------

Yes, This is exactly what I mean. Please Look here, he did, but it is not a guide, not suitable for all devices.

http://xdaforums.com/show....php?t=2624257

My device is Samsung Note3(N900) with kitkat（4.42）.

and look here: http://xdaforums.com/showthread.php?t=2166315

Thank you aggin.
[Android Themes] Busted Dice:
Help

Hey dev, please take a look into SystemUI (Android 4.2.2) of mine. Thanks.
[Android Themes] :
If You post also framework and You say us your android version... :) would be better
[Android Themes] :
[MENTION=4421347]Dzol Cp[/MENTION]

too much styles in MTK guide by sieuan

this style is not defined in values/styles.xml... :)

<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" [COLOR="Red"][B]style="@style/StatusBarNotificationText"[/B][/COLOR] />

[MENTION=5369014]ersan18[/MENTION]

Your mod:

try first this:

this one i added the line only on zzz_status_bar_gemini.xml

View attachment ersan18.zip

and in this one i added in status_bar.xml and zzz_status_bar_gemini.xml (try if the above won't work)

View attachment ersan18_1.zip
[Android Themes] khusika:
Another style :D
[Android Themes] ersan18:
brother, ok i will test it. thanks before and i will send back the report
[Android Themes] ersan18:
Awesome, it works fine... :D(y)

many many many thanks brother ;) (y)
[Android Themes] ersan18:
Awesome, how you can?

can you tell me how guide it?:laugh:
[Android Themes] khusika:
If i have time i'll share it ;)
[Android Themes] ersan18:
Haha ok, i'm always waiting your goude, ;) thanks before brother..!! :D. :good:
[Android Themes] :
i started working on checkboxed kbmeter :)
[Android Themes] BasicBunny:
Cool. I found a great rom for my device but it was in Russian. Obviously everthing could be brought back to english via a simple setting but not the speed indicator that was hardcoded. Thanks to your guide I managed to find the strings relative to "Mb/s" etc and change them to English.

However I think that what would be really cool is to be able to have up and download speeds displayed stacked one over the other in small font.

Your guide is cool, thanks again. I have just taken the dive into android hacking!
[Android Themes] :
This is Dzol guide :P not mine :)
[Android Themes] krija:
Carrier label, clock with seconds, traffic meter, battery text 'ported' to the Sicksky Launcher :D
[Android Themes] Pneuma1985:
Very cool so you got it built into another launcher very nice... I'd like to know how you got to appear as a widget doesn't that take manifest editing and adding the several lines for it? Or is the launcher built like that with a process for its main screen?
[Android Themes] krija:
Thank you. You are right, I built it to launcher's top bar.
[Android Themes] jeswinjv:
ThaNq for Help....:)

via Tapatalk
[Android Themes] Himan Boro:
How To Move That 0Kb/S in Left side of the Status Bar....
[Android Themes] leefable:
Turn off data and wifi connection , still show 0B/s .

Turn off data and wifi connection , still show 0B/s .

How to let it disappear ?
[Android Themes] Dzol Cp:
Don't use this latest smali's..use smali traffic pack from 2nd post of this thread.
[Android Themes] rupeshvermah:
plz

i don't have pc....

can u mod my system.ui?
[Android Themes] siMp0lMaN:
use mobile apktool to compile/decompile apk + jota to edit xml and your good to go :) really fun and fulfilling to try it yourself alone and come out with a successfull result., try it :) ask if somethings not working.,
[Android Themes] zant76:
SystemUI,apk

I try decompile my LenovoSystemUI.apk no smali folder.

pls make for me. Lenovo A850 android 4.2.2 custom rom
[Android Themes] Ticklefish:
If you have no smali folder, that will be because your LenovoSystemUI.apk is odexed. You need it to be deodexed.

Oh, and if you want somebody to mod your deodexed app you'll need to provide your framework-res.apk as well.
[Android Themes] amtra:
For 4.2.2 better go for xposed installer.

See my screen having data meter with both upload and download speed and automatically gone when data disabled.

Only need is you must have root access. If you have root access you will get it with out Editting anything and also have lots of features.
[Android Themes] zant76:
2 files in 1 zip attach in my post. and how to deodexed my file.
[Android Themes] Ticklefish:
To deodex your apk, you'll need a piece of software called smali/baksmali.

Or there are various tools available that can do it for you...like Tickle My Android, for example! ;)
[Android Themes] zant76:
I install framework to pc no error. try to decompile systemUI with error..

Decompiling "LenovoSystemUI.apk",

using "apktool_2.0.0b7.jar"

With Tickle My Android

(tinyurl.com\ticklemyandroid)

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

Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.

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

Decompile Not Successful!
[Android Themes] Ticklefish:
You need to install another framework/resource file as well. Have a look in your system/framework folder for anything with 'res' in the title.
[Android Themes] zrox:
so one question, how can i use the new files if i currently using the old method?.. i want to apply the new one with the kbs will appear only if we open our data or wifi. could someone help me?
[Android Themes] khusika:
Just replace the smali file from this guide into your SystemUI.apk
[Android Themes] blueyedos:
sir nice nice thread... thank you...
[Android Themes] zrox:
i already did that.. :D but still the kb always appear in my status bar even though i didnt use internet
[Android Themes] siMp0lMaN:
You either use different smali for your device., updated GB smali (traffic) is working on my ICS too., :)
[Android Themes] xfeedbacker:
i use to mod my cm7

But now i want to let the update more faster.

in the modified version i saw exactly what i want to do.

7.Edit res/values/integers.xml and add the following lines (changing the values if desired):

Code:

<!-- The counter will only be shown if transfer rates exceed this amount in bytes per second. Set to -1 to always show -->

<integer name="minimum_threshold_bps">18</integer>

<!-- This determines the interval in seconds between consecutive polls (updates). The smaller the value, the more accurate it

will be, but the more power it will consume. Clamped to a minimum of 1 (i.e. once per second) -->

<integer name="poll_rate">2</integer>

But in my systemUI i dont have the integers.xml file

so what i need to do to let the pool/update more faster? can someone help me ?
[Android Themes] S-X-ShaX:
make it disappear

It works well except for when I change 18 to -1,it always shows even though I turn off wifi or net.How can I make it disappear when I turn off wifi or net(always shows when wifi or net on)?Please help me,thanks.
[Android Themes] S-X-ShaX:
Can you make it disappear when turn off wifi or data?It is pretty good except for that. [MENTION=3599897]taboo5200[/MENTION]
[Android Themes] DSA:
please remove the massive quote in your post, theres no need for it
[Android Themes] S-X-ShaX:
[MENTION=4421347]Dzol Cp[/MENTION] Can you change taboo5200's smali to make it disappear whem wifi or data turn off?If you can help me,please compile it into an apk,I don''t know why my apktool can't compile easily,I can only decompile it and get smalis,then it will work.
[Android Themes] DSA:
edit

cant be bothered
[Android Themes] zant76:
Smali file error

Recompiling "LenovoSystemUI.apk" With Original Signature,

using "apktool_2.0.0b7.jar"

With Tickle My Android

(tinyurl.com\ticklemyandroid)

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

..\_working\LenovoSystemUI.apk\smali\fx\dzolcp\Speed$1.smali[24,4] Error for input '.parameter': Invalid directive

..\_working\LenovoSystemUI.apk\smali\fx\dzolcp\Speed$1.smali[40,4] Error for input '.parameter': Invalid directive

..\_working\LenovoSystemUI.apk\smali\fx\dzolcp\Speed$1.smali[41,4] Error for input '.parameter': Invalid directive

..\_working\LenovoSystemUI.apk\smali\fx\dzolcp\Speed$1.smali[40,15] mismatched input '"context"' expecting END_METHOD_DIRECTIVE

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: fx/dzolcp/Speed$1.smali

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

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

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

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

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

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

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

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

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

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

Recompile Not Successful!
[Android Themes] Ticklefish:
What a fantastic choice of decompiling tool you've made! :D

You need to use 'apktool_1.5.3.jar' to decompile and recompile your apk. The smali in this mod needs an older version of 'smali/baksmali' than is in apktool_2.0.0..
[Android Themes] nandisenjaya:
decompile & recompile success, but it's show nothing on my Xperia M Dual JB 4.3 statusbar after i replace SystemUI and reboot device :(
[Android Themes] DSA:
Run a log and look for logs at level 'errors' (not warnings as much or anything lower)
[Android Themes] nandisenjaya:
how to view/run log on apk tool ? :D
[Android Themes] DSA:
I mean run it on your phone with the apk installed
[Android Themes] S-X-ShaX:
What did you mean?
[Android Themes] Dzol Cp:
Means that once you install any logcat or catlog apk from Gplay,

Just open it and you can see error msg on the log.
[Android Themes] S-X-ShaX:
I know why it don't work,I should use an older verson of apktool and smali,I just find taboo5200'smali can't disappear when wifi or data off,could you change it?I really like it because it can show upload or download in difficult color.
[Android Themes] GSculerlor:
Can somebody make enabler/disabler trafic meter display on settings ?
[Android Themes] Ticklefish:
Well, this is very clever. And you deserve some HUGE thanks for sharing your Eclipse project. I'd love to know to how to make things like this and that will come in very handy indeed!

May I make a couple of quick suggestions?

If we use this code in our layout xml, it'll save having to edit ids.xml:

<com.android.systemui.statusbar.policy.Traffic [color="red"]android:id="@+id/traffic"[/color] android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

Using the '+' symbol will make Android add the ID to ids.xml automatically when you recompile. It's a little thing but it saves a few seconds..

I don't like adding ids to public.xml. It just takes too long trying to find the next id and making sure it works. As you can tell by the above sentence..I'm not a patient guy! lol

I prefer to just do a quick recompile of my app first. The ids will be automatically added to public.xml. Then I decompile that recompiled apk, load up public.xml and make my changes from there.

I've attached to this post slightly modified smali files that will work with apktool 2. (I used apktool 1.5.2 to decompile my apk, added the smali files, recompiled then decompiled with apktool 2.0.0b9.)

If they're helpful, feel free to add them to your post and I can remove them from mine. :cool:
[Android Themes] sidharth.gtm:
You made my day bro !

the new smali file worked flawlessly.

Thanx sir !
[Android Themes] dawid9706:
Everything works great ,thanks man!
[Android Themes] EpullSalvatrucha:
Sorry sir... i am on modding this traffic meter for hyperion9 galaxy y s5360... But i dont understand with your guide... can you make more easier guide?

#Sorrybadenglish
[Android Themes] DSA:
Its not down to the op to change the guide because you can't understand it, its down to you to improve your knowledge and then come back to this and learn how to read it

This is actually one of the easiest guides on XDA to follow
[Android Themes] EpullSalvatrucha:
Ok... Can i asking you? actually guide in 1st post is needed for GB? or skip it to 2nd post with that GB spoiler?
[Android Themes] Ticklefish:
There are two different meters available here. The one in the first post is always visible, the one in the second post is only visible when you're connected to the internet. You can use either on Gingerbread.

The GB spoiler is just showing you where you can put the line of code.

The guide may seem complicated if you've never done this sort of thing before but it's actually very simple.

My advice is to make a backup and just try it. Take your time, move slowly and follow the instructions line by line. If it doesn't work, just flash your backup. :good:
[Android Themes] EpullSalvatrucha:
Thanks sir for explanation and support me... +1
[Android Themes] EpullSalvatrucha:
Error recompile :(

Help please... :(
[Android Themes] Ticklefish:
I can't read that. You need to copy and paste your error text into your post. Or just attach your logs if you're using Tickle My Android.
[Android Themes] EpullSalvatrucha:
Nevermine sir... already fix it just now...i fix it by change:-

<style name="TextAppearance.StatusBar.Speed" parent="@style/TextAppearance.StatusBar.Clock">

to

<style name="TextAppearance.StatusBar.Speed" parent="@style/TextAppearance.StatusBar.Speed">

but it dont show the meter? i will add attachment.. i hope you can help me sir...
[Android Themes] Ticklefish:
So you created a style called "TextAppearance.StatusBar.Speed".

That style has a parent style called "TextAppearance.StatusBar.Speed".

Which you've declared as having a parent style called "TextAppearance.StatusBar.Speed".

Which also has a parent style called "TextAppearance.StatusBar.Speed".

That parent stye has its own parent style called "TextAppearance.StatusBar.Speed".

Basically you've created a style that doesn't exist..

The idea behind the instruction in the op is that you use the same style as the clock as the parent..
[Android Themes] kevin_tn:
The one in second post , i can't use it, because my systemui.apk does not have Colors.xml and Integers.xml in values folder.

any guide sir ?

i'm using a custom GB 2.3.6 rom

Thanks for any help
[Android Themes] EpullSalvatrucha:
But sir if i dont change that my recompile got error... before this i dont change it and error occur while compiling... Help me sir..
[Android Themes] DSA:
Doesn't sound like you have actually decompiled the apk
[Android Themes] Ticklefish:
If you're using a custom rom, it's likely your colors.xml and integers.xml are somewhere else. It's worth having a look in your framework-res.apk or any other 'res' apk's that you have in your rom.

I don't know what those errors are. If I know what they are, then I will have a better idea of what I can do to help.

I'm going to guess here that you're having trouble because you're using the style mentioned in the op and your rom doesn't have it. If so, you're best advised to use the same style as the clock.

So look at the line of code in your xml that controls the clock and copy the style attribute.

If you're having trouble, share your xml here and I'll take a look at it for you.

Oh, and if you're sharing code please use the code tags!

..like this!
[Android Themes] kevin_tn:
no sir, i'm usig Hyperion 9 based on stock samsung 2.3.6.

framework folder contains twframework-res

i decompiled systemui.apk many times and applied some mods on it successfully.

i noticed that values folder does not contains colors and integers.xml

---------- Post added at 03:58 PM ---------- Previous post was at 03:51 PM ----------

framework-res contains colors and integers.xml

if i edit colors.xml and integers.xml from framework-res ,where will i put public code into ? in framework-res.apk or systemui.apk.?
[Android Themes] Ticklefish:
That's a very good question. You'd need to edit public.xml in framework-res.apk. Although really you should never edit public.xml if you can avoid it. Just recompile the apk and decompile the apk to get your references. Always better to let aapt change public.xml automatically!

I've never actually tried editing smali in SystemUI.apk with references in framework-res.apk. In theory it should work without any issues as long as you've installed framework-res.apk before decompiling SystemUI.apk.

In theory..

Best advice is just to try it and see. Just make sure you've made a backup first!

If it doesn't work, you could always just try making a colors.xml and integers.xml in SystemUI.apk..
[Android Themes] kevin_tn:
ok thanks.by the way,i tried making colors.xml and integers.xml in systemui.apk but i got errors when recompile it.

one more question ,sir.

the code in style.xml in systemui, could it reference to colors.xml in framework-res ?
[Android Themes] EpullSalvatrucha:
I will provide it tommorow... at afternoon..
[Android Themes] KennyNgoo:
Understood man, Sorry about that. Btw i see that you are a Malaysian. So am I HAHAHA
[Android Themes] Dzol Cp:
Done.

Flash via CWM/TWRP (do not push it to system manually) (do not drag & drop any meta-f android man bla bla bla)

Set to system default theme (do not use any other theme chooser theme)

Let me know a result and if you got time also some screenshot will be awesome! :laugh:
[Android Themes] Dzol Cp:
Double post..my pc gone crazy again
[Android Themes] charlie95113:
Thanx...perfection...too dope ...is there a way to change from white to ICS blue
[Android Themes] KennyNgoo:
Received with thanks :) flashed and it works fine. But the thing is previously my center clock was blue in color. After flashing, it became white. :eek: can you fix that? And also can you make the traffic meter's font color to be blue?

Also I know that this is not the right thread to post in but just a quick question do you have any ideas on helping me to mod the status bar to be transparent only when it's on the home screen and the app drawer? But when it goes to other apps it reverts back to the same black status bar? :) any help would be appreciated :)

Thanks!
[Android Themes] sieuan:
Here's mine:) I've tried it, but nothing happened. Thanks for helping!
[Android Themes] Dzol Cp:
XDA Search Xposed Installer / Xposed tweakbox (you can set any color for your clock, now support CM10.1)

Transparent statusbar

http://xdaforums.com/showthread.php?t=2234355
[Android Themes] luki2411:
here main thanks b4
[Android Themes] Dzol Cp:
Done.

Done.

That's it :D
[Android Themes] luki2411:
dont work interfece fc

i hawe 4.2.2 android