yashsingh1/xdaforums huggingface dataset:
[Android General] Rix70:
Great thread!!

I can not decompile SystemUI... HTC ?

I love the up/down traffic like a CM roms.. I searched and asked on xda many times and now that I found your thread I can't decompile the apk because gave me an error.

I'm Italian and for me is very hard to understand everything in the various pages.

The guide is not difficult for me if decompile and recompile process going well but it do not go.

If anyone can help me is much appreciated.

Thanks in advance and however.

Edit: I decompile by pc with another method but I don't know if the process is correct...

after decompile SystemUI in the extraction dir I found only "res dir" and a file "AndroidManifest.xml"..that is correct? and if yes, where I have to add "smali" files?

Inviato dal mio HTC One utilizzando Tapatalk
[Android General] Shadow187ger:
Can anyone create a flashable File for this Mod???
[Android General] Ticklefish:
Have you tried using Tickle My Android?

You might find it a more useful environment for de/recompiling and it creates very detailed log files so, if things go wrong, the problem can be found and fixed easily.

Sadly, no. For this sort of mod, you have to edit the files yourself. Every ROM is different.

But take it slow, follow the instructions and you should be fine. :)
[Android General] GreenneeG:
how can i control the place of traffic network in status bar ?

i want to put it at left corner
[Android General] Morningstar:
You can put it wherever you want in the layout...
[Android General] GreenneeG:
could you please show me how to do it ? just show me the code in layout

i'm on f4k's 12.1
[Android General] störte:
Hi

I like to give it a try on my G925F with 5.11. I followed your instructions untill i reach this sentence "add the lines in the five files in values to the corresponding files in your res/values" . My Question which line of the five files you mean ?

It may sound stupid but i cant get it into my brain.
[Android General] Morningstar:
In the zip file, there is a folder called 'values' (under 'res'). It contains several xml files (arrays, attrs, etc.). Open each of those up, and copy the values to the same-named xml files in your decompiled apk's res > values folder.
[Android General] störte:
Sometime i cant see the trees in the woods. Thanks mate
[Android General] Morningstar:
Lol no problem.
[Android General] JamieBlues:
Hello i have followed the guide and all is well up untill i decompile settings.apk or as it is on my galaxy s6 secsettings2.apk so when i decompile this i cannot find the corrosponding folder locations that go with the .zip from this guide for example the folder secsettings/smali/net is not there and also the secsettings/smali/com/android/settings/temasek so i cannot copy the files from the .zip folders to thier matching folder in the decompiled apk folder

any help would be great i have done a little bit of googling and maybe the cause of this is because i am running a windows 7 32 bit laptop and read somewhere that the secsettings2.apk is 64 bit im not too sure

thanks in advance
[Android General] hocuspocus69:
Great
[Android General] Er. Aditya:
hi sir , first the mod works awesome but cant we use Kb as well with bits and Bytes ?
[Android General] Umair Ahmad:
[MENTION=293887]Morningstar[/MENTION] mate good job..... well i tried it on 5.1.1 . first step i did successfully but after recompiling and then i have to decompile for change the ids in public.xml and then i recompile i got success no here is my log

to make it easier

at this step i am having problem

thanks.... and i read in thread the 5.1.1 secsettings are different... can you guide a little about it... thanks again
[Android General] mohsinriaz:
is there someone nice enough to do it for me if i send my system and settings files?? :( :)
[Android General] danivancouver:
...........
[Android General] kurogami555:
when i try to recompile SystemUI i get this error can you help me please
[Android General] Morningstar:
In res/layout/status_bar.xml, you have something after the final closing tag. Just remove whatever it is.
[Android General] travarilo:
I was success showing up network indicator, but the icon is on the left edge of status bar instead on the right side, is anything wrong?

Thanks.
[Android General] Red_Zmooth:
Thanks

Awesome and work perfectly on OPPO JOY R1001 MT6572 Stock based rom.

Although initially failed because systemUI I just can decompile and recompile using apktool 1.5.2, so I worked hard to smali of you can work on 1.5.1 apktool mine. and akhirmya I succeeded. For devices MTK and JB, this script "<com.android.systemui.statusbar.policy.NetworkTraffic android: id =" @ id / networkTraffic "android: layout_width =" wrap_content "android: layout_height =" fill_parent "android: singleLine =" false "/>" should be placed on gemini_status_bar.xml. I also asked for permission to because I want to share this guide to the facebook group oppo joy Indonesia. Thank you very much in advance.

[IMG="SS"]https://mobile.facebook.com/photo.php?fbid=1244642655552213&id=100000194708851&set=pcb.1244642785552200&source=49&refid=17&_ft_=top_level_post_id.1244642785552200%3Atl_objid.1244642785552200%3Athid.100000194708851%3A306061129499414%3A2%3A0%3A1448956799%3A-5353104564116360296[/IMG]
[Android General] Ticklefish:
Can you share your XML please?
[Android General] fabio000:
Does this work with Marshmallow?

