yashsingh1/xdaforums huggingface dataset:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Cleanslate EXKM file:

https://www.dropbox.com/s/k978pb2oqf8sb6r/Cleanslate_2_6_4.exkm?dl=0

---------- Post added at 09:32 PM ---------- Previous post was at 08:39 PM ----------

Don't know if it's the wifi callign that's messing things up, but my phone keeps giving me notifications and kad lights up but with no messages....

do you need a logcat or something?

have to go back to 2.6.3 soon as this is driving me nuts ;) [MENTION=3088420]tbalden[/MENTION]

---------- Post added at 09:46 PM ---------- Previous post was at 09:32 PM ----------

Ok, when I disable WIFI calling, it stops wakiong the phone up..

in the uci.notif.txt there is no mention of wifi calling, just a line called android, is that the culrit?

should I add that one to cd_filter_notif.cfg

Any ideas [MENTION=3088420]tbalden[/MENTION]?

---------- Post added at 09:55 PM ---------- Previous post was at 09:46 PM ----------

scratch that [MENTION=3088420]tbalden[/MENTION], even with wifi calling diasabled my display keeps lighting up for no reason, also buttons keep blinking when there's no notifications...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Some notification it should be, but I wonder why there's nothing in your uci_notif.txt ... All packages that wake the device are supposedly there.

Hmm maybe you have a notification with null package name which is not filtered and not visible, probably tasker? Could you check Logcat for grep notification with the new companion app, old kernel doesn't matter

csservice

Something like this:

11-24 19:41:31.888 20765-20765/org.cleanslate.csservice I/NotificationListener: ********** onNotificationPosted

11-24 19:41:31.888 20765-20765/org.cleanslate.csservice I/NotificationListener: ID :279596321	eMAG	hu.emag.android

11-24 19:41:31.903 20765-20765/org.cleanslate.csservice I/NotificationListener: ++++++++ onNotificationPosted
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
or maybe package name is empty... hmm... try this, if the name is empty (confusingly), this might help, it will filter those from being sent for waking [MENTION=271041]p50kombi[/MENTION]:

https://www.androidfilehost.com/?fid=745849072291690896
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
The logcat was empty when filtering on csservice.

Your latest app has not fired any KAD yet, I'll keep testing...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Nope, still firing [MENTION=3088420]tbalden[/MENTION] here's the logcat
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
seems like you coulldn't update the beta included in system folder...

11-24 22:52:34.121 I/ActivityManager( 2283): Force stopping org.cleanslate.csservice appid=10039 user=-1: installPackageLI

11-24 22:52:34.122 I/ActivityManager( 2283): Killing 9471:org.cleanslate.csservice/u0a39 (adj 100): stop org.cleanslate.csservice

11-24 22:52:34.131 W/ActivityManager( 2283): Scheduling restart of crashed service org.cleanslate.csservice/.MainService in 1000ms

11-24 22:52:34.131 W/ActivityManager( 2283): Scheduling restart of crashed service org.cleanslate.csservice/.NotificationListener in 11000ms

11-24 22:52:34.132 I/ActivityManager( 2283): Force stopping service ServiceRecord{9e7e15e u0 org.cleanslate.csservice/.MainService}

11-24 22:52:34.132 I/ActivityManager( 2283): Force stopping service ServiceRecord{8be52e3 u0 org.cleanslate.csservice/.NotificationListener}

11-24 22:52:34.134 V/NotificationListeners( 2283): notification listener connection lost: ComponentInfo{org.cleanslate.csservice/org.cleanslate.csservice.NotificationListener}

11-24 22:52:34.134 W/PackageManager( 2283): Trying to update system app code path from /data/app/org.cleanslate.csservice-2 to /data/app/org.cleanslate.csservice-1

11-24 22:52:34.135 W/PackageManager( 2283): Code path for org.cleanslate.csservice changing from /data/app/org.cleanslate.csservice-2 to /data/app/org.cleanslate.csservice-1

11-24 22:52:34.135 W/PackageManager( 2283): Resource path for org.cleanslate.csservice changing from /data/app/org.cleanslate.csservice-2 to /data/app/org.cleanslate.csservice-1

11-24 22:52:34.531 I/ActivityManager( 2283): Force stopping org.cleanslate.csservice appid=10039 user=0: pkg removed

Is the app showing version 1.3.0 on the screen? Also in Settings/Apps

Any other log about the crashed service? It's strange...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Yep, showing 1.3

---------- Post added at 12:14 AM ---------- Previous post was at 12:11 AM ----------

Should it show 1.3.1?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
No, sorry, but I wonder why the service is crashing... could you please find the crash log? It definitely shouldn't crash at all...

EDIT: or maybe it was just an Update stop crash...

