yashsingh1/xdaforums huggingface dataset:
[Android General] shootermc77:
Is it on nougat possible to get multi color Signal/Data Icons?

I tried this Guide but i had no luck. Not realy a noob, but new in theming. And Note 8 is realy diffrent to the note 4.

I know this is more for S7 phones, but i get no answer in all other sections^^.

https://xdaforums.com/showpost.php?p=66779070&postcount=6139

Thx in advanced
[Android General] stangdriver44:
This is a common occurrence when working a guide that can be used for multiple devices.

I personally look at the guides to be a referance and try to understand what the code that is being added does, how it functions.

When you understand what the code does, you can find new places to use it for something you've thought would be useful!

Give it time, stick with it and it will click soon.

For your situation you will see devs refer to this as "adapting" your code with surrounding code.

So that means you need to reed up and down a few lines, sometimes a complete method.

Notice the patterns and adapt the new code so it blends into yours.

If you look at your code looks like something definitely doesn't fit in and its all scrambled up right where you added the new stuff.

Hope that helps.

Good luck

Try this one. The smali works fine.

Of course you can. The method for coloring depreciated pretty much with MM due to the SB 2 tone tinting for light and dark.

You would be better to read up on the 6th gear mod repository section by devs [MENTION=5493353]Wuby986[/MENTION] and [MENTION=4714483]daxgirl[/MENTION].

The knowledge gained from there is so valuable and will be used for the rest of your development endeavours!

The info can look a little much at firsr and thats ok. Just read it and move on for now. Keep learning and go back and read 6th gear again and again. It will be worth it.

Have fun!
[Android General] shootermc77:
I know that section, thanks! Working with it since month. My nain problem is the language. Some times i dont understand some words, sometimes google translate give me strange translations^^.

I now have a clean SystemUI to try again.

Then i tried it again and again...... hope it works in the near future^^
[Android General] :
Thank u so much for your guidance and advice. Glad to know I was on the right path to making it adapt to the surrounding code.
[Android General] whitelightning76:
Is it possible to get it working with proper text below the grids and only one selected instead of 3 ?
[Android General] LiquidT:
Did you ever get an answer for this question? I have the same problem
[Android General] ANDROIDXFOREVER:
hi bro thanks for guide but recompilating I had this attached file text error if you can help me thank you

my log : https://www.androidfilehost.com/?fid=745849072291688568
[Android General] By Zonik:
Upload your UI and send me to review it
[Android General] ANDROIDXFOREVER:
thank you for help i send my file :https://www.androidfilehost.com/?fid=673791459329061755
[Android General] By Zonik:
Only flash for recovery and tell me if work https://www.mediafire.com/file/59z6uxggdgb9mvb/SystemUI Grid Mod .zip
[Android General] ANDROIDXFOREVER:
work great thanks brother I'm sending you a beer for my health see you from your paypal :D:good::good::good::good::good::good:
[Android General] doulc:
can bluelight filter be ported?

We need a Godfather to show the the guide even if it take to modify kernel
[Android General] BlackMesa123:
In order to get native blf you have to edit in kernel mdnie in panel driver
[Android General] doulc:
wow that's quick, 1 file to edit only?

video\fbdev\exynos\decon_7870\panels\mdnie.h

video\fbdev\exynos\decon_7870\panels\mdnie_lite.c

video\fbdev\exynos\decon_7870\panels\mdnie_lite_table_a3xe.h

video\fbdev\exynos\decon_7870\panels\mdnie_lite_table_a3y17.h

video\fbdev\exynos\decon_7870\panels\mdnie_lite_table_a7max.h

video\fbdev\exynos\decon_7870\panels\mdnie_lite_table_a7xe.h

video\fbdev\exynos\decon_7870\panels\mdnie_lite_table_degas2.h

video\fbdev\exynos\decon_7870\panels\mdnie_lite_table_gtactive2.h

video\fbdev\exynos\decon_7870\panels\mdnie_lite_table_j5y17.h

