yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] gsw5700:
How do I configure flashlight notifications? Can't seem to find it in Leedroid tweaks or EX Kernel manager, Thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mozart_nht:
Leedroid Tweaks:

Kernel --> Button Lights notification
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] chidi_duru:
To OP, kernel is smooth. Impressive. However, when I am on a call, signal drops to 1X. It stays on 4G on the stock US Verizon rom/kernel. Any suggestions?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] chidi_duru:
It's weird. Turning on Wi-Fi calling seems to have it fixed. I even turned off Wi-Fi and was able to be on a call while browsing. Don't fully understand but happy nonetheless.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
BTW lineageos has double tap wake on touch screen.

Not a kernel thing there. Check screenshot
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Hmm might be something special to stock Verizon kernel.

Earlier there were some special differences...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] klarthur:
This doesn't disable the flashlight notifications for me. How do I disable them completely?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
[MENTION=398245]LeeDroid[/MENTION] is the flashlight notification added for ten tweaking? Thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] klarthur:
I'm currently using this on Viper 11. Is that a problem?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
No. The tweak app on playstore should work

https://play.google.com/store/apps/details?id=com.leedroid.tweaks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] klarthur:
I've tried that app as well as the EX Kernel Manager and can't find the option that will disable the flashlight notification. Is there a specific combination of things that needs to be turned off?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
In EXKM advanced settings you can add custom Sysfs paths to modify. From second post in thread:

-- /sys/class/leds/button-backlight/bln_flash_blink - 0/1

-- /sys/class/leds/button-backlight/bln_flash_blink_number - 0 (infinite) 1-50

-- /sys/class/leds/button-backlight/bln_flash_blink_wait_sec - 1-10 delay in seconds between blinks

---- /sys/class/leds/button-backlight/bln_flash_wait_inc - 1/0 increase/not increase delay with time

------ /sys/class/leds/button-backlight/bln_flash_wait_inc_max - maximum plus in seconds of the delay, increased with time 1-8

----- /sys/class/leds/button-backlight/bln_flash_haptic_mode 1/0 - 1 = flash only when DND is off (vibration notifications will trigger the blinking) ( default value: 1 )

----- /sys/class/leds/button-backlight/bln_flash_dim_mode 2/1/0 - 2 = in dim mode do NOT flash at all, 1 = in dim mode flash half the brightness of the full flashing, 0 = no dimming ( default value: 1 )

----- /sys/class/leds/button-backlight/bln_flash_dim_use_period 1/0 - 1 = switch to dim flash mode in a given period, 0 = no restriction for dimming, if you set it, it will be flashing dim regardless of current time ( default value: 1 )

--------- /sys/class/leds/button-backlight/bln_flash_dim_period_start_hour 0-23 - start hour for dimmed flashing (default 22 (10PM))

--------- /sys/class/leds/button-backlight/bln_flash_dim_period_end_hour 0-23 - end hour for dimmed flashing (default 6 (6AM))
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Nice to see the 10 device so active. Over 200 downloads already!:good::good:

Next I'm checking on alarm detection issue with notification booster on aosp/ sense
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mesarabi:
It seems backlight dimmer it's not working at all

Using leedroid app and nothing happened after turned on

Go to root pass and manually put y for turn on and set low light from 10 to 5 and again nothing happened

For reminding : leedroid r113

Your kernel 2.4

International version htc 10 : 2.41.401

Note:tryed full wipe and clean install but again not worked
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] myheroduane:
Book where is the Oreo kernel. Lol than you for all.you do keep it up.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
I'm not sure what the minimum value is and how exactly it gives you the dimming you go for,

But do know that it's only scaling down the brightness curve, not capping it.

I'll try it next time, but I'm guessing this is how it works, there's no change to it since very long, it's still coded as flar2 created the feature.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
- Update 2.4.1 stable -​

Notification booster update:

- Fixing Alarm boosting for AOSP roms

- Maximizing booster voltage

Download:

https://www.androidfilehost.com/?fid=673791459329057086
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] old.splatterhand:
Thanks for that, downloading right now.

Something i noticed in v2.40: flash notification/notification reminder did not work for me with Whatsapp.

I had to disable the haptic feedback, to get it working with it.

But in Whatsapp was sound and vibration active.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Hmm it must be something related to vibration length of it which is used to filter out a series of non notification vibrations...

Or, hmm, is whatsapp notification a quick double vibration or a single one?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Just tested with default vibration setting of whatsapp and it is OK here.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] old.splatterhand:
It's a double vibration, but you can change it to long vibration (in Settings - Notifications), and that is the setting i use for all messages which come in.

