yashsingh1/xdaforums huggingface dataset:
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
Great, at least we have some progress. If I understand correctly you want some kind brightness mod across the board, not just letting the minimum lower.

Well that could be done, but since the auto brightness is self learning to adjust the levels you like the most for different light situations I feel it a bit of an overkill.

What exactly you would want to see?

Like a few of the lower notches tuned a bit lower and leave the rest as it is?

Thanks for the test and the logs:)
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] davie9x:
because OnePlus disabled the rest of 15% of brightness to avoid screen issues, is there a way to restore back those brightness modes?
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
Yeah, I've heard about this. Well, what can be done is to kind of evenly remap the values in kernel.

Can you do the following you let me see the whole range. So first slide to highest brightness level then down to lowest and send me the log. Maybe a simple math function could help to even it out without much fiddling
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] davie9x:
thank you!

brightnessvolumes.txt

logs: https://mega.nz/folder/5JpzXarC#yCjsh2yvlBHh1u6hA9rarw
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
[MENTION=5346561]davie9x[/MENTION]

So here's 2.3.1v2, with a smoothed out Backlight dimming, mapping the difference in the minimum gradually as the brightness is set lower. So at peak it's gonna be still peak, at 50% half of the decrease is substracted, and at lowest brightness the substraction is full to the min level set in the app.

Installer zip 2.3.1v2: https://www.androidfilehost.com/?fid=10763459528675568399

boot img 2.3.1v2 glo 11.O.5: https://www.androidfilehost.com/?fid=10763459528675568398

As for the Adblock/kernellog, after flashing it, and then rebooting fully once more, could you pls check it again?

On first boot after flashing, usually the scripting is not necessarily completed correctly as a new boot image means additional things run at boot like extended fsck.

So please flash this, boot, then again restart, then after decryption, please grab a dmesg, and also please do the 'ls -lZ /dev/ > /sdcard/lslog.txt' thingy, to let me see how it went. Then please retry the kernel log from the companion app.

Also can you verify if camera / video is still ok?

Thanks!
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] AndryOut:
My camera is slow to open, and when I enter video mode it completely freezes and crashes (could it be zygote preforking? Or something else?)
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
Which version, which rom? Have you tried other kernels, are they ok?

Also please try to grab kernel logs.

Ty
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] Jagdish84:
You reported the same using blu_spark over at the blu_spark thread, maybe it is not kerenl related, try and reflash stock oos maybe? Theres a zipped stock rom at the guides forum.
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] davie9x:
- Backlight dimmer is perfect now! Huge thanks!

- Unfortunately kernel log and adblocking still doesn't work :(

- Camera and video is everything ok no problems with stock camera

logs:

https://mega.nz/folder/5JpzXarC#yCjsh2yvlBHh1u6hA9rarw
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
Thank you [MENTION=5346561]davie9x[/MENTION]

great news about the dimmer, and cam/video.

Now I've come up with two smaller modifications that could help. How files are written to /dev/ part now will start out with execute permissions, and a second thing, I've moved the unzipping of hosts_k.zip to kernel side binary calls directly.

One or both could help us a little bit.

So here's 2.3.1v3 zip:

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

If flashed, booted then restarted, please after decryption, again capture what you get with 'ls -lZ /dev/ > /sdcard/lslogs.txt'.

Thanks!
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] davie9x:
still no luck :(

I tried flashing stock kernel and again v3, booted rebooted, waited for kernel settings to launch (prompted with flash messages on screen) did kernel log still no lucky, adblock also doesn't work.

logv3, lslogs
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
I conclude that for some reason, execution of shell commands is altogether not working. Hmm.. gonna check a bit deeper what could be wrong.

Thanks again
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
[MENTION=5346561]davie9x[/MENTION]

I just think i found the cause... none of the shell commands were executed because of an OP8/pro specific config. I've added a workaround for that. Tried the sources on ROG3 and it still works fine. Hopefully we will have a bit of more success this time.

Installer zip 2.4.0 : https://www.androidfilehost.com/?fid=10763459528675569482

boot img 2.4.0 (GLO 11.O.5 https://www.androidfilehost.com/?fid=10763459528675569483

So please try to flash it, boot then reboot, then check.

Please grab logs and 'ls -lZ /dev/' , just in case :)

Thanks
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] Jagdish84:
Flashed, rebooted, rebooted again...

