yashsingh1/xdaforums huggingface dataset:
[Galaxy S6 General] Martillero:
The problem is your passing your signal_cluster as a linearlayout...

This should work:

.method setModsignalclusterview()V
.locals 7

iget-object v1, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;

invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v2, "modsignalclusterview"

const/4 v3, 0x1

invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v1

if-nez v1, :cond_0

const v3, 0x8

iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v6, 0x7f0e0332 ## <public type="id" name="signal_cluster" id="0x7f0e0332" />

invoke-virtual {v5, v6}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v4

check-cast v4, Lcom/android/systemui/statusbar/SignalClusterView;

invoke-virtual {v4, v3}, Lcom/android/systemui/statusbar/SignalClusterView;->setVisibility(I)V

goto/16 :goto_0

:cond_0
const v3, 0x3

iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v6, 0x7f0e0332 ## <public type="id" name="signal_cluster" id="0x7f0e0332" />

invoke-virtual {v5, v6}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v4

check-cast v4, Lcom/android/systemui/statusbar/SignalClusterView;

invoke-virtual {v4, v3}, Lcom/android/systemui/statusbar/SignalClusterView;->setVisibility(I)V

:goto_0
return-void
.end method

Put your invoke and key on settingsobserver and that should be all.

Anyway this shoudn't hide the signal cluster from lockscreen. You will need to get the object from here i guess:

iget-object v[I](x)[/I], p[I](x)[/I], Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mKeyguardStatusBar:Lcom/android/systemui/statusbar/phone/KeyguardStatusBarView;

Cheers.
[Galaxy S6 General] asc1977:
Thx it work. Now starting with second part for showing right side signal. If i finished i posted my first smali guide for

HOW TO BUILD A SWITCH FOR SWITCHING SIGNAL AND WIFI FROM RIGHT TO LEFT

[emoji6] [emoji1] [emoji6] [emoji1] [emoji6] [emoji1] [emoji6]
[Galaxy S6 General] asc1977:
[MENTION=4830018]Martillero[/MENTION] [MENTION=1042140]tdunham[/MENTION] [MENTION=5405448]thereassaad[/MENTION] [MENTION=6681786]sheard[/MENTION] [MENTION=5198767]ikrom[/MENTION]

please can you help me

its very important for me to have a method to switch between left or right signal and wifi. i tried now several hours and find no solution. can anybody help please. i reached to hide signal but not to switch to other side. see posts above
[Galaxy S6 General] boostermbkking:
I have some problem when recompile secsetting2.apk there are any guide or fix for this?
[Galaxy S6 General] sheard:
I don't have a time for now ???

as i am busy with my web project till 10th may. So sorry i can't help until 10 may if no one will help i will look on it but i am sure that [MENTION=4830018]Martillero[/MENTION] knows switcing too lol ?
[Galaxy S6 General] Wuby986:
I had some trouble with something similar in the past.. i can suggest you to make both -left and right - visible at first, then you can add an if condition with setVisibility accordingly with database change handled by observer.. i did that for the clock in java then translated to smali with android studio plugin java2smali

Inviato dal mio SM-G935F utilizzando Tapatalk
[Galaxy S6 General] asc1977:
for the clock !!! great. can you share here a guide for S6 because that was my second project after the signal and wifi
[Galaxy S6 General] Wuby986:
Last time i did was for 5.1.1 and also i don't have s6 anymore.. i could try it on s7 and i think there wouldn't be so much difference, but i have some other project to finish first

Inviato dal mio SM-G935F utilizzando Tapatalk
[Galaxy S6 General] Martillero:
Oh, i didnt know that was your gold. So u want a switch from left to right signal cluster. I can try to make a guide if u want.

I have it working, but i dont have mm, so i dont know if something has changed (it should work just fine).

I will try to put it all togheter cause i suck on guides.
[Galaxy S6 General] asc1977:
That was very nice if you can so i can take a look that i can get it work on MM. I really really want to have it. I tried it the hole day
[Galaxy S6 General] JonathanRAZ:
How can i verify if signature check is disabled or not and installing older apps over new ones i did it and recompile good and flashed it and wiped dalvik and all but cant verity i see apps install but not over system apps
[Galaxy S6 General] asc1977:
Please have anyone a idea how to do that the lockscreen statusbar match the homescreen statusbar? I have much mods on statusbar on homescreen and want they also on lockscreen.
[Galaxy S6 General] ravian29:
Can you please check this mode with setting password on the device ? when there is password/fingerprint set, there is no way to unlock the device. After unlocking screen flashes and locks it self again and this goes in the loop unless a fresh install/restoring twrp backup or deleting the lockscreen files from data to bypass the password screen
[Galaxy S6 General] kumbangdesa:
Is there any guide to make cpu temp in statusbar?