but what the hell is going on when the kernel wakes/notifications start? Why isn't there any other log?

I'm clueless yet...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Where can I find the crash log?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
ok, i think i got the answer... gonna update kernel soon...

Still the problem is that it seems you have two conflicting APKs, and in the end it doesn't run correctly.

Is your /sdcard/uci_sys.cfg containing a line

"notifications=X" ? [MENTION=271041]p50kombi[/MENTION]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Yep, notifications=9
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
[MENTION=271041]p50kombi[/MENTION] this https://www.androidfilehost.com/?fid=962021903579494663 might fix your problem with firing notifications....let's hope it will work OK with your installation of the app as well.

/sdcard/uci_sys.cfg should contain a correct line of notifications=?

if not, please try capture a dmesg as well! thanks
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Still firing and notifications still show a number and not a ?

Can I capture a dmesg on the device?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Number is fine.

Capturing yeah

Terminal emulator

su

dmesg>/sdcard/log123
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Now my only idea is that maybe two instances are running of the app at the same time, and one is removing the notifications line tine to time, and that causes the confusion in the kernel

Could you try removing rm -rf /sysyem'app/org.cleanslate*

And see if this happens, like with a reinstall of the App, if everything else fails...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
That gives me no such file or directory.

When I went to bed yesterday I plugged my device in and it was firing blanc notifications.

In the night I got a couple of email which I dismissed this morning and it hasn't fired a blank notification since.

Maybe the plug in reset something, I don't know.

I'll keep an eye out and if it happens again I'll pull a dmesg for you :svetius:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Hey :) just tried to catch up on the thread.

In case you didn’t know it already. You can also simply grab a dmesg with exkm.

Open the tab tools, on the bottom is the option to “save logs”. Choose to save dmesg afterwards.

This way also a ramoops and a logcat can be simply retrieved. :good:?

Good way to get logs while you’re on the go.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Doooh... Thanks matey.. ;)

Simple things like that are easily forgotten sometimes in a brain like mine. Must be age...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
I'll try starting from clean config, if I can reproduce the issue.

Anyone else with blank notification wake / Bln triggering without visible notification?

I tried to cover all the use cases, maybe something is still not 100%
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
just trying to reproduce this... i've uninstalled 1.3.0, trying with an outdated 1.2.0... then I'm upgrading to 1.3.0, to see how it goes....

When these blank notifications were happening, how often did they happen?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
I'd say almost continually, it didn't stop
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
hmm, very much an undiscovered case. Starting from scratch with deleted config files, uninstalled apps, no luck with reproducing.

I'm sure someone's going to bump into this again. Then we could hopefully get a dmesg/logcat to check on this again.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
I always wipe dalvik and cache when I flash anything, habit from the olden days... Could that cause an issue?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Hmm, that's an interesting clue. As I'm on stock, I've never tried this method. Actually could be, if reading the file fails because of cpu and io load. If written notifications is set 9 then deleted, rewritten, and comes out as 0, the next increase to 9 back would result in this.

Tho it's still strange that it was happening constantly

I'll think about this a bit. Thanks
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Well, I've added some additional means to assure companion app and kernel communication won't be borked up.

I've seen some possibilities for being out of sync.

I'll leave it as it ended up for now. Gonna publish the update later after some testing done.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tetrabyt:
Yea, I'm having weird button light notifications when there are no notifications... Too.

Hehehe phantom notifications...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
Test after closing all like a normal use
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks!

Don't know how exactly this happens but in chronological order two parts are interesting:

This is where you exited the settings panel, and its set correctly:

[ 9193.204634] c1 3952 nanohub: edge_threshold = 107

[ 9193.204650] c1 3952 register_squeeze_power_threshold_change squeeze call new_level power 0 max level 0 power 107

But something else 2 seconds later sets it back to 180:

[ 9195.790868] c2 3952 nanohub: edge_threshold = 180

[ 9195.790890] c2 3952 register_squeeze_power_threshold_change squeeze call new_level power 3 max

Do you have some other edge related plugin, anything, that could do this?

It shouldn't happen, but it seems the fourth power level is then applied without you setting it on the screen.

Thus the squeeze wake/sleep kernel tweak will be set to ignore squeeze events.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
Thank you. I now found out, that I made a mistake in adjusting.I did not do it in advanced mode but disabeled advanced mode and adjusted to lowest level it in the second line that is greyed out in advanced mode. Then I returned, choose advanced mode and there did not adjust it again (so there it stayed on level 4).

