yashsingh1/xdaforums huggingface dataset:
[Android General] Grouxho:
Hi.

Well, when you add a + for id, the id entry is generated when compiling. I resolve the resulting id in code through the get identifier way

I do not know what tool you are using but apktool does the work. Anyway, if you are gettirn problems with it remove + and add an entry in ids xml, compile and decompile to see if an id was generated.

And tell me if you are getting an fc or so what it is saying. What device are you on?.
[Android General] Albe96:
Remove "+".Then try
[Android General] gvmiguez:
Its a super mod Grouxho [emoji39][emoji39][emoji39]

View attachment 4527954View attachment 4527955
[Android General] Grouxho:
Guide - Per App Led Color & Pulse and quiet hours for notification led, sounds and vibration

This mod allows to you:

- to configure led color and pulse (time on - time off) per app when receiving a notification. The mod will override the led info sent by the app.

- You can set quiet hours for notification led light, notification sound and notification vibration. This means that sounds, led or vibration are disabled for notification in the specified time range.

You need:

We need some preferences from my settings app (GrxSettings -> https://github.com/Grouxho/GrxSettingsV2 ) so, you need to build it. You will find in demo and guide folder how to set it up quickly.

Limitations:

The limitations are those coming from your led type. In my case, in s7e, led is very simple (and pattern based..) and we cannot reproduce all colors. If you set, for example, white in whatsapp you get light magenta.. In s7e you can only use some areas of the color picker or you will get light magenta. But still you can set colors and pulses

Quick guide

- Download attached rar.

- Compare NotificationMaanager Observer from modded and original folders. What i am doing is to register just 1 key (a group key in grxsettings) to control all on fly.

- Compare NotificationManagerService smalies. You will find the changes to be done by looking for ## in modded file. It is an easy to do mod.

- Do not forget to add NotificationManagerService$GrxLedInfo.smali to com/android/server/notification/ folder

- Do not forget to mach the packagename you used to build GrxSettings in NotificationManagerService where indicated in the modded smali. If you do not match it, when configuring color and pulse the led will not react on fly, it will only do it when you press test button (screen off)

- Create a navigation panel option and add the provided xml with preferences. I also provide the strings for the preferences.

This mod is being working in s7 / e oreo , s9 oreo ports for s8 and s7 / e.

Enjoy.
[Android General] Carotix:
hi,

my device is s8+ ... the sysui modded is working fine now with default positions ... but if i try to change the positions from your Settings app , i don't see any change
[Android General] Grouxho:
Send me your uiand configapp xml i guess you have not enabled to save prefs keys in settings system in app. Do not worry it is normal, it is a bit diff to 6th one.

Make sure you have configured these bools as true in values-configapp.xml : grxb_global_enable_settingsdb and grxb_saveSettings_default

Enviado desde mi SM-G935F mediante Tapatalk
[Android General] gvmiguez:
Another one working, your mods are the best ones Grouxho [emoji106][emoji108]View attachment 4528931
[Android General] Carotix:
oh yeah , you are right ... i forgot to put true in values-configapp.xml

now it works :D

thanks a lot :good:

edit: there is a little problem with my device .... the first icon in the left corner is too far to the left and is partially covered by the black radius of the device

i looked at notification_icon_area but there is only your android:tag="notifications" of different from the stock one

do you thing if i put a marginstart , can i solve it?
[Android General] Grouxho:
yes, you have to play with marginstart and marginend in the tagged views. Ahh, i do not remember what sac said me about that. He is also in s8. But that is the point to play with margins and or paddings.
[Android General] Loffeboy:
How to get a navbar on Oreo rom(no s9 or n8 port rom) ? I refer to Prime F3 rom.

I have an s7e ...
[Android General] ashyx:
Works well.

https://play.google.com/store/apps/details?id=com.vietbm.s9navigation
[Android General] Loffeboy:
Thank you, but are there no hard coded trick that does the same, like the build.prop trick that worked on Nougat ....
[Android General] Ferbee:
Hey I've been able to do everything up to "add the attachment files and recompile" I simply just don't know what to do with them, if someone can tell me that would be greatly appreciated :D
[Android General] Eleo:
When you decompile apk, you get folders in its parent directory, like res, META-INF, SEC-INF and etc. One of them is "smali" folder. Now, copy the folder "smali/com/hyper" in the attachment into the folder of your decompiled apk, in "smali/com" folder so that, your "smali/com" folder, now also has a folder, called "hyper". Then decompile and follow instructions. Good luck
[Android General] nelson04:
Hey hola hermano saludos desde república dominicana te escribo para decirte que tengo problemas con mi OEM por qué cuando me apareció por última ves le di a activar y me pidió que restablezca el dispositivo y cuando se reinicio intenté instalar vía Odin el recovery y cuando hiba a entrar a recovery me mandó al sistema y ahí entonces volvió de nuevo al problema estaba sin el OEM así que descargue vía FIRMSAM la última versión stock de mi s9 plus que es SM-G965F/D el CSC es XSP de Singapur y estoy esperando 7 dias....así que necesito su ayuda por favor si usted tiene telegram o alguna otra forma de nosotros comunicarnos para que me dé los pasos correctos para así poder activar el OEM espero su respuesta y bendiciones hermano

mod edit - translation added using Google Translate

Enviado desde mi SM-G965F mediante Tapatalk
[Android General] Albe96:
[MENTION=4985387]nelson04[/MENTION] Use English,So that everyone can understand
[Android General] Grouxho:
Have you tried to change this bool to true in framework-res ?

<bool name="config_showNavigationBar">true</bool>
[Android General] Carotix:
hi :)