video\fbdev\exynos\decon_7870\panels\mdnie_lite_table_j7lite.h

video\fbdev\exynos\decon_7870\panels\mdnie_lite_table_j7pop.h

video\fbdev\exynos\decon_7870\panels\mdnie_lite_table_j7xe.h

video\fbdev\exynos\decon_7870\panels\mdnie_lite_table_j7y17.h

video\fbdev\exynos\decon_7870\panels\mdnie_lite_table_on7xe.h

video\fbdev\exynos\decon_7870\panels\mdnie_lite_table_s5neo.h
[Android General] stang5litre:
Has anyone had success hiding the lock screen clock on a s7e on N? I can get everything but that. Thanks in advance

stang5litre 5.0 Edition Roms
[Android General] BlackMesa123:
mdnie.h, mdnie_lite.c and mdnie_lite_table related to your device
[Android General] doulc:
Do the framework.jar or service.jar required to be edited? If yes can you help to point out which smali?
[Android General] BlackMesa123:
They doesnt require edits. Just kernel does
[Android General] jazzespresso:
why's so? if flash it thru recovery top of our existing ROM works, but if we include it moded systemUI app in flash zip ROM and do clean install, it does not, bootloops...any idea?
[Android General] By Zonik:
That is the problem of recompilation and the tool you are using.

In order to work in a clean installation you must recompile the SystemUI with original signature (I use TMA https://xdaforums.com/showthread.php?t=1633333) once you recompile with original signature you will not have bootloop problems. (This is necessary in nougat)

The same is with SecSettings2 / SystemUI and other system apks
[Android General] XxViRUsPRO:
Hi Guys A New Problem Face Me Please Help!

My SystemUI If I Put It Manally In System/Priv-app/SystemUI When The Phone Booted And Fix Perms It Works Perfectly But If I Create A Flash Able Zip To Flash The SystemUI When It Boot It Show Android Staring..... Black Screen No Status Bar SystemUI Not Working

Even I Have Extract META-INF Form Original SystemUI And Add It Into Moded One!
[Android General] edzamber:
It the inverse : drag and drop what you mod from recompiled SystemUI to original one.

Exemple if you mod smali, res/values and res/layout, drag and drop classes.dex, ressources.arsc and res/layout from recompiled to original one.
[Android General] XxViRUsPRO:
Awsome Thanks Bro its Working Im Using Latest INS SystemUI Size:31.09MB

I Have Use Your Method But Same Result Black Screen Then Use Old INS SystemUI Size:31.07MB And Use Same Method It Works Perfectly!
[Android General] edzamber:
Happy that working [emoji2]

Yes you need to use Stock SystemUI (unmodded) and drag and drop from recompiled one.
[Android General] jazzespresso:
i am using that tool and when recompiling, i am recompiling with original signature option in Tickle My Android, and then include moded framework files into my ROM zip and then I do clean install. It flashes without an error, and then stuck on Samsung logo. I remove moded framework files from ROM Zip and place orginal stock ones, and re-do the clean install, it installs and works OK.

now, here's where the things get interesting: if I use my ROM zip (root, deodexed..etc..) with original framework files (un-moded), all good, right? and then I go head setup devices..etc...and then reboot into custom recovery and this time I flash moded framework files top of it, this works.!?..puzzling here

so if I include moded framework files (framework.jar, framework-res.apk, and service.jar) in ROM zip, and flash it, it bootloops, but if I included orginal framework.jar, framework-res.apk, and service.jar, it works, and then if I separately flash the moded framework files (framework.jar, framework-res.apk, and service.jar) after I install the ROM and setup, it works...

this is quite puzzling me...haven't figure out what's causing this...could be something simple that I am overlooking..
[Android General] edzamber:
Did you disable Signature Check in both services.jar and core-oj.jar ?

https://xdaforums.com/showthread.php?p=66207890
[Android General] jazzespresso:
ahh!? that may be it!!, let me try that

---------- Post added at 02:13 PM ---------- Previous post was at 01:52 PM ----------

that a look at this part below (smali\com\android\server\pm\PackageManagerService$ InstallParams.smali)

which one here to change if-nez to if-eqz since there are more than 1

[/COLOR][/INDENT]
[Android General] edzamber:
Don't care about this smali, it don't working anymore on Nougat. Only mod the first part for services.jar (PackageManagerService) and mod core-oj.jar
[Android General] jazzespresso:
yeah I kinda figure out...I did other part and see if this will help on my issue
[Android General] jazzespresso:
does any of you know this mod still works on 7.0/7.1.1?

https://xdaforums.com/showpost.php?p=67304320&postcount=7122
[Android General] kin201303:
not works on 7.0

4pda have this mod still works on my s8+ 7.0
[Android General] jazzespresso:
can you share the link?
[Android General] doulc:
I think they require editing. I got my kernel ready and booted up. It's now showing and no more crashing. However it do not function just yet.

Hello Godfather please point out the fimal file needed to edit..
[Android General] BlackMesa123:
Are you using stock or a rom that got blf?
[Android General] doulc:
Samsung rom but no bluelight filter because if I take S7 to port for example armv8 don't match my phone processor.

That's why that rom(I'm using now) don't have bluelight filter by default but after edited kernel still not showing.