-edit-

I tested and didn't worked on nov/08 Cataclysm on Nexus 5

when I try to open the network traffic option settings force close
[Android General] icedventimocha:
Awesome guide, easy to follow, working on Verizon Note II 4.4.2 TouchWiz.
[Android General] lucky_sidhu:
I am getting a big error log in compiling files after changing values.

Can anyone help ?
[Android General] Ticklefish:
Always good to see somebody using the Best Theming Tool Ever...lol

Your error is in this line:

C:\TickleMyAndroid\_WorkArea1\_working\SecSettings.apk\res\layout\dialog_color_picker.xml:7: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_action_set').

The stuff before it is just translations warnings. You can ignore those normally.

Here you need to copy across the ic_action_set.png. That should solve the problem. :thumbsup:
[Android General] Morningstar:
This.

Thanks, [MENTION=4315551]Ticklefish[/MENTION]!
[Android General] Ticklefish:
Anytime. Thank you for this mod. It's working a treat on my Lollipop Z3 Compact. I tweaked the XML a little to make it look the way I wanted and it works really well.

Definitely a mod I'll be looking to use in Marshmallow!!
[Android General] icedventimocha:
Double check your edits to styles.xml. Could be something as simple as an extra space in the wrong place.
[Android General] stang5litre:
Thanks I looked over it. Also had another person try, and they get the exact same error. Will check again or would be happy to post that edit. I put all my edits at the bottom before the ending. So it includes it. Would love to get this going. Thanks for your time
[Android General] DevendraMilmile121:
Need help fastly

How to fix thisView attachment 3561617
[Android General] Morningstar:
Are you getting any decode errors when you decompile? If not, try it again, and upload the full cmd output. There's most likely an error happening before all the stuff you pasted, that's causing everything else.

I can't tell what I'm supposed to be looking at in that screenshot. Can you elaborate a bit more?
[Android General] stang5litre:
[MENTION=293887]Morningstar[/MENTION]

Are you getting any decode errors when you decompile? If not, try it again, and upload the full cmd output. There's most likely an error happening before all the stuff you pasted, that's causing everything else.

It decompiles fine*can't get past the 1st compile. I'll give it another go tonight and let you know. Thanks for the response. Really want this mod.

Would it matter if I have 3minit battery? As I have already mod'd that in on the 2nd version of my rom.

Thanks again for your time
[Android General] Morningstar:
No, it doesn't matter if it you have 3minit. Usually, when it spits out a whole bunch of symbol not defined errors like that, they have nothing to do with the actual problem. Above all of those there'll be an error indicating what the real problem is. When you recompile, use apktool b SystemUI 2> log.txt. That'll write all the error messages to a txt file in tour working directory, and you can look at that to see what the first (and real) error is. When theres too many, cmd won't let you scroll up far enough to see them all.
[Android General] stang5litre:
OK thanks. Gonna try here again in a few. Don't know what I could have missed I put all the mods at the bottom before resources. On the statusbar.xml do I just copy the contents inside over as well. Or replace that one. I think that is the only one not mentioned what to specifically do with. Thanks again hope for success this time. If not guess I'll see the errors and if I can't fix from there I'll be sol . Lol.
[Android General] DevendraMilmile121:
See that bro 1x and signal bar View attachment 3563196
[Android General] Morningstar:
What about it?
[Android General] DevendraMilmile121:
Why it showing this insted of only 29 kb is this problem of rom or i miss some thing plz tell me
[Android General] stang5litre:
1st off thanks for this!!!! Best guide I have seen. I have tried to get it to display in another are but no matter where i put that section in the systemUI it always displays all the way to the left. Is there a way to put it by wifi? Thanks for your excellent work. [MENTION=293887]Morningstar[/MENTION]
[Android General] thereassaad:
For me on s6 i add this from op in res/layout/system_icons.xml

<com.android.systemui.statusbar.policy.NetworkTraffic android:id="@id/networkTraffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" />

& its move it to near wifi ..
[Android General] stang5litre:
I'll give that a go. :). That put it to the right of my battery Icon. Dang getting close

---------- Post added at 02:42 PM ---------- Previous post was at 02:31 PM ----------

Status bar puts all the way to left and system icons put it to the right of the clock. So getting close
[Android General] thereassaad:
Ooooh sorry mate i forget this u need to add this smali thanhfhuongf folder in smali/com , ok

https://mega.nz/#!i4YXUAiQ!YrQ0Ph9NfVoII7_s3WPg-UrN-nDs7IvrXbuXIXHtXqg

Then u will be fine it should work just fine ok ..