i tried many combinations in notification_icons_area in the line with your tag but nothing change .. sorry
[Android General] Loffeboy:
Thank you, i will try that. By the way, what is bool ?
[Android General] thereassaad:
[emoji40]
[Android General] LeeDroid:
A Boolean is a true or false variable
[Android General] Carotix:
decompile framework-res.apk then open values folder .... then bools.xml
[Android General] Loffeboy:
Thanks, what app to use for decompile the apk ?
[Android General] yash92duster:
Read post #1

Rules:cool:

Then find link in post 1
[Android General] Grouxho:
Mini Guide - Force always visible Free Form Menu item in notifications

I have not seen this in 1st post, if so, please tell me and i remove this. I thought it could be interesting for someone.

- Decompile SystemUI

- Edit Lcom/android/systemui/util/SettingsHelper

- Replace next method

.method public isNotificationLaunchFreeformEnabled()Z
.locals 1

const/4 v0, 0x1

return v0

.end method

done
[Android General] Grouxho:
pm me a screenshot & floating features please, do not worry
[Android General] Loffeboy:
I think this will be to complicated for me, i have never done this before, but thanks ...
[Android General] nelson04:
Hey hello brother greetings from Dominican Republic I am writing to tell you that I have problems with my OEM why when I appeared last I gave him to activate and he asked me to reset the device and when I rebooted I tried to install via Odin the recovery and when I went to enter to recovery sent me to the system and then back again to the problem I was without the OEM so download via FIRMSAM the latest stock version of my s9 plus that is SM-G965F / D the CSC is Singapore XSP and I'm waiting 7 days .... so I need your help please if you have telegram or some other form of us to communicate so that you give me the correct steps so that I can activate the OEM I wait for your answer and blessings brother
[Android General] Albe96:
Seems like you are encountered with that stupid RMM State issue.My requests to all guys around here,read OP of everypost first of all.Anyway you should checkout this-->https://xdaforums.com/showpost.php?p=75893923&postcount=3 ,might be helpful to you!
[Android General] thereassaad:
Interested , here in nougat it is forced to be true by default in recents .
[Android General] nelson04:
ok broth thank you very much I will read this post and apply it thoroughly [emoji117] [emoji123] [emoji41]
[Android General] edzamber:
Great !

Now let's colorize that [emoji14]
[Android General] parth111999:
[GUIDE]Change Battery Icon on Every 10% Drain on Tw Oreo

Decompile SystemUI.apk

Go to res/values/arrays.xml and Search For

<integer-array name="batterymeter_color_levels_sec">
<item>15</item>
<item>100</item>
</integer-array>
<array name="batterymeter_color_values_sec">
<item>#ffffffff</item>
<item>#ffffffff</item>
</array>

Replace this with

<integer-array name="batterymeter_color_levels_sec">
<item>10</item>
<item>20</item>
<item>30</item>
<item>40</item>
<item>50</item>
<item>60</item>
<item>70</item>
<item>80</item>
<item>90</item>
<item>100</item>
</integer-array>
<array name="batterymeter_color_values_sec">
<item>#ffb71c1c</item>
<item>#ffbf360c</item>
<item>#ffe65100</item>
<item>#ffff6f00</item>
<item>#fff57f17</item>
<item>#ffaeea00</item>
<item>#ff33691e</item>
<item>#ff1b5e20</item>
<item>#ff01579b</item>
<item>#ff0d47a1</item>
</array>

Go to SystemUI\smali\com\android\systemui\BatteryMeterDrawable.smali

and Search For the method .method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

Search line " Lcom/android/systemui/BatteryMeterDrawable;->mColors:[I " And Edit 3 lines

