[KERNEL] CleanSlate v1.7.13 | LED|SqueezeCntrl|Flashlight|AdBlock|WireGuard [25 Sept]

cameljockey1

Senior Member
Aug 4, 2011
937
247
73
Arlington
UPDATE

1.7.0 beta1
I detected a strong suspect for the inability to boot, happening on U11 verity checking as well which caused hang or bootloop.
So I've decided to rather progress further with porting U11 features of CleanSlate to U11Plus. Hopefully now this beta will boot. (Still start testing the stock build and after that the beta1)
Code:
- Squeeze Control (Wake,Peek,Sleep,Swipe)
- KCAL Color Control 
- Fingerprint doubletap sleep 
- K.AdAway - kernel adblocking feature for browsing and in app (not for youtube stream etc)
- Kernel Ambient Display - if you want to replace HTC's always on display / doze mode, try enabling this, disable AOD of Sense. This is a kernel side Ambient Display, showing Lockscreen with your notifications upon receiving a new one.
- Smart Notification Control 
- CleanSlate Companion app 
- Unprivileged Configuration Interface Config App 
- ROM side Ambient Display support for all notification functions
- Flashlight Notification
- Vibrating Notification Reminder 
- Notification Booster on vibrating notifications when screen is off 
- Gradient battery charging led turning from amber to green based on battery level percentage, then at full charge it starts to smoothly change from full bright green to golden and the back to full green cycling, signalling 100% battery for easy spotting
- Fading notification led fading/pulsating type notification LED blinking
- Upper grill RGB LED light brightness level you can lower the brightness level of the upper grill RGB led now
- Adrenoboost version 2.2 - smooth gaming, battery friendly, fixing GPU handling of stock HTC kernel -- battery friendly conservative governor. Three levels (1 is the most battery friendly), and off state. 
- NTFS/ReadWrite
- Wakelock reduction patch by fransiscofranco
Anyone wishing to try to help the cause to build a custom kernel, please try this stock source build:
Stock kernel built from unmodified source, in TWRP by these careful steps detailed here: https://forum.xda-developers.com/showpost.php?p=74875149&postcount=14
Make sure, you have a stock recovery for your carrier and firmware version before going on! Backup your boot partition so you can revert

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



If it booted, let me know here!! Thank you in advance

When doing the above steps do we need to have a rooted boot image? Right now i have all files ready to flash but before that i will backup everything in twrp following the instructions carefully. So my question again. Backup->flash your stock boot and see if booted or Backup-> flash magisk patched boot for root-> flash your stock boot to see if boots?
 
  • Like
Reactions: tbalden

tbalden

Recognized Developer
Oct 22, 2010
9,739
16,639
263
Budapest
www.virtuousrom.com
When doing the above steps do we need to have a rooted boot image? Right now i have all files ready to flash but before that i will backup everything in twrp following the instructions carefully. So my question again. Backup->flash your stock boot and see if booted or Backup-> flash magisk patched boot for root-> flash your stock boot to see if boots?
For this kernel to work, you do not need any kind of rooting.
What I suggest to have is:
- Current carrier/firmware/base version STOCK RECOVERY downloaded to your PC, so you can get back to a recovery that fits your System image for OTAs
- Then after having the twrp installed, a backup of the stock BOOT partition to an external SDCARD (without decrypting the data partition)
---> OR have a STOCK boot image for carrier/firmware/base version downloaded from around this forum. This and the backup from twrp are equivalents.
- Do NOT decrypt the data partition in any case in TWRP....
- Just flash the zip in TWRP from external sdcard, or you can push to temporary /sdcard/ as well , even WITHOUT decrypted data
---> adb push cleanslate....zip /sdcard/

Let me know if any other questions. And thanks for the intention to help! :good::highfive:
 
Last edited:

tbalden

