yashsingh1/xdaforums huggingface dataset:
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] crian:
​

Introduction

Hello everyone, this is my personal kernel for the OnePlus 5/5T.

This kernel is made with a focus on performance, battery life and stability.

Please flash it only on OOS Pie!

Hopefully you will enjoy it!

Telegram Chat

Important thread information!

If you got issues please provide a log.

If you got feature requests, just ask.

OT is allowed.

Flash instruction

On OOS stock kernel:

- Flash kernel zip

On custom kernel:

- Dirty flash stock rom

- Flash kernel zip

Features

Major features

- Up to date with OOS Pie (Stable and Beta)

- Up to date with the latest stable Linux version

- Up to date with the latest CAF tag

- Mainline CFQ scheduler improvements

- Disables dm-verity

- CPU Boost improvements

- Interactive Gov. improvements

- Touchboost

- Wake Gestures

- Sweep2Sleep

- Backlight Dimmer

- Sound Control

- Wakelock Blocker

- USB Fast Charge

- Several subsystems converted to use power efficient workqueues

- Latest WireGuard snapshot

- Westwood as the default TCP algorithm

- Built with a self compiled GCC 8.2.1 toolchain

- ...

Downloads

Primary

Sources:

Kernel: https://github.com/crian/kernel_oneplus5

AnyKernel: https://github.com/crian/AnyKernel2

Credits and Thanks:

- [MENTION=6842057]nathanchance[/MENTION] for upstreaming

- [MENTION=4544860]osm0sis[/MENTION] for AnyKernel2

- [MENTION=4800121]Sultanxda[/MENTION] for being a Dev

- [MENTION=3292224]franciscofranco[/MENTION] for having some nice stuff

- and all the other amazing Devs out there

If you like my work and want to support me, buy me a coffee or two: Donate

XDA:DevDB Information

[KERNEL][OOS][PIE][GCC] Pi-Kernel, Kernel for the OnePlus 5T

Contributors

crian

Source Code: https://github.com/crian/kernel_oneplus5/tree/9.0_Beta

Kernel Special Features:

Version Information

Status: Stable

Current Stable Version: v5

Stable Release Date: 2019-01-27

Created 2019-01-05

Last Updated 2019-01-28
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] crian:
Reserved
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] preference:
Been using this kernel for awhile, and though we have many good options out there (RZ, blu, and the countless custom kernels in the roms we flash daily), I find that π has the best handle on boosting the smaller cores. I also think the input / touch response time is noticeably smoother on this kernel.

TBH it's not the one I'm running right now, but I'll probably be back to π when the next release is posted.

Go to the telegram channel if you need immediate support. I've only tested on stable 9.0.1.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] a g bell:
This is the best kernel for the op5
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] p8257908@gmail.com:
Do not plan to do for custom firmware
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] crian:
Not at the moment.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] wOMPZA:
So you got new op5t?
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] crian:
Got one of a friend who bought the OP6.

So yes!
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] jas_is_0n_fire:
Thanks a lot for sharing your personal kernel for our OP5 9.0.1 PIE .. thank you !! ;)
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] TioFalopa:
Please, in the next update give support to "Spectrum".

Wonderful kernel
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] crian:
I don't think so...
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] crian:
Update to v2

Changelog

- Merged Linux 4.4.170

- Upstreamed cpufreq times

- Upstreamed sdcardfs

- Bluetooth improvements

- arm64 optimizations

- Switched to HZ 300

- Reduced kernel size

- Boot time improvement

- Fixed issues with Google Camera

AnyKernel2 changes:

- Adjusted read-ahead values

- Added some file permissions

Download

Direct

Commits: https://github.com/crian/kernel_oneplus5/commits/9.0_Beta
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] p8257908@gmail.com:
Please add support for custom firmware
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] crian:
Currently not planned.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] p8257908@gmail.com:
It is regrettable
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] preference:
Hey this kernel has grown tremendously since I started testing it on TG. I used to think this was a "good", not "great", but I wasn't letting it settle. It seriously takes about a good 15 minutes for things to just feel right. If you gave up on this kernel before, try it again, you will not be disappointed in it's reliability.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] crian:
Thanks and good advice!
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] preference:
OP San, it might be placebo but when I turn on enable_prediction to 1 in the country governor options, I seem to get better performance. This seems to only benefit the little cores, when I enabled it on the big cores I started to suffer a lot of stuttering.

