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

Development [KERNEL] CleanSlate P6 - S1.3.1 |S2S|AdBlock|VIB|BatterySvr [Jan 15]

Search This thread

tbalden

Recognized Developer
tbalden's
CleanSlate kernel
for Google Pixel 6


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

No root elevation (magisk) needed for all functions and preference switches through CS Config App

GsRFfBr.jpg


Release Calendar
Version 1.3.1 - 15 of Jan 2021
Version 1.1.0 - 20 of Nov 2021



Should work on official ROM bases Nov 2021 sec level.




Features:

- 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
- Battery Saver cut back max CPU freqs, 3 levels + touch boost limiter options
- 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 - BASIC passes Basic, without Magisk/Rooting. CTS won't pass.
- ThinLTO + CFI security hardened Read: https://source.android.com/devices/tech/debug/cfi
- 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/Android/data/org.cleanslate.csconfig/cache/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


Sweep2Sleep, DoubleTap notif pull down
--
Foreground App Kill gesture


Requirements
- Unlocked Pixel 6, stock or with magisk root
- From Android S, vbmeta verification must be disabled. ONLY if you use Magisk Manager canary latest (to patch boot image with Magisk) you can skip vbmeta verification disabling! If using the boot image provided in the zip without Magisk, you MUST disable verification! 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, dtbo, vendor dlkm img) from Google (https://developers.google.com/android/images) before installing this!

Installation Guide
Firstly install CleanSlate configuration and CleanSlate companion BETA program apps on your phone (both found down below in Download section). Set them up initially.
- When installing Premium version from Play Store, you should join the Beta program for both apps, and install the beta version! Otherwise features won't work.
- Non-rooted method: 0. download the installation zip, Unzip it to your PC.

Code:
1. reboot to bootloader:
$ adb reboot-bootloader
2. Flash boot image and stock dtbo img:
$ fastboot flash boot cleanslate-raven-boot-xxxxxx.yyy--ZZZ.img
$ fastboot flash dtbo stock-dtbo-boot-xxxxxx.yyy.img
3. if everything went fine, reboot to FastbootD and flash vendor_dlkm modules image:
$ fastboot reboot fastboot
$ fastboot flash vendor_dlkm cleanslate-raven-vendor_dlkm-xxxxxx.yyy--ZZZ.img
4. reboot (fastboot reboot), enjoy
- Rooted method: do the same as above, but before flashing boot, root it on the phone from Magisk Manager

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 images (redfin)
Pixel6/6pro Images zip (DO NOT FLASH AS ZIP) for Android12 (2022.01.05)
CS 1.3.1: https://www.androidfilehost.com/?fid=17825722713688269355




Pixel6/6pro Images zip (DO NOT FLASH AS ZIP) for Android12 (2021.08.17)
CS 1.1.0: https://www.androidfilehost.com/?fid=7161016148664842834



Config Applications
Companion App 3.3.x-- Donation premium on PlayStore
--- MUST Use BETA program for this phone:

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

Configuration App 3.2.x -- Donation premium on playstore
--- MUST Use BETA program for this phone:

- 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.3.4 -- Normal free download:
https://www.androidfilehost.com/?fid=17825722713688265361
Configuration App 3.2.3 -- Normal free download:
https://www.androidfilehost.com/?fid=17825722713688265360

Donation:
If you appreciate this, don't forget to hit the Like button, or consider to Donate. Donations here
Thank you!

Donators Hall of Fame



Src: https://github.com/tbalden/android_kernel_gs_raviole

Special thanks
To @Freak07 for all his work on XDA and help
To @flar2 for his original works
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.
[/b]
 
Last edited:

tbalden

Recognized Developer
Thanks. Nice to see cleanslate here. Should Gpay work unrooted? I cant add a card unrooted... anybody able to use Gpay unrooted on cleanslate?
No, the safetynet check fails CTS profile unfortunately. No longer possible to pass with custom kernel only. Possibly kdragons module could help, but it needs root indeed
 

tbalden

Recognized Developer
I paid for the beta configuration app but I got this message.. how to make it away?View attachment 5472011
Hmm, sorry for the inconveniences, this is an issue with the app. Please for now set a smaller font in system display settings, so that the message fits and then you'll get the dismiss button visible.

Will fix it a bit later, thanks for reporting
 
  • Like
Reactions: trai_th

tbalden

Recognized Developer
- Update Android SP1A A12 - 1.2.2 -
Android S stable - December
- December sec update - google sources
- adblock hosts file updated


CleanSlate S 1.2.2 Downloads:

Android S images zip (sp1a 2021-12-05)
Pixel6/pro (not flashable, contains images) CS 1.2.2: https://www.androidfilehost.com/?fid=17825722713688250034


vbmeta inside the zip of SP1A.016 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 , 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)

fastboot flash --disable-verity --disable-verification vbmeta stock-vbmeta-211205.016.img

How to re-activate if you need later?
fastboot flash vbmeta stock-vbmeta-211205.016.img


Read first post in thread for installation details.
 

tbalden

Recognized Developer
  • Like
Reactions: bobby janow

aleck0112

Senior Member
Jan 5, 2017
211
54
sorry long time no touching stupid question. Unlocked requirement here means unlocked bootloader yes? How to check if my phone is unlocked or not?
 

tbalden

Recognized Developer
sorry long time no touching stupid question. Unlocked requirement here means unlocked bootloader yes? How to check if my phone is unlocked or not?
Well, if you bought it second hand, easy way, if you restart your phone, on unlocked bootloader, it will give you a long yellow text for a few seconds, telling you that it's unlocked and unsecure.
 
  • Like