Some file need to modify like services.jar or framework.jar ?
[Android General] jazzespresso:
deleted
[Android General] BlackMesa123:
It's normal you dont have blf. You need to port a firmware from a phone that haves blf or edit manually system for add it. How do you think I ported Note8 firmware to J5 2015 (32bit)??
[Android General] doulc:
I mean even I added the app back, turn on and off of the toggle do nothing.

That is fantastic. I once tried porting C9 pro(64bit) to 32bit, as a result lot of apps was missing which I later found due to armv8 not supported by my phone. In some case porting rom cause open web browser get into reboot, cannot set phone password, definitely not an easy job.

Advanced Seven rom is example someone port it to rom without blf. But I have no idea what is/are the system file to edit?
[Android General] BlackMesa123:
Add blf apk and probably frameworks edit
[Android General] snifing:
works... if you restart your phone,you must clear data Weather2017 in application manager
[Android General] doulc:
I am so lost, do both aod and blf need to mod framework.jar to get it working?

I am targeting framework.jar or services.jar but I didn't get anything when compare both jar's smali

Can those godlike experienced master take a look at this for always on display and bluelight filter please?

I have both services.jar and framework.jar from my phone(no blf and aod) and targeting phone(with blf and aod)

services.jar

https://mega.nz/#!LUUVjbxZ!KqP5W7M23PKDt5jhkAiYXjwj1h2IwvGl-cW42u4T6nE

framework.jar

https://mega.nz/#!eU8DWaIb!HEjloERDK91VpNXvYupIdEb4X-7ii-oPKXcp9huf__o

.
[Android General] Albe96:
What the smalis for? did you changed anything in those smalis?
[Android General] jazzespresso:
same issue with [MENTION=5893445]bunnys7679[/MENTION] I cleared data Weather2017, still nothing...

not sure if we putting mickles smali in right place, do you have it like this on yours?

TickleMyAndroid\_WorkArea1\_working\Mod_SystemUI.apk\smali\mickles
[Android General] snifing:
yes SystemUI/smali/mickles , in application manager, you need to clear data of the weather and you should try to restart your phone, here is the second option but I don't have time to add instructions..

you can compare my keyguard_servicebox_container.xml only the weather on the lock screen
[Android General] jazzespresso:
well it start working...it has been displaying like what [MENTION=5893445]bunnys7679[/MENTION] screenshot has, all sudden, it shows now...

of course, now clock moved up all the way top, trying to center both clock and weather in middle of screen...
[Android General] snifing:
you can move the weather above the clock, I don't know how to delete the label, Cloudy,Sunny,Snow,Fog.. :p