& thanks to [MENTION=4232948]thanhfhuongf[/MENTION] for the smali file for get it moving it to near wifi ..
[Android General] stang5litre:
Thanks will try in about 15mins had to run to the store. Awesome!!! Thanks for your help and quick responses [emoji106] [emoji2]
[Android General] thereassaad:
No problem mate & hope Morningstar add the control for moving it to right/left etc
[Android General] stang5litre:
Ya in am almost back at the house. Gonna try and see if i can get that done. Gonna have to add that to SecSettings.

Hey sorry where do i put all these Smali's? I figured the same place but you gave me several folders. Do i need to drop those folders into statusbar or policy?
[Android General] thereassaad:
For SecSettings u only need to the op files ok & good luck ,
[Android General] stang5litre:
That's already done I was talking about to add left ,right etc.

I have already got the mod working.

Trying your smali file now
[Android General] zangge34:
Like :D
[Android General] SHADYEDGE:
Where's the part of the code where i change the position, I would like in the top left side of the status bar.

is it possible?
[Android General] viddamusic:
Hi [MENTION=293887]Morningstar[/MENTION], first thanks for awesome tut, this is great and properly works on my Galaxy S5 Mini. But I have one "problem": my Inactivity Threshhold not works, there are no seekbar for change :rolleyes:. Can you help me?

View attachment 3631129 View attachment 3631130
[Android General] viddamusic:
Yes it is posible, you need to put this code:

<com.android.systemui.statusbar.policy.NetworkTraffic android:id="@id/networkTraffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" />

after the code:

<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:alpha="@dimen/status_bar_icon_alpha">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />

in your status_bar.xml

Like this:

<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:alpha="@dimen/status_bar_icon_alpha">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
[COLOR="Red"][B]<com.android.systemui.statusbar.policy.NetworkTraffic android:id="@id/networkTraffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" />[/B][/COLOR]
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
[Android General] viddamusic:
Ok I solved it. Its not works because I entered one wrong ID in SeekBarPreference.smali :D lol

Now it work fine :D

View attachment 3631283

P.S. Sorry for my English
[Android General] stang5litre:
Hey [MENTION=6504686]viddamusic[/MENTION] I see you helped move it to the left. I have mine on the left side. Trying to get it in the middle to the left of the wifi icon. Tried several different codes. Can get it to the right just to left at clock as well but nit to the left of the wifi icon. Or if you know of a code that I can add that can make it move able that would be great as well. Thanks for any info in advance. [emoji106] [emoji41]
[Android General] viddamusic:
Have you this file in your layout folder: signal_cluster_view.xml?
[Android General] viddamusic:
[MENTION=4840281]stang5litre[/MENTION] and its doesn't work?
[Android General] stang5litre:
The mod Works fine. I am talking about moving it just to the left of wifi symbol. With the code I have it's all the way to the left. I can get it all the way to the right and to the left of the clock but not to the left of wifi

Like mine shows like this. I want it to be left of wifi [emoji39]

Thanks again
[Android General] viddamusic:
[MENTION=4840281]stang5litre[/MENTION] try put the code like this in status_bar.xml:

<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<TextView android:textSize="12.0dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/knoxCustomStatusBarText" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:includeFontPadding="false" />
[COLOR="Red"][B]<com.android.systemui.statusbar.policy.NetworkTraffic android:id="@id/networkTraffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" />[/B][/COLOR]
[COLOR="Lime"][B]<include layout="@layout/system_icons" />[/B][/COLOR]
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginTop="@dimen/status_bar_clock_margin_top" android:singleLine="true" android:alpha="@dimen/status_bar_icon_alpha" android:paddingStart="@dimen/status_bar_clock_padding_start" />
</com.android.keyguard.AlphaOptimizedLinearLayout>

Before <include layout="@layout/system_icons" />

It will bw like this

View attachment 3631728
[Android General] stang5litre:
I'll try that out thanks so much for your time. Gonna make the adjustment and see where it puts it. Mine should be closer to the middle if its to the left of wifi like that. But i have a bunch of mods on my rom so may even that's why. On my right side clock to left of that signal bars and 4g signal then wifi ,then hopefully with your adjustments it will be there :)

Let you know . Thanks again [emoji106] [emoji3]
[Android General] viddamusic:
[MENTION=4840281]stang5litre[/MENTION] you are welcome ;)
[Android General] Morningstar:
[MENTION=6504686]viddamusic[/MENTION], Sorry, I just now saw your pm. Glad to see you got the issue resolved! Thanks to all for helping each other out. :)
[Android General] stang5litre:
Gonna look at my threshold while I'm adding your code as mine Isn't movable either lol. Probably same line.
[Android General] viddamusic:
It is not my code, it ist the code from first post and it is not associated with the threshold.

