yashsingh1/xdaforums huggingface dataset:
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks for the feedback. That's bad news.

Could you tell me what base are you on?

1.05 or 1.10?

I'd need dmesg or console-ramoops to investigate, but it's not possible to grab without a successful boot.

Was the flashing all good? Maybe you could grab a recovery log while installing it in twrp?
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] cameljockey1:
I will try again and see if I can get a twrp log for you. I flashed in TWRP just fine. How would I get the logs for you?

Edit: 1.10 TW
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Hi, Thanks for getting back with the info.

I'm positive that this is going to be somewhat harder... especially because U11+ is Project Treble, and I have not much knowledge how that can impact the installation process.

Nevertheless, I've updated the installer zip with latest AnyKernel2 patches.

I'm hoping this might help some issues, that might be coming from the new Android version with Treble, but it's just trial and error yet.

Here's a new installer 1.0.1v2:

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

If it installs successfully and doesn't boot I'l try to dig around what other stuff might be the issue.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Aftab_khatri:
Only solo developer for htc u11+ kudos mate
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
[MENTION=4202636]cameljockey1[/MENTION]

ok, i've another idea as well for the boot being stuck (i've had something similar with a recent change which I supposed is fixed, but maybe it's not okay on the U11+).

So here is a 1.0.1 version 3 as well., this might fix the issue

1.0.1 Version 3

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

Here's a fully stock source 1.05 kernel without any change, just built as HTC provided. If the previous didn't boot, please test this as well if it boots:

Stock kernel built from source

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

The older try 1.0.1v2:

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

if any of these boot, that would be awesome.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks mate, i'm trying. It would be easier with an actual device, but hopefully if the first boot is ok, it will be much easier to port all the good stuff...
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
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://xdaforums.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
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
I request your advice. This is the phone I bought for work. I need encryption and I am not sure if it is wise to flash a work phone. I am into cryptography and only install APKs from verified sources. I am into cryptography and dealing with sort of sensitive data, because I am also a free journalist. So would you stay away from root and how many of the features of your kernel require root access?

Thanks in advance for the time reading this. All the best for you, your work, your goals, your life. Wish health and luck to you and your family. Keep doing what you are doing.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Hi,

This kernel won't require rooting for its features, my approach on the u11 and htc 10 is to have a non-rooted kernel. Except one feature, WireGuard VPN, which requires it.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
Thanks for the answer and sorry for not replying earlier. The main thing that holds me back is the unofficial TWRP. Appreciate to have it, don't get me wrong, but kernel patches just to get the recovery to work, doesn't seem like a solution that shines with stability.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Don't worry, no hurry

at some point this will get better hopefully.

I don't yet have this device to help out on the u11plus recovery topic.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Edit: check post below for links
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Galactus:
More than happy too but only once the 14 day no question asked returns period is overon my device.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Great! :good:
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] ElementRn:
Once I leave Germany, I'll be free again.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
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)

- 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://xdaforums.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

After the stock has booted please proceed to 1.7.0 Beta1

Install advice: TWRP by these careful steps detailed here: https://xdaforums.com/showpost.php?p=74875149&postcount=14

Download 1.7.0_beta1

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

Configuration app 1.5.4

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

Companion app 1.5.5

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

This contains all the features above, that should be tested, and can be set in Config app.

Install both Configuration App and Companion app to start using the beta kernel.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Folks, some bump to beta 1 :):good: hopefully boots
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
We're getting there soon if I count correctly :cool::p:highfive: Not pushing, just genuinely curious :D
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Galactus:
Yes lol. Monday is deadline day :p
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
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:
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
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
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] cameljockey1:
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 ----------

Yes i know this ;):D:p:good:
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
- 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
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
[MENTION=4202636]cameljockey1[/MENTION] 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
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] cameljockey1:
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.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Yay!!

That's good news

Fingers crossed
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] cameljockey1:
Succesful boot my friend. How would you like me to verify and test for you? :o
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] cameljockey1:
Awesome. Feels like it is much smoother
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
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://xdaforums.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 :)
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
I am just waiting for Official TWRP to land, then I'll have a hard time not flashing your kernel.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
[MENTION=4202636]cameljockey1[/MENTION] and yeah one critical part is checking camera. Many times that can cause headaches with different source versions

Thanks
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] cameljockey1:
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.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Great.:good: I'll still summarize how to use current version to flash the kernel safely with external SD card

Sorry for not replying on your other request. I'm not good at that thing at all.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
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.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] cameljockey1:
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.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
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.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] cameljockey1:
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?
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
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.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
[MENTION=4202636]cameljockey1[/MENTION] to debug this further there should be some kernel logs extracted but that would need rooting. So I think as this is great progress already I'll release a new version stable without these features and a beta for further debugging if someone plans to root the phone and flash the kernel over a magisk enabled phone.

So please disable kernel ambient display and squeeze swipe for now and just use the remaining functions so we can see if any other issues pop up.

