[KERNEL] CleanSlate 🚀 R 2.6.3 |KCal|Dimmer|AdBlock|SafetyNet|FlashLight|Dtap [31Jan]

Search This thread

tbalden

Recognized Developer
Oct 22, 2010
9,944
17,016
Budapest
www.virtuousrom.com
tbalden's
CleanSlate kernel
for OnePlus 8


The User Experience Kernel leaning towards Stock Stability plus UX features.
Rock stable stock approach, performance smooth and issue free

"No-Root is a State of Mind"

6ZpxvLq.png

tbalden is here to bring you authentic new features first in line, this year OnePlus 8.
No root elevation (magisk) needed for all functions and preference switches through CS Config App

GsRFfBr.jpg


Release Calendar
Version 2.6.3 - 31 of Jan 2021
Version 2.6.1 - 6 of Dec 2020

Version 2.6.0 - 22 of Nov 2020
Version 2.5.1 - 2 of Nov 2020
Version 2.5.0 - 25 of Oct 2020
Version 2.4.2 - 24 of Oct 2020
Version 1.2.6 - 20 of Sep 2020
Version 1.2.5 - 7 of Aug 2020
Version 1.2.3 - 10 of July 2020
Version 1.2.2 - 2 of July 2020
Version 1.2.0 - 8 of June 2020
Version 1.1.2 - 1 of June 2020
Version 1.1.1 - 22 of May 2020
Version 1.0.1 - 16 of May 2020
Version 1.0.0 beta4 - 12 of May 2020
Version 1.0.0 beta1 - 10 of May 2020
Version 1.0.0 alpha - 8 of May, 2020


Should work on official ROM base 11.0.x, 10.5.9-10.5.10


Features:

- Flashlight Notification/Call blinking (see video below)
- AdrenoBoost v2.2 - boost GPU for gaming
- Dynamic Schedtune Boost (EAS boosting) - credits to @joshuous
- Optimizations, compiled with Clang 10.0.1
- Vibrating Notification Reminder (DETAILS)
- Vibration power control / Notification booster In-Pocket
- Battery Saver - 3 levels with Touch limiting to cut back max freqs (Gestures & Extras / Advanced mode)
- K.AdAway adblocking All browsers, Apps, except YouTube / streaming
- Unlock Hider - SafetyNetPass kernel side hiding, no magisk needed (use boot image flash) - Android11 only
- Sweep to Sleep gestures - highly customizable
- DoubleTap & LongTap on corner area gestures - new way to pull down android Notification Area or screen off
- Sweep/Tap gesture to force close foreground app - DETAILS HERE
- Backlight Dimmer - possibility to use lower panel brightness (switch DC dimming off in Lab settings!)
- KCAL Color Control (credit to @savoca)
- WireGuard VPN kernel support
- Face down screen off - put phone face down to turn screen off
- Kernel Log / Crash dump to internal storage/sdcard - no root/magisk needed, from Companion App use Kernel Log button
- CleanSlate Companion / Config - rootless app to configure


Facts:

- no root required, use /sdcard/uci_user.cfg file to configure 99% of the features without rooting. If you need tweak apps (e.g. EXKM / FK) you'll need rooting!
- built on top of kernel sources released by Google
- built with standard toolchain for stability and efficiency
- kept stable, no tweakings, just features
- stable and reliable, keeping close to stock except addition of Usability features


Feature demo


DoubleTap notif pull down


Flashlight notification

--
Foreground App Kill gesture



Requirements
- Unlocked OnePlus 8 Pro, stock or with magisk root
- BACKUP: make sure you have a stock image downloaded (boot img) from OnePlus before installing this!

