• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[KERNEL] CleanSlate 🚀 R1.8.5/S2.8.9 |Gamma|AdBlock|SafetyNet|FlashLight|S2S|FingPr [23Oct]

Search This thread

tbalden

Recognized Developer
- Update Android SP1A Stable A12 - 2.8.9 -
Android S stable images update
- All features work, except SafetyNet CTS passing, only Basic Integrity
- Kernel 4.19.191, Oct sec level image


CleanSlate S 2.8.9 Downloads:
Rooted installer zip (unchanged from beta5):
CleanSlate S 2.8.9: https://www.androidfilehost.com/?fid=7161016148664805374

Non rooted, Android S image (sp1a 2021-08-12)
Pixel5 redfin SP1A boot image CS 2.8.9: https://www.androidfilehost.com/?fid=7161016148664827249



vbmeta of SP1A.015 to deactivate verity checks on the custom boot image and most probably to do factory reset, DO IT BEFORE FLASHING THE KERNEL, or it won't boot
You can try to deactivate the vbmeta check before the first booting up right after sideloading the OTA beta 1, maybe that will let you boot without factory reset after vbmeta verify disabling.

Deactivate, you might need to factory reset if you don't follow the OTA-update/disable-before-first-boot procedure (fastboot -w for factory reset)
Code:
fastboot flash --disable-verity --disable-verification vbmeta vbmeta_redfin-sp1a.210812.015.img

How to re-activate if you need later?
fastboot flash vbmeta vbmeta_redfin-sp1a.210812.015.img

Read first post in thread for installation details.
 

tbalden

Recognized Developer
- Update Android SP1A A12 November - 2.8.10 -
Android S stable November
- All features work, except SafetyNet CTS passing, only Basic Integrity
- Kernel 4.19.191, November sec level image
- adblock hosts file updated


CleanSlate S 2.8.10 Downloads:
Rooted installer zip (unchanged from beta5):
CleanSlate S 2.8.10: https://www.androidfilehost.com/?fid=7161016148664834675

Non rooted, Android S image (sp1a 2021-11-05)
Pixel5 redfin SP1A boot image CS 2.8.10: https://www.androidfilehost.com/?fid=7161016148664834674



vbmeta of SP1A.003 to deactivate verity checks on the custom boot image and most probably to do factory reset, DO IT BEFORE FLASHING THE KERNEL, or it won't boot
You can try to deactivate the vbmeta check before the first booting up right after sideloading the OTA beta 1, maybe that will let you boot without factory reset after vbmeta verify disabling.

Deactivate, you might need to factory reset if you don't follow the OTA-update/disable-before-first-boot procedure (fastboot -w for factory reset)
Code:
fastboot flash --disable-verity --disable-verification vbmeta vbmeta_redfin-sp1a.211105.003.img

How to re-activate if you need later?
fastboot flash vbmeta vbmeta_redfin-sp1a.211105.003.img

Read first post in thread for installation details.
 

elong7681

Senior Member
May 23, 2015
305
89
40
US
Moto X4
Google Pixel 2 XL
- Update Android SP1A A12 November - 2.8.10 -
Android S stable November
- All features work, except SafetyNet CTS passing, only Basic Integrity
- Kernel 4.19.191, November sec level image
- adblock hosts file updated



CleanSlate S 2.8.10 Downloads:
Rooted installer zip (unchanged from beta5):
CleanSlate S 2.8.10: https://www.androidfilehost.com/?fid=7161016148664834675

Non rooted, Android S image (sp1a 2021-11-05)
Pixel5 redfin SP1A boot image CS 2.8.10: https://www.androidfilehost.com/?fid=7161016148664834674




vbmeta of SP1A.003 to deactivate verity checks on the custom boot image and most probably to do factory reset, DO IT BEFORE FLASHING THE KERNEL, or it won't boot
You can try to deactivate the vbmeta check before the first booting up right after sideloading the OTA beta 1, maybe that will let you boot without factory reset after vbmeta verify disabling.

Deactivate, you might need to factory reset if you don't follow the OTA-update/disable-before-first-boot procedure (fastboot -w for factory reset)
Code:
fastboot flash --disable-verity --disable-verification vbmeta vbmeta_redfin-sp1a.211105.003.img