Recognized Developer
Oct 22, 2010
9,739
16,639
263
Budapest
www.virtuousrom.com
For this kernel to work, you do not need any kind of rooting.
What I suggest to have is:
- Current carrier/firmware/base version STOCK RECOVERY downloaded to your PC, so you can get back to a recovery that fits your System image for OTAs
- Then after having the twrp installed, a backup of the stock BOOT partition to an external SDCARD (without decrypting the data partition)
---> OR have a STOCK boot image for carrier/firmware/base version downloaded from around this forum. This and the backup from twrp are equivalents.
- Do NOT decrypt the data partition in any case....
- Just flash the zip in TWRP from external sdcard, or you can push to temporary /sdcard/ as well , even WITHOUT decrypted data
---> adb push cleanslate....zip /sdcard/

Let me know if any other questions. And thanks for the intention to help! :good::highfive:
and when I wrote flash STOCK I mean to flash the stock flashable zip for testing if that boots:
Stock source compiled to installer zip: https://www.androidfilehost.com/?fid=745849072291696382
Then if it booted, go back to recovery and flash to 1.7.0 beta1
https://www.androidfilehost.com/?fid=889964283620775640
 

cameljockey1

Senior Member
Aug 4, 2011
937
247
73
Arlington
For this kernel to work, you do not need any kind of rooting.
What I suggest to have is:
- Current carrier/firmware/base version STOCK RECOVERY downloaded to your PC, so you can get back to a recovery that fits your System image for OTAs
- Then after having the twrp installed, a backup of the stock BOOT partition to an external SDCARD (without decrypting the data partition)
---> OR have a STOCK boot image for carrier/firmware/base version downloaded from around this forum. This and the backup from twrp are equivalents.
- Do NOT decrypt the data partition in any case in TWRP....
- Just flash the zip in TWRP from external sdcard, or you can push to temporary /sdcard/ as well , even WITHOUT decrypted data
---> adb push cleanslate....zip /sdcard/

Let me know if any other questions. And thanks for the intention to help! :good::highfive:
Just to make sure when you say do not decrypted data. How or what do i not do that, by mistake? My instructions so far. Carefully follow those instructions for PIN and flash Twrp. When i flash TWRP, boot into recvoery, i will hit cancel when it says enter password and not allow system modification and i will back up boot and system. Then right away flash the stock kernel zip then reboot to see if it boots.

---------- Post added at 10:07 AM ---------- Previous post was at 10:04 AM ----------

and when I wrote flash STOCK I mean to flash the stock flashable zip for testing if that boots:
Stock source compiled to installer zip: https://www.androidfilehost.com/?fid=745849072291696382
Then if it booted, go back to recovery and flash to 1.7.0 beta1
https://www.androidfilehost.com/?fid=889964283620775640
Yes i know this ;):D:p:good:
 

tbalden

Recognized Developer
Oct 22, 2010
9,739
16,639
263
Budapest
www.virtuousrom.com
Just to make sure when you say do not decrypted data. How or what do i not do that, by mistake? My instructions so far. Carefully follow those instructions for PIN and flash Twrp. When i flash TWRP, boot into recvoery, i will hit cancel when it says enter password and not allow system modification and i will back up boot and system. Then right away flash the stock kernel zip then reboot to see if it boots.
- Decryption:
--- yeah, do not enter the pin just hit cancel. Then later if you enter to MOUNT menu for any reason, do not chose Decrypt Data and enter the pin :)
- System:
--- after hitting cancel on decryption, you'll see the screen to Mount System ReadWrite or not, there DO NOT allow system modification.
- To Backup your boot and system indeed, but careful to choose SYSTEM IMAGE, not system in zipped files, System image is needed to restore a pristine system that can be updated with OTA. (system image backup BTW is not needed, the kernel WON'T modify the system partition, but in any case DO a system image backup!!)
---> target of backups should be your external SDCard, but that is automatic if you didn't decrypt Data

I would validate the external sdcard content to be cautious, and save them to PC as well before proceeding

and then flash
 
Last edited:
  • Like
Reactions: cameljockey1

cameljockey1

Senior Member
Aug 4, 2011
937
247
73
Arlington
@cameljockey1 to be on the safe side, before actual flash, after backup, I recommend to copy all backups to your PC, so if sdcard fails in any case later, you'll still have it
Successful boot. I had to enter my PIN in twice during boot. I was like damn when it didnt take it the first time. I am about to Flash the Beta kernel. I am just going to reboot a few times to see how the PIN will work.
 
  • Like
Reactions: tbalden

tbalden

Recognized Developer
Oct 22, 2010
9,739
16,639
263
Budapest
www.virtuousrom.com
Succesful boot my friend. How would you like me to verify and test for you? :eek:
Wow, that's excellent news!

I'm very very grateful for your taking the jump and trying again! :) Kudos :good::highfive:

Testing:

Firstly, verify Wi-Fi, mobile net, sdcard access, bluetooth, calls whatever . :) I'm positive that these will work.