---------- Post added at 19:52 ---------- Previous post was at 19:48 ----------

Personally i think, the vibration (and also the sound of the speakers) is much lower than on my HTC One M8, i had before.

And as it is always loud at my work and most time with the children at home too :D, i miss often messages on the HTC 10...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
- Update 2.4.2 stable -​

BLN / Flashlight notif / Vib notif reminder update:

- Adding support for really longer notification patterns detection

---- e.g. WhatsApp long vibration setting for Notification now triggers BLN (even on charger) / FLN in Haptic_mode ON / VNR in Haptic_mode ON

Thanks [MENTION=3142060]old.splatterhand[/MENTION] for bringing this topic up.

Download:

https://www.androidfilehost.com/?fid=962021903579488498
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] old.splatterhand:
You are crazy fast :good::laugh: Right in time, before silent hour, lol.

Now it's working!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
:cool:

Haha, it's weekend :good:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] duck95:
I'm on Sprint, running 2.51.651.22, s-off, unlocked, and rooted.

Can I use the latest version of the kernel? It states for Nougat 2.51, does that include Sprint's version?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Since nougat the sources became common for all models, so yes. Please create a backup of your boot partition, just in case.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] duck95:
Thank you, I'll give it a try today.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] chrisftlse:
Hi tbalden,

Many thanks for your marvellous kernel, the 2.4.2 is running perfectly with MHD3.9.

One question (noob maybe but anyway...), I have had in mind that flashing/changing/updating kernel needed a while to setup and to, let say, run with its high capacity/designed for. I used to know that it is running better after 1/2 days.

With your kernel experience, I highlight exactly the opposite ;)

Meaning, after a flash and a full battery recharge I can reach easily 5h SOT while gaming (Trials Frontiers)

After some weeks I can reach 4h but not too easily.

Gaming conditions and installed apps are equivalent.

Is it a normal behaviour ?

Do not make me wrong : YOUR kernel is the best and my preferred as you succeed to tune it and keep performace and battery.

THANKS Again for that
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Hmm, I can think of not much related to kernel... battery can depend on a bunch of things, ranging from Cell signal strength, wifi strength, apart from applications that you use - these can also change behavior on a few factors, like sometimes google services behave, then another day they start to eat much more... any change in that signal strength topic, like moving between places?

Also if you're really after the topic, I can advise to dig deeper into statistics with BetterBatteryStats
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Rijul30:
Thank you so much for the aosp kernel. Been searching for something like this forever. Keep up the good work. :good:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Cool. I'm happy that I decided to work more on to add AOSP compatibility last month... I don't know how Oreo will work out with the new 8.0 ROMs and how will it be possible to bring up a sense kernel for that, but I'm positive, I'll need to catch up with those at some point, but I'm still waiting for AOSP Oreo to stabilize. Good job going on there in the threads around here :good:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] frostnicko:
DoubleTap Wake Not working on MH3.9
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] chrisftlse:
Tested and DTW is working fine on MHD3.9 and lebel 2.4.2
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Will972:
[MENTION=3088420]tbalden[/MENTION] thank u for the kernel running on last Leedroid..i got an issue with my touchscreen and the backlight of the capacitive button after a screen replacement... Any iDea about any possibility to get back the light on the capacitive buttons ?

Thank u mate again
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] aizuon:
[MENTION=3088420]tbalden[/MENTION] thanks for this amazing kernel, i've been enjoying it way too much for the past month

Is it possible to implement a feature to survive lineage os updates? Like the one magisk does. I would greatly appreciate one. Thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] :
Does this kernel use EAS? if not, can someone explain the advantage/disadvantage of EAS compared to whatever this kernel uses for efficiiency?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Unfortunately I've little knowledge about the internals, but I'd think it could be only fixed by hardware repair.

Do I see it right that you decided to get a u11 in the meantime?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
I'm not following that magisk thing and kernel survival, haven't read upon that. Can you link me to a kernel that supports this?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
On sense HTC pnpmgr does take care. Otherwise on aosp good old HMP kicks in on itself.

You can tune that with kernel managers like exkm or adiutor, but I'm bad at giving advice related to that. Seems it's pretty decent by default, but I'd check the thread with flashable presets for pnpmgr as well.

HMP is much simpler than eas and schedutil, but does the trick for most of the time.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] scarybananana:
Hello everyone.I use this kernel with RR 5.8.4.Good kernel thanks your work.I flashed this kernel.Should i make an adjustment or just use it .(sorry noob question :D) Can i use flashlight notification for all apps ? If your answers is yes tell me how ? Thanks.