Having seen this I did it the right way now, having both adjusts on lowest level. No squeeze to wake/sleep. Then I installed kernel again, wiped dalvik, no change. So I enclose a new log trying too squeeze to sleep on level 1 in both adjusts .
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jelive:
Never did get u pics of gradient led not working for me...just gave up trying to use...no probem. But is there an edit I can make so default is off on boot? Love the edge squeeze on/off...very handy.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
now based on the logs (I cannot see wakelocks being registered, which means: ) either short squeeze mode is set on to some function or even more possible is that the Long squeeze gesture could have left accidentally with the setting "Enable gesture when screen is off" not Enabled. It has to be enabled.

here it's a bit vaguely described, but the screenshots might help: https://xdaforums.com/showpost.php?p=73322717&postcount=98

If you have time test it, or also post some screenshots of the settings so I can take a look, I think it's just some accidental stuff being reset while clicking through
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
What ROM are you using? Are you on LeeDroid? You can disable Gradient charging led in LeeDroid tweaks.

Also if you think so, post some photos still, i would want to help if i can! thx
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jelive:
Yes LeeDroid latest. Know can turn off but if boot it reverts back to on...thought might be able to edit something easy to change default to off. Not a biggie if too complicated for me to handle. Thx
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Hmm
[MENTION=398245]LeeDroid[/MENTION] is this working for you? Sorry for bothering :P :D
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] LeeDroid:
Which root method are you using? It disables fine for me, I'm using magisk root
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jelive:
Magisk. Disables for me too but if I reboot it reverts to enabled. This is not something new just with latest version...not giant issue. Thx love Rom.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
That's the way I made the set up.I can't see the point, where it's going wrong....
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] LeeDroid:
Having trouble getting my head around why some user but not all have this problem, doesn't make much sense :-/

How are namespaces mounted in your magisk Settings?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Looks all good :S

Can you send me another dmesg now while you set the squeeze power level? I'm still thinking what's this... Really strange indeed
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jelive:
Assuming I'm looking at right thing...shows Inherit Namespace.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
OK, further looking at the dmesg log you have attached in the last round:

it looks like it's not triggering at all, at least in the dmesg I thought I see that, but it was a Key back press event of which I thought it's a squeeze...

Can you recapture a dmesg when trying to squeeze?

If that log was during squeeze gestures, the log does not show that (there should be log lines like this:

[ 854.453517] c0 2276 pm_wake_lock lock user wakelock data SensorService_wakelock -- but I don't see any, which can only happen if Edge Sense is not on, or if squeeze was not happening while log was captured.)

Hmm I hope we can figure this out!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
You want even weirder thing? Today is day of weird things.

So just to vent / rant / release frustration and finally give up. Running CleanSlate 1.0.0 on 1.27 base for the last hour or so and I can't reproduce any micro stuttering as in 1.5.1 or other kernels.

Sleep. :cyclops:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
So this is a squeeze concert followed by changing settings/adjusting....
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
if you have the nerve for a bit more time of testing and it really is without stutter on the longer run,

and then check 1.4 then 1.3 then 1.2 then 1.1 to identify where I had introduced something stuttery, that would be awesome.

Thanks for poking around relentlessly! Much appreciated
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Eh, this is just frustrating my friend...

there's not one line that actually indicates in the log, that squeeze is happening. Even the Vibration logs are missing.

Something like this "[VIB] en=15 " are only around pressing BACK/HOME/APPSELECT...nowhere else, so all vibration logs are unrelated to squeeze. :S

Do you have the squeeze feedback when you press it? Does it vibrate shortly?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
Maybe I am imagining things, so I'll keep testing tomorrow, I think I flashed 5 or 6 different kernels today.. As there is apparently nothing in logs regarding CPU issues, I am just trying to look at things in different way (newbie way) and trying to understand what could new base (1.27) hate so much that is not CPU.. Bln and led sync?! Cryptic driver..

Sorry if wasting all the devs time.

Hope tomorrow I'll have a pair of new eyes..

Thanks for listening! :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Could you please check uci_notif.txt

Is there a package suspicious?

Also there can be applications where you disabled notifications for lockscreen, but left visible unlocked. Isn't this the case? I have a few such.

Or one that is added for a brief second and you won't see it in actuality.

UCI notif txt should give a clue in theory
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tetrabyt:
This is my uci_sys.cfg
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tetrabyt:
This is my uci_notif.cfg... Also, I don't have any notifications showing on my lock screen. Have it turned off in settings /notifications.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
These all are notification badges that appear on notification bar. Add them to cs_filter_notif.cfg if you don't want phantom notifications.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tetrabyt:
Ok, that did it. she has been exorcized for the time being... Thanks.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Haha exorcised :laugh: :good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Blinking here again....

Here's the logs:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Something is continuously raises number of notifications pushed to your notification bar

Could you share your uci_notif.txt?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Here you go...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
And here's the cs_filter
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Any of these could be suspect to pushing those notifications.

If you know which is which, add those that you'd want to block to cs_filter_notif.cfg

Next release I'm gonna add a white list mode possibility, so you don't have to specify which notifications you don't want, but what you would see
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tetrabyt:
Will those whitelisted notification be affected by DND? A switch would be nice... :p
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
What do you imply exactly? A separate white list for DND?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tetrabyt:
Or a list that isn't affected by DND. I guess, changing the app permissions to ignore DND would accomplish this same thing..
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] smallKING81:
I'm testing 2.6.4 with disabled HTC pnp all day. No any problems with random shutdowns.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
This only affects what the kernel does upon a notification that is already triggered by the framework of Android , not much to do with what DND does to your notifications
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Is there any way you can perhaps build a quick debug version that just notes the app which last raised a notification? Maybe that can help pinpoint it down which app is causing it, I can't seem to find anything.