Installation Guide
Firstly install CleanSlate configuration and CleanSlate companion apps on your phone (both found down below in Download section). Set them up initially.
Copy unzipped hosts_k file to your sdcard (/sdcard/hosts_k) for k.adaway functionality in Chrome browser
- Non-rooted method: 0. download the non-rooted boot img
1. reboot to bootloader (adb reboot-bootloader)
2. temporary boot cleanslate_x.y.z_stock_20xx-xx-xx.img (fastboot boot cleanslate.......img)
3. if everything went fine, you can reboot to bootloader and flash the image: fastboot flash boot cleanslate.......img
4. reboot, enjoy
- Rooted method: 0. download the installer zip
1. install magisk and a capable kernel manager like EXKM/FrancoKernel
2. flash the cleanslate installer zip from the kernel manager
3. reboot, enjoy



Known bugs
- None, please tell

Download

Android 11

Installer zip
For Kernel Managers (EXKM,Franco etc)

Installer flashable 2.6.3 https://www.androidfilehost.com/?fid=17248734326145725766

OOS GLO 11.O.5 boot images
CleanSlate 2.6.3 non-rooted https://www.androidfilehost.com/?fid=17248734326145725768

Android 10

Installer zip
For Kernel Managers (EXKM,Franco etc)

Installer flashable 1.2.6: https://www.androidfilehost.com/?fid=8889791610682941427
If your Fingerprint hw is newer/doesn't work on custom kernels ---> installer flashable 1.2.7: https://www.androidfilehost.com/?fid=8889791610682949537

OOS EU 10.5.10 boot images
CleanSlate 1.2.6 non-rooted https://www.androidfilehost.com/?fid=8889791610682941426

Installer flashable 2.6.1 https://www.androidfilehost.com/?fid=10763459528675598573

OOS GLO 11.O.5 boot images
CleanSlate 2.6.1 non-rooted https://www.androidfilehost.com/?fid=10763459528675598574
Installer flashable 2.6.0 https://www.androidfilehost.com/?fid=10763459528675589036

OOS GLO 11.O.5 boot images
CleanSlate 2.6.0 non-rooted https://www.androidfilehost.com/?fid=10763459528675589035
Installer flashable 2.5.1 https://www.androidfilehost.com/?fid=10763459528675576264

OOS GLO 11.O.5 boot images
CleanSlate 2.5.1 non-rooted https://www.androidfilehost.com/?fid=10763459528675576267
Installer flashable 2.5.0 https://www.androidfilehost.com/?fid=10763459528675571430

OOS GLO 11.O.5 boot images
CleanSlate 2.5.0 non-rooted https://www.androidfilehost.com/?fid=10763459528675571429
Installer flashable 2.4.2 https://www.androidfilehost.com/?fid=10763459528675570860

OOS GLO 11.O.5 boot images
CleanSlate 2.4.2 non-rooted https://www.androidfilehost.com/?fid=10763459528675570861
Installer flashable 2.4.0 https://www.androidfilehost.com/?fid=10763459528675569819

OOS GLO 11.O.5 boot images
CleanSlate 2.4.0 non-rooted https://www.androidfilehost.com/?fid=10763459528675569820
Installer flashable 1.2.5: https://www.androidfilehost.com/?fid=8889791610682908254

OOS EU 10.5.10 boot images
CleanSlate 1.2.5 non-rooted https://www.androidfilehost.com/?fid=8889791610682908255
Installer flashable 1.2.3v2: https://www.androidfilehost.com/?fid=8889791610682890158

OOS EU 10.5.10 boot images
CleanSlate 1.2.3v2 non-rooted https://www.androidfilehost.com/?fid=8889791610682890159
Installer flashable 1.2.2: https://www.androidfilehost.com/?fid=8889791610682883255

OOS EU 10.5.9 boot images
CleanSlate 1.2.2 non-rooted https://www.androidfilehost.com/?fid=8889791610682883256
Installer flashable 1.2.0: https://www.androidfilehost.com/?fid=12420606652095398761
CleanSlate 1.2.0 non-rooted https://www.androidfilehost.com/?fid=12420606652095398762
Installer flashable 1.1.2v1 https://www.androidfilehost.com/?fid=4349826312261826723