Thanks
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] cameljockey1:
So? what are we waiting on? Lets do dis! lol. I can root and get some logs for you. Just let me know what i need to do to root. I am guessing i need re flash my stock boot then flash magisk patched boot then flash your kernel?
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Haha, that's the spirit :highfive:

Well, yep, what you described is a safe way to get to a magisk patched boot stock image. Then a backup of the boot partition, and then kernel flash.

After that, I would try to resolve the swipe thing, because that's the more meaningful feature to fix for the u11plus.

So kernel ambient display disabled. Squeeze with adb shell, su shell and then at squeeze time, grab dmesg

adb shell

su

dmesg>/sdcard/dmesg1.log

exit

adb pull /sdcard/dmesg1.log

Copy to pastebin.com or somewhere I can check.

Thanks :good:
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] cameljockey1:
Hopefully i did this right. let me know.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
yes ! And i think i know what the problem will be. The touch panel is slightly differently doing stuff :) I'll check and get back with a build :good:
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Update 1.7.1:

- Removing Kernel Ambient Display (it's not needed on U11+ and has conflict with Always on Display)

- Fixing Squeeze scrolling

- Adding Backlight dimmer support

Kernel installer:

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

New configuration app:

Configuration APK 1.5.5

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

If you could verify squeeze swipe, hopefully this will work out
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] cameljockey1:
It does not work still. I have everything enabled i did another dmesg for you.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Hmm, okay, so here's a next try with some additional loggin:

1.7.1v2 https://www.androidfilehost.com/?fid=745849072291698678

If it doesn't work out, please pull a dmesg when pressing squeeze scroll.

Then a second dmesg, while just you do a real swipe on your screen, at about the middle a short one.

Thanks :)
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] cameljockey1:
That worked!!! Working great!! :highfive:

I have a question. Can i use a kernel app to tweak stuff? will it modify the system partition?
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Cool, thanks for testing! :) Glad it worked out in the end.

I think app like EXKM is not modifying the system partition to save stuff for rebooting, so yes, you should be fine with that.

I don't know each kernel tweak app, but the most populars should be fine. (Also you have a pristine system image partition backed up, so you can

revert anytime to OTA capabel status)
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] cameljockey1:
Yes thank you!!
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Bumped thread to stable status for now :) Hopefully all will be fine.

Can't thank [MENTION=4202636]cameljockey1[/MENTION] enough for his relentless testing!

Anyone wishing to try the kernel, read first post's top linked [MENTION=2605798]nkk71[/MENTION] post. As you can see, all should be fine, if you grab your firmware/region/carrier's stock boot image and recovery image from the RUUs / OTA zips around this forum and back stuff up (system image, boot...). With your exactly fitting recovery image / stock system image restored you can get back to official OTAs again (Restore pristine system image backup, fastboot flash recovery recoveryxyz.img.... you can find guides around m10/u11 how to get back to OTA capable status).

If someone else tries, let me know here, all feedback is much welcome. :)
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Galactus:
Seems everything was sorted before my deadline lol. I'm probably going to root with Magisk soon so I'll try your kernel then too.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
[MENTION=4202636]cameljockey1[/MENTION] could you please share which software update version is your phone on? So that I know which is the highest version that works with the kernel

Deadlines are there to be missed :D Currently in a good sense. Hopefully it will work out on your region/carrier too :fingers-crossed::good:
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
Flashing now. Excited.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Nice. I'm glad to hear that more join to check out what I've been up to for this excellent device.

Let us know how it goes
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
Currently working my way through the instructions. Just downloaded my unlock device token. Kinda weird, that the instructions on HTC Dev end at that point. Priority number is to stay secure on insecure networks. That vpn feature of your kernel is tempting, so is the rest, still would be much appreciated to hear the take on this from a developer perspective
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
About the vpn , I think the idea and execution is excellent. As far as the whole thing goes it's open-source so pretty transparent.

I can say that the WireGuard kernel part is pretty solid and constantly optimized for security and speed. The dev who does this is quite expert on the field.

I wouldn't worry about the unlock key in email as it doesn't contain which phone it's usable with.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
Okay, I flashed twrp and everything worked as intended, weird thing is I can't boot into twrp. Screen stays black after flashing showing me an error. I'll attach a screenshot, once I restored my Threema backup..

Edit: as a junior member I am not allowed to attacha screen shot here.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Upload to imgur then copy the image link without HTTP protocol prefix, if linking is not allowed.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
I think i am stupid. I have to flash the latest firmware for this to work? Thanks a million for your patience. Obviously I forgot how to flash HTC phones during my time with Oneplus. Weird thing is: phone is fully functional without a booting recovery. Tried fastboot format userdata.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
No. Not needed.

But could you please tell how did you get to this screen and what have you done so far
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
OK, so now I understand better I think.

Do you have the kernel flashed already?

Or you are before flashing twrp?

If twrp

fastboot flash recovery twrp...img