Reactions: aleck0112

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Working on new update, and fixing some touch gestures related bugs. Going to publish in a couple of hours.
    1
    Are you rooted or not? If not does it pass Safetynet checks?
    1
    Are you rooted or not? If not does it pass Safetynet checks?
    my P6 is rooted and passed SafetyNet
    1
    Are you rooted or not? If not does it pass Safetynet checks?
    my P6 is rooted and passed SafetyNet
    Indeed, currently I think the only way to pass on an unlocked p6 is to use kdragons module. I've updated the first post to reflect that clearer
    1
    - Update Android SP1A A12 - 1.3.1 -
    Android S stable - January update / fixes
    - Update to latest google sources
    - Fix: Touch Gestures feature bug: rare single tap detected as double tap issue
    - Fix: Touch Gestures feature bug: touch input blocked issue when using gesture directly after FP unlock from AOD, until screen off/on cycle
    - adblock hosts file updated


    CleanSlate S 1.3.1 Downloads:

    Android S images zip (sp1a 2022-01-05)
    Pixel6/pro (not flashable, contains images) CS 1.3.1: https://www.androidfilehost.com/?fid=17825722713688269355


    vbmeta inside the zip of SP1A.007 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 , 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)

    fastboot flash --disable-verity --disable-verification vbmeta stock-vbmeta-220105.007.img

    How to re-activate if you need later?
    fastboot flash vbmeta stock-vbmeta-220105.007.img


    If you're using Magisk rooting and patch the boot image before flashing, then you can skip verity disabling. If you do not use Magisk patching, you should always disable verification when applying OTAs from adb sideload, before booting up!


    Free app versions:
    (Premium playstore versions are also up.)
    Config app 3.2.3: https://www.androidfilehost.com/?fid=17825722713688265360
    Companion app 3.3.4: https://www.androidfilehost.com/?fid=17825722713688265361

    Read first post in thread for installation details.
  • 12
    tbalden's
    CleanSlate kernel
    for Google Pixel 6


    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

    No root elevation (magisk) needed for all functions and preference switches through CS Config App

    GsRFfBr.jpg


    Release Calendar
    Version 1.3.1 - 15 of Jan 2021
    Version 1.1.0 - 20 of Nov 2021



    Should work on official ROM bases Nov 2021 sec level.




    Features:

    - 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
    - Battery Saver cut back max CPU freqs, 3 levels + touch boost limiter options
    - 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 - BASIC passes Basic, without Magisk/Rooting. CTS won't pass.
    - ThinLTO + CFI security hardened Read: https://source.android.com/devices/tech/debug/cfi
    - 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/Android/data/org.cleanslate.csconfig/cache/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


    Sweep2Sleep, DoubleTap notif pull down
    --
    Foreground App Kill gesture


    Requirements
    - Unlocked Pixel 6, stock or with magisk root
    - From Android S, vbmeta verification must be disabled. ONLY if you use Magisk Manager canary latest (to patch boot image with Magisk) you can skip vbmeta verification disabling! If using the boot image provided in the zip without Magisk, you MUST disable verification! 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, dtbo, vendor dlkm img) from Google (https://developers.google.com/android/images) before installing this!

    Installation Guide
    Firstly install CleanSlate configuration and CleanSlate companion BETA program apps on your phone (both found down below in Download section). Set them up initially.
    - When installing Premium version from Play Store, you should join the Beta program for both apps, and install the beta version! Otherwise features won't work.
    - Non-rooted method: 0. download the installation zip, Unzip it to your PC.

    Code:
    1. reboot to bootloader:
    $ adb reboot-bootloader
    2. Flash boot image and stock dtbo img:
    $ fastboot flash boot cleanslate-raven-boot-xxxxxx.yyy--ZZZ.img
    $ fastboot flash dtbo stock-dtbo-boot-xxxxxx.yyy.img
    3. if everything went fine, reboot to FastbootD and flash vendor_dlkm modules image:
    $ fastboot reboot fastboot
    $ fastboot flash vendor_dlkm cleanslate-raven-vendor_dlkm-xxxxxx.yyy--ZZZ.img
    4. reboot (fastboot reboot), enjoy
    - Rooted method: do the same as above, but before flashing boot, root it on the phone from Magisk Manager

    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 images (redfin)
    Pixel6/6pro Images zip (DO NOT FLASH AS ZIP) for Android12 (2022.01.05)
    CS 1.3.1: https://www.androidfilehost.com/?fid=17825722713688269355




    Pixel6/6pro Images zip (DO NOT FLASH AS ZIP) for Android12 (2021.08.17)
    CS 1.1.0: https://www.androidfilehost.com/?fid=7161016148664842834



    Config Applications
    Companion App 3.3.x-- Donation premium on PlayStore
    --- MUST Use BETA program for this phone:

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

    Configuration App 3.2.x -- Donation premium on playstore
    --- MUST Use BETA program for this phone:

    - 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.3.4 -- Normal free download:
    https://www.androidfilehost.com/?fid=17825722713688265361
    Configuration App 3.2.3 -- Normal free download:
    https://www.androidfilehost.com/?fid=17825722713688265360

    Donation:
    If you appreciate this, don't forget to hit the Like button, or consider to Donate. Donations here
    Thank you!

    Donators Hall of Fame



    Src: https://github.com/tbalden/android_kernel_gs_raviole

    Special thanks
    To @Freak07 for all his work on XDA and help
    To @flar2 for his original works
    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.
    [/b]
    2
    Whoop @tbalden is in the house!

    My goto kernel in the HTC days.
    2
    Working on new update, and fixing some touch gestures related bugs. Going to publish in a couple of hours.
    2
    Thank you! I can comfirm it works 😌
    1
    Can I install Clean Slate over ProtonAOSP?
    Yep, I did that.