Android OOS 10.5.8 boot images
CleanSlate 1.1.2 non-rooted https://www.androidfilehost.com/?fid=4349826312261823587
Magisk (stable) version 1.1.2 https://www.androidfilehost.com/?fid=4349826312261823588
Installer flashable 1.1.2 https://www.androidfilehost.com/?fid=4349826312261823586
Installer flashable 1.1.1 https://www.androidfilehost.com/?fid=4349826312261815973

Android OOS 10.5.8 boot images
CleanSlate 1.1.1 non-rooted https://www.androidfilehost.com/?fid=4349826312261815968
Magisk (stable) version 1.1.1 https://www.androidfilehost.com/?fid=4349826312261815969
Installer zip for Kernel Managers (EXKM,Franco etc)
Installer flashable 1.0.2 https://www.androidfilehost.com/?fid=4349826312261812201

Android OOS 10.5.8 boot images
CleanSlate 1.0.2 non-rooted https://www.androidfilehost.com/?fid=4349826312261812203
Magisk (stable) version 1.0.2 https://www.androidfilehost.com/?fid=4349826312261812202
Installer flashable 1.0.1 https://www.androidfilehost.com/?fid=4349826312261811591

Android OOS 10.5.8 boot images
CleanSlate 1.0.1 non-rooted https://www.androidfilehost.com/?fid=4349826312261811593
Magisk version 1.0.1 https://www.androidfilehost.com/?fid=4349826312261811592
Installer zip for Kernel Managers (EXKM,Franco etc)
Installer flashable 1.0.0 beta4: https://www.androidfilehost.com/?fid=4349826312261806461

Config Applications
Companion App 3.2.3 -- Donation premium on PlayStore:
https://play.google.com/store/apps/details?id=org.cleanslate.csservice
Configuration App 3.1.1 -- Donation premium on playstore:
- additional features in premium app: App Themes, Profiles, Profile Switch QuickTiles
https://play.google.com/store/apps/details?id=org.cleanslate.csconfig

Companion App 3.2.3 -- Normal free download:
https://www.androidfilehost.com/?fid=10763459528675588614
Configuration App 3.1.1 -- Normal free download:
https://www.androidfilehost.com/?fid=10763459528675587849

Donation:
If you appreciate this, don't forget to hit the Thanks button, Vote 5 stars on Thread, or consider to Donate. Donations here
Thank you!

Donators Hall of Fame


Src: https://github.com/tbalden/android_kernel_oneplus_sm8250/commits/cleanslate

Special thanks to AnyKernel installer developer: osm0sis
To @flar2 for his original works
To @Freak07 for all his work on XDA and help
To @Captain_Throwback

Sharing policy:
As this is all GPL licensed kernel source, you can use it in your code, but don't forget about proper credit.


XDA:DevDB Information
CleanSlate Kernel for OnePlus 8, Kernel for the OnePlus 8

Contributors
tbalden
Source Code: https://github.com/tbalden/android_kernel_oneplus_sm8250

Kernel Special Features:

Version Information
Status: Beta
Current Stable Version: 2.6.0
Stable Release Date: 2020-11-22

Created 2020-05-10
Last Updated 2020-11-22
 
Last edited:

tbalden

Recognized Developer
Oct 22, 2010
9,944
17,016
Budapest
www.virtuousrom.com
- Update 1.0.0 Beta 2 -

Changes
- Added Notification Vibration based detection for Flashlight Notif/Notif Reminder features
--- Some notifications are not possible to be detected in the companion app, but this will do the detection on kernel side, when vibration mode is active on the phone
- Perf optimization patches (thanks to Freak07, flar2 and kristofpetho on this one)
Code:
msm: kgsl: run kgsl-workqueue as a high prio wq
kgsl: Increase priority of RT thread
PM: devfreq: Use high priority workqueue
msm: vidc: disable debug logs
msm: msm_bus: Kill transaction logging functionality
msm: kgsl: Turn debugfs off
msm_bus: remove tracer
drm/msm/sde: Omit debug logging code
drivers: msm: Don't copy fence names by default
staging: binder - Set binder_debug_mask=0 to suppress logging
selinux: Remove audit dependency
(cleanslate) ntf: vib: add notification detection to RTP call