Now the code in same line in my status_bar.xml and threshold works.
[Android General] stang5litre:
Mine shows but not move able [

I know it's not the same code as you gave me before to move it. And mine works just had to hit auto hide lol.
[Android General] tra_ung:
Sorry. I want mod only file SystemUi.apk. Don't care Setting.apk Please Help me. how to?
[Android General] stang5litre:
I am pretty sure you have to do both for it to work, Other wise how would you turn it on?
[Android General] SHADYEDGE:
I got errors trying to compile SystemUI.apk

please see attached logs
[Android General] stang5litre:
You need to go to each of those error lines and fix it. Did you decompile twice to get all the id#s and so on ?
[Android General] SHADYEDGE:
Yes. I did it. The error was after made the modifications.
[Android General] stang5litre:
[MENTION=6504686]viddamusic[/MENTION] tried that code and it didn't work for me. I just kept getting SystemUI FC's. Flashed my other one which is on the left and back to normal. I checked the code to make sure I got it all and put it in the right spot. Not sure why its FC's
[Android General] SHADYEDGE:
[MENTION=6504686]viddamusic[/MENTION] [MENTION=4840281]stang5litre[/MENTION]

Starting from scratch...

Q: Do i have to add the whole code from status_bar into my status_bar mine is customized with some tweaks. Is it possible to indicate what part of the code is the most important to add or is necessary to add all and replace? Thanks
[Android General] SHADYEDGE:
Great.... That's mean I just need to add the red line from your code and Bingo!
[Android General] SHADYEDGE:
I got error trying to compile Secsettings.apk

See logs please
[Android General] Ticklefish:
You have two strings that are defined twice in strings.xml. Here's the error section of your log:

C:\TickleMyAndroid\_WorkArea1\_working\SecSettings2.apk\res\values\strings.xml:6080: error: Resource entry ok is already defined.
C:\TickleMyAndroid\_WorkArea1\_working\SecSettings2.apk\res\values\strings.xml:3850: Originally defined here.
C:\TickleMyAndroid\_WorkArea1\_working\SecSettings2.apk\res\values\strings.xml:6081: error: Resource entry cancel is already defined.
C:\TickleMyAndroid\_WorkArea1\_working\SecSettings2.apk\res\values\strings.xml:370: Originally defined here.
[Android General] Linuxx84:
Hi guys, I tried this guide on jb 4.1.2. I made all perfect but I tried to insert the string in tw_status_bar.xml and systemUI go in crash. I tried to insert in status_bar.xml and now there's no crash but I can't see network traffic in statusbar. Of course I enable it in Settings but nothing. Am I wrong in something?
[Android General] mmtrt:
Brilliant mod, I've successfully created both SystemUI and SecSettings all is working well but my setting is showing fc when I type the alphabet n N both tried separately then it instantly fc setting, other than it does show network traffic when other words searched from network traffic description and no word from starting with n works.
[Android General] Linuxx84:
Anyone please?
[Android General] Linuxx84:
Guys I attach my logcat...
[Android General] Linuxx84:
Solved with another and fast mod tutorial.
[Android General] Sun Shower:
Thank you for this useful guide, can I add it in my custom ROM?With a proper credit of course.

BTW, I don't figure out what does the inactivity threshold mean?I am using a ROM which is use the same network traffic as yours ,maybe the author did use it, when I enabled the auto hide checkbox ,the traffic is not showing even the network is active.
[Android General] sellsky:
Thanks Morningstar for this mod. I spent a few hours learning how to deal with apks just to get this counter :) I use latest CM 12.1 for P8000 by BlueFlame4, everything is nice and smooth.

Two lines are displayed perfectly out of the box. In single line mode, however, text appears unaligned,

so you might want to add android:gravity="center|end" attribute to your NetworkTraffic entry:

<com.android.systemui.statusbar.policy.NetworkTraffic android:id="@id/networkTraffic" [B]android:gravity="center|end"[/B] android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" />

This breaks nothing I guess, so Morningstar would you add this to OP?

And one more, I put this NetworkTraffic entry to signal_cluster_view.xml so counter is displayed on expanded status bar as well. Text appeared shifted down,

this is due to android:layout_height="wrap_content" in include in system_icons.xml. Replacing it with android:layout_height="fill_parent" solves the problem:

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

↓

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

That's it. Thanks :)
[Android General] manix01:
HELLO!

For lazy guys like me, there is not a flash-able zip for status bar network traffic ?

Regards
[Android General] Ticklefish:
Doubtful. This is the sort of mod that involves making code changes to your APK. Unless you can find somebody with this mod who has exactly the same SystemUI.apk and Settings.apk as you, you're not going to get a flashable ZIP.

This mod does take a while to do, but it's worth getting used to doing it. If you can master modding your app's, there's so much you can do to them!
[Android General] stang5litre:
I just can't get it to be to the left of my WiFi no matter where I put it. Still trying but works perfectly all the way to the left lol.