How to re-activate if you need later?
fastboot flash vbmeta vbmeta_redfin-sp1a.211105.003.img

Read first post in thread for installation details.
I have flashed vbmeta with flags disabled and I am rooted so do I need to flash vbmeta with disabled flags again before I use FKM to flash the cleanslate zip?
 

tbalden

Recognized Developer
I have flashed vbmeta with flags disabled and I am rooted so do I need to flash vbmeta with disabled flags again before I use FKM to flash the cleanslate zip?
Only need to do the disabling when you're after taking an update from adb sideload, before the first boot. So no need to do it again.
 

jamesfitzes

Senior Member
Feb 5, 2019
202
37
Would I be able to flash this kernel over Elemental X ? I am currently rooted with Zygisk on Android 11 so I'm not sure if I will lose root if I flash the kernel... Also can somebody please provide me with the steps on how to flash the kernel ? I'm afraid I might mess something up
 

elong7681

Senior Member
May 23, 2015
305
89
40
US
Moto X4
Google Pixel 2 XL
Would I be able to flash this kernel over Elemental X ? I am currently rooted with Zygisk on Android 11 so I'm not sure if I will lose root if I flash the kernel... Also can somebody please provide me with the steps on how to flash the kernel ? I'm afraid I might mess something up
tbalden's
CleanSlate kernel
for Google Pixel 5


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

As always tbalden is here to bring you authentic new features first in line, to his heart's chosen phone, this year Pixel 5.
No root elevation (magisk) needed for all functions and preference switches through CS Config App


GsRFfBr.jpg


Release Calendar
Version 2.8.9 - 23 of Oct 2021
Version 1.8.5/2.8.5 - 19 of May 2021

Version 2.8.6 - 13 of June 2021
Version 1.8.3 - 6 of April 2021
Version 2.8.2 - 29 of March 2021
Version 2.8.1 - 14 of March 2021
Version 1.8.1 - 7 of March 2021
Version 1.8.0 - 2 of March 2021
Version 1.7.5 - 11 of Feb 2021
Version 1.7.2 - 3 of Feb 2021
Version 1.7.1 - 8 of Dec 2020
Version 1.7.0 - 29 of Nov 2020
Version 1.6.0 - 26 of Nov 2020
Version 1.5.1 - 24 of Nov 2020
Version 1.5.0 - 23 of Nov 2020
Version 1.4.2 - 20 of Nov 2020
Version 1.4.0 - 20 of Nov 2020
Version 1.0.0a1 - 18 of Nov 2020


Should work on official ROM bases Feb 2021 sec level.




Features:

- Flashlight Notification/Call blinking (see video below)
- Vibrating Notification Reminder (DETAILS)
- Notification In-Pocket Booster boost notifications vibrations while phone is in pocket
- Vibration Booster boost haptic feedback strength (closer to Pixel4/Pixel3 levels)
- K.AdAway adblocking built-in kernel only, All browsers, Apps web-ads, except YouTube / streaming / Facebook ads
- SafetyNet pass passes if using without Magisk/Rooting, flashing the boot img only, Google Pay should work
- Battery Saver cut back max CPU freqs, 3 levels + touch boost limiter options