CleanSlate 1.0.0 Beta2 Downloads:
Installer zip for Kernel Managers (EXKM,Franco etc)
Installer flashable 1.0.0 beta2: https://www.androidfilehost.com/?fid=4349826312261804973

Android OOS 10.5.6 global boot images
CleanSlate 1.0.0 beta2 non-rooted https://www.androidfilehost.com/?fid=4349826312261804972
Magisk version 1.0.0 beta2 https://www.androidfilehost.com/?fid=4349826312261804974

Companion App 2.6.9 -- Donation premium version from PlayStore here:
https://play.google.com/store/apps/details?id=org.cleanslate.csservice
Configuration App 2.12.5 -- Donation premium on playstore:
https://play.google.com/store/apps/details?id=org.cleanslate.csconfig[/size]

Companion App 2.6.9 -- Normal free download: https://www.androidfilehost.com/?fid=4349826312261804490
Configuration App 2.12.5 -- Normal free download: https://www.androidfilehost.com/?fid=4349826312261804489

Read first post in thread for installation details.
 

tbalden

Recognized Developer
Oct 22, 2010
9,944
17,016
Budapest
www.virtuousrom.com
- Update 1.0.0 Beta 3 -

Changes
- Add: Vibration Power set (haptics)
--- Control the Vibration power of haptics, vibrations
- Add: Notification Booster in Pocket
--- Notification type vibrations boosted when phone screen's is off and proximity sensor is covered (e.g. in your
pocket)
- New config app version for the new settings
- Build: use clang-10.0.1 from now on
- Fix: Possible fix for KAdAway feature for Chrome ad blocking
- NEW FEATURE IS NOT TESTED (I HAVE NO DEVICE), PLEASE REPORT YOUR FINDINGS, Attach DMESG if errors



CleanSlate 1.0.0 Beta3 Downloads:
Installer zip for Kernel Managers (EXKM,Franco etc)
Installer flashable 1.0.0 beta3: https://www.androidfilehost.com/?fid=4349826312261805632

Android OOS 10.5.6 global boot images
CleanSlate 1.0.0 beta3 non-rooted https://www.androidfilehost.com/?fid=4349826312261805631
Magisk version 1.0.0 beta3 https://www.androidfilehost.com/?fid=4349826312261805633

Cleanslate Configuration App 2.12.6 Free version Download
https://www.androidfilehost.com/?fid=4349826312261805614

Read first post in thread for installation details.
 
Last edited:
  • Like
Reactions: scott.hart.bti

scott.hart.bti

Inactive Recognized Developer
Mar 19, 2012
2,490
17,272
Reading
@scott.hart.bti
KAdaway might be fixed in this beta3
Also additional features need testing for Vibration power setting (dampening / strengthening possibility)
And additional In pocket notification vib boosting too

Nice. You've been busy! :). Vibration control doesn't seem to be working. I pulled a log. When you turn on the vibration control and test the vibration, it returns an odd vibrate feeling and even if you set the level to 0, it does not change the intensity of the weird vibrate. It's hard to describe. It's not a solid crisp vibrate .. instead it's like something is loose and rattling around type vibrate. Ad blocker doesn't seem to be working. Tested with the same website you mentioned before.
 

Attachments

  • 2020-05-12_09.28.zip
    159.7 KB · Views: 4
Last edited:
  • Like
Reactions: tbalden

tbalden

Recognized Developer
Oct 22, 2010
9,944
17,016
Budapest
www.virtuousrom.com
Nice. You've been busy! :). Vibration control doesn't seem to be working. I pulled a log. When you turn on the vibration control and test the vibration, it returns an odd vibrate feeling and even if you set the level to 0, it does not change the intensity of the weird vibrate. It's hard to describe. It's not a solid crisp vibrate .. instead it's like something is loose and rattling around type vibrate. Ad blocker doesn't seem to be working. Tested with the same website you mentioned before.
Thanks so much for testing. I'll check the log.
I guess this isn't going to be too easy without the device. The patch is based on patches for the op7 devices, so might be that it is totally useless as it is. :)