Edit # lines

mul-int/lit8 v9, v8, 0x2 [COLOR=BLUE]### 0xa[/COLOR]

new-array v9, v9, [I

iput-object v9, p0, Lcom/android/systemui/BatteryMeterDrawable;->mColors:[I

const/4 v2, 0x0

:goto_2
if-ge v2, v0, :cond_5

iget-object v9, p0, Lcom/android/systemui/BatteryMeterDrawable;->mColors:[I

mul-int/lit8 v10, v2, 0x2 [COLOR=BLUE]### 0xa[/COLOR]

aget v11, v7, v2

aput v11, v9, v10

iget-object v9, p0, Lcom/android/systemui/BatteryMeterDrawable;->mColors:[I

mul-int/lit8 v10, v2, 0x2 [COLOR=BLUE]### 0xa[/COLOR]

add-int/lit8 v10, v10, 0x1

Recompile SystemUI ^.^​
[Android General] benna:
Thanx mate. Did you log into google account? I cant get mine to work and hate waiting 7 flippen days

PS: I have a S8 G950F
[Android General] Carotix:
works perfectly :D thanks a lot for this great mod
[Android General] corsicanu:
Continuing the guide from here, found another thing that i want to share with you :)

3. Use ODM instead of OMC/CSC in Oreo

From S9 Samsung introduced a new kind of omc, ODM, which needs its own partition and needs to be loaded from fstab/dts. We can add it to non ODM devices with a pretty simple and clean workaround.

Inside ramdisk, in init.rc file (all the devices should have that), i found this:

# Link /vendor to /system/vendor for devices without a vendor partition.
symlink /system/vendor /vendor

Following this we can make it work just like this:

# Link /vendor to /system/vendor for devices without a vendor partition.
symlink /system/vendor /vendor
[color="Blue"] symlink /system/odm /odm[/color]

By unpacking odm partition content inside a folder from system and creating the symlink from above at boot, rom will load odm as it has the partition.

All the best :fingers-crossed:
[Android General] Er. Aditya:
hi sir does it require any further step for nougat ? i tried but doesnt seem to work
[Android General] Albe96:
Obviously it'll not work since it's made for Oreo only.You're in the wrong thread to ask for it.Well Its also wrong for me to post your needs,but here's anyway-->

Guide For Unlock With Fingerprint Without Pattern Or Pin(NOUGAT)

NOTE: You Need GearUtils Support For This Mod.

1. Open SystemUI/smali/com/android/keyguard/KeyguardUpdateMonitor$StrongAuthTracker.smali

2. Search For This Method -->

.method public isUnlockingWithBiometricAllowed()Z

3. Increase Locals By 2.

4. Add The Code In Blue -->

.method public isUnlockingWithBiometricAllowed()Z
.locals 4
[COLOR="BLUE"]
const/4 v0, 0x0

const-string v1, "albe_nopin_fp"

invoke-static {v1, v0}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

move-result v1

if-nez v1, :cond_0[/COLOR]

invoke-static {}, Lcom/android/keyguard/KeyguardUpdateMonitor;->getCurrentUser()I

move-result v0

invoke-virtual {p0, v0}, Lcom/android/keyguard/KeyguardUpdateMonitor$StrongAuthTracker;->isBiometricAllowedForUser(I)Z

move-result v1
[COLOR="BLUE"]
:cond_0
const/4 v0, 0x1[/COLOR]

return v1
.end method

Rom Control v2:

<com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:title="Unlock With FP Without Pattern Or Pin After Reboot" android:key="albe_nopin_fp" android:defaultValue="true" android:summaryOn="Enabled" android:summaryOff="Disabled" />
[Android General] Er. Aditya:
thankyou and sorry sir
[Android General] ANDROIDXFOREVER:
hi bro you're one genius :D
[Android General] Carotix:
[MENTION=4985020]Grouxho[/MENTION]

about : Guide - Move status bar views to right - left or center on fly

i'm trying to change the color of the clock ... but i can't find his hex color .... did you change something?
[Android General] thereassaad:
He can use mColor way in clock smali on onDark method added it there & control mColor in separated method & that method invoke it in updateclock or updatestatus dunno what u have on oreo but this is a just a quick idea ..
[Android General] Carotix:
could be nice to have a mod to change the color of the clock through colorpicker in grx settings :) .. like Potato Clock

edit: anyway i got it
[Android General] Carotix:
works fine :)

thanks a lot for all your guides explained very well :good:
[Android General] Eamo5:
If I want to add an outdoor mode to the quick settings toggles, could I follow the same steps as here and add OutdoorMode to the line of code from this post?

https://xdaforums.com/showpost.php?p=76225941&postcount=22
[Android General] ANDROIDXFOREVER:
hi all is it possible to make a guide to add scroll Animations to rom control rom deodex oreo? thanks advance
[Android General] Carotix:
if the rom you are using is full deodexed it may be possible ... need a rom without arm folders in framework
[Android General] ANDROIDXFOREVER:
hi bro ok but the correct guide the various steps weave me :)thanks
[Android General] Albe96:
Ofcource.If you work hard,you'll get a charming success!?
[Android General] ANDROIDXFOREVER:
Yes, but I do not know where to start. I do not know a guide [emoji848]