Why is this setting netting me performance? Is it off by default for a major reason?
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] thrilu06:
I think as long as I'm on oos, I can't leave π kernel for now. To my use, this is the best one I can find right now. Huge thanks to the Dev for bringing this kernel to 5T.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] preference:
Dude no lies it is a complete kernel that doesn't require any modification, though I choose to make my own changes when bored
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] crian:
Update to v3

Changelog

- Merged Linux 4.4.171

- Updated to latest OOS beta

- Added CPU input boost

- Added devfreq boost

- Added state notifier

- Compiled out some of OP's QoS code

Download

Direct

Commits: https://github.com/crian/kernel_oneplus5/commits/9.0_Beta
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] adoe:
running it for a few days nows. very stable. ui is more fluid (novalauncher). when changing apps using recents are faster than stock. thanks.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] preference:
I don't want to start a kernel war or anything but with pred enabled this is a winner every release. Not a one trick pony, but still an important aspect of this kernel for me.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] a g bell:
It is the best kernel for op5? on oos it doesn't follow a script like some other kernels do ?
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] crian:
Update to v4

Changelog

- Switched to qcacld wlan driver

- Upstreamed binder

- Added Simple LMK

- Implemented z3fold

- Some optimizations

AnyKernel2 changes:

- Enabled prediction for lp cluster

- Disabled touchboost

- Configured virtual memory

Download

Direct

Commits: https://github.com/crian/kernel_oneplus5/commits/9.0_Beta
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] crian:
Update to v5

Changelog

Redone the kernel. Dirty flashing ROM is recommended!

- Merged Linux 4.4.172

- Added Notification LED Control

- Added KCAL

- Added back high brightness mode

- Made wq_power_efficient switchable

- Disabled RCU Boost

- Some upstreaming

Download

Direct

Commits: https://github.com/crian/kernel_oneplus5/commits/9.0_Beta
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] preference:
Love it man, I'm usually on your betas but stable releases have been legit too. If you're an end user looking for the best hmp experience, please flash pi kernel. I'm willing to help anyone here or on the other chat platform that must not be named.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] servidores:
Very good kernel, could you add Vibrator Strength tunable and Gesture Haptic Feedback control (touchpanel an FPR)?
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] ludester:
Very good kernel!
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] preference:
I just want people to know that this kernel is the ****, whether on OOS or custom rom

Also, so I make a real contribution to the XDA forums, this Dev went out of his way to make pi kernel compatible with omni/custom roms. His implementation of flash kernel has one unique trait - it has sched predict (something like that) enanled on the little cores, and over time I've noticed a performance boost.

Last thing, beside Blu spark this is all we got for hmp. So respect the kernel if you're an idiot mongrel like me who refuses to go eas.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] marqobazua:
Which one is the latest or the greatest version of this kernel in downloads the V5 is the latest.. on telegram group they post the feb 05 version and today the feb 07 i flash yesterday the feb 05 but got no sim and now i am using the V5 from downloads
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] Moozotti:
"Telegram builds" is usually beta builds or experiments, if you want something more stable or "reliable" use the version that is here.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] crian:
First time that such a problem is reported.

Can you give me a log?
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] KuranKaname:
Mind if I get an explanation to why you remove my signature from the commits you pick from me or even the author once or twice?
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] mrjuniork:
[MENTION=4766140]crian[/MENTION] Your kernel is rocking it man! Super smooth and it seems like that most of the lagging since Pie are barely noticeable for me.. Tried almost all other Kernels for OP5.. Is this kernel using stock wifi module?