- Gamma Tweaks tweak gamma bias for 3 bands through RGB changes, Boost to higher brightness (don't overuse it, best only outdoors for better battery and no burn in!)
- Sweep to Sleep gestures - highly customizable
- DoubleTap & LongTap & SwipeUp 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
- Fingerprint gestures mapping set to Appswitch, Double tap sleep, easier Notif pull down, mappable Home
- KCAL Color Control (credit to @savoca)
- Blurred SystemUI tweak - restart system ui in Blurred mode from Companion app
- High Brightness Mode - slightly increase lumens in highest brightness level (panel's HBM)
- Always On Display dimmer - Lower the brightness for AOD screen in doze mode, when normal screen brightness is also low
- Backlight Dimmer - possibility to use lower panel brightness

- WireGuard VPN kernel support
- ThinLTO + CFI security hardened Read: https://source.android.com/devices/tech/debug/cfi
- 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
- built with Control Flow Integrity sec hardening from Android S versions onwards
- kept stable, no tweakings, just features
- stable and reliable, keeping close to stock except addition of Usability features


Feature demo



--
Gamma boost demo
--
Sweep2Sleep, DoubleTap notif pull down
--
Flashlight notification
--
Foreground App Kill gesture




Requirements
- Unlocked Pixel 5, stock or with magisk root
- From Android S, vbmeta verification must be disabled. Download the stock full firmware for you phone, extract Vbmeta.img and do:
Code:
fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img
--- In Android S, you might need to do a factory reset when disabling Verity after the system booted before with vbmeta enabled! If it doesn't boot with corruption problem, you need to do a factory reset with 'fastboot -w'
--- When updating with next OTA on Android S, I recommend to 'adb sideload ota.zip' and then BEFORE booting, go to Bootloader and with latest Vbmeta.img, make sure to switch off verity again with fastboot flashing vbmeta again, and boot only after that. That way factory reset won't be necessary it seems by experience so far.
- BACKUP: make sure you have a stock image downloaded (boot img) from Google (https://developers.google.com/android/images) 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.

- 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 boot.img

1. install magisk
2. patch the provided boot image
3. use fastboot boot/flash boot to test and then fully flash it, then enjoy

- For SafetyNet, Adblocking, after flashing you might need to restart the phone after the first boot, otherwise it might not work.
- If using Companion App for notification / gesture etc features, there's a setting in the app to Switch off Proximity sensor while Screen is on. This will prevent the flickering, but Face down screen off feature won't work

Known bugs

- None, please tell
- please disable magisk modules before reporting issues, and please provide logs if possible
- if it cannot boot at all after flash because of signature verification, read vbmeta requirements (Android S)

Download


Android S
Non rooted, Android S image (redfin)
Pixel5 (redfin) boot image SP1A (2021.08.12) CS 2.8.9: https://www.androidfilehost.com/?fid=7161016148664827249

Stock vbmeta image if you need to disable verity checks on Android S (redfin-sp1a.210812.015 global): https://www.androidfilehost.com/?fid=7161016148664827250
Stock boot image if you need to revert (redfin-sp1a.210812.015 global): https://www.androidfilehost.com/?fid=7161016148664827253

Flashable zip CS 2.8.9 for EXKM/FKM: https://www.androidfilehost.com/?fid=7161016148664805374


Android 11
Non rooted, Android R image (redfin)
Pixel5 (redfin) global boot image (2021.05.05) CS 1.8.5: https://www.androidfilehost.com/?fid=14943124697586335902

Stock boot image if you need to revert (redfin-rd2a.210305.006 global): https://www.androidfilehost.com/?fid=17248734326145746723

Flashable zip CS 1.8.5 for EXKM/FKM: https://www.androidfilehost.com/?fid=14943124697586335903


Non rooted, Android S image (redfin)
Pixel5 (redfin) boot image SPB2 (2021.05.13) CS 2.8.6: https://www.androidfilehost.com/?fid=14943124697586348945[/B]
Stock vbmeta image if you need to disable verity checks on Android S (redfin-spb2.210513.007 global): https://www.androidfilehost.com/?fid=14943124697586348973
Stock boot image if you need to revert (redfin-spb2.210513.007 global): https://www.androidfilehost.com/?fid=14943124697586348972

Flashable zip CS 2.8.6 for EXKM/FKM: https://www.androidfilehost.com/?fid=14943124697586348964
Pixel5 (redfin) boot image SPB1 (2021.05.05) CS 2.8.5: https://www.androidfilehost.com/?fid=14943124697586335897
Flashable zip CS 2.8.5 for EXKM/FKM: https://www.androidfilehost.com/?fid=14943124697586335898[/B]
Pixel5 (redfin) boot image SPP2 (2021.03.05) CS 2.8.2: https://www.androidfilehost.com/?fid=2188818919693772028
Flashable zip CS 2.8.2 for EXKM/FKM: https://www.androidfilehost.com/?fid=2188818919693772029[/B]
Pixel5 (redfin) global boot image (2021.04.05) CS 1.8.3: https://www.androidfilehost.com/?fid=2188818919693777068
Flashable zip CS 1.8.3 for EXKM/FKM: https://www.androidfilehost.com/?fid=2188818919693777069[/B]

Pixel5 (redfin) europe/verizon boot image (2021.03.05) CS 1.8.1: https://www.androidfilehost.com/?fid=2188818919693748700
Flashable zip CS 1.8.1 for EXKM/FKM: https://www.androidfilehost.com/?fid=2188818919693748701
[/B]
Pixel5 (redfin) boot image SPP1 (2021.03.05) CS 2.8.1: https://www.androidfilehost.com/?fid=2188818919693754862[/B]
Stock vbmeta image if you need to disable verity checks on Android S (redfin-spp1.210122.022 global): https://www.androidfilehost.com/?fid=2188818919693752995
Stock boot image if you need to revert (redfin-spp1.210122.022 global): https://www.androidfilehost.com/?fid=2188818919693753058

Flashable zip CS 2.8.1 for EXKM/FKM: https://www.androidfilehost.com/?fid=2188818919693754863
Pixel5 (redfin) europe/verizon boot image (2021.03.05) CS 1.8.0: https://www.androidfilehost.com/?fid=17248734326145746719
Flashable zip CS 1.8.0 for EXKM/FKM: https://www.androidfilehost.com/?fid=17248734326145746720
[/B]
Pixel5 (redfin) europe/verizon boot image (2021.01.05) CS 1.7.5: https://www.androidfilehost.com/?fid=17248734326145733993[/B]
Stock image if you need to revert (redfin-rd1a.210205.004 global): https://www.androidfilehost.com/?fid=17248734326145727993
Flashable zip CS 1.7.5 for EXKM/FKM: https://www.androidfilehost.com/?fid=17248734326145734006
Pixel5 (redfin) europe/verizon boot image (2020.12.05) CS 1.7.1: https://www.androidfilehost.com/?fid=10763459528675599753
Flashable zip CS 1.7.1 for EXKM/FKM: https://www.androidfilehost.com/?fid=10763459528675599754
Non rooted, Android R image
(redfin)
Pixel5 (redfin) europe/verizon boot image (2020.11.05) CS 1.7.0: https://www.androidfilehost.com/?fid=10763459528675593722
Flashable zip CS 1.7.0 for EXKM/FKM: https://www.androidfilehost.com/?fid=10763459528675593723
Pixel5 (redfin) europe/verizon boot image (2020.11.05) CS 1.6.0: https://www.androidfilehost.com/?fid=10763459528675591859
Flashable zip CS 1.6.0 for EXKM/FKM: https://www.androidfilehost.com/?fid=10763459528675591860
Pixel5 (redfin) europe/verizon boot image (2020.11.05) CS 1.5.1: https://www.androidfilehost.com/?fid=10763459528675590752
Flashable zip CS 1.5.1 for EXKM/FKM: https://www.androidfilehost.com/?fid=10763459528675590753
Pixel5 (redfin) europe/verizon boot image (2020.11.05) CS 1.5.0: https://www.androidfilehost.com/?fid=10763459528675589612
Flashable zip CS 1.5.0 for EXKM/FKM: https://www.androidfilehost.com/?fid=10763459528675589613
Pixel5 (redfin) europe/verizon boot image (2020.11.05) CS 1.4.2: https://www.androidfilehost.com/?fid=10763459528675588050
Flashable zip CS 1.4.2 for EXKM/FKM: https://www.androidfilehost.com/?fid=10763459528675588049


Pixel5 (redfin) europe/verizon boot image (2020.11.05) CS 1.4.1: https://www.androidfilehost.com/?fid=10763459528675587899
Flashable zip CS 1.4.1 for EXKM/FKM: https://www.androidfilehost.com/?fid=10763459528675587898
[/B]

Config Applications
Companion App 3.2.8-- Donation premium on PlayStore:

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

Configuration App 3.1.13 -- 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.8 -- Normal free download:
https://www.androidfilehost.com/?fid=2188818919693748698
Configuration App 3.1.13 -- Normal free download:
https://www.androidfilehost.com/?fid=2188818919693748699

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_msm_redfin/commits/cleanslate-wip

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 Pixel 5, Kernel for the Google Pixel 5


Contributors
tbalden
Source Code: https://github.com/tbalden/android_kernel_msm_redfin/commits/cleanslate-wip

Kernel Special Features: Sweep2Sleep, Tap gestures, Fingerprint double tap sleep, Color Control, Adblocking, SafetyNet

Created 2020-11-20
 

tbalden

Recognized Developer
Thanks can you do version without safetynet for us using kdrag0n mod?
Also way to update our own host files for adaway?

😎👍🏻
You can use kdrag0n mod right away, it's supposedly going to work with this kernel
Own host file is not possible without security compromises, so I avoid that in the kernel. For that you can switch off kernel based ad block and use some magisk based solution.
 
  • Like
Reactions: elong7681

badaas

Senior Member
Feb 28, 2008
1,586
297
Google Pixel 4a
Google Pixel 5
You can use kdrag0n mod right away, it's supposedly going to work with this kernel
Own host file is not possible without security compromises, so I avoid that in the kernel. For that you can switch off kernel based ad block and use some magisk based solution.
I use kdrag0n 2.2.0 (latest paid version) with zygisk and CTS profile failed. With patched stock kernel it passed.
Thanks
 
  • Like
Reactions: tbalden

seefu

Senior Member
Mar 28, 2008
58
2
How do we get this to pass CTS? Just wiped and flashed 2.8.10 with Android 12 Stock image and vbmeta verification disabled.

Can't use Google Pay or even download Netflix off play store..

Cheers, Sandy
 

tbalden

Recognized Developer
How do we get this to pass CTS? Just wiped and flashed 2.8.10 with Android 12 Stock image and vbmeta verification disabled.

Can't use Google Pay or even download Netflix off play store..

Cheers, Sandy
I'm looking into this, to make it work with kdragons module so that with magisk it could work together and pass it. The kernel in itself on a12 won't work like it worked on a11 standalone passing the CTS.
On a12 I see no way yet to make that kernel only, so unfortunately magisk and kdragons module will be needed. I'll release a test build to see if it works together that way in a few days.
 

seefu

Senior Member
Mar 28, 2008
58
2
I'm looking into this, to make it work with kdragons module so that with magisk it could work together and pass it. The kernel in itself on a12 won't work like it worked on a11 standalone passing the CTS.
On a12 I see no way yet to make that kernel only, so unfortunately magisk and kdragons module will be needed. I'll release a test build to see if it works together that way in a few days.
Thanks mate! Looking forward to it.

Just purchased both your apps off playstore about 40 minutes ago too to thank you for your work!
 

tbalden

Recognized Developer

Important notice

There's a major change in CleanSlate Config and CleanSlate Companion app starting from now on Pixel4XL / 5 and later Pixel 6 Pro devices.
To retain the compatibility with older kernel versions / devices, the App will be released as a Beta program on Play Store and as new Free version on the XDA threads where the kernel supports the new CleanSlate app versions.

For further releases a new version will be a must have to configure / use the kernel features.
Because of the stricter Play Store minimum android SDK level, the Apps configuration file handling needed an update, and the path to those files cannot remain the Internal Storage root folder.

In order to use any further newer version of this kernel released from now on, you should either update the Free version from the download links provided later, or if using the Premium app, you'll need to Join the Beta program on Google Play Store like seen below.

URLs for Premium app beta program for later joining from browser or phone​

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

Migration of configs​

Also if you want to migrate configuration files, you can do so with a File manager like CX File Manager. Copy files from Internal Storage root folder /sdcard/uci_user.cfg and /sdcard/cleanslate folder to:

/sdcard/Android/data/org.cleanslate.csconfig/cache/

Joinging the Beta program process screenshots​

Here is how it looks joining the Beta program. Can take a few minutes.
But only update when the new kernel version is released here which supports the Beta version:
config-1.jpgconfig-2.jpgconfig-3.png

companion-1.jpgcompanion-2.jpgcompanion-3.jpg
 

Top Liked Posts