Sent from my Pixel 4 XL using Tapatalk
 

tbalden

Recognized Developer
Oct 22, 2010
9,944
17,016
Budapest
www.virtuousrom.com
Nice. You've been busy! :). Vibration control doesn't seem to be working. I pulled a log. When you turn on the vibration control and test the vibration, it returns an odd vibrate feeling and even if you set the level to 0, it does not change the intensity of the weird vibrate. It's hard to describe. It's not a solid crisp vibrate .. instead it's like something is loose and rattling around type vibrate. Ad blocker doesn't seem to be working. Tested with the same website you mentioned before.

OK, found an issue with the vibration percentage parameter read, got it from another wrong setting name, and so it was constantly high (~70%). Will correct that, add also some more logs, and also found another issue with vibration detection for "In pocket" boosting... probably actually getting the vibration power stronger than stock won't really work (it will only rattle on high settings, like it did on op7pro), but at least setting it lower for haptics and non-in-pocket vibrations can be done, and leave a stronger vibration power for in-pocket notifications...

I'll bake a new beta right now and post it here....
 

tbalden

Recognized Developer
Oct 22, 2010
9,944
17,016
Budapest
www.virtuousrom.com
OK, found an issue with the vibration percentage parameter read, got it from another wrong setting name, and so it was constantly high (~70%). Will correct that, add also some more logs, and also found another issue with vibration detection for "In pocket" boosting... probably actually getting the vibration power stronger than stock won't really work (it will only rattle on high settings, like it did on op7pro), but at least setting it lower for haptics and non-in-pocket vibrations can be done, and leave a stronger vibration power for in-pocket notifications...

I'll bake a new beta right now and post it here....

@scott.hart.bti
Here are beta4 installer and boot imgs, more logs and fix for the percentage issue:
Installer zip 1.0.0 beta4 https://www.androidfilehost.com/?fid=4349826312261806343
boot img non rooted: https://www.androidfilehost.com/?fid=4349826312261806342
magisk boot img: https://www.androidfilehost.com/?fid=4349826312261806344
 
  • Like
Reactions: scott.hart.bti

scott.hart.bti

Inactive Recognized Developer
Mar 19, 2012
2,490
17,272
Reading
@scott.hart.bti
KAdaway might be fixed in this beta3
Also additional features need testing for Vibration power setting (dampening / strengthening possibility)
And additional In pocket notification vib boosting too

@scott.hart.bti
Here are beta4 installer and boot imgs, more logs and fix for the percentage issue:
Installer zip 1.0.0 beta4 https://www.androidfilehost.com/?fid=4349826312261806343
boot img non rooted: https://www.androidfilehost.com/?fid=4349826312261806342
magisk boot img: https://www.androidfilehost.com/?fid=4349826312261806344

Perfect. It is now working, however as you mentioned if it is set too high it'll have the awful rattle vibrate effect. Not sure if anything can be changed, but I went through the levels and anything above 40 causes the effect. 40 and below are safe.
 
  • Like
Reactions: tbalden

tbalden

Recognized Developer
Oct 22, 2010
9,944
17,016
Budapest
www.virtuousrom.com
Perfect. It is now working, however as you mentioned if it is set too high it'll have the awful rattle vibrate effect. Not sure if anything can be changed, but I went through the levels and anything above 40 causes the effect. 40 and below are safe.
Thank you!

That means we have a tiny bit of plus compared to the stock, about 15 percent relatively. I'll change the applied rate in the kernel to match your findings, so that 100 percentage set in the app will be devided to map to non rattling values.

I had the very same on op6 when first I tried.


Sent from my Pixel 4 XL using Tapatalk
 
  • Like
Reactions: scott.hart.bti

scott.hart.bti

Inactive Recognized Developer
Mar 19, 2012
2,490
17,272
Reading
Thank you!

That means we have a tiny bit of plus compared to the stock, about 15 percent relatively. I'll change the applied rate in the kernel to match your findings, so that 100 percentage set in the app will be devided to map to non rattling values.