Really appreciate your work :good:
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] crian:
It's using the qcacld wlan module.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] Amisuta:
How does the wakelock blocker work? Does it automatically block particular wakelocks or are there settings we can adjust somewhere?
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] bud7dha:
Boeffla's generic wakelock blocker. https://wiki.boeffla.de/index.php?title=Boeffla_generic_wakelock_blocker "...blocks a couple of harmless wakelocks by default, namely: qcom_rx_wakelock, wlan, wlan_wow_wl, wlan_extscan_wl, netmgr_wl and NETLINK." The dev is retired now, but you'll see this wakelock blocker incorporated into quite a number of custom kernels for oneplus devices.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] brGabriel:
The instructions state that you should dirty flash stock ROM if your on a custom kernel. it's the first time seen that recommendation when flashing a new kernel.

Is there a specific reason for this, and if so what would be the repercussions of not flashing the stock ROM prior to flashing your kernel? Not a big deal, just curious. Has anyone tried just flashing the kernel, then wiping the cache and dalvik just to see if it's necessary?
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] Sam Nakamura:
I think starting from Oreo custom kernels for our device started modifying /system due to things oneplus changed, flashing a kernel is often no longer limited to the boot partition, so if you flash a certain kernel that modifies the system partition and then switch to another kernel it might create a mess, cleanest way is to revert changes previously done to /system first by dirty flashing the ROM before switching to another kernel - it's not that you're going to damage your device if you ignore/forget doing this but you might experience issues/bugs due to this, I think people often reported broken Wi-Fi and stuff like that... and I read the suggestion on various places, engstk was the first one I remember!
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] ludester:
Any updates on this kernel?
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] shoxyy:
It's still absolute beast.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] mrsover:
See telegram group. Version from 29190220 with merge 4.4.175.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] ludester:
Ah I don't use telegram. If you have time do upload it somewhere and msg me
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] bud7dha:
You could use the desktop version. Lots of development happening on TG channels if you want latest releases. The latest pi releases are beta. If one of the latest is deemed stable enough, [MENTION=4766140]crian[/MENTION] will push it here.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] xestan:
I just flashed this kernel and I can already feel the difference on my op5, way better than bluspark in my opinion.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] Material Danny:
could you plan to do some kernel of EAS？
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] preference:
Go to the other chat platform where xda devs hide if you want experimental builds. I'm not allowed to say anything else in public. Like many users, I use both platforms that currently support OnePlus 5T discussion.

Please take note that xda has heavy quality control due to it's core userbase, while "mail related chat program' is a memefest with potentially dangerous zips.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] a g bell:
You mean Telegram ?
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] preference:
I didn't say ****
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] bud7dha:
What? Telegram. I said it.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] melphoi:
I've been testing this Kernel on OOS 9.0.4 on Oneplus 5, and comparing against the stock kernel.

I gotta say this Kernel is MUCH WAY BETTER than the stock one and other custom kernel too (maybe for now :p)

Take 6 days to do the test with all from 100% battery, day 1 and day 4 are not counted since 1st day is the day I'd clean flash 9.0.4 with Stock kernel, and 4th day clean flashed with this kernel, thus the battery are not full to do the test.

This test is simple test where I just using my phone like my daily use without gaming, same apps installed, same Magisk's Module, same app's disabled, no tweaking at all.

See the total hours the phone been uncharged and SOT, Pi Kernel is better than Stock one, and the stuttering that I experience on stock kernel is smaller than this Pi Kernel though I still experience it sometimes.

Great job,Dev. Please continue the Development of this Kernel.

Thank you.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] Mervingio:
TG chat has gone?
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] preference:
Sadface
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] preference:
We await the sacred one's return, sprinkling the ashes of his enemies on the pathway to Godhood. May the pi be eternal - amen.
[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] mrjuniork:
[MENTION=4766140]crian[/MENTION] wanted to ask if development is on hault and if everything is alright on your end... I know that stable OTA's are slow these days, but since this is my absolute favorite OP5 kernel, I felt compelled to ask. Cheers mate
[Xiaomi Mi Mix 2S Questions & Answers] trungsypro:
Hi everybody. as the title. 2s mix machine I bought china laptop stick mi acc lost mode. bootloader is locked. China version So now there is a way to delete the old owner's account from the phone or hide it. sorry not good at english. I use google translate
[Xiaomi Mi Mix 2S Questions & Answers] Flatric:
You could use the EDL method, you need an authorized account for that, there are people selling them
[Xiaomi Mi Mix 2S Questions & Answers] .\\D-ZFR:
translate it for better english, so people can help! I believe you just stucked at the password confirmation in miui after hard reset. Why don't u ask the previous owner for the account's detail?
[Xiaomi Mi Mix 2S Questions & Answers] trungsypro:
I bought it through one person but they didn't know the login account either. And they say portable from China. I am currently in vietnam. So the other account is in China
[Touch Cruise General] rickgillyon:
I'm connecting my TC to a JVC KD-AVX44 car head unit. Bluetooth audio works fine, but I believe both units are supposed to support AVRCP, yet the JVC doesn't get song details or allow me to control it. Anyone have any idea if there's something I need to set up on the TC to allow this?