you can compare my keyguard_servicebox_container.xml
[Android General] ANDROIDXFOREVER:
hello brother i tried comp compiling everything ok but the weather in the block screen does not appear android 7.0 s6 edge plus
[Android General] snifing:
locating method - high accuracy,and if you use the clock on the lock screen horizontally you will need to return the default value

SystemUI/res/values/dimens.xml

<dimen name="servicebox_page_small_height">201.0dip</dimen>
[Android General] ANDROIDXFOREVER:
i use vertical clock but meteo is lost I do not understand how can I ever go through my systemUI? thanks

edit: https://www.androidfilehost.com/?fid=817906626617949312
[Android General] shootermc77:
I need to add this method to get it work on my Note 8.

Saw it in your guide above the blue

method set CarrierLabel Landroid/view/View;)

.method public setCarrierLabel(Landroid/widget/TextView;)V
.locals 0

iput-object p1, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mCarrierLabel:Landroid/widget/TextView;

return-void
.end method
[Android General] edzamber:
You can also force font to match with selected system ones like this :

Fonts are define in KeyguardSingleVerticalClockView.smali and KeyguardSingleClockView.smali

So Change the twice Clock2017L for roboto-condended here [emoji6]
[Android General] AbrahamGC:
Woww nice bro [emoji4][emoji4]

Enviado desde mi SM-N950F mediante Tapatalk
[Android General] Albe96:
Nice! Is this gonna work for 7.0 N aswell?
[Android General] AbrahamGC:
I think yess

Enviado desde mi SM-N950F mediante Tapatalk
[Android General] Albe96:
Sure? :confused: :eek:
[Android General] AbrahamGC:
I can't test bro I have 7.1.1, it's fastest try than ask here [emoji23][emoji23]

Enviado desde mi SM-N950F mediante Tapatalk
[Android General] Albe96:
LMAO.Feel no stress.Thanks for sharing! ;) Will test my own :good:
[Android General] Albe96:
[MENTION=7393522]AbrahamGC[/MENTION] it seems like it'll work on 7.0 N too.I modified and got no FCs on SystemUI.So I think it's a success! [emoji16] Good Job!
[Android General] jazzespresso:
now, what would be so lovely here if this can be changed any fonts using ROM Control, instead of hard coding the font name in smali:D
[Android General] jazzespresso:
Phone does not have landscape mode, but some custom ROMs has rotate turned on landscape too, on lock screen, then this mode gets tricky, since it does not have landscape dimension.

as example, on my galaxy tablet, we have both, same logic can be applied to phone too, then it looks OK

G:\TickleMyAndroid\_WorkArea1\_working\SystemUI.apk\res\[COLOR="Red"]values-sw768dp-land-v13[/COLOR]\dimens.xml (1 hits)
Line 12: <dimen name="servicebox_page_small_height">195.0dip</dimen>
G:\TickleMyAndroid\_WorkArea1\_working\SystemUI.apk\res\[COLOR="red"]values-sw768dp-v13[/COLOR]\dimens.xml (1 hits)
Line 60: <dimen name="servicebox_page_small_height">292.0dip</dimen>
[Android General] lalith sai:
How to add notification color customizations to a rom?
[Android General] tutibreaker:
Any way to get ambient display in nougat? i try some tutorials here but only turn on screen light but no image
[Android General] asc1977:
Your Welcome

I did again to make a place for new Android. But this time more changes like from Lollipop to MM or Grace
[Android General] asc1977:
Adaption of Gear device info in notification panel

Go to this post and follow guide with the followed changes

Step 3

look for the ID of the carrier label. its changed on nougat. Change it in lines like it is on nougat and do rest same like in step3

Step5 part2 you can ignore, fix since beta 6 find here

Have fun and thx to [MENTION=4714483]daxgirl[/MENTION]
[Android General] asc1977:
Adaption of 6htGear Carrier label preferences - as ADDITION to 6thGear device info mod

Goto here and follow exactly guide. only change is that ID of carrier label has chamged. so compare and correct it

