Closed Xynonners closed 1 week ago
Please share the verbose logs with me then.
here are the logs.
FreeNotifications-debug.apk.zip Here is a debug apk (just remove the .zip after downloading) with logging. It looks like the module doesn't find anything to hook and just skips it.
LSPosed_2024-10-05T20_26_34.285136.zip
still looks like nothing is happening?
Yeah, the build only added logging.
Unfortunately, the LSPosed logs don't seem to contain the logcat output of my module, can you capture a logcat for FreeNotifications
? Or do you want an apk that makes logs appear in the lsposed logs?
Sorry if I'm being dumb but how would I do that exactly? (I think the main issue is by the time I run logcat freeNotifications would have already done its thing -- I'm assuming the correct way is to adb shell run-as de.binarynoise.freeNotifications)
My logcat is super messy by the way (oplus dumps a bunch of sensor data there for some reason). Might have to use a lower loglevel.
FreeNotifications-debug.apk.zip Here the log messages should go into the LSPosed logs.
To use logcat instead, the command should be adb logcat FreeNotifications:D
I did logcat freeNotifications: :S, here is the output
--------- beginning of main
[ 10-08 08:17:05.987 3142: 3142 I/FreeNotifications ]
hooked constructors: 2
[ 10-08 08:17:05.987 3142: 3142 I/FreeNotifications ]
hooked setBlockable
[ 10-08 08:17:05.988 3142: 3142 I/FreeNotifications ]
hooked isBlockable
[ 10-08 08:17:07.945 3142: 3142 I/FreeNotifications ]
hooked constructors: 2
[ 10-08 08:17:07.945 3142: 3142 I/FreeNotifications ]
hooked setBlockable
[ 10-08 08:17:07.945 3142: 3142 I/FreeNotifications ]
hooked isBlockable
[ 10-08 08:17:08.021 3142: 3142 I/FreeNotifications ]
hooked constructors: 2
[ 10-08 08:17:08.021 3142: 3142 I/FreeNotifications ]
hooked setBlockable
[ 10-08 08:17:08.021 3142: 3142 I/FreeNotifications ]
hooked isBlockable
[ 10-08 08:17:08.038 3142: 3142 I/FreeNotifications ]
hooked constructors: 2
[ 10-08 08:17:08.038 3142: 3142 I/FreeNotifications ]
hooked setBlockable
[ 10-08 08:17:08.038 3142: 3142 I/FreeNotifications ]
hooked isBlockable
[ 10-08 08:17:08.104 3142: 3142 I/FreeNotifications ]
hooked constructors: 2
[ 10-08 08:17:08.104 3142: 3142 I/FreeNotifications ]
hooked setBlockable
[ 10-08 08:17:08.104 3142: 3142 I/FreeNotifications ]
hooked isBlockable
[ 10-08 08:17:09.860 4712: 4712 I/FreeNotifications ]
hooked constructors: 2
[ 10-08 08:17:09.867 4712: 4712 I/FreeNotifications ]
hooked setBlockable
[ 10-08 08:17:09.867 4712: 4712 I/FreeNotifications ]
hooked isBlockable
[ 10-08 08:17:11.370 3142: 3142 I/FreeNotifications ]
hooked constructors: 2
[ 10-08 08:17:11.370 3142: 3142 I/FreeNotifications ]
hooked setBlockable
[ 10-08 08:17:11.370 3142: 3142 I/FreeNotifications ]
hooked isBlockable
[ 10-08 08:17:11.386 3142: 3142 I/FreeNotifications ]
hooked constructors: 2
[ 10-08 08:17:11.386 3142: 3142 I/FreeNotifications ]
hooked setBlockable
[ 10-08 08:17:11.386 3142: 3142 I/FreeNotifications ]
hooked isBlockable
[ 10-08 08:17:11.398 5120: 5120 I/FreeNotifications ]
hooked constructors: 2
[ 10-08 08:17:11.398 5120: 5120 I/FreeNotifications ]
hooked setBlockable
[ 10-08 08:17:11.399 5120: 5120 I/FreeNotifications ]
hooked isBlockable
[ 10-08 08:17:11.416 3142: 3142 I/FreeNotifications ]
hooked constructors: 2
[ 10-08 08:17:11.416 3142: 3142 I/FreeNotifications ]
hooked setBlockable
[ 10-08 08:17:11.416 3142: 3142 I/FreeNotifications ]
hooked isBlockable
[ 10-08 08:17:23.433 9004: 9004 I/FreeNotifications ]
hooked constructors: 2
[ 10-08 08:17:23.435 9004: 9004 I/FreeNotifications ]
hooked setBlockable
[ 10-08 08:17:23.435 9004: 9004 I/FreeNotifications ]
hooked isBlockable
That looks how it should look like.
Can you send me your framework.jar
(in /system/framework/
) for further analysis?
https://mega.nz/file/6Bs3BBLT#N3H5IwNsAwSy_2nO-eDPI3ujt-07Lv0lqNRIhTPMP_A
(file too big so I put it on mega)
Also looks like it should look like. I don't know why it doesn't work for you. One thing to check though, do you have the option to disable an unwanted notification when you long press it in the notification drawer?
yes, but only on user notifications
on system notifications the button is replaced by "These notifications cannot be modified".
maybe it's in the other files in /system/framework?
I have oplus-framework.jar which seems to be OEM
on system notifications the button is replaced by "These notifications cannot be modified".
That means it neither works in the Settings app nor in SystemUI
maybe it's in the other files in /system/framework?
I had a look, it does contain a related class that seems to extend NotificationChannel but it doesn't look like it modifies the isBlockable behaviour.
One last resort would be looking at SystemUI to see if they override the behaviour there
tell me the files you need and I'll get them for you
https://mega.nz/file/uBVnWIrS#5Lmw3gdcvlu6AmX7ZjRulCxdUTtL8jQtBtcqNXL7ROw
there's also this com.oplus.notificationmanager in system_ext.
In SystemUI I could see why it doesn't work. They added another property, isImportanceLockedByCriticalDeviceFunction
, for "critical" device functions.
I'll add it this weekend or so and send you another build.
oh okay, thanks a lot!
FreeNotifications-debug.apk.zip
Here is a version with importanceLockedByCriticalDeviceFunction
Does it work now? Or is it still doing nothing?
Ah, I'm so sorry, I've been pretty busy the past few days and forgot to read my notifications.
It still seems to be greyed out sadly...
I will take another look at the issue eventually, however I'm currently busy too.
Turns out, isImportanceLockedByCriticalDeviceFunction
is AOSP, but they don't trust it (?) so they have a list of packages they block.
FreeNotifications-debug.apk.zip
Here is a version with mNonBlockablePkgs
cleared.
lmao, it seems they really don't want to let people turn off notifications
tried the new version and it's still grey sadly (shows allow notifications slider as greyed out, all channels greyed out and "these notifications cannot be modified" when hold-tapped on in notification drawer)
This is the settings app. What about directly editing the notifications in the notification drawer? If that works, can you send me the settings apk so I can figure out what :hankey: they did there? Also, can you give me the logs so I can see whether anything I added works?
Notification drawer still "cannot modify" too :( LSPosed_2024-11-17T02_15_48.351576.zip
Settings: https://mega.nz/file/DFNRUIIA#PB1fl6ppcQPArrawzGSvXhbHmHCmsuGBMdRz2Q_iPvo
My hooks are applied and don't throw Exceptions, so :man_shrugging:.
Settings apk is obfuscated. There seems to be some additional logic similar to SystemUI, but I won't go deeper into that as it would be too brittle and too exhausting.
So all I can say is, I'm sorry, it won't work on OnePlus.
verbose logs don't seem to indicate something is wrong, but the notification sliders of SystemUI are still greyed out.