Awww i thought you were asking for logs, ive yet to try any of the features yet
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
Woohoo, it started to work. Thanks for checking :)

Another interesting thing to check is then:

Using config app, enable kadaway in Gestures/extras.

Then force close browser, restart browser and check https://adverticum.net/ which should show it connection refused. Also this should be checked without magisk systemless hosts adblocking or other dns solutions.
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
[MENTION=2542689]Jagdish84[/MENTION]

this is already very cool, as now it got a kernel log thru the companion app. This was one of the feature to test, so thank you!
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
Hmm for some reason, I can't access the attachment, gives 404. Could you please attach it in a new reply. Xda can act up sometimes
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] Jagdish84:
Nps, happy to help, really enjoying your work so its a win win for me [emoji38]

Ill test kadaway once i get back home from the office.

---------- Post added at 06:21 PM ---------- Previous post was at 06:19 PM ----------

Try this link

https://pastebin.pl/view/761ad0a2#
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
Haha nice [emoji846] great to hear

Well, the pastebin link is almost ok, but only a part of the full log seems to be visible. Is that log 310 kb only on the sdcard?

Edit:

Could you please also try and press Kernel log again in the companion app, and see how much bigger the log gets also if you can reboot, unlock the phone and then try to grab the boot log again, so maybe next time it captures a better full log of the boot process?

Thanks
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] davie9x:
Hello, this update rocks!

Kernel log is working now as well as ad blocker. Adverticum doesn't show now. Great job!

dmesg after boot: logg.txt in my mega link

PS: Can you tell me how to donate and gain more features.
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
Hey,

Thanks for testing this is really good news!

As for the donation, if you mean more features in the config app, then the premium apps are in play store.

https://play.google.com/store/apps/details?id=org.cleanslate.csconfig

The features only affect how you can use the config app with profiles or use app color themes, and use quick settings tiles. The Kernel features are also already available in the free app. If you plan on getting the premium app, then uninstall the free one before as it would conflict otherwise. Thanks for considering it.
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
- Update 2.4.0-

Backlight Dimmer + Adblocking + Kernellog Update

- Backlight Dimmer perfected

--- brings back the low brightness levels OnePlus has step by step taken away

--- Set backlight dimmer under Gestures & Extras to your liking

--- Dimmed min level is gradually, smoothly being set as you lower the display brightness

--- Expect a bit of black crushing

- KAdAway - Adblocking built-in to kernel

--- hosts file built in. Switch it under Gestures & Extras, no need to reboot

--- After activating/deactivating, force close browser/app to disable/enable ads

--- Uses brand new tbalden's Kernel Permissive SELinux to enable risk free kernel side features

- Kernellog - in Companion App use 'Kernel log' button

--- Logs under /sdcard/__uci-cs-dmesg.txt

--- ramoops Crash log under /sdcard/__console-ramoops-0.txt

- Tested with the help of [MENTION=5346561]davie9x[/MENTION] , many thanks!

CleanSlate 2.4.0 Download:

Installer zip:https://www.androidfilehost.com/?fid=10763459528675569482

Boot img 2.4.0 (global 11.O.0, non-magisk): https://androidfilehost.com/?fid=10763459528675569483

Config app 3.0.2 Free version Download:

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

Companion app 3.1.1 Free version Download:

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

Premium version rolled out to play store
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] scott45333:
Just installed. Seems solid so far. I will give am update after it settles for a couple of days. Thanks for all of your hard work.
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] TheKnux:
Stupid question [MENTION=3088420]tbalden[/MENTION], is this compatible with the non Pro version? Also, you posted "GLO 11.0.5" boot.img. Oxygen Updater is only showing 11.0.0 on my end. Using Horizon kernel currently, rooted with Magisk Canary (latest), Magisk Systemless Hosts, latest AdAway. What should I do to successfully use your kernel if it's compatible with the regular 8? Sorry if you have to spoon-feed. Not used to being a root user without TWRP.
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] FreshlyBaked 420:
OP8 version is here.