Sent from my Marshmallow phone
[Galaxy S6 General] sheard:
it isn't only because of this it is because of systemui doesn't recompiled 100% correctly, what i mean it is apktool problem .because i got this problem before without ram cleaner mod . i solved this ui problem and it taked 2 hours for me solving because u need always clean install and recheck if it works . now i have ram cleaner without sysui restarting problem...
[Galaxy S6 General] ravian29:
i am already testing this mod on clean install, i think recompilation process is fine as if i do not use lockscreen password then SystemUI works flawlessly and there is no fc/restarting bug. It only comes when there is password protection. Can you please set password and see your mod working fine ?
[Galaxy S6 General] sheard:
i know it mate and [MENTION=1649452]geiti94[/MENTION] got this problem too what he done is this:

what i done is this: i always backup all modded systemui like this .sysui1 sysui2 sysui3.....sysui99 and i tested which one working and re added all new mods to working ui but with copy and paste only modified files with 7zip .

and yes it is fully fine for me even with clean install with fingerpring and pin
[Galaxy S6 General] ravian29:
great, i also do the same by making step by step backup's of my modifications, its very helpful to revert and locating and understanding the bug. I think i also should try with changing apktool version. This is the only step i did not do yet, lets hope for the best
[Galaxy S6 General] edzamber:
How to transform the permanent non-removable notification into Removable notification

Here is original guide

Many thanks to @ikrom​
[Galaxy S6 General] royorbs3:
Thanks for this guide.. i think I am having problem with my systemui file not having the right permissions when copied bc I'm always getting errors or not getting a full decompile with a res folder that doesn't have a value folder inside. Latest error is cannot find file or director . I've used a few different versions apktool and multitool.

Any chance someone would do a clear lock screen zip ?
[Galaxy S6 General] nguyentankiet:
Use this apktool

https://mega.nz/#!5phmyKDL!7QCTCu_3VqiQzQrn-v-fm-IZq7jxDTy-Dj0McORt9fA
[Galaxy S6 General] Johnny camaro:
Which theme are you using?
[Galaxy S6 General] edzamber:
NewBlackDesignTheme 2
[Galaxy S6 General] Johnny camaro:
Thanks.
[Galaxy S6 General] royorbs3:
Thanks ill give it a try.. There are two apktool files??

edit: didn't work
[Galaxy S6 General] JonathanRAZ:
Hey bro question about this why when i change a color if is yellow change it to red it changes but the colorpicker is still yellow i have to press back and enter mod so it changes
[Galaxy S6 General] bunnys7679:
Why that looks at me different. Although Hab OK and can not enter a color code but do not confirm

Gesendet von meinem SM-G925F mit Tapatalk
[Galaxy S6 General] kep2008:
Apktool v2.1.1 (Released May 7, 2016).

http://xdaforums.com/showpost.php?p=66745194&postcount=4163
[Galaxy S6 General] edzamber:
Hi all,

Does someone know how to have the sms receipt in toast message by Framework-res.apk, framework.jar or services.jar mod ?

I mean replace of receiving a normal message just have a message that displays some kind seconds "message received by X by a toast as can do Message Delivered Toast Notifications

http://repo.xposed.info/module/com.mohammadag.deliverytoastnotification

But this module is not compatible anymore...

Many Thanks,

Ed.
[Galaxy S6 General] :
hi guys, what tool are you using to decompile apks and jars? I tried both apktool 2.1.1 and batchapktool (the one in second post) but they didn't work for me.
[Galaxy S6 General] asc1977:
Both work. Did you install the frameworks first?
[Galaxy S6 General] nguyentankiet:
I edited network speed text change to white color default. You want it?
[Galaxy S6 General] asc1977:
Yes please
[Galaxy S6 General] sac23:
Guide Toggle Colors Mod

so i have couple things on 6.0.1 i thought id share

in systemui find QSTileView.smali

find

.field private final mTileSpacingPx:I

.field private mToggleColor:I ++

then find

invoke-direct {p0}, Lcom/android/systemui/qs/QSTileView;->updateTopPadding()V