Inviato dal mio SM-N950F utilizzando Tapatalk
[Android General] thereassaad:
If u mean listview animation then u need to go to classes2 android widget listview or abslistview smali & u can start from there & it is easy to added it , im not on Oreo yet to make a guide for it but im sure it's similar to nougat to added it ..
[Android General] JavixKGD:
Do u have one for Nougat bud?

Sent from my Chimera N8
[Android General] ermakovermakov7878:
The vibration of the soft keys switch.​

Unlock the switch in the settings.

SecSettings2\smali\com\samsung\android\settings\notification\SoundSettings.smali

.method public onCreate(Landroid/os/Bundle;)V

delete 2 times

const-string/jumbo v8, "vibrate_on_touch"

invoke-virtual {p0, v8}, Lcom/samsung/android/settings/notification/SoundSettings;->removePreference(Ljava/lang/String;)V

samsung-services\smali\com\android\server\policy\SamsungPhoneWindowManager.smali

.method public performSystemKeyFeedback(Landroid/view/KeyEvent;)V

Search for search mVibrator:Landroid/os/Vibrator; edit in the first.

.method public performSystemKeyFeedback(Landroid/view/KeyEvent;)V

...

...

...

iget-object v0, p0, Lcom/android/server/policy/sec/SamsungPhoneWindowManager;->mPWM:Lcom/android/server/policy/PhoneWindowManager;

iget-boolean v0, v0, Lcom/android/server/policy/PhoneWindowManager;->mMobileKeyboardEnabled:Z

if-nez v0, :cond_22

iget-object v0, p0, Lcom/android/server/policy/sec/SamsungPhoneWindowManager;->mVibrator:Landroid/os/Vibrator;

invoke-virtual {v0}, Landroid/os/Vibrator;->isEnableIntensity()Z

move-result v0

if-eqz v0, :cond_78 remove

invoke-virtual {p0, v4, v3, v2}, Lcom/android/server/policy/sec/SamsungPhoneWindowManager;->performHapticFeedbackLw(Landroid/view/WindowManagerPolicy$WindowState;IZ)Z

:cond_78 remove

invoke-direct {p0}, Lcom/android/server/policy/sec/SamsungPhoneWindowManager;->playSoundEffect()V

goto :goto_22

:sswitch_7c

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

...

...

...
[Android General] a.raul:
Possibly there is someone close to your friendship who can upload that mod .... ;)
[Android General] ANDROIDXFOREVER:
It would be nice and interesting for many I believe and I would like to make a donation personally as I often do :D
[Android General] thereassaad:
Ummmm i guess i will forwarded to someone & he can see but ufff this mod has a really serious bug on Oreo for now & i can't try to fix yet because no Oreo here but i will look for sure on it later once i got an S9+ soon hopefully in this week got some hrs to visit my city for getting it ..
[Android General] ANDROIDXFOREVER:
[emoji7]great bro thanks

Inviato dal mio SM-N950F utilizzando Tapatalk
[Android General] Albe96:
Any if you're talking about custom scroll animations with RC.The guide will be same as Nougat.You've to make changes with framework.jar
[Android General] ANDROIDXFOREVER:
thanks but I do not have a reference guide, not even for nougat, but I'm sure it works for oreo

Inviato dal mio SM-N950F utilizzando Tapatalk

---------- Post added at 09:00 PM ---------- Previous post was at 08:46 PM ----------

https://youtu.be/mKs5OwWEwq4

Inviato dal mio SM-N950F utilizzando Tapatalk
[Android General] a.raul:
It worked in Nougat, and it works in Oreo, you just have to be total deodex, without the folders arm and arm64 ...
[Android General] ANDROIDXFOREVER:
Thanks [emoji4]

Inviato dal mio SM-N950F utilizzando Tapatalk
[Android General] JavixKGD:
Edit:Nvm, found it and got it to work