Now after these please proceed with installing Companion app / Configuration app (linked in the download post). Then at starting them grant the permissions for the apps. Then start playing around with it :)

You may get familiar with cleanslate stuff here. First Video in thread may show you what works and how.
https://forum.xda-developers.com/u11/development/kernel-cleanslate-v1-0-t3623310

Firstly, I'm very curious about the Squeeze Scrolling function (Config app, UX tab second icon at bottom, then First subpage on top) Squeeze Swipe, which might actually be rebooting the phone if I calculated stuff wrongly about touchscreen input device name, but I think it should work, but that might be problematic. I'm positive it will be ok, but that's an interesting thing to start testing with. It's a feature where you can get smooth portrait Scrolling (useful in Chrome, Blinkfeed etc) on all screens with short squeeze... (this needs the Short squeeze gesture freed in Edge Sense settings, Long gesture should be enabled with Wake screen from sleep and also Vibration feedback in Edge Sense three dot menu should be enabled)

Then comes all the rest great features, like adblocking and such ... and some few more to come I'm working on already :)
 
Last edited:

Cryptycat7

Senior Member
Dec 21, 2017
185
90
0
Wow, that's excellent news!

I'm very very grateful for your taking the jump and trying again! :) Kudos :good::highfive:

Testing:

Firstly, verify Wi-Fi, mobile net, sdcard access, bluetooth, calls whatever . :) I'm positive that these will work.


Now after these please proceed with installing Companion app / Configuration app (linked in the download post). Then at starting them grant the permissions for the apps. Then start playing around with it :)

You may get familiar with cleanslate stuff here. First Video in thread may show you what works and how.
https://forum.xda-developers.com/u11/development/kernel-cleanslate-v1-0-t3623310

Firstly, I'm very curious about the Squeeze Scrolling function (Config app, UX tab second icon at bottom, then First subpage on top) Squeeze Swipe, which might actually be rebooting the phone if I calculated stuff wrongly about touchscreen input device name, but I think it should work, but that might be problematic. I'm positive it will be ok, but that's an interesting thing to start testing with. It's a feature where you can get smooth portrait Scrolling (useful in Chrome, Blinkfeed etc) on all screens with short squeeze... (this needs the Short squeeze gesture freed in Edge Sense settings, Long gesture should be enabled with Wake screen from sleep and also Vibration feedback in Edge Sense three dot menu should be enabled)

Then comes all the rest great features, like adblocking and such ... and some few more to come I'm working on already :)
I am just waiting for Official TWRP to land, then I'll have a hard time not flashing your kernel.
 

cameljockey1

Senior Member
Aug 4, 2011
937
247
73
Arlington
@cameljockey1 and yeah one critical part is checking camera. Many times that can cause headaches with different source versions

Thanks
So far so good. Wifi, bluetooth,touch screen, camera, volume buttons, data, calls, text, fingerprint, power button, flash, rotation, everything works great. The config app is working but i am not sure how to get the squeeze swipe to work. Ill watch that video in a little bit. So far the finger print gestures work and i like alot. Ill test more as the day goes.
 

tbalden

Recognized Developer
Oct 22, 2010
9,739
16,639
263
Budapest
www.virtuousrom.com
So far so good. Wifi, bluetooth,touch screen, camera, volume buttons, data, calls, text, fingerprint, power button, flash, rotation, everything works great. The config app is working but i am not sure how to get the squeeze swipe to work. Ill watch that video in a little bit. So far the finger print gestures work and i like alot. Ill test more as the day goes.
Great! I'm attaching some settings from my u11 that should help with configuration.
The config App itself gives a little description too you'll see.
 