This memes are funny btw
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] aizuon:
i dont have any kernel examples to give but i think the script is this : (sorry cant post links. the script is on magisk repo /scripts/addon.d.sh)

it basically reflashes itself on system ota updates
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
I think it's fine the way it is, yes.

What is the issue with flashlight with some of your apps?

Are those apps not triggering it that are without vibration?

Because you can switch haptic_mode to 0 to have flashlight notification for events where vibration is not part of it.

/sys/class/leds/button-backlight/bln_flash_haptic_mode 1/0
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] scarybananana:
Heeey thanks you are tooo fast :good:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] blujay25:
Hi, is it normal for /sys/fpf/notification_booster to revert back to default upon reboot (currently using 2.2.2 on LeeDroid)?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] CharliesTheMan:
If you want to read up on EAS, you can check the Helix kernel thread, the developer [MENTION=4388232]ZeroInfinity[/MENTION] has posted some links and also written up quite a bit on how EAS works.

Also, the user [MENTION=5060769]Mostafa Wael[/MENTION] has written some articles and posted lots of information I believe you will find if you search his name on XDA. Look for his EAS educational posts even if it's for a different device.

[MENTION=3088420]tbalden[/MENTION] you really nailed it with your response, I concur completely. For "set it and forget it" HMP does a pretty good job on our devices. My general opinion is with EAS specialty roms and AOSP type stuff I think there's better results and on sense it still worked great with some tweaking, but overall its just one of those things that works great when setup just right but it's more for people who like to tinker and experiment, or push the device absolutely as far as possible with the perfect blend of performance and battery life for their own usage.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
So setting it in LeeDroid tweaks is not sticky after reboot.

Well I'm not sure why that happens but it's probably some issue with the tweaks.

Or if you are applying it thru adb command and not an init.d script then that might be the issue.

I guess you are aware that kernel is not able to keep changes after reboot, so a tweak app or init scripts are needed
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Mostafa Wael:
I believe you can find the answer to all your queries in my collective post here
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] blujay25:
Actually, I don't see a toggle in the latest LeeDroid tweaks app, so I need to manually update /sys/fpf/notification_booster directly on every boot. Your explanation about the kernel not keeping changes makes sense. I was thinking that once notification_booster is modified, it should stay the same value since nothing else should be touching this file, no? Since LeeDroid tweaks doesn't even have a toggle for it yet, I assume (maybe wrongly) it won't touch that file either.

Thanks for your quick reply!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
News, I'm starting to port over to the 10 new cleanslate features from the u11:

Smart notification intensity

Kernel companion app for proximity and face down and more triggers towards kernel interface

Rootless UCI configuration and support for new cleanslate kernel configuration application

All still nougat tho
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
It's not so for sysfs files, kernel initialized files have the original default value even when you write into them, after a reboot.

Next release I plan to add cleanslate configuration app support with all user experience features - like notification related ones- available for configuration.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Progressing nicely with this. Will need thorough testing, and some updates in the Configuration App, but so far so good...

A bit of demo for face down screen off and in pocket power button blocking

[YOUTUBE]T0nDqsVumpU[/YOUTUBE]

LEDs, notification booster, flashlight notif bound to smart notification modes (trim/stop/hibernate), and also silent state, proximity and face down detection based features all in place...

Will have a look at the Configuration App next, and if everything goes well a beta seems to be possible this weekend. :good:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
rolling out CleanSlate Companion and Configuration app to the PlayStore with support for the htc 10... will work with the soon to be released kernel.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
- CleanSlate Kernel 2.6.0 -

- Companion and Configuration apps -

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

Many new awesomeness in the Kernel new version...

Companion app based features:

- Smart notification intensity trimming / stopping and hibernating modes based on Inactivity time (configurable) or Silent (DND) mode

- Proximity based features:

---- face down detection: Only do Flashlight notification face down on table

---- Vibrating Notification Booster only In Pocket

---- Face down screen off: putting down phone on table with screen on switches it off

---- Power button blocking in pocket

Configuration app based features:

- all CleanSlate features configurable WITHOUT root permission to the app through Kernel's Unprivileged Configuration Interface.

- Leave your phone Unlocked non-rooted, and configure kernel features

Install the application's Normal version from APK (copied to sdcard while installing zip), or from PlayStore the Premium Donation versions for supporting the dev :)

Don't forget that as soon as you Save in the CS Configuration app: file /sdcard/uci_user.cfg will be written, and all feature settings covered in the config app will then take precedence over any init.d scripts or sysfs based application settings (like LeeDroid tweaks, EXKM).

All non conflicting sysfs settings will still work as usual.

If you want to revert, just uninstall Configuration app, and delete /sdcard/uci_user.cfg file.

Instructions:

1., Install kernel

2. Install apps

3. Start the apps, and enjoy.

4. Be aware that the Companion app is starting on reboot after a while, but you're better off starting it manually, to have Face Down/Proximity/DND mode detection working the earliest.

CleanSlate Companion App 1.4.3

- First version to support HTC 10

CleanSlate Configuration App 1.1.1

- First version to support HTC 10

Download:

Kernel Installer (and contains Apps, copies to sdcard, pls install after reboot):

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

Companion APK 1.4.3

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

or PlayStore for premium version https://play.google.com/store/apps/details?id=org.cleanslate.csservice

Configuration APK 1.1.1

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

or PlayStore for premium version rolling out right now... https://play.google.com/store/apps/details?id=org.cleanslate.csconfig
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
Wow... Donno what to say:silly::good::laugh:

Thank you and bravo!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kelleci:
Hi

I will have a request from kernel developer if possible.

I am working in a country which has DPI firewall and detect-block-throttle VPN traffic such as OpenVPN Shadowsocks etc. So i want to use wireguard in my HTC10. Is there any way to use wireguard in this kernel?

Here is wireguard XDA topic:

https://xdaforums.com/android/development/wireguard-rom-integration-t3711635

Any help is appreciated.

Best regards.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
It's a new thing to me, so I'll need to check this.

At first look seems doable.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kelleci:
If you can do i will be very appreciated.:good:

Please keep us posted. If you want i can be a tester for this.

Best regards.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
- CleanSlate Kernel 2.6.1 -

- Companion and Configuration apps -

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

Updates:

- Adding WireGuard support. Thanks [MENTION=1991503]kelleci[/MENTION] for the suggestion

- Adding Companion App notification binding to enable BLN/Flashlight notification on Charger even when not vibrating

Download:

Kernel Installer (and contains Apps, copies to sdcard, pls install after reboot):

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

Companion APK 1.4.3

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

or PlayStore for premium version https://play.google.com/store/apps/details?id=org.cleanslate.csservice

Configuration APK 1.1.1

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

or PlayStore for premium version rolling out right now... https://play.google.com/store/apps/details?id=org.cleanslate.csconfig
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kelleci:
Wow lightning fast build:D Thanks a lot!!!

I tried it quick.I installed wireguard tools via TWRP but wg and wg-quick commands are not found. Am i missing something?

https://data.zx2c4.com/android-wireguard-tools-flashable.zip

Here i am attaching screenshots.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Dlind:
Running aosip 7.1.2 latest, I had lte and wifi connection issues, halfway fixed with reboot, also and logcat was crammed full of warnings and errors in just minutes of booting up. I'll see if I can get a log cat to you, I had to reflash my other boot.img
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Is this the first time you have flashed this kernel? Or is this a regression from previous cleanslate?

I only test on Los, A month back or so tho, then it was fine.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Good question. I've only added the kernel support part, haven't got the additional stuff installed but that's not kernel either.

I have not the means to test it.

I did was detailed on the xda thread related to kernel.

I advice to ask this in the thread of wire guard
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
[MENTION=1991503]kelleci[/MENTION] do you have rooted phone?

When I started the app, it asked for root permission here.

Edit :

Scratch that I see you screenshot with su.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Dlind:
Running aosip 7.1.2 latest, I had lte and wifi connection issues, halfway fixed and logcat was crammed full of warnings and errors in just minutes of booting up. I'll see if I can get a log cat to you, I had to reflash my other boot.img

Edit: .rar attached sorry its 700kb man
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Ok, going to give a try on LOS soon.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Dlind:
Running aosip 7.1.2 latest, I had lte and wifi connection issues, halfway fixed and logcat was crammed full of warnings and errors in just minutes of booting up. I'll see if I can get a log cat to you, I had to reflash my other boot.img

Edit: .rar attached sorry its 700kb man

Edit 2: I have a new one that has a bit more code and is confusing me.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Dlind:
I thought aosip was aoso source not los.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Hi. I've just tested with LineageOS.

Indeed on AOSP the selinux policy is stricter and cannot read the /storage/emulated/0/uci_* files.

It works fine on the less restrictive Sense selinux policy.

This will need some debugging.

Thanks for reporting!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Dlind:
No problem man. Your a awesome dev I'd help anytime.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Found the solution for AOSP stricter selinux policy and the new version. Going to clean up the patch and upload it soon.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Dlind:
Sweet I'll flash it and if there are other issues I'll post here with a logcat.