yashsingh1/xdaforums huggingface dataset:
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Freak07:
Update to 2.0.0

Hey guys and girls,

So here´s finally the next update. Some waited patiently and enjoyed a kernel that´s working without issues and some not.

Linux-Stable upstream is merged, patches from kernel common and more. Detailed changelog below.

It seems custom ROMs or at least some of it changed the FOD implementation in the kernel. I changed this on the custom kernel version. It´s tested and confirmed working on OMNI-Rom. If other roms deviate, no support for custom rom kernel as of usual.

I know this was a long time without an update. If at one point I plan to stop development for this device I will do an announcement. Then it´s clear to everybody.

There´s no need to update the kernel just for the sake of an update.

Lets´s take the two most recent commits from OnePlus in the source for the op7/pro.

These commits date back to August the 7th 2020 and August the 6th 2020.

The commit from August 7th, was in my kernel since merging a certain CAF-Tag on December the 10th 2019 as commit qseecom: don't unregister listener when data->released is true .

So it was fixed 8months earlier than on stock kernel.

Very similar to the commit from August 6th. It´s present as a commit from linux-stable upstream and was merged by me on January 29.

There´s a fix for a certain CVE in this release, that most likely won´t be addressed by OnePlus very quickly, so I figured it´s a good time for a release. :)

Downloads below.

A huge thanks to all my testers! I really appreciate their dedication. Without it this would not be possible and the kernel wouldn´t be where it is.

Enjoy!

Changelog:

Kernel Base

- Upstream included from 4.14.182 to 4.14.198

- Upstream updates from kernel/common

- built with clang 11.0.3 from Google prebuilts

- fix CVE-2020-14386

- more details, please take a look at github

Features:

- Wireguard updated

Other changes:

- Custom Roms: Fix fingerprint detection, tested on omni. If other ROMs diverge, no support as of now.

Magisk Module:

- no update - use v4

Have fun flashing and enjoy your device with latest linux-stable :)

Why is linux-stable important?

I wish you all a nice day/evening!

Download is below :)

Download:

OOS:

Kernel: https://www.androidfilehost.com/?fid=8889791610682942786

Magisk Module: https://www.androidfilehost.com/?fid=4349826312261756065

Custom ROMs:

Kernel: https://www.androidfilehost.com/?fid=8889791610682942789

Magisk Module: https://www.androidfilehost.com/?fid=4349826312261756073

Instructions can be found in the OP!

But look at this post too :)

Have fun, enjoy the kernel and your phone.

If you like my work please consider a donation.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee/green tea: http://paypal.me/freak07
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] stmims1124:
My body is ready ?

Thank you Freak, as always!

*EDIT: Thank you to all the testers as well!*
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] knpk13:
Do you test on the 7T series as well? Just booted on a 7T Pro and seems to be running fine.

Edit: camera autofocus is borked and a thread search seems to indicate 7T isn't fully supported. I'm guessing it's because the laser autofocus (not present on 7 series) on the 7T Pro isn't supported. Rolling back to stock or another custom kernel fixed it.

Also isn't it possible to include the companion module in the kernel zip if it's essential? I'm pretty sure magisk modules can be created in the AK3 template. Not that I've seen any other kernel use a companion module.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] muhammadshais:
Flashed this on havoc os and everything seems to work fine including fod, the only problem is with screen off gestures, they don't work.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Reechings:
Just flashed on Bliss 12.12 and seems great so far! Been using Kirisakura for marlin, taimen and now for guacamole. DT2W seems to work well for me so far but haven't really let the phone go into deep sleep yet which is usually a good test. Thanks [MENTION=3428502]Freak07[/MENTION] !
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] markoelprototipo:
Since the last version, when flashing this kernel the laser sensor of the camera stops working, now with version 2.0 it still has the same problem, is there any way to fix it? ?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] DepressedDead:
This seems to be a problem in most custom kernels and in some roms, such as crDroid. Laser autofocus just doesn't work.

There must be something missing from LOS kernel since laser works just fine there.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] markoelprototipo:
I am on OxygenOS 10.3.4 and have tried other kernels like Arter, Weeb, etc and works fine the laser. It is a very strange problem with Kirisakura.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] a63548:
Thank you for the awesome new update [MENTION=3428502]Freak07[/MENTION]! only thing I noticed was a typo on the threads tile being 4.14.196 instead of 4.14.198 like the kernel is. :)
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Reechings:
How do you tell if it's working or not?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] knpk13:
I posted about this on the last page. Autofocus doesn't work in camera. You can see the blurry preview picture when you open the camera app.

[MENTION=6618858]DepressedDead[/MENTION] it's not just custom ROMs, I have this issue on OOS too. I have not encountered this issue on any other custom kernel.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] DepressedDead:
You can also point to a mirror to see the laser light coming out from the two little holes between the main and telephoto cameras.

I'm not on OOS but last time I tried Smurf or this kernel it broke the laser. Nobody seems to care about this, since PDAF does the job.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Reechings:
Yeah maybe the other kernel I was using broke it too because I'm not noticing a difference since switching back to Kirisakura again. Focus seems great.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] jaggillararla:
Even on kiri? I have no problems with it
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Reechings:
I haven't seen an issue on any kernels I have tried so I was saying that maybe the laser hasn't been working on multiple different kernels but it doesn't make a visible difference possibly.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] knpk13:
I'm on a 7T Pro, I have a separate module outside the camera for the laser. I assumed the issue was because of the lack of support for the 7T series, didn't think it affected 7 series too like for you.

Not sure how to chexk if the other autofocus methods are working but my autofocus was completely borked in the app. Touching the preview image did not bring the image into focus. So I switched back to neutrino. Unfortunately neutrino dev just broke his 7T's screen rip.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Freak07:
Seems to work fine on my end, on a 7pro.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] cantenna:
Can this be used with Open Beta 18? One Plus doesn't push security updates in a reasonable time frame unless your running beta and i'm on the hunt for the Snapgragon vulnerability patch for rom base and kernel, would love to have an option for customization + security.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] btvolta:
I tried out on RR for my op7 Pro, and was getting random reboots.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] rav101:
I've not tested for Open Beta if I'm honest so I'm not sure.

It would be worth testing out as if it didn't work it's a while dirty flash of full OOS or make sure to take a backup of stock boot image before you do so very easy to get back to stock.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] rage302:
Yes V2.0.0. runs great here on OB18.

greetings rage
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] cantenna:
Thank you.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] cantenna:
redacted
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Freak07:
OnePlus does not release their source for the WiFi driver. All source code public from OnePlus is present in the current release.

So I have to use the open-source driver from qualcomm that might miss whatever OnePlus changed.

There’s probably nothing I can do for you at the moment.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Marco589:
I solved it just with a reboot, no other issue on mine

thanks :)

just an info, about the vibration, I saw that it can be increase just 10% per time; is it possible to ioncrease it just 5% per time? as 40% seems to be too much, 30% too soft...
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] yodainascoda:
hello mate just wanted to ask is it possible for you to add dts commits so we can have full working dts thanks
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Aunen:
it worked! Now i can enjoy this great kernel to the fullest! Keep up the good work,can't wait for the next thing you can do with this great phone and kernel!:svetius:
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Freak07:
I´m pretty sure the idle drain has nothing to do with the kernel. Like [MENTION=5582262]rav101[/MENTION] mentioned idle drain is somewhat tricky to compare.

The only (relatively) reliably way of testing idle drain is over night, without using the phone for the entire time. But only of it´s at the same place, the same network etc. Spending one night at another place might have a very noticeable impact on idle drain over a night.

It´s about the same with stock and this kernel for me. I don´t like to give numbers here, but it´s about the same. It´s worse than on my pixel 3 xl.

I´m pretty sure it´s the radio/modem compared to pixel 3 xl.

Both devices give me very good idle drain though (under 1%/h)

I don´t think I can fix this. I have to use the CAF WiFi driver, because OnePlus decided to not publish the source code for the WiFi driver, but instead build it externally of the kernel as a module.

Yes it´s an issue with the EXKM app. I just tried to set it to 585mhz, without my magisk module (the magisk module sets it to 585mhz 60 seconds after a successful boot) and it stayed at 675mhz despite setting 585mhz on boot.

Best is to ask flar2 about it.

Hey :)

I generally don´t like playing with the charging driver at all. Simply because I cannot test it on a long term basis and the battery is non removable. I know some car charger can only deliver a very low output to the phone, even with fastcharging enabled.

soft reboots are usually not kernel related. Immediately after you face a soft reboot try to collect a dmesg and a logcat.

Before that make sure you´re running stock firmware, without flashed mods, no other scripts, no magisk modules except the kernel module. Also no fancy apps, that promise you some performance gains by setting something "magical".

Just so we can rule out another mod causing this.

The default options are what gets set via my magisk module 60 seconds after the bootup is finished.

Take a look at the service.sh file inside the common folder of the magisk module, to see the defaults.

Nice :) glad it works out for you.

Reboot a few times and I´m pretty sure the issue might return. It was the same for me. In that case you know what to do :)
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] :
Thanks, got the defaults

Ik I'm asking alot of questions but this is the last one ahaha

Why do you set top-app boost to 50 instead of using dynamic stune boost? That's what I've done but I'm coming from RenderZenith on the 6T.

Curious to hear your take :)
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Purest:
Was there anything in this fix that would cause me to fail SafetyNet? I can't seem to pass anymore.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Ice Bear:
Ice Bear would like to report that KCAL doesn't seem to be working properly. Does anyone know why?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] rav101:
I think you need to set the display screen calibration to one of the advanced modes. Not sure which one.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Ice Bear:
Ice Bear has it set to Display P3.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Heisenberg420:
I wondering anyone can confirm this (removal of logs) breaks certain battery stat apps like gsam?

I don't suppose it's possible to enable without rebuilding the kernel?

Really fantastic kernel, performs better than stock imo.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] almightysiman:
just facing a wierd issue,when I use µTorrent Pro to download something,WIFI and cellular will go on and off like crazy.but if I stop µTorrent Pro from downloading,The WIFI will be normal as usual,wonder anyone else facing The same issue.

Btw I use kirisakura 1.2 with oos 9.5.7.

update1:I went back to stock kernel and the problem go away,no more WIFI go on and off while using µTorrent Pro to download.

I try to flash back to kirisakura 1.0 and all behave normal without any problem.so this wierd issues only present in kirisakura 1.2.

update2:just flash The kirisakura 1.3，and The problem still present.

Anyway Thanks for this amazing kernel.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Freak07:
Update to 1.3.0

Hey guys and girls,

so here is the next update. It includes all One Plus source code updates up to 9.5.7 and a few other changes.

Changelog below.

Changelog:

- merged One Plus sources up to 9.5.7

- restricted qcom rx wakelock

- fixed some error spamming in logcat, due to disabling memplus feature introduced in 1.2.0 (should improve battery life a bit)

Have fun flashing and enjoy your device with latest linux-stable :)

Why is linux-stable important?

I wish you all a nice day/evening!

Download is below :)

Download:

Disclaimer/Important:

Before flashing make sure you´re on latest stable Magisk 19.2!

In case you´re on the stock kernel or any kernel, which has AVB not disabled, you have to flash the kernel.zip TWICE in EXKM with a reboot in between in order for the files on vendor to be replaced!

Otherwise AVB verity prevents these files from being replaced.

This kernel changes some files in /system/vendor. Below is a zip you can flash to return to stock for your convenience. Afterwards restore the stock boot.img

Kernel: https://www.androidfilehost.com/?fid=6006931924117889848

Magisk Module: https://www.androidfilehost.com/?fid=6006931924117889847

Restore-Files Zip:https://www.androidfilehost.com/?fid=6006931924117887604

or following the link in the op to the correction version

Instructions can be found in the OP!

But look at this post too :)

Have fun, enjoy the kernel and your phone.

If you like my work please consider a donation.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee/green tea: http://paypal.me/freak07
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] RandomPooka:
I was just downloading this and wondering if it was current with the 9.5.7 release from yesterday or if I should wait.

Then, you posted 1.3, and it answered my question. Thanks
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] rav101:
Solid work as always my friend!
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Freak07:
I’ll reply to other questions and posts later. Very busy day today. Thanks for your patience and understanding :)
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] miffymiffy:
All your posts say flash with exkm. Is there any issues with flashing via twrp?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] RandomPooka:
It's probably fine to, but you can do everything you need to with exkm and Magisk manager, so there's really no point in booting to twrp as a middle step.

Exkm - flash stock kernel, flash Kirisakura over it

Magisk manager - install/update module, twrp installer module (optional), flash Magisk after flashing kernel (direct install, not OTA install)
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Blu8:
Are these changes to min frequencies intended? A change from OnePlus maybe?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] rav101:
Don't worry about it. It's being set by other factors dynamically as it needs to be so it's not like that all the time.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Freak07:
When flashing via exkm and coming from either stock kernel or any kernel that has verity intact. Make sure to flash it two times.

Like:

exkm -> flash kernel.zip (now the stock kernel prevents writing to /vendor due to avb verity.

reboot. When booted up you’re on my kernel which has avb verity disables.

exkm - flash kernel.zip again. Files to /vendor will be copied properly now.

Reboot and enjoy!
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] cantenna:
Nevermind...

Sorry to bother you with all this nonsense... just discovered the issue is present on stock kernel too...

From my perspective, Android 10 has been an epic fail and I don't understand how I seem to be the only one affected by Android 10 802.11r issues!?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] slgooding:
What is the separate module you use for the laser?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] RedSoviet:
F2FS Questions

Question 1: Is F2FS required to run this Kernel?

Question 2: Is DATA the only partition that should be set as F2FS? Can you set the other changeable partitions to F2FS, such as SYSTEM?

Question 3: Has F2FS slowed down over time for you as some people have said?

Question 4: Have you ever lost files or data due to using F2FS? (Instability claims made by people.)
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Ice Bear:
1. No. F2fs is not a requirement needed to use Kirisakura. RedSoviet can use Kirisakura with ext4.

2. Yes. /data is the only partition that should be set as f2fs. Leave all others alone.

3. In Ice Bear's experience of using f2fs for the past year or so, it has not slowed down.

4. Ice Bear has NEVER lost any kind of data due to f2fs. Maybe Ice Bear has been lucky.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] RedSoviet:
Thank you much for your quick response. I'll try to get F2FS working, but I am running on a custom ROM, and for some reason my OP7P seems to be hardware bugged as I have horrifying issues even when completely stock, such as random reboots or the phone not turning on when the screen has been left off.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] pitrus-:
Could be a bad batteri causing unstable voltages which in turn makes the phone unstable. Have you tried underclocking the phone just to see if that makes it any less unstable?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] RedSoviet:
Underclock both the CPU & GPU? To describe the problem, no matter what Kernel or ROM I use, if my phone is left with the screen off for a short period of time, sometimes when I press the power button to turn it back on, nothing happens. So I have to hold VolUp+Power to hard restart the phone.

Other times, my phone would randomly freeze extremely hard, reboot, and settings I have changed will revert back to different ones, such as my alarm clock sound will go from what I chose, back to default. I have no idea why this is happening. I bought this phone used, so the previous owner probably had this issue as well. Even on OOS it does this. I would get a screen sometimes saying CrashDump mode, and even if I used the MSM Tool to bring it back to full stock, it still would bring me into CrashDump mode sometimes.

What should I try lowering the clock speeds to?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] pitrus-:
Sounds suspiciously as water damaged, or simply defective mainboard.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] ezzahh:
Might just be me, but I was on Kiri 1.9.7 and changing to 2.0 caused significant battery drain. Not sure if it's a magisk module, but I was running acc, gms doze, viperandroidfx and nolimits 12.7. Reverting to 1.9.7 fixed battery drain issue for me. I suspect one of those modules are incompatible

Update: I just updated to 10.3.5 and flashed original kernel and then reflashed and everything seems good.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] anupritaisno1:
There is just too much noise for a vulnerability that isn't even exploitable

The Qualcomm vulnerability cannot be exploited by a common app because access to the DSP is not allowed for apps you install on your phone

You are only vulnerable if you install one of the many gcam mods that actually make selinux permissive towards DSP access and allow direct access to the DSP. Do not flash any gcam mods and you are not vulnerable
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] cantenna:
Viper4android too I reckon... Which I do use
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Reechings:
Are you saying that making selinux permissive at all makes it open to this vulnerability or is it gcam specifically?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] TotallyAnxious:
Selinux being permissive.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Reechings:
Damn that sucks because I think selinux has to be permissive for dolby atmos module to work on custom ROMs.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] TotallyAnxious:
I imagine only a port of the Sony Xperia 1 II dolby atmos could run on selinux enforcing. It's older than 7 Pro dolby framework (oddly) but it's the only dolby apk build for android 9+. This is all assumption. I don't know **** about porting audio anything. Lol
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] anupritaisno1:
Not exactly

Selinux can be made permissive in more ways than just one

You can go ahead and make parts of selinux permissive or make the entire policy permissive. Selinux will show up as enforcing in system but you're really permissive if you do so

There are gcam magisk modules out there with an allow rule for access to the Qualcomm DSP for

all untrusted apps

and that is the problem. On devices where gcam is officially supported a special selinux domain is used to only grant the access to gcam iff it has a specific signature and that is how other apps can't get the same permissions as gcam does on these devices
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] TotallyAnxious:
Well technically isn't the problem people flashing things without even opening the zip?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] brolic925t:
These lockups are ridiculous...
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] anupritaisno1:
And can you open a zip, read selinux policy and tell me what it does?

Selinux policies aren't user readable. Android also goes to great lengths to even hide the fact that selinux is present from the user. This is actually a CTS requirement. Manufacturers are not allowed to let the user know that selinux even exists
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] martan01:
A question: if I try this to use this kernel with Los 18, is there a chance it will run in the current state or not?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] gyakusetsu1215:
Unlikely, you can try it, worst case, back up your boot.img and flash it if you boot loop.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] spawnn617:
How is the battery on latest 2.0? Active use (fb/yt/chrome in x%/h?) or stanby (x%/h)? Or how it compares to Weeb or Neutrino?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Rubensvailati:
Since stable oxygen has been Updated, will a new version of this kernel be released?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Nimueh:
It's a staged rollout and most devices haven't even received it yet - patience young padawan :laugh:
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Rubensvailati:
Sorry man;)?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] hellcat50:
Current kernel version runs flawless on latest Oxygen update!
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] dadu25:
Noob Question: do you have any idea when wireguard will be available in the kernel native suport? Google has announced that they support wireguard in the last kernel build. Thanks