invoke-virtual {p0}, Lcom/android/systemui/qs/QSTileView;->setToggleColorOverlay()V + +

then find

.method protected handleStateChanged(Lcom/android/systemui/qs/QSTile$State;)V

change locals from 2 to 3

then find this line

iget-object v0, p0, Lcom/android/systemui/qs/QSTileView;->mIcon:Landroid/view/View;

check-cast v0, Landroid/widget/ImageView;

invoke-virtual {p0, v0, p1}, Lcom/android/systemui/qs/QSTileView;->setIcon(Landroid/widget/ImageView;Lcom/android/systemui/qs/QSTile$State;)V

add this right after Please Make Sure it matches surroundings

iget v1, p0, Lcom/android/systemui/qs/QSTileView;->mToggleColor:I ++

sget-object v2, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode; ++

invoke-virtual {v0, v1, v2}, Landroid/widget/ImageView;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V ++

add this at bottom

.method setToggleColorOverlay()V

.locals 3

iget-object v0, p0, Lcom/android/systemui/qs/QSTileView;->mContext:Landroid/content/Context;

invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

const-string v1, "toggle_on_color"

const v2, -0x5214ff

invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v0

iput v0, p0, Lcom/android/systemui/qs/QSTileView;->mToggleColor:I

return-void

.end method

and RC add

<com.wubydax.romcontrol.prefs.ColorPickerPreference android:title="Toggle Color" android:key="toggle_on_color" android:summary="Choose the color of toggle" />

thats it

thanks to aceqott for original Mod

ill make tutor on back round colors soon

enjoy guys
[Galaxy S6 General] nguyentankiet:
here, thank mate for guide
[Galaxy S6 General] Goldie:
You missed the part to invoke the method to put the color in mToggleColor
[Galaxy S6 General] sac23:
yup just saw that adding now thank u bro
[Galaxy S6 General] asc1977:
Can you please also a switch to enable or disable the mod that we can disable it to use themes. Like in the mod for expanded view bg color. Its with the "link_colors"

That was very nice
[Galaxy S6 General] asc1977:
Oh Goldie nice to see you here. Its long time i see you last in note3 thread with your great modded tool which was really better as xposed.
[Galaxy S6 General] Goldie:
I saw you ask ikrom the poster of the guide something on this and he ignored you. Cant think why...

"link_colors" is irrelevant. That key is just because the mod originated in Alliance and we use that with all our pickers. This one uses it out of context as it doesn't link anything. Obviously "enable_colors" or some such key would be the sensible choice in this instance.

Just add a new section that gets your keys value from the database and then if-eqz to a cond straight after your colorfilter or whatever
[Galaxy S6 General] asc1977:
I also dont know why he does....

Hmm diesnt matter. I learning smali and didnt understand so much this time but my problem is always if i havent a switch for colors to jump over that part themes dont work so my rom users have problems. Sec postet that guide for toggle color and for that i also need a toggle to jump over colorchooser to deactivate it. I tried bit always fc and i havent really the knowledge for that. The linked_color part is nice for me and my rom control. I use it at some mods but for some i need
[Galaxy S6 General] Goldie:
That link color part is just a basic switch, it is easily achievable with my smali thread. Just follow the toggle on/off guide
[Galaxy S6 General] thereassaad:
My friend just delete the editing on NotificationPanelView.smali then do what td & kmokhtar guides say then u can enable/disable the colors from ur rc for UI , then ur users can applied any theme from store & that's won't effect anything ,

[MENTION=3065070]Goldie[/MENTION] my friend really nice to see u back , hope u ok , & everything fine on ur side ,

Respect to u , thanks for everything u did it & u done for us , really appreciated man , ..
[Galaxy S6 General] asc1977:
Where is that guide? Thx anyway before

Where is that my friend? Who are that guides?

Thx anyway before
[Galaxy S6 General] thereassaad:
This

http://xdaforums.com/showthread.php?p=66709631

http://xdaforums.com/showthread.php?p=66448367
[Galaxy S6 General] boostermbkking:
how to move traffic meter in right in the status bar?

Thanks
[Galaxy S6 General] thereassaad:
Just move the editing from status_bar.xml to system_icon.xml
[Galaxy S6 General] asc1977:
I have done this days before and it works. What i need is if a guide havent a switch for colors on or off i want to add and take the part with link_colors and add it and also the cond_0 at end but fc. I also degees locals but wont work. Please take a look in TD thread on the last posts. There you see a example from me which didnt work and i dont know how. I didnt get a answer till now
[Galaxy S6 General] Alexandr Ivanov:
Dear,