In the meantime the kernel is driving me nuts with bln blinking all the time... Lol
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
- Update 2.6.5 stable -

...thus the Unrooted Kernel Era ruled on...​

If you don't want to bother with the configuration, don't need to do so. Basic applications like facebook, gmail, hangouts, are already allowed without config.

Install the kernel and the app and enjoy!

Fixes phantom Bln and KAD from previous version.

New features

CleanSlate Companion App 1.4.0

- Needs Notification Access to work, upon start please grant it!

- Adding Allow (whitelist) and Filter (blacklist) mode config files: cleanslate\allow_notif.cfg cleanslate\filter_notif.cfg

---- If you add Allow config, Filter config won't be used, even if specified (whitelisting is preferred). If no Allow config, Filter config will be used if added.

---- By default a simplistic Allow config (whitelist) is built into the Companion App.

- Adding small debug window to check latest Notifications intercepted into application

- Adding button to reload Allow and Filter config files.

- Moving CleanSlate companion app config file to /sdcard/cleanslate folder cleanslate\allow_notif.cfg cleanslate\filter_notif.cfg (kernel related files /sdcard/uci_sys.cfg and uci_user.cfg remain in /sdcard/)

- Gathering of app packages for intercepted Notifications to an sdcard txt file, for your convenience, so you can add them to the above config files:

---- log written to /sdcard/cleanslate/uci_notif.txt

Make sure you install it manually after TWRP flashing!

Download:

DON'T FORGET TO UPDATE CleanSlate Companion app from the copied 'cleanslatecompanion-1.4.0.apk' !

Installs kernel, copies Companion app to internal storage (/sdcard/ and /sdcard/cleanslate/) (rename and use or merge with your file)

https://www.androidfilehost.com/?fid=673791459329063760

APK 1.4.0 only: https://www.androidfilehost.com/?fid=889964283620768523 -- Sample configs (uci cfg and companion app cfgs) for 2.6.5 (non flashable): https://www.androidfilehost.com/?fid=673791459329063759
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
[MENTION=271041]p50kombi[/MENTION] hope this gonna help :) ^^^^
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thank you for reporting!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tetrabyt:
Lost buttons.. Rebooted and they are back.. After upgrading to 2.6.5. Even after app and config file update.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
That's weird. Well, I think it might have been a slight hiccup, as there's no change related to that. I'll keep an eye out for that. Thanks
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
Are these all still supposed to be in the internal sd card root?

I cleaned out the root completely before flashing btw.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
The apk and the uci_user/sys.cfg yes, the logic being that kernel interface files should be easy to access.

Well, I'll move them to an "uci" folder, as these are not strictly related to just the companion app, but rather the kernel. I moved all "only app" stuff to the cleanslate folder

the uci_notif.txt is from the previous app version writing it out one last time, if you delete, the new apk version will save to /cleanslate folder.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] p50kombi:
So far so good, no misfiring notification on 2.6.5 yet ;)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Good, actually thinking back, the whitelist approach should have been the first to add for the sheer amount of packages differing each one prefers.

And I added my very first dynamic text view and button to an android app. :p:laugh::good:

Now it feels rounded out. normally no user configuration is needed again, which is the basic goal to have covered.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
On that note, following [MENTION=2344619]guidogsbn[/MENTION] 's suggestion, I've created a Developer acc at Play Store, and the Companion Application will have a paid Donation version on the Play Store published soon. :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
CleanSlate Companion App 1.4.1 update

- fixing Crash in landscape mode

- fixing Last Notifications textview to update upon reentering application

There you go Donation premium version from PlayStore here: https://play.google.com/store/apps/details?id=org.cleanslate.csservice :good::highfive:

Normal version here:

1.4.1 APK: https://www.androidfilehost.com/?fid=962021903579494924 :victory:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] deagleone:
purchased buddy ;)