Thanks!
[Touch Cruise General] rickgillyon:
Okay, let's try another question... :)

Anyone have AVRCP working with Polaris at all? If so, what features? Play/pause, song display? With what device?

Thanks!
[Touch Cruise General] JNGold:
Make sure the BT profile is set for wireless stereo.
[Touch Cruise General] rickgillyon:
Thanks, Wireless Stereo works fine, it's just the RC that doesn't work at all.
[Touch Cruise General] JNGold:
1. Are you sure your head unit is AVRCP compatible?

2. What player are you using on the TC?

I have had no issue connecting and using my Moto S9's.
[Touch Cruise General] rickgillyon:
Yes, AVRCP 1.3, A2DP 1.2. Should work I think!

Tried with WMP, HTCAM, Conduits Pocket Player...

Can you use the buttons on the S9s?
[Touch Cruise General] JNGold:
Yep. I did have problems with Pocket Player. However, no issue with WMP or HTC Media.
[Touch Cruise General] rickgillyon:
WMP is working now, and I got Pocket Player working with a plugin from their site. I have control with both, can play/pause/next, but I still don't get song details on the player.

Anyone have song details displaying via AVRCP?

If so, what hardware?
[Android Q&A, Help & Troubleshooting] kamolinkaaa:
Hello,

Got my hands on this puppy. It isn't mine, just wanted to help aunt little daughter.