Internet speed on the left - this edit status_bar.xml

Right speed Internet - this edit system_icon.xml

Do I understand?
[Galaxy S6 General] boostermbkking:
thanks but how to center in layout, I try to change android:gravity="left" inandroid:gravity="center" and android:gravity="center_horizontal" but there isn't symmetrical, any help?
[Galaxy S6 General] Goldie:
[MENTION=4830018]Martillero[/MENTION] answered it perfectly in the other thread
[Galaxy S6 General] nyfl2004:
Friends, I have tried several different ways to recompile SecSettings. It recompiles ok but still not working on fresh install, only by pushing to system folder. Has anyone been able to successfully perform with a fresh install?
[Galaxy S6 General] thereassaad:
Sorry but what i say mate , ? He ask to change position from left to right means from status_bar.xml to system_icon.xml so can u re read my answer & see mate , sorry but for this misunderstanding .. ??
[Galaxy S6 General] asc1977:
thx for guide but...

dont work nice

not all toggles get colored like bluetooth or airplane mode. dont switch color and all off colors are now black. nfc toggle color also dont switch. i do exactly like guide. did i something wrong or is guide buggy?
[Galaxy S6 General] tdunham:
Yes, it is missing some components.

And additional edits must be made to to disable animations on some toggles or they will not color properly as well.
[Galaxy S6 General] asc1977:
thx, changed in guide
[Galaxy S6 General] geiti94:
not only that. we need to use original systemui signature or the lockscreen problem is here
[Galaxy S6 General] SidRobo:
setting observer issue

hi all. i got force close while choosing color code and the systemui restarted automatically. the same happen when i want to change number of lock screen notification. any idea how to fix?
[Galaxy S6 General] geiti94:
for devs that have a s7 port on s6 or n5 or what ever exynos device pm me and i can give aod modules for kernel. it will not be easy to port it on our exynos kernel but now we have the kernel modules :P
[Galaxy S6 General] nyfl2004:
Never mind folks, my fault. I was trying to substitute a png file for a pio file in SecSettings and it wasn't allowing.
[Galaxy S6 General] ANDROIDXFOREVER:
great idea this tread e guide tnx
[Galaxy S6 General] bunnys7679:
Hi guys

I wanted to edit the SecMms_Epic_Common.apk decompil and recompil. Decompil works but when I recompil I always get errors. Which ApkTool you do it?

Greeting Bunny
[Galaxy S6 General] asc1977:
I tink you need only smali editing so only baksmali and smali. In batchapktool option 04 and 05 [emoji6]

Gesendet von meinem SM-G925F mit Tapatalk
[Galaxy S6 General] asc1977:
[MENTION=2744265]sac23[/MENTION]

Please take a look at this guide

http://xdaforums.com/showthread.php?p=66779070

Wont work perfect on our phone. I posted what happen in same thread there in post 6177

I was very thankful if you can take a look

Btw. Thx for new guide. I will try out later

Gesendet von meinem SM-G925F mit Tapatalk
[Galaxy S6 General] nguyentankiet:
Can you send to me stock deodex systemui s6.

Thank you
[Galaxy S6 General] asc1977:
this png does not ecist in s6edge systemui and also not in your zip.

what to do? a xml file is there. did you forgot to add?

Also there is a recompile error. You missed a Lcom entry at your new small method acess000

I corrected it for me.

Look at your guide. Try to test it by yourself before posting. Not all can repair your guide by itself
[Galaxy S6 General] SidRobo:
as i couldn't find problem, could someone send me his PhoneStatusBar$SettingsObserver pls to compare with myself?
[Galaxy S6 General] SidRobo:
tnx but i couldn't find any problem :(

could you pls link to guide for adding SettingsObserver?

.class Lcom/android/systemui/statusbar/phone/PhoneStatusBar$SettingsObserver;
.super Landroid/database/ContentObserver;
.source "PhoneStatusBar.java"

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/android/systemui/statusbar/phone/PhoneStatusBar;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = "SettingsObserver"
.end annotation

# instance fields
.field final synthetic this$0:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

# direct methods
.method constructor <init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;Landroid/os/Handler;)V
.locals 0

iput-object p1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$SettingsObserver;->this$0:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