https://xdaforums.com/oneplus-8/development/kernel-cleanslate-1-0-0-beta1-t4097507

Flash with a Kernel Manager such as EX.

I usually keep a back up of stock kernel on my phone and flash stock before flashing non stock kernels
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] TheKnux:
Dang, I was hoping for 2.4.0 just because of the huge changelog and goodies. So I can flash my magisk_patched.img in EXKM to revert to stock kernel to keep root, then flash his kernel? I'm just really trying to avoid doing this on a PC lol. Also, if I flash the installer zip through EXKM, it should flash the kernel correctly right? Or do I have to use the boot.img? Sorry again, not used to doing this stuff without TWRP.
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
Yes, flashing the stock image from exkm then the zip is perfect. You'll still have the rooting. And yes, please use the zip from the non pro thread for your op8.

Thanks for pointing out the boot image version gap. The boot image in this thread is 11.0.0 indeed, not .5
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] TheKnux:
Okay, I'll try it here in a few, at work so I'm eerie about doing it without being around a PC since I need my phone for work lol. I'm assuming you'll release 2.4.0 for the OP8 or no? I wanna try the new ad blocking built into the kernel so I don't have to rely on AdAway all the time.
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
It's been already released there yesterday. :) [MENTION=4275707]TheKnux[/MENTION]
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] RayInkube:
[MENTION=3088420]tbalden[/MENTION] Hey mate, are you planning to support 8t soon ?
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
Haha, depends on what soon means.

Well, it's a blind development for me on the op8pro, but if the Kernel sources are the same/very similar and OnePlus gives some hint how to build it, then we can give it a try. :) So far I'm not sure if it's going to be the same sources/repo
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
Hmm I see that the new sources by OnePlus is for 8t as well 'Synchronize codes for OnePlus 8T Oxygen OS 11.0.1.2.KB05AA and OnePlu…

…s 8 Oxygen OS 11.0.1.1.IN21AA and OnePlus 8 Pro Oxygen OS 11.0.1.1.IN11AA'

Well, we can have a try when I get to update the installer.

Do you have magisk working already on the 8t? [MENTION=8253606]RayInkube[/MENTION]
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] RayInkube:
Well i dont have it right now installed because there is no real reason for me to unlock the bootloader atm, but i can do it in like 5 min if needit for sure :laugh:

And yeah, i dont want to rush anything in the development, my soon means in the future.. ahah
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
Actually it might be sooner than I first thought. I'll add here an installer zip with the next update I'm preparing based on the recent OnePlus source drop. By the look of it, it might just actually work, kebab/op8t was added there.
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] RayInkube:
Ok mate, i'm preparing my 8t with magisk meanwhile. Many thanks for your support and fast reply!
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
So here is 2.4.1 version, with all updated sources from OnePlus 8T source drop yesterday.

I've compiled in some additional config flags for dual warp charge thingy.

Installer zip 2.4.1 Op8t: https://www.androidfilehost.com/?fid=10763459528675570352

Let me know how it goes. Make sure to have your magisk patched img on your PC, before proceeding with flashing the zip, so that you can restore easily.

I still need to update the Config App and Companion app to support the model yet. For now, please try to boot it, and you can try KCal maybe with the current APKs as well (but the configs will look strange with features not present for op8t also appearing).

Also this link is op8t specific installer, the other one below won't work at flashing time, please be sure to use this link above
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
Duplicated later...
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] RayInkube:
Is booting fine NICE!! , now i'm testing some feature, Adaway is working fine, kcal is not working , face down screen off is working.

Keep testing..

Warp charging is working fine, let me know if you want me to test something specific .
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
That's great news [emoji4] I've just realized that the config and companion app should be fine anyway already as with partial product name match it will be showing the OnePlus 8 settings, which currently is just the same as with op8t could be.

Strange about the kcal feature, I thought that would be just fine, but well, at least it booted, which is very nice.

We will need some testing on op8pro as well, maybe kcal got broken with this new source drop, it is a rather big one. Let's see if someone can confirm that 2.4.1 and kcal still ok on op8pro
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
[MENTION=5346561]davie9x[/MENTION] could you please help out and check whether kcal still ok with this big source drop from OnePlus? Also please check if proximity sensor still ok, like in calls does it switch on/off the screen in face proximity
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] RayInkube:
Pocket detection is always active, no matter how much lux there are in the room
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
Can you do the following pls: After going back to stock boot img, please try to grab the config:

adb shell

su

cat /proc/config.gz >/sdcard/config.gz

Then pull it from there and share. Let's hope it's there with the stock kernel, and might help us.

Edit:

Also one more thing is interesting if the above is not possible

After booting to at least adb working state, try to capture a dmesg on cleanslate and on stock. So when device is booting and the usb connection gets ready for adb,

adb shell

su

dmesg>/data/local/tmp/bootlog.txt

Then grab it with adb pull /data/local/tmp/bootlog.txt

If we have both, we can compare what's going on with proximity sensor while booting.
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] RayInkube:
Kcal is working, i was using some **** apk for trying kcal support but in your configuration app is working fine, sorry my mistake!
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
By the way, how did you test proximity sensor/pocket detection?

Have you tried with calls, like starting a call and covering the proximity sensor if the screen gets off then on when you lift your hand/face from the screen?

Is it only not working with cleanslate features or with stock calling app?
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] RayInkube:
This is the config.gz on stock boot.img

https://drive.google.com/file/d/1hBiCFy7NsTKEKlw2ZlkYGw02z12CJbFl/view?usp=sharing

But i've noticed not that on stock boot proximity sensor is broken too :S

EDIT : wtf is going on... now i've made a call for testing the proximity sensor and is working fine, then, pocket detection is fixed... ??? i'm confused
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
Hmm, strange indeed :o maybe a screen protector or case? do you have one that might interfere?

Thanks for testing so many things at once. :) I've opened an alpha thread here:

https://xdaforums.com/oneplus-8t/development/kernel-cleanslate-r-2-4-1a1-t4180929
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] RayInkube:
I've removed the case and the screen protection for be sure before posting here, you want me now to flash CleanSlate and try if i have the same strange issue? You can quote me on alpha thread and we can keep going with testing ahah
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
- Update 2.4.1-

Official source update from OnePlus

- Merged in 11.0.1 sources.

- lots of OnePlus changes, optimizations

- supposedly fixes Warp charge ui issue

- If you test, please report back.

CleanSlate 2.4.1 Download:

Installer zip for OP8PRO:https://www.androidfilehost.com/?fid=10763459528675570351
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] TheKnux:
You're the bomb! Running 2.3.0 now and oh boy, this is nice! Great work man. Super satisfied with the performance/stability. What about 2.4.1 now? ?

Edit: running 2.4.0 now and KAdAway is working as it should and backlight dimmer is a nice feature that comes in handy. Keep up the great work! Before using AdAway, I couldn't use the Amazon app, i would always have to pause AdAway to use it. Now I don't have to. Definitely a much-needed feature.
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
- Update 2.4.2-

Minor fixes

- Switching off OpFreezer OnePlus kernel feature, left in from Android 10, it is now not to be used in Android 11

- Kernellog feature fix, should now work the first time after rebooting as well

CleanSlate 2.4.2 Download:

Installer zip for OP8PRO:https://www.androidfilehost.com/?fid=10763459528675570855

Boot img GLO 11.0.1 OP8PRO:https://www.androidfilehost.com/?fid=10763459528675570856
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] TheKnux:
[MENTION=3088420]tbalden[/MENTION] is it possible to use an installer to make flashing possible on both the OP8 and Pro like Radioactive kernel has using Flar2's installer or would that be a PITA? Sorry if I'm asking too much.
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
I update the threads at the same time usually, so right now no plan on that. I also update boot images, so I also have to pay attention to that. I only bundle them together when a single kernel can run on both devices, so the download zip is not bloated.

Op8 thread updated btw: https://xdaforums.com/showpost.php?p=83783519&postcount=174
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
So, things are gearing up very nicely on some new/old feature.

It's specifically SafetyNet passing (Kernel side Unlock Hide), without rooted/magisk framework.

As you could notice, in all CleanSlate kernel version since around Android 9+, I've always tried to provide boot images as well, not just AnyKernel installer zips.

Why? It's because that way, one can flash the kernel without using Magisk, simply by using fastboot tooling.

This way the system won't contain magisk, won't run magisk processes, and thus Applications (like banking and payment and whatnot), cannot detect it, as it's not there.

The CleanSlate kernels also always intend to add such things as Adblocking, Gestures, Kcal, Backlight Dimmer and other useful features, that in many cases can be enough for some of us. So there's no need for Magisk for these cases.

Now the Op8/Pro/T has an issue with this, and it was the inability to pass SafetyNet without magisk, as the Kernel side hiding of Unlocked state works, but breaks Fingerprint sensor.

The good news is that this Unlock Hide kernel feature is now back, in a special new form, and tests on Op8T show that it works and also keeps Fingerprint sensor working.

So 'SafetyNet kernel side pass' feature is back. Those users who only need the kernel features, will not need Magisk anymore.

Stay tuned, in a bit I'll release 2.5.0 boot image for Op8Pro/Op8/Op8T, and you can test for yourself. :)
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
- Update 2.5.0-

Unlock Hider + SafetyNet pass update

- This release is specifically for those who plan to NOT use Magisk, and still pass SafetyNet checks

--- providing a new 2.5.0 boot image based on Global ROM 11.0.1, with latest CleanSlate

--- Using the boot image only, SafetyNet now passes

--- To flash, fastboot flash method needs to be used, read original post. If flashed the img, will remove magisk/superuser

--- After that uninstall Magisk Manager, to make sure, banking apps, SafetyNet detection will not find the app.

- Tested on Op8T with the help of [MENTION=6453577]theincognito[/MENTION] and [MENTION=8253606]RayInkube[/MENTION]

CleanSlate 2.5.0 Download:

Boot img 2.5.0 (global 11.O.0, non-magisk): https://androidfilehost.com/?fid=10763459528675571367

No installer zip for this version here. I'll provide the zip in the original post, but since this update only concerns users who plan to not use magisk, here only adding the boot.img

Read original post for boot.img based installation process.
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] davie9x:
Hi [MENTION=3088420]tbalden[/MENTION],

could I request latest CS kernel features also for Android 10? At least the fingerprint workaround and the backlight dimmer. On Android 11 was so unstable for me (OOS), all my apps were crashing and freezing, TWRP couldn't be flashable, edXposed modules were crashing as well, so I had to revert back to A10 :/.

Thank you.
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
There's no need for fingerprint workaround for you as you already use magisk with exposed modules. It's useful for those who flash only the boot image and use Kernel features, without magisk.

It's also a bigger rework, so I don't want to replicate it.

Backlight dimmer patch from a11 could be added besides the current dimmer on a10. I'll see when I can check it, will try to squeeze it in. Luckily there's already a not so nice but working dimmer you can use in the meantime.
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] ronakbarman:
Hey, can you please please please add bbr2? :laugh:
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] shootind5nukes:
Can we please get the ttl netfilter target back. It was in your android 10 kernels.
[OnePlus 8 Pro  ROMs, Kernels, Recoveries, & Other ] tbalden:
- Update 2.5.1-

Add back stuff from Android 10 to 11 version

- Add back netfilter TTL target

- Add back more TCP congestion settings, e.g. BBR (v1)

CleanSlate 2.5.1 Download:

Installer zip 2.5.1: https://androidfilehost.com/?fid=10763459528675576263

Boot img 2.5.1 (global 11.O.0, non-magisk): https://androidfilehost.com/?fid=10763459528675576266

Read original post for boot.img based installation process.