When entering some apk like Shazam (settings works tho & some new installed apks like easy backup turned on -yet after time resulted in same error) or You name it the unit freeze itself which results in a picture brick phone (can't rly kill the process or browse it anymore).

The only way to turn it off is by pressing every button at same time.

Her phone was factory reset & it didn't help with the problem. The issue went back.

So I thought that, the only solution is to install clean rom (stock rom) & find out if it helps.

Otherwise it's hardware right..

Help?
[Android Q&A, Help & Troubleshooting] CaganSeven25:
This is an big problem, but I am like you. I want a rom for my xperia e5 but no one makes it. One man made it, but it has problems (I am using it, fast but battery dies) and TWRP gives random errors. So, you should go to technical service. No chance, I can't help you I am so bad cuz I didn't buy another phone :( (lol the other phone has 3 gb ram)
[OnePlus 6T  Questions & Answers] Akoolive:
Anyone have phone apk from OS 9.0.1? T-mo version.
[OnePlus 6T  Questions & Answers] Koont:
+1. Can't even theme the phone or contacts app on HavocOS
[OnePlus 6T  Questions & Answers] Caltinpla:
https://drive.google.com/file/d/1_FMsVt61BjR1Kw6pg6dPVx4qyP_ZAty5/view?usp=drivesdk

---------- Post added at 03:04 AM ---------- Previous post was at 03:00 AM ----------

I just extracted it from my T-Mobile stock rom 9.0.1
[OnePlus 6T  Questions & Answers] brmbjn:
What version ?
[OnePlus 6T  Questions & Answers] Akoolive:
Thanks champ
[OnePlus 6T  Questions & Answers] Koont:
Can't get it to download for some reason.
[OnePlus 6T  Questions & Answers] Caltinpla:
T-Mobile variant stock rom 9.0.1 phone app version 4.0.2

You can get newer versions @ apkmirror here but they crashed open for me!!!

https://www.apkmirror.com/?post_type=app_release&searchtype=apk&s=oneplus+phone
[OnePlus 6T  Questions & Answers] theghazi:
What is the benefit of having TMobile version of this phone application.

I know I would want it for one reason only. The visual voicemail that OnePlus can't get it working for many years now :) with anyphone and update.

Every time you listen and delete it just comes back on.
[OnePlus 6T  Questions & Answers] ZDeuce2:
That's not for our phone, the target OS is 8.0

Oneplus 6t
[Xiaomi Mi 8 Questions & Answers] Dexer125:
Hello, I need help. I would like to know how to decompile ROM zip package and extract vendor image on Windows. I'll be glad if someone could tell me. Thanks
[LG G7 ThinQ  Questions & Answers] joser0913:
Hi;

From JerryRigEverything's Teardown video I can tell that is not easy to replace the battery on the G7 plus if would void the water resistance and since I'll keep this phone for at least 2 years I have the following question about how to preserve the battery in the best conditions possible:

In order prevent the battery degradation, is it better to use: Fast or Wireless Charger?

Do you have any other advice regarding this topic?

3000 mAh isn't that great to begin with and if you add that it could get worse over time then it's better to take precautions. I wouldn't care that much if replacing the battery wasn't that hard. I mean it would require a good technician in order to get a proper reparation and I'm not sure I know one.

I apologize for the spelling or grammar mistakes, I'm not a native speaker and I'm still learning.
[LG G7 ThinQ  Questions & Answers] maydayind:
Charge whenever you can and dont let it go under 50%

The more you discharge it the chorter lifespan it get
[LG G7 ThinQ  Questions & Answers] doubledragon5:
Disable all crap you do not use.. When at home, and phone not used much. Turn off Wifi, BT, Location and even Data..
[LG G7 ThinQ  Questions & Answers] joser0913:
According to what I've read. I think the ideal scenario would be mantaining the battery charge between 20% and 80%.
[LG G7 ThinQ  Questions & Answers] joser0913:
Yes. That's exactly what I do with every smartphone I've own. I usually go heave on optimization of every single aspect regarding performance and battery life.

I use WIFI on, Data off, BT off, location off, auto brightness setting, Always on display off, no facial unlock, WhatsApp tweak to get only important notifications, the display is set down to 1080p instead of 1440p. When I play PUBG mobile I turn on Airplain mode and plug in headphones.
[LG G7 ThinQ  Questions & Answers] dwoycheshen:
I purchased Acubattery. It has alarms that let you know if you are overcharged (more than 80% it says).

It also does a really good job of monitoring your current capacity and giving your hints on what is draining your device during the day. It will estimate your current battery capacity, which is nice if your phone shows they battery condition as Good (whatever that means Huawei Nexus p6).

Basically your battery is going to self destruct, but I find this app really gives you a good amount of information to make good decisions about how you use your phone.
[LG G7 ThinQ  Questions & Answers] Inerent:
I disagree with every advice here!

Check out my thread from my last phone :

https://xdaforums.com/xz-premium/ho...ry-restore-t3796461/post76653346#post76653346

Been reading dozen of threads on diffrent forums regarding people complaining about their poor battery health, performance, etc.

Here are my advices to obtain near 100% battery health as years passes by (I have an galaxy s3 from 2012 with 90% and an LG g3 dual sim from 2014 with 92% ???), it all has to do with user behavior:

1. Avoid not charging to at least 95% then discharging it to near 0% (example: you charge it from 0 to 50 then you go outside and discharge it to near 0)

2. Avoid high usage for more than 3 consecutive days.

3. Drain SLOWLY from 100 to 0 once a week. This drain must be done at least in 1,5 - 2 days.

4. Charge from 0 to 100 with phone off at least 1 time / week

5. Every 2 weeks Let the phone discharge in 2-3 days, with minimal use, like just calling.

6. Repeat nr. 3 as much as you can

7. Avoid putting to charge when the phone is hot.

8. Avoid charging while using the phone.

9. Avoid fast charging.

10. From 100 to 70 and from 30 to 10 go slowly.

11. Never let it discharged 5, 10, 20 % more than 1 day

12. Never charge from 20, 30 to 100.

And many more will come.

Cheers.

??????