Sent from my Chimera N8
[Android General] ANDROIDXFOREVER:
yes ?? any guide for help other people as it was at the beginning xda sharing in harmony now unfortunately has become a business version free version premiun .. but I stop here
[Android General] JavixKGD:
Indeed, xda has changed. I went to this guide here

https://xdaforums.com/showthread.php?t=3135690

And modified a few entries to suit my own. All I needed was the general idea, this gave me where to look and what to apply. I am afraid there are no word by word, copy paste guides for this, so each one has to make it work for their device. Sorry I couldnt help more bud

Sent from my Chimera N8
[Android General] ANDROIDXFOREVER:
thanks bro :good:
[Android General] Eleo:
:oThat is what I wrote you here:

https://xdaforums.com/galaxy-s6/sam...ment/devs-helpingd-devs-t3321679/post76901953

On a.raul's post you can find link to exactly that thread. a.raul was working on nougat TW on that post. And users said for nougat and oreo it is alike...
[Android General] ANDROIDXFOREVER:
I solved [emoji16] https://youtu.be/ID5sYd48Hpk

Inviato dal mio SM-N950F utilizzando Tapatalk
[Android General] Carotix:
[MENTION=4985020]Grouxho[/MENTION]

about : Guide - Move status bar views to right - left or center on fly

is it possible to add the date and the hide option?

thanks
[Android General] Grouxho:
Date embedded with clock or date in a separate view

Enviado desde mi SM-G935F mediante Tapatalk
[Android General] Carotix:
separeted view , so it could be showed or not with hide option :)
[Android General] ermakovermakov7878:
Dual Sim Bar from Notification Panel with switch​

SystemUI\smali\com\android\systemui \ settings add smali SettingsUtils.smali

SystemUI\smali\com\android\systemui\qs\bar\MultiSIMPreferredSlotBar.smali

.method public getBarVisibility()Z

.locals 2 change to 3

+const-string v1, "multisim_view"

+const/4 v2, 0x1

+invoke-static {v1, v2}, Lcom/android/systemui/settings/SettingsUtils;->getIntForKey(Ljava/lang/String;I)I

+move-result v1

+if-eqz v1, :cond_0

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

invoke-static {v0}, Lcom/android/systemui/statusbar/DeviceState;->getActiveSimCount(Landroid/content/Context;)I

move-result v0

const/4 v1, 0x2

if-ne v0, v1, :cond_0

Key to off. android:key="multisim_view"
[Android General] thereassaad:
Yep is it possible to make a separated date mod with lil bit features , but u need to do it in separated smali with edited xml in status_bar.xml ..
[Android General] Grouxho:
Aha, you mean to add to hide the view as an option. Yup, it is quite simple, in initial version i did it. I just created a LinearLayout var by code to leave inside hidden views, in order to keep their status, callbacks etc.

However i do not recommend that option because i observed that with some overlays and lately with this good lock apks, etc.. you can have problems hiding the views. What i did to hide views easily was to use tuner service. Most of stock views implement TunerService.Tunable.

.implements Lcom/android/systemui/tuner/TunerService$Tunable;

I used also this service with my custom views. With this good lock, i am having problems with custom views visibility, because i used, as good lock, "icon_blacklist" key in secure table.

So, what i recommend you and it is what i am doing these days to keep compatibility with this good lock sh..t

- Use icon_blacklist to show/hide stock views

- Use a pref switch to show / hide your custom views.

Attached you see what i mean. I am going to write a mini-guide to hide-show stock views using tuner...

But if you are really interested in adding a new option, no problem on sending you my java code to move views. I think visibility should be controlled just from on possible place, or users will get you crazy...
[Android General] a.raul:
Well, from here I encourage you to upload the guide so that all Oreo Samsung users enjoy this mod, even those who charge to have the mod ...
[Android General] Albe96:
Custom Scroll Animation Views(Oreo)​

Removing As It's Not Confirmed Working For Oreo.
[Android General] ANDROIDXFOREVER:
[MENTION=7334959]Albe96[/MENTION] you are simply a genius :D:good:
[Android General] Eleo:
Please dont quote whole long posts. Only quote the header, so that it does not take too much space and it is easier to scroll in thread.

Thanks
[Android General] Albe96:
Yeah agree with this complement.Just quote the title so that it'll be helpful for mobile xda users.
[Android General] a.raul:
Beware that the wolf does not come and start killing sheep ... jejeje
[Android General] ANDROIDXFOREVER:
hahahahahahaha
[Android General] BlackAxiom:
can you provide tutorial for this, thanks in advance
[Android General] Albe96:
Scroll back to few pages or check in OP.Guide is already there
[Android General] Carotix:
deleted
[Android General] Albe96:
Hey, Add it before "return-void" :fingers-crossed: