yashsingh1/xdaforums huggingface dataset:
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
CleanSlate for U Ultra - 1.7.0 Beta 4

Scope: Full merge from cleanslate upstream functionality

Feature list

- Button Light Notification
- Notification double vibration pattern detection based Button Light Notifications
- "Endless BLN while charging" + "Notification vibration length based two types of blinking pattern for BLN" features
- KCAL Color Control
- Fingerprint doubletap sleep
- K.AdAway - kernel adblocking feature for browsing and in app (not for youtube stream etc)
- 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.
- Fastcharge for USB 2.0 -- PC's, Laptop's will now be able to charge your phone (bumping 0.5A draw to 1A from USB2.0 port, retaining the data connection all working)
- Sweep2sleep Full credits to @flar2
- DriveDroid support - Mounting of ISO (ReadOnly/ReadWrite) images to your PC for storage or booting them on PC
- NTFS/ReadWrite
- Sony HID input device support (thanks @flar2)
- Wakelock reduction patch by fransiscofranco

Installation:

0. TWRP - backup boot partition

1. TWRP flash zip

2. reboot, install APKs from internal storage (copied by installer)

3. Start companion App, grant permissions, leave it running (should start on each reboot by itself, but it's worth starting manually, it's quicker)

4. Start Configuration app, grant permission, configure to your liking and don't forget to press Save button (disk icon)

Download:

1.7.0_beta4 Installer zip for TWRP:

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

CleanSlate Companion app (CleanSlate background service)

1.4.11

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

or premium donation version from Play Store: https://play.google.com/store/apps/details?id=org.cleanslate.csservice

CleanSlate Configuration app (Config without root privilege)

1.4.3

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

or premium donation version from Play Store: https://play.google.com/store/apps/details?id=org.cleanslate.csconfig
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
[MENTION=8604318]Oddvin94[/MENTION] [MENTION=1706984]S3V3N[/MENTION] [MENTION=592251]wiccan-two[/MENTION] there you go, beta1.

Please let me know if the configuration app starts right, and showing the configuration well.

In UX tab (bottom second icon), Gestures/Extras (Phone icon with arrows around it), K.Adaway option should be there if everything went fine.

All other functionality needs validation.

The tricky one was Colored Charging led (turns slowly from amber to green as battery charges from 0 to 100%), U Ultra has new driver.

Also flashlight notification was tricky merge.

Another one is if you enable Face down screen off, if the Companion app detects proximity and also face down horizontal position.

Thanks and merry xmas
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] S3V3N:
ok, I'm getting tested

Wysłane z mojego HTC_U-1u przy użyciu Tapatalka
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Thanks, if it just booted that's already a great result. :) let me know

The rest will need longer validation hopefully with not many issues
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ChavezD:
I will also try to get my fingers on a PC later and try it out.

But what should I do when I want to start with a clean, new ROM? When to install?

But very nice to see a kernel over here on the ultra ?

Merry Christmas to all!
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Hi

After all is setup with the rom and works nicely then reboot to recovery, backup boot partition, then flash this and install like detailed.

You can also use this whole stuff without custom rom, without root or magisk. Every stuff works that way too if you prefer stock with a custom kernel. Then just backup your boot partition in twrp, install and profit :)
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] wiccan-two:
So all boots fine with the beta and the apps install and seem to work as described.

However my fingerprint scanner/home button is completely dead now. I've had intermittent problems with it for a while now but it airways came back after a short wait. Now even the settings for it won't open. It may be a full reset to get it working I think (unless anyone else has any ideas).
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
again a little bit more added to the configuration app premium.

Optionally show the profile icon on the status bar if persistent notification is enabled.

Check info page for the option inside the app.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
still waiting for oreo kernel source... https://twitter.com/illespal/status/970927163062054912
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] QDT:
How to get stock kernel back?

Would the CleanSlate Kernel be a reason for repeatedly wifi connection drops/restarts?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
No it wouldnt be first check your modem
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] QDT:
Modem hasn't change. I moved back to stock completely and trying to debug the issue. So far no problem on stock with stock kernel. Next will be rooting with Magisk.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
Im on leedroid with cleanslate no issues

Did you clean install
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] QDT:
Yes. I used the stock ROM after several OTA upgrades (ended at the last revision before Oreo) and then added Magisk and Xposed. Having that I've changed the Kernel to CleanSlate and WiFi drops begun.

Now I've reversed all above - clean recover of official last 7.0, installed Magisk and so far no drops (stock kernel). Now I'm going to add Xposed and the missing modules and see the results. If no issue I will try again CleanSlate. But now I'm focusing on longer tests before introducing changes. At first I had too many mod at once. (Although the last was CleanSlate, but I perhaps wasn't paying enough attention before).
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
glad to hear a thorough testing you do. Let me know how it goes. In theory there's a slight chance of problem because of difference in ROM base. We have very few versions of the official kernel sources to base upon.

What stock rom base version are you on currently?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] QDT:
Nougat 1.64.400.10 (I've the Dual SIM variant).

I had one or two reconnects to WiFi router per day in the last 3 days (I'm "logging" it by OverrrideDNS app that with every new connection replaces the DNS) on the "stockish" ROM (it has Magisk and AFWall+ as the first mod).

From tomorrow I'm adding Xposed.

On Sunday is planned again to install CleanSlate.

Will keep reporting.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] QDT:
Well, couldn't stop myself :D

After installing Xposed the drops came almost at the spot. Looks like it has something to do with either wakelocks or firewall rules that are blocking some system tasks. Investigating further.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Thanks for reporting back. Great!
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Fingers crossed, Jeff Gordon at HTC USA may be able to pull some threads, to get U Ultra oreo sources to htcdev.com. Answered to my tweet, so let's see this coming week...
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
Maybe he could answer when single sim oreo is coming
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Seems like it's out in some region.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Minor update on premium config app, to save previous profile between reboots. Now it's gonna revert to previous profile after a reboot when tapping the profile quick tile.

Still waiting for the oreo sources promised last week. Fingers crossed :)
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Borys123:
Still no sources? :(
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Yeah, I'm bugging them, but only u11 and desire and u11plus for now... :(
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
They wont even answer me

Australia hasnt even received oreo at all not even the first one
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
meh, yeah, i'm bugging them twice a week, but it seems it's gonna a take a while :S
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
I hope they release soon as on oreo the screen persistent is really bad and making screen color temp cool like on 7.0 dont work no more

Fingers crossed they release soon buddy
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Yeah, same here, just pinged them on twitter... They need to get their act together on this. Months are passing
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
Your custom kernel helped with screen persistence and with oreo with have nothing and sadly its their fault they also need to fix it fast
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ali_l67:
Any news about kernel source?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Not really. I'm pinging them time to time. will do so now at the time of u12 release maybe they'll pay more attention
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Ferreci:
Is that kernel adjusting the battery usage ? It would be good if it increases the SOT at least.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Yay sources are up!!!!!

Will try to add this before going on a longer vacation on Saturday but can't promise
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
sweet soon as this is up i can go back to oreo no more screen retention faster phone i do love oreo but i love your kernel
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ali_l67:
Wow tnks dude you are great cant wait
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Ok, so here's an 2.7.4- Alpha2 version with the oreo sources...

It's got a lot of new stuff in, but I'm still not able to test.

Be prepared to have a RUU around in case...also back up!

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

[MENTION=398245]LeeDroid[/MENTION] if around for a bit of riskier testing.. :D
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
it boots but breaks sd card also bluetooth and imei deletes efs
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Thanks for testing!!

I think I might have ideas for Bluetooth.

SD card hmm... Maybe for that too

In what sense is imei broken? What does efs here means and how is it deleted?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
like when you go back to 7.0 and you have to do that cmd thing to get mobile network back it was deleted i had to flash my back up but yea it told me to format my sd card thank god i didnt
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
OK, I think I start to understand...

So all this was because external SDCard was not working?

Or was the IMEI number broken too in Settings/About Phone?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
imei unknown

imsi unknown

imei sv unknown

just something made the sd card corrupt
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
hey whats this new stuff you got for the oreo kernel

also is there rgb correction
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
it contains all previous features contained in the Nougat build...

Here's a new alpha3 with a more close to stock defconfig... I'm hoping it will fix at least bluetooth...maybe IMEI, and just hopefully SDCARD...

https://www.androidfilehost.com/?fid=13356325061477270859 Alpha3 Oreo
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
still can txt and call people and

bluetooth seems to stay on

but now we have random reboot
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
we have random reboots
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
If you had one, could you check

/sys/fs/pstore/console-ramoops file.

With adb shell / su it should be accessible

adb shell

su

cat /sys/fs/pstore/console-ramoops >/sdcard/crashlog1

Then grab the file and post.

BTW is external SD card working?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
yes sdcard is working

this part the random reboot might have something to do with twrp i have to keep reparing the data file it does my head in but i am gonna test again for you
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
[/ATTACH]
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Hmm it seems it's cut too early, can't see a kernel oops there yet.

Btw is it a full reboot with the strong first vibration and htc logo? Could you try again,. Maybe we get a longer one
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
View attachment console-ramoops.zip
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
I hope that helps

If you make another alpha I will test again
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Borys123:
I didn't notice there's something going on here lately. I'm also in for some testing of the future versions ?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
On vacation lately. Going to continue the Oreo update when I'm back, around next week.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Here's a stock oreo kernel built from source, to start from a clean base, before adding features, and make sure nothing is broken...

so here's the v1 for Oreo source built kernel... https://www.androidfilehost.com/?fid=5862345805528046883

If it boots and everything works fine, I'll start adding stuff..
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] yarecco:
Home button and fingerprint scanner don't work
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Thx for reporting

Oh no... This is an interesting twist, the kernel is stock source from htc... hmm

What rom, which base version is this happening with?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] yarecco:
Well I'm on base HTC Europe 2.21.401.1 LeeDrOiD Ultra V2.1.0 ROM
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Let me know if someone else tries and you have same issue... Seems it shouldn't happen

link is still https://www.androidfilehost.com/?fid=5862345805528046883
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] yarecco:
I did clean install just for making sure... the issue remains... sorry
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ali_l67:
Same here im on leedroid too
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
After long hours of testing with [MENTION=8604318]Oddvin94[/MENTION] finally Oreo alpha5 is here...

the basics should all work... features need testing:

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

use the cleanslate config app for enabling/setting stuff up. All cleanslate nougat features theoretically should be working.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] yarecco:
Testing

so fat everything seems to work properly:good:

are they any power save mods possible to implement in the future?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ali_l67:
Everything works well tnk you very much man. Keep going

One odd thing i see is when turn on the backlight dimming and made brightness low, up right side of screen become brighter than the rest of it!
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] mher11:
Hi all,

I bought this phone about 1 month ago , i want to try this kernel... Does this improve gaming? Games like Pubg ... I thought this phone would handle pubg better but i was wrong... I have the dual sim version and my software number is 2.19.400.1 with january security patch is it safe for me to try this??

I appreciate your reply :)
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Hey,

There's adrenoboost 2.2 feature that may add some additional smoothness, but that's not guaranteed to help.

You should be fine to flash this, but the OREO version for your software number is only in alpha version, not updated in the Original first post at all yet.

So I'd advice to wait a bit more till all gets stable.

Also if flashing, make sure you backup, so you can go back when needed.

Cheers
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Thanks for reporting. Yes, Oddvin also reported the problem. I'm not sure yet what might be wrong but it's caused by the fact that the upper screen LED backlight is set brighter. eventho it's not intended.. Will see if it's possible to fix.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
- OREO update 2.7.4v2 stable -

...thus the Unrooted Kernel Era ruled on...​

Update

- Updating to OREO!!!

- Merge tree with HTC 10, adding all CleanSlate features from the 10 line:

--- Discrete Charging LED color levels (4 different colors, user settings for battery level)

--- Notification LED blinking while on Charger - mixing chromatic LED functionality with it