Thx to [MENTION=4714483]daxgirl[/MENTION] for guide
[Android General] Umair Ahmad:
How to Make Data Usage Center From Right in Notification Panel.. Credit [MENTION=4596062]asc1977[/MENTION] Bro

First of all Add Following Csc line in your Other.xml or Feature.xml

<CscFeature_SystemUI_SupportDataUsageViewOnQuickPanel>TRUE</CscFeature_SystemUI_SupportDataUsageViewOnQuickPanel>

Now Decompiling and Recompiling

1 : Decompile SystemUI.apk

2 : Navigate to res\layout

3 : Search for data_usage_view_layout.xml and Open it Notepad ++

Now Find the Red

<com.android.systemui.qs.DataUsageView android:textAppearance="@style/TextAppearance.DataUsageView" [COLOR="Red"]android:gravity="end"[/COLOR] android:id="@id/data_usage_view" android:paddingBottom="@dimen/data_usage_view_padding_bottom" android:visibility="visible" android:layout_width="fill_parent" android:layout_height="@dimen/data_usage_view_height" android:includeFontPadding="false" android:paddingEnd="@dimen/data_usage_view_padding_end"

Replace with Blue

<com.android.systemui.qs.DataUsageView android:textAppearance="@style/TextAppearance.DataUsageView" [COLOR="Blue"]android:gravity="center"[/COLOR] android:id="@id/data_usage_view" android:paddingBottom="@dimen/data_usage_view_padding_bottom" android:visibility="visible" android:layout_width="fill_parent" android:layout_height="@dimen/data_usage_view_height" android:includeFontPadding="false" android:paddingEnd="@dimen/data_usage_view_padding_end"

Save and Recompile... Enjoy.... :laugh:

I only Tried it On Android Nougat 7.0...
[Android General] daxgirl:
I believe the correct gravity for this matter is center_horizontal. Also we have an extensive mod allowing to change appearance and position of data usage on the fly. I believe it was even adopted to nougat on this thread.

https://youtu.be/vulJsim6dIs
[Android General] grzegorz354:
How to hide (Power Menu) Power Off Button with a Toggle

Services.jar

open smali/com/android/server/policy/GlobalActions$PowerAction.smali

Replace method with below

.method public showConditional()Z
.locals 4

const/4 v0, 0x0

const/4 v1, 0x1

iget-object v2, p0, Lcom/android/server/policy/GlobalActions$PowerAction;->this$0:Lcom/android/server/policy/GlobalActions;

# getter for: Lcom/android/server/policy/GlobalActions;->mContext:Landroid/content/Context;
invoke-static {v2}, Lcom/android/server/policy/GlobalActions;->access$500(Lcom/android/server/policy/GlobalActions;)Landroid/content/Context;

move-result-object v2

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

move-result-object v2

const-string/jumbo v3, "power_menu_power"

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

move-result v2

if-ne v2, v0, :cond_0

:goto_0
return v0

:cond_0
move v0, v1

goto :goto_0
.end method

Add method with below GlobalActions.smali

.method static synthetic access$500(Lcom/android/server/policy/GlobalActions;)Landroid/content/Context;
.locals 1

iget-object v0, p0, Lcom/android/server/policy/GlobalActions;->mContext:Landroid/content/Context;

return-object v0
.end method

RomControl

<com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:title="Power off" android:key="power_menu_power" android:defaultValue="true" android:summaryOn="on" android:summaryOff="off" />

thx. [MENTION=4596062]asc1977[/MENTION]
[Android General] asc1977:
thx for your guide, but one thing is missing. if you do this guide you have to readd the method in GlobalActions.smali if its not done at any mod before. please add it to your guide

.method static synthetic access$500(Lcom/android/server/policy/GlobalActions;)Landroid/content/Context;
.locals 1

iget-object v0, p0, Lcom/android/server/policy/GlobalActions;->mContext:Landroid/content/Context;

return-object v0
.end method
[Android General] grzegorz354:
Adaption Open all toggles in the Quickpanel swipe from the right side of the screen (without double swipe).