I had the very same on op6 when first I tried.


Sent from my Pixel 4 XL using Tapatalk

Nice! Keep up the good work. Glad to see you and flar already pumping out stable kernels. :good:
 
  • Like
Reactions: tbalden

tbalden

Recognized Developer
Oct 22, 2010
9,944
17,016
Budapest
www.virtuousrom.com
Finally got to create a summary video of CleanSlate kernel features. Unfortunately I don't yet have the OnePlus 8 or 8 Pro, but the features look more or less the same on OnePlus 8/Pro.. (Except AOD dimmer, it's not present on Op8/Pro)

Enjoy! :)

Feature demo



Sent from my Pixel 4 XL using Tapatalk
 

tbalden

Recognized Developer
Oct 22, 2010
9,944
17,016
Budapest
www.virtuousrom.com
Nice! Keep up the good work. Glad to see you and flar already pumping out stable kernels. :good:

@scott.hart.bti
Thanks for the support and testing... I want to bump to stable version just around today, but one last thing I've tried to resolve, which I managed to fix on Pixel4XL, and it is the safetynet CTS pass without magisk/magisk-hide, thru kernel method. Just yesterday I tested the fix on Pixel4XL android 10, but now I am looking for op8 testing.

So the goal here is to still have Safetynet CTS passed, but without root/magisk/magisk-hide, only by kernel level "hide".
Simply temporarily booting (fastboot boot) the image and then without any magisk patched in, try the SafetyNet attestation, either in a separate app https://play.google.com/store/apps/details?id=com.scottyab.safetynet.sample&hl=en_US or thru magisk installer Check SafetyNet is a good test too.
Also please test whether the Fingerprint scanner still functions with that:

Here's the 10.5.8 EU bootimage repacked with kernel source 10.5.5 based cleanslate with the patch, no magisk in it:
https://www.androidfilehost.com/?fid=4349826312261810100
 
  • Like
Reactions: scott.hart.bti

scott.hart.bti

Inactive Recognized Developer
Mar 19, 2012
2,490
17,272
Reading
Thank you!

That means we have a tiny bit of plus compared to the stock, about 15 percent relatively. I'll change the applied rate in the kernel to match your findings, so that 100 percentage set in the app will be devided to map to non rattling values.

I had the very same on op6 when first I tried.


Sent from my Pixel 4 XL using Tapatalk

@scott.hart.bti
Thanks for the support and testing... I want to bump to stable version just around today, but one last thing I've tried to resolve, which I managed to fix on Pixel4XL, and it is the safetynet CTS pass without magisk/magisk-hide, thru kernel method. Just yesterday I tested the fix on Pixel4XL android 10, but now I am looking for op8 testing.

So the goal here is to still have Safetynet CTS passed, but without root/magisk/magisk-hide, only by kernel level "hide".
Simply temporarily booting (fastboot boot) the image and then without any magisk patched in, try the SafetyNet attestation, either in a separate app https://play.google.com/store/apps/details?id=com.scottyab.safetynet.sample&hl=en_US or thru magisk installer Check SafetyNet is a good test too.
Also please test whether the Fingerprint scanner still functions with that:

Here's the 10.5.8 EU bootimage repacked with kernel source 10.5.5 based cleanslate with the patch, no magisk in it:
https://www.androidfilehost.com/?fid=4349826312261810100

Safetynet passes, but no fingerprint hardware available as per the message showing on the lockscreen. Also unable to enroll new fingerprint
 
  • Like
Reactions: tbalden

tbalden

Recognized Developer
Oct 22, 2010
9,944
17,016
Budapest
www.virtuousrom.com
Safetynet passes, but no fingerprint hardware available as per the message showing on the lockscreen. Also unable to enroll new fingerprint
Oh that's unfortunate... I thought it might help as it is. But I'll think a bit more which of these affect safety net and which not so maybe we could have both

Thanks for the test!

Sent from my Pixel 4 XL using Tapatalk
 

Top Liked Posts