Attachments

cameljockey1

Senior Member
Aug 4, 2011
937
247
73
Arlington
Great! I'm attaching some settings from my u11 that should help with configuration.
The config App itself gives a little description too you'll see.
The only thing at the moment that is not working for me is the is the squeeze to scroll. I have all the settings correct. I squeeze and then a few seconds it vibrates. Is this function across the device or only on certain apps? Also i wont be able to test the color part as i am slightly color blind. lol. And i believe the pocket mode/table mode to see notification is not working. Adblock seems to be working just fine thank you for that so much lol. Phone def feels much smoother and overall better.

Edit: just as i sent that my phone got a notification and did wake up then the touch screen, volume and power buttons did not work. But screen came on with fingerprint and unlocked it but the touch screen and volume and power button was a no go. i had to do a force reboot.
 
Last edited:

tbalden

Recognized Developer
Oct 22, 2010
9,739
16,639
263
Budapest
www.virtuousrom.com
The only thing at the moment that is not working for me is the is the squeeze to scroll. I have all the settings correct. I squeeze and then a few seconds it vibrates. Is this function across the device or only on certain apps? Also i wont be able to test the color part as i am slightly color blind. lol. And i believe the pocket mode/table mode to see notification is not working. Adblock seems to be working just fine thank you for that so much lol. Phone def feels much smoother and overall better.
Which app have you tried it on? Chrome with a website that is scrolling should work.
Could you please try this:

Go to settings/ about/sw info/ more and tap build number 10 times to get to developer mode. Then enter developer options and set show taps on/ pointer location.
Then try a short squeeze right there. Can you see a white filled circle moving across the screen?
That is an emulated scroll that happens with squeeze swipe on. Attached a settings screenshot and also what I get with tap pointer on


Do you have the companion app installed with all the permissions granted? That is needed for pocket and table mode.
 

Attachments

Last edited:
  • Like
Reactions: Galactus

cameljockey1

Senior Member
Aug 4, 2011
937
247
73
Arlington
Which app have you tried it on? Chrome with a website that is scrolling should work.
Could you please try this:

Go to settings/ about/sw info/ more and tap build number 10 times to get to developer mode. Then enter developer options and set show taps on/ pointer location.
Then try a short squeeze right there. Can you see a white filled circle moving across the screen?
That is an emulated scroll that happens with squeeze swipe on.


Do you have the companion app installed with all the permissions granted? That is needed for pocket and table mode.
Yes i have tried on several apps including chrome. I enabled the show taps. it does not show after the squeeze but shows of course when i touch it. did you see my edit on the previous post?
 
  • Like
Reactions: Galactus

tbalden

Recognized Developer
Oct 22, 2010
9,739
16,639
263
Budapest
www.virtuousrom.com
The only thing at the moment that is not working for me is the is the squeeze to scroll. I have all the settings correct. I squeeze and then a few seconds it vibrates. Is this function across the device or only on certain apps? Also i wont be able to test the color part as i am slightly color blind. lol. And i believe the pocket mode/table mode to see notification is not working. Adblock seems to be working just fine thank you for that so much lol. Phone def feels much smoother and overall better.

Edit: just as i sent that my phone got a notification and did wake up then the touch screen, volume and power buttons did not work. But screen came on with fingerprint and unlocked it but the touch screen and volume and power button was a no go. i had to do a force reboot.
Hmm do you have Kernel ambient display enabled in the config App?
I think it's causing the issue with input being blocked. It must be conflicting with always on display of u11+

Disable it for now please.

If you haven't enabled it then it will be squeeze swipe issue, do disable that please.

Kernel ambient display is something like always on display of the phone but different, and if set so it's blocking input to prevent in pocket touch events.
It's for the u11 which doesn't have u11plus always on display.
 
Last edited:
  • Like
Reactions: Galactus