--- Flashlight blinking while Incoming-Call Ringing happens

- Updating WireGuard to July snapshot

- Update adblocking hosts file from Steven Black site

- added touchboost switch for disabling (not supported by CS config app, use other kernel managers with root)

Known issues:

OREO: backlight dimmer is dimming the secondary panel less, causing light bleeding

OREO 2.7.4v2 Download:

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

Config app 2.7.2 Free version Download:

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

Premium version rolled out to play store

Companion app 2.3.6 Free version Download:

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

Premium version rolled out to play store
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Borys123:
Flashed, so far everything seems to be OK. Thanks!
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] TangerineTractor:
Working fine for me so far.

Is there any way to turn off the charging led completely, so that it is only used for notifications?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Borys123:
Ooops, I think I have a problem? The earphones don't work. The phone does recognize them (headset icon) but there's no sound (apart from a 'pop' when I push them in). Even the button on the earphones does work. The internal speaker is ok.

Edit: Bluetooth streaming also works, the earphones are stock HTC. They worked yesterday morning, in the evening I installed the kernel and today morning they didn't work on spotify, YouTube.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] migueljerico:
Same problem here. Please fix it soon. Thank you.

---------- Post added at 02:31 PM ---------- Previous post was at 01:57 PM ----------

Also facing problems with WiFi tethering, it disconnects some minutes from start and have to reconnect.

This did not happen with stock kernel.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] yarecco:
I confirm the issue

Usonic headphones don't reproduce any sound

I'm using BT headset so I didn't notice it before...
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Thanks for the reports.

I'm going to check what might be wrong.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Hi all,

Could you please try this super-stock version which worked without mods, stock compiled:

https://androidfilehost.com/?fid=5862345805528047612
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] yarecco:
Same thing: no sound in U Sonic headphones, BT -O.K.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
If you're back on stock, could you please grab this file:

adb shell
su
cat /proc/config.gz > /sdcard/config.gz
exit
adb pull /sdcard/config.gz

Let's see if HTC did something differently than what's in htcdev sources' config file...

I'm clueless why it doesn't work, especially with the one compiled from fully stock sources.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
One thing that might help, but it's a long shot only... USB Audio driver with default htcdev configuration seems to miss a part that might help, that came with the new sources for Oreo...

here's one build with that enabled:

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

Let me know how it goes.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] migueljerico:
Still no sound with HTC headphones...
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
"

If you're back on stock kernel, could you please grab this file:

adb shell
su
cat /proc/config.gz > /sdcard/config.gz
exit
adb pull /sdcard/config.gz

Let's see if HTC did something differently than what's in htcdev sources' config file...

I'm clueless why it doesn't work, especially with the one compiled from fully stock sources.

"

If someone is on stock kernel with root, please help with the above, maybe it'll help to see what's going on with USB c audio
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Scratch this. Oddvin94 checked it and the stock kernel is compiled to not produce this. Then this is not possible.

Then the next stop is to gather some logs while initializing a USB c headphone.

Dmesg and logcat could be both useful.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] migueljerico:
Hope this helps, I don't know if I have done it well.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] migueljerico:
I also want to remember that WiFi tethering does not work well for me. I did not have any problem with stock kernel. Can you also check this?

Thank you in advance again.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Have you had the chance to try it on the near-super-stock version?

https://androidfilehost.com/?fid=5862345805528047612
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] migueljerico:
I'll try it this night because I'm going to work now.

Thank you again.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
It's somewhat suggesting something related, but I cannot see how the wired audio is switched on.

Could you grab something similar on the stock kernel? Might show some hints in differences.

Thanks
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] migueljerico:
I can't do it because I didn't backup stock kernel. If you upload it I will flash it and grab it as well as the modded version that you have uploaded before.

---------- Post added at 10:44 PM ---------- Previous post was at 10:00 PM ----------

No problem with WiFI tethering with this version but as another user said, HTC headphones still don't work.

Hope you can solve both problems soon, can't help with stock kernel now because I don't have a backup, I will have to reflash the whole rom.

Thank you.