invoke-direct {p0, p2}, Landroid/database/ContentObserver;-><init>(Landroid/os/Handler;)V

return-void
.end method

# virtual methods
.method observe()V
.locals 3

const/4 v2, 0x0

iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$SettingsObserver;->this$0:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

iget-object v1, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

const-string v1, "lockscreen_notifications"

invoke-static {v1}, Landroid/provider/Settings$System;->getUriFor(Ljava/lang/String;)Landroid/net/Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V

const-string v1, "toggle_text_color"

invoke-static {v1}, Landroid/provider/Settings$System;->getUriFor(Ljava/lang/String;)Landroid/net/Uri;

move-result-object v1

invoke-virtual {v0, v1, v2, p0}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V

return-void
.end method

.method public onChange(Z)V
.locals 1

iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$SettingsObserver;->this$0:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

invoke-virtual {v0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->loadDimens()V

iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$SettingsObserver;->this$0:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

invoke-virtual {v0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setToggleTextColor()V

return-void
.end method[/HIDE]
[Galaxy S6 General] asc1977:
Its in op at bottom

Gesendet von meinem SM-G925F mit Tapatalk
[Galaxy S6 General] sac23:
@ asc1977 please look in the new zip i uploaded it does have the right pngs this was tested on 3 diffrent uis so i can confirm works

color toggle backround

hope this helps
[Galaxy S6 General] JonathanRAZ:
Code is correctly but it doesnt work on my end when i recompile i add classes dex and resources asrc to the original secsetting and is with original signature i have all the other mods outdorr and all except this one
[Galaxy S6 General] nyfl2004:
Try adding Meta folder and android manifest from original apk to recompiled apk. That's the way I've done it and it works perfect every time
[Galaxy S6 General] JonathanRAZ:
Thank you yes it worked like that i was doing it the other way so just putting androidmanifest and meta inf folder from original apk will work i mean on any mod i can do it like that instead of copying classes dex and resources correct?
[Galaxy S6 General] nyfl2004:
It works for me on all system apks
[Galaxy S6 General] JonathanRAZ:
Ok yeah thanks thats what i meant thank you sorry for bad english
[Galaxy S6 General] nyfl2004:
No worries, your English is fine. Happy modding
[Galaxy S6 General] asc1977:
thx but

you write

.method static synthetic access$000(Lcom/android/systemui/qs/QSPanel;)V
.locals 0

.prologue
.line 83
invoke-direct {p0}, Lcom/android/systemui/qs/QSPanel;->refreshAllTiles()V

but must be

.method static synthetic access$000(Lcom/android/systemui/qs/QSPanel;Lcom/android/systemui/qs/QSPanel$TileRecord;Lcom/android/systemui/qs/QSTile$State;)V
.locals 0

.prologue
.line 83
invoke-direct {p0}, Lcom/android/systemui/qs/QSPanel;->refreshAllTiles()V

return-void
.end method

if not you get a recompile error

can you please also make your guide like i here do with code tags around and please remove the + + at end of files. also please remove smiles in text

thanks for your guide.

did you see that your guide can also change background of tiles?
[Galaxy S6 General] tdunham:
This is because text is not properly formatted with wrap code which I already spoke about that it will not display properly for use on XDA unless it is wrapped.
[Galaxy S6 General] asc1977:
I know. For me no problem but if he deaktivate its easier for copy and paste

Gesendet von meinem SM-G925F mit Tapatalk
[Galaxy S6 General] sac23:
my bad guys ill make sure those are right format next time

also thanks asc1977

for correction
[Galaxy S6 General] asc1977:
Do you correct your guide or i should rewrite it for you? I want to ad to op but only if it right

Gesendet von meinem SM-G925F mit Tapatalk
[Galaxy S6 General] sac23:
ok guide updated enjoy
[Galaxy S6 General] JonathanRAZ:
Need some help with missing eof at '.line'
[Galaxy S6 General] asc1977:
one little last action you need

your colored toggles are not round. its cubic. you need to add to drawable-xxxhdpi-v4 folder the file (png) i attached you here and change your guide to this icon and not to the xml

so replace in your guide the followed text

const v0, 0x7f020630 ## add your public to match "tw_quick_panel_quick_setting_button_round_bg"

with

const v0, 0x7f020630 ## add your public to match <public type="drawable" name="tw_quick_panel_quick_setting_button_round_bg" />
[Galaxy S6 General] asc1977:
Deleted. Wrong thread