Goto Guide

Thx. to [MENTION=7308585]kep2008[/MENTION] for guide

Adaption How to add virtual lock, recent and home button to statusbar

(with RomControl settings for on/off and position)

Goto Guide

Thx. to [MENTION=4596062]asc1977[/MENTION] for guide
[Android General] necrosauron:
master!!!!! it's awesome to see your work here ...

now things will be fun....

best regard

Enviado desde mi SM-G935F mediante Tapatalk
[Android General] fivanbe:
Perfect [MENTION=4985020]Grouxho[/MENTION].

Thank you very much.

Enviado desde mi SM-G935F mediante Tapatalk
[Android General] asc1977:
Did you tried that on Nougat. Because buttons are there but i cant switch on/off
[Android General] gvmiguez:
Skip tracks is working awesome, great mod Grouxho [emoji122] [emoji106]
[Android General] grzegorz354:
So with me working properly. Your mod is Super
[Android General] asc1977:
You are on s7 nougat beta4?
[Android General] grzegorz354:
Yes n7 b4 by ambasadii
[Android General] asc1977:
Thats weird. I try again
[Android General] josechufa:
Thanks Master, we look forward to new options of this incredible Mod always waiting for you.

Enviado desde mi SM-G935F mediante Tapatalk
[Android General] boostermbkking:
I have this error when recompile:

SystemUI.apk\smali\com\android\systemui\SystemUIRune.smali[2367,4] There is already a label with that name.
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/systemui/SystemUIRune.smali

where is my mistake?
[Android General] gaganbajwa:
How to add advanced power menu in stock j7 pro
[Android General] tutibreaker:
must be too hard for you take a read the comments https://xdaforums.com/showpost.php?p=74073735&postcount=246
[Android General] Danny Beats:
Hello friend, my status bar everything is written with codes, numbers and letters look, modified it as it is written in your guide?
[Android General] LYNTUK:
Is this works with capturing in another resolution (like in WQHD in HD)?
[Android General] edzamber:
It working on any resolution. Nothing to do with display but with flag_secure.
[Android General] tngcphng:
how to mod unlimited call log in framework.jar??
[Android General] Albe96:
Nice Job Parth! ?

But How To Control It With Rom Control?

Do The Following -->

.method public setDoNotShowStrainPopup () V
.locals 7

const / 4 v4, 0x0

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

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

move-result-object v1

const-string / jumbo v2, "shown_max_brightness_dialog"

const / 4 v3, -0x2

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

move-result v1

if-eqz v1,: cond_0 [U][B]# change this line to--> if-nez v1,: cond_0[/B][/U]

const / 4 v0, 0x1

: goto_0
iget-object v1, p0, Lcom / android / systemui / settings / BrightnessController; -> mControl: Lcom / android / systemui / settings / ToggleSlider;

invoke-virtual {v1, v0}, Lcom / android / systemui / settings / ToggleSlider; -> setDoNotShowStrainPopup (Z) V

return-void

: cond_0
const / 4 v0, 0x0

goto: goto_0
.end method

ROM Control V2:

<com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:title="High Level Brightness Dialog" android:key="shown_max_brightness_dialog" android:defaultValue="false" android:summaryOn="Show" android:summaryOff="Hide" />
[Android General] parth111999:
Lol why having control over that...?

That warning is useless
[Android General] Albe96:
Some people are battery friendly.and there's a connection ?.Also true it's useless
[Android General] kin201303:
work my S8+

don't change all,only add the key to romcontrol

<com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:title="High Level Brightness Dialog" android:key="shown_max_brightness_dialog" android:defaultValue="false" android:summaryOn="Hide" android:summaryOff="Show" />

BrightnessController$BrightnessObserver.smali (have the key)

const-string/jumbo v0, "shown_max_brightness_dialog"

BrightnessController.smali (have the key)

const-string/jumbo v2, "shown_max_brightness_dialog"