yashsingh1/xdaforums huggingface dataset:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
All issues are solved with the release of htc 1.27 source and my CAF rebase, that previously affected the kernel.

The only issue is wlan calling, but that seems to be a major pain for the roms too. I don’t have or use it so I can’t really test it even on stock.

Furthermore htc doesn’t include the wlan driver into their source code. So I just build the latest wifi driver directly from caf. Otherwise we wouldn’t even have wlan because the stock wlan module will not work with eas kernel. That is due to heavy base changes that are naturally caused by the EAS bringup.

I lose 0,2 - 0,3 %/h overnight when the phone is constantly sleeping.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Snah001:
Since I solved the mistery problem all is working well.

I have normally with this kernel during the night a drain of 0,3% - 0,4% and after resolving the issue when in use it looks like this, it drains about 10%/hr what means that it would be possible to get 9 hrs SOT with 10% left.

Not bad at all.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] cjrivera04:
What version of the kernel are you using? OC + UV etc.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
No I use the oc/uv Release and the Stock values that gets Set via ramdisk.

I Take a close Look at my wakelocks each time I install a new app. So my idle drain overnight is between 0,2-0,3%/h. That is the basis for good results.

Another key factor for me is coverage of mobile signal. As you can see on the screenshots I always had a really good signal. That affects battery life a lot for me. Really a lot.

I run adaptive brightness a notch below 50%.

streaming music takes also quite a lot of power me.

You can always try to run at stock freqs, maybe your device doesn’t like UV, set dynamic stune boost to 25 from 50 if that’s to aggressive. ( do so in exkm/cpu/cpuboost)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] pacof51:
Hi, Just intall this kernel last night on stock rom And i get 0.5% overnight, pretty satisfied.

One question, is boost+ app useful with this kernel ?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Personally I don’t use it.

You can use it to reduce the resolution of games when playing but the other features are quite counterproductive in my opinion.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Snah001:
OC+UV version.

Also lowest frequency set to 230 Mhz for both clusters and no issue with that at all.

Last night I had a drain of 0,3%/Hr but with stock kernel I achieved that also.

Biggest improvement is battery usage when in use, there I get a usage of about 10% or even less per hour.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
I tried to reproduce the issue with just powering down. The phone did shutdown just fine for me.

Maybe bad boyz rom uses a different reboot mechanism?

Is there a special reboot menu?

You can try to take a logcat and a dmesg while shutting down?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] schmeggy929:
I do notrice once in a blue moon, it gets stuck on the last boot down animation.Not very often. I just hold the power and volume down for 10 seconds and it reboots fine. Why do you need a power menu app from playstore when APM is baked in?

Edit: It is the APM (long press recent Apps) then clicking APM is when it happens. Normal long press power button then reboot works ok. I will let OMJ know.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
This is a Magisk issue. Has nothing to do with the kernel.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
You know if it is fixed in 14.2.. since I got back to U11 and installed 14.2 I don't experience it anymore? Maybe I am just lucky :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
No, it's not fixed. It's dependent on what modules you have installed (whether or not they mount vital system/framework or /lib components), so everyone doesn't experience it. It's not something that will ever be fixed.

EDIT: I might be wrong. See two posts down :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
Thanks for clarification.. :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Actually I just checked, and I don't seem to have the issue anymore either. The move to /tmpfs might have fixed this after all. So updating to the 14.2 Beta (for whoever was having this issue) should fix it (conceivably). Thanks for letting me know, otherwise I wouldn't have tested it :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
Good, I didn't use U11 for a month or so and you made me think what is different with my setup now :laugh: :good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Well I checked again just now and it seems there is still a shutdown delay. So I think the problem is actually still there. Magisk appears to delay the shutdown time considerably, but it does *eventually* shut down. It might be slightly faster than it was before, but it's definitely still delayed by minutes.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
Thanks.. for me it is around 30 seconds now (I am testing it once notification arrives with notification led, it blinks after screen goes dark for another 30 seconds and once it stops I can power on the phone again).. before I couldn't power it on without power + vol down so I must changed something in my setup without realizing it :eek:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Easiest way to test is to power it down while plugged into a charger. You'll know the phone is powered down all the way once the charging light goes off and then the offmode charging (battery icon) appears on the screen.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] gnabtib8:
What's the progress with wifi calling if any?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] cjrivera04:
That's exactly what happens to me. It gets stuck on the boot animation. Someone said it's not kernel related but it doesn't hang for me on cleanslate or stock kernel. I use a power menu app because it can power the phone down without it going through the animation, which then allows the phone to power down without a problem. I then use shortcutter to add a short cut of the app in my tiles, so its a good little work around for me. But what you mentioned is what I'm experiencing when trying to power down. No other problems for me.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] schmeggy929:
If you use Leedroid's shortcutter, you can add the reboot icon to the Pulldown Quick Settings. That bypasses the boot animation as well.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
“The only issue is wlan calling, but that seems to be a major pain for the roms too. I don’t have or use it so I can’t really test it even on stock.

Furthermore htc doesn’t include the wlan driver into their source code. So I just build the latest wifi driver directly from caf. Otherwise we wouldn’t even have wlan because the stock wlan module will not work with eas kernel. That is due to heavy base changes that are naturally caused by the EAS bringup. “

that was my last statement regarding wifi calling.

I don’t know which driver version htc uses exactly, I don’t know if htc does add some code of their own to it. and my carrier does not support it even on stock rom and stock kernel.

If someone knows a solution he can gladly pm me.

Additionally you can send me logs when activating or doing the actual wlan call. :svetius: maybe I will find a solution.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] cjrivera04:
Good the know. Thanks!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jsaxon2:
Here is some logs for wifi calling issue. Hope it helps.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
The logs are way to short :( don’t see anything related to wifi in the kernel log at all.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tcnineteen:
Hi, how about this one? Try to filter it so that it won't be too long, but I'm not sure if the information you need is in it, please take a look :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
I need a kernel log not only a logcat.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Update to CAF 1.20

Hey guys and girls,

update time again :)

Changelog:

- Kernel is now upstreamed to latest 4.4.91

- Vibrating Notification reminder from [MENTION=3088420]tbalden[/MENTION]

- Full Light / Full Vib reminder switch from @ tbalden

---> here is a description on how to use and tweak these settings to your likings

https://xdaforums.com/showpost.php?p=74071273&postcount=932

Download is here:

OC+ UV: https://www.androidfilehost.com/?fid=889964283620757177

NO OC + UV: https://www.androidfilehost.com/?fid=745849072291679939

OC + NO UV: https://www.androidfilehost.com/?fid=817906626617937675

NO OC + NO UV: https://www.androidfilehost.com/?fid=889964283620757180

Instructions:

1. Download the kernel zip from the link below

2. Reboot to twrp and do a full nandroid, including system, data and boot (this is important)

3. Restore the stock boot.img to have a clean ramdisk if you are on another custom kernel (simplest way is to dirty flash your rom)

4. If you haven´t done the nandroid do it now. you need it to backup your wlan module

5. flash my kernel zip

6. reboot

7. set your desired features via EXKM or leave everything default

8. enjoy your EAS kernel

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee: http://paypal.me/freak07

Have fun with the kernel, enjoy your phone

P.S.: The first reboot after flashing the kernel may take a little bit longer due to the base change again! Give it 2 minutes for the first reboot!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] azzio4675:
why with the last release don't work the mod no max brightness for the cam app? how can i do?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] cjrivera04:
Try reflashing the camera mod. If you followed the steps of dirty flashing it might be possible that dirty flash may have reset that app. Just making a guess.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Hey guys :)

Today a little bit different topic. As some of you may know this kernel is upstreamed. but what does that mean for you as a user.

The most important aspect is security.

Credits go to [MENTION=6842057]nathanchance[/MENTION] for providing the link to the video. Watch it at the recommended timestamp. It’s just 5 minutes.

To all the people who claim upstreaming is a pointless process, start watching at 45:20...

[youtube]RKadXpQLmPU[/youtube]

[MENTION=6842057]nathanchance[/MENTION] recommends watching the whole talk but this proves that these bugs can be exploited. Sure, it may be "just" a crash but that's an untrusted app, lowest level of security clearance on Android. Take the fixes!

This kernel is upstreamed from 4.4.21 to 4.4.91 ;)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
[MENTION=3428502]Freak07[/MENTION] absolutely agreed, but there's a security multi layer on top of all, so it's very rarely exploited on a normal user phone. Just looking at the fact that most people use rooted apps around here, the exploitation risk is much higher with allowing root permission.

But still I agree, and highly appreciate your work, even not being a tinfoil hat myself.

There are a few other layers of security in Android luckily.

Maybe I'll try stable minor release patches one day tho

Looks like fun

Although carries additional security risks mixing qcom and upstream features. If you can stick to updating security holes and leaving features intact, that's a good strategy, I'd stick with qcom sec bulletin boards. Just like HTC does
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Mostafa Wael:
I do so agree with that.

Also I figured out this is a good read by a talented developer.

https://thecyberfibre.com/counter-android-kernel-upstreaming-matter/

:good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Now that's very close to my thinking, better explained... Thanks for linking me.

I'm full time developing security critical Java enterprise applications, so we use some similar thumb rules while updating.

Just like redhat long time support kernel won't barge into upstream merge hell. Sticking to security and critical patches. :good:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
[MENTION=3088420]tbalden[/MENTION]

As you know I’m quite new to kernels in comparison. the way I have come along isn’t as long as yours. So I’m open to all discussion to learn more. Thanks for your comments and insights :) I really appreciate that.

My comment wasn’t in any way aimed to claim your kernel isn’t secure or to potshot/badmouth your or [MENTION=4684315]flar2[/MENTION] ’s kernel/work.

Just to make it clear for all here. If anyone attempts to upstream any U11 kernel, wlan and external sdcard will break.

That is because the kernel symbols change, due to of all the changed lines of code that come with upstreaming naturally.

As a result the modules (for wlan and ext/sdcard) won’t get loaded and you have to build the wlan and exfat/texfat module yourself.

The texfat module cannot be built from the same source as htc because it’s proprietary and only htc has the source for it and chooses not to release it.

Wlan module has to be built from caf sources and while doing so wlan calling seems to break.

That’s why I also gave up upstreaming my stock hmp kernel. It’s not good to break core functionality of the kernel.

But with the EAS kernel things became different. The EAS kernel base is far away from stock kernel. Wlan and exfat have to be built from source regardless of upstreaming. I felt like the kernel can benefit even more from it so I decided I will give it a go.

Following are now some of my thoughts.

I think there won’t be a big update to our kernel until oreo arrives. Currently our kernel is based on the LA.UM.5.7.r1 caf tag which is CAF’s branch/release tag for 7.1.1 kernels. They’re still on 4.4.21 on this branch.

LA.UM.5.8.r1 is on 4.4.63 which is for 7.1.2. I don’t think we will ever see a 7.1.2 release for this phone before oreo.

so I figured it would be good to do the upstreaming until oreo drops and then decide again what to do.

What’s the biggest shame is that htc isn’t providing 7.1.2 for this phone. Which would give us a boost to 4.4.63 and would be pretty more recent, to say the least, in comparison to the OS/kernel combo we’re running currently.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
[MENTION=3428502]Freak07[/MENTION] Now this is a really interesting topic. What I see here is that you're very quickly very well into this, and probably you'll be much more ahead or most probably already much ahead on this topic.

So cool, I like this train of thought there. Especially about the reasoning about eas and upstream updates. Which is a very well reasoned argument.

As for qcom I have a different approach:

I'm wondering tho that from what I know, qcom is keeping oems patched up, so in theory staying on same minor doesn't necessarily mean leaving security behind. What I do see is that new HTC releases contain security patches, and when they release source, kernel mainly contains qcom CVE fixes.

So I'm not sad being on the same minor Android either because of this same reason on framework level. Googles special security system is rather fine keeping up with security on same minor version of the Android.

So I do like what you carry out there, choosing the constant updates because of taking the burden of eas feature and its toddler security risks.

And finally I very often find meaningless upstream merges in other kernels, where such high goals as going eas is not even requiring that
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] RenderBroken:
Many things have changed with regards to Oreo, specially in the kernel space. One thing we will see in Oreo is that now CAF is using ACK (Android Common Kernel) to keep their source up to date and upstreamed. Now with the many OEMs that use CAF as a base, they will automatically be upstreamed as well and hopefully when they send updates, they pull in the latest CAF and thus also the latest upstream patches as well. We will see a more concerted effort for Android kernels to not be so fragmented. So for me I look forward to Android's future.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Update will come soon.

New changes from CAF base merged in plus upstreamed to 4.4.92 :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
UPDATE to CAF 1.30

Hey guys and girls,

update time again.

New caf base merged in and upstreamed to 4.4.92.

Changelog:

- Kernel is now upstreamed to latest 4.4.92

- Latest CAF base changes merged in

- updated wlan driver to latest CAF version

For detailed changes please take a look at my github.

Download is here:

OC+ UV: https://www.androidfilehost.com/?fid=962021903579484429

NO OC + UV: https://www.androidfilehost.com/?fid=673791459329052968

OC + NO UV: https://www.androidfilehost.com/?fid=745849072291680511

NO OC + NO UV: https://www.androidfilehost.com/?fid=889964283620757751

Instructions:

1. Download the kernel zip from the link below

2. Reboot to twrp and do a full nandroid, including system, data and boot (this is important)

3. Restore the stock boot.img to have a clean ramdisk if you are on another custom kernel (simplest way is to dirty flash your rom)

4. If you haven´t done the nandroid do it now. you need it to backup your wlan module

5. flash my kernel zip

6. reboot

7. set your desired features via EXKM or leave everything default

8. enjoy your EAS kernel

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee: http://paypal.me/freak07

Have fun with the kernel, enjoy your phone

P.S.: The first reboot after flashing the kernel may take a little bit longer due to the base change again! Give it 2 minutes for the first reboot!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] rowihel2012:
I love this kernel

It is impressive

Performance is outstanding

Battary is best

But could you make it include sound boost

---------- Post added at 10:51 PM ---------- Previous post was at 10:50 PM ----------

I love your work my friend ??
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Galactus:
Sound boost what. Speakers? 3.5mm adaptor? USonic headphones?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] burakkcbyk:
What is Usb Fastcharge feature?

Charging time?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Some rather old chargers and especially most car chargers allow charging only with 500 ma/h. It enables these chargers to charge with 900-1000 ma/h.

doesn’t affect stock charger which uses quickcharge 3.0 at all.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
I wondered about this one. I saw that the charger chip changed and new driver was introduced. I wasn't sure if it's needed, and what I found is that it's charging from laptop fine with screen on. Seemed same with car charger and GPS.

Can you point me to the patch, I'll try to look it up later, I'm curious
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
It’s from engstk here

https://github.com/engstk/op5/commit/a6bc8f9bf20a50705006e4a4416b595df8bf286c
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Cool, it's resembling the patch on the 10, I see it's writing to register. Nice one.

Gonna check. Seemed to me it's more liberal about allowing 900ma by default, but I was not sure.

Thanks
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
well, so far it seems what I thought. The patch has got little purpose now. Laptops that earlier were cut on AICL are now properly set. You can see dmesg how voting settles on a quite high Automatic input current level (1.3A - 1.5A)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
I measured it via an app on my car charger and it went from 500ma to 900ma.

But that charger is back from desire hd days.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Which app? I seem to get incorrect results on apps that worked earlier. Just like on laptop it charges like champion, app shows incorrect numbers, 3c battery monitor, while dmesg is OK
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Ampere :)

I will take my laptop with me, if I remember about it and check it :svetius:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Thanks

Cool. I'll check that too. I was surprised that while hacking the phone flashing thru USB it was full in a couple of hours. With screen on mostly.

Still the patch might be useful in some cases, but I'll skip using it until someone pops in with charging issues.

:good:

Edit checked ampere, laptop looks A-ok stock 650mA, showing laptop as ac charger, which is at long last proper assertion
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
That’s why it’s disabled by default. If someone needs it he can access it via exkm :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] sipe1:
Hello, little test from me.

First test environment . HTC U11 6GB Dual sim. 100 apps installed, Magisk + Xposed, Greenified all apps that I don't need with shallow hibernation (23 apps not greenifed).

Min. freq changed to 230 MHz, selected Maple I/O scheduler with 1024 kB read-ahead on both internaland external storage.

Only bug that I observed that Vibration strength is set on "Not in range" on default on boot even if I change value and select to apply to boot ( I'm using Kernel Adiutor).

Tested 1.27 and 1.30. Dirty flashed, used cellphone all day, charged to 100%, reboot and left 8 hours to observe idle drain.

1.27: 0.4 % drain per hour in 7.50 hours (forgot to screenshot GSam main page sorry)

https://imgur.com/a/PuuqU

1.30: 0.5 % drain per hour (but 1 hour more idle, 8.50 vs 7.50 hours)

https://imgur.com/a/yz4Hh

All in all, very good results. I can't comment overall speed of HTC because there are few slowdowns in unlocking from fingerprint, but I think that Xposed contributes to that slowdown. That's it from me :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] wednesyao:
Excuse me I have a question. How can I tweak the squeeze option?

---------- Post added at 03:56 AM ---------- Previous post was at 03:32 AM ----------

Oh I find it in EX kernel manager after I updated it.