yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] franciscofranco:
Dunno what to do anymore. I tried to destroy the wakeup source altogether but it won't work properly because not all wakeup sources are started with the create method, so it crashes. Maybe I'll try disabling it or something. Not a huge deal, current code works nonetheless.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] dorimanx:
yes it's works just fine.

I can only request to kill the counter for disabled wakelocks, so they will not be shown in apps. and BAM! happy users all over the world!

EDIT: happy end :)

found why few wakes where slipping in! Also killed the counter. here is my patch so far, still not committed, testing.

In short you check for "ws->active" and if still not active your code return false!!!

Then happy "wakeup_source_activate" function waking the freeze and set our blocked wakelock to active!

On next time it's like to wake again, code catch it and kill it.

Well but next time! it's happily active again braking the freeze. still it's 5% from possible wakes!

with my change,

1) it's will always check if that is the wakelock we want to kill.

2) if already active, then deactivate and silently skip the "wakeup_source_activate" and the counter!

3) if not active, then just skip the "wakeup_source_activate" function + counter.

4) for any other wakelocks it's will work as stock.

Also now we dont count any wakelocks with screen ON. why we need that anyway :)

https://pastebin.com/3kQcktWT

i will keep you posted if any problem will be found.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] franciscofranco:
That makes sense. I'll make some changes to to the patch you linked, but it'll be mostly cosmetical. Good one.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] dorimanx:
And now the bad news, disabling the ipa_ws will create Bluetooth stream hickups every sec, when screen is off. Starting 3 sec after screen is dark.

Enabling it back will play music smoothly...

Others have no effect on that.

I have searched and seems ipa is very connected to bt and wifi...

Possible we cant block it for 100%.

Need to allow some wakes to sustain active apps transmitting music via bt..
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Midomad:
[MENTION=3292224]franciscofranco[/MENTION]

What do you think?

https://xdaforums.com/showthread.php?p=71611818
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] franciscofranco:
Hmm. I've had ipa_ws disabled on other devices and haven't received any complain.

Well, if he says the issue exists and it was reproducible then kudos for him to have found it. I'll check the patches he merged.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] franciscofranco:
Ok I managed to reproduce this. News flash, it has nothing to do with FK or FK Manager & Updater. Uninstall my app, open OP's camera app and check the frequencies, both clusters are capped to ~1GHz (probably to reduce thermals). What happens is that as soon as the camera is launched both clusters are capped and when my service kicks in (it polls every 2 seconds because there's no foreground app listener) the cpu freqs are already capped to death, which is reads to then re-apply after the per-app profile finishes its job. Afterwards when you leave the camera app my service can't revert to previous pre-cap frequencies because it doesn't know what they are.

This is probably delt in some middle layer HAL, I can't touch it.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Dashing_97:
Where can i find the download link for franco kernel v5??
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] bk4speed:
I've tinkered with some of the settings but want original Franco to be installed is there some way through the paid app or any other means that I can reset -in a sense- the kernel?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] foxsprout:
If you're using FK app to tinker, you can just reboot to reset them (unless you toggle the 'start on boot')
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] dorimanx:
OP.

this should fix the BT cutoffs when transmitting audio with screen off.

It's will pass 1 IPA_WS and allow to wake, then next run deactivate, and loop.

- if ((!enable_ipa_ws && !strncmp(ws->name, "IPA_WS", wslen)) ||
+ if ((!enable_ipa_ws && !strncmp(ws->name, "IPA_WS", wslen) &&
+ ws->active) ||
(!enable_wlan_extscan_wl_ws &&

with IPA_WS ALLOWED all the time, and BT always on, after 12 hours i see this stat:

name active_count event_count wakeup_count expire_count active_since total_time max_time last_change prevent_suspend_time
IPA_WS 5362 10173 4572 0 0 464461 1800 16118162 0

With allow one wake, and kill next and allow new wake, it's was much better and there was no streaming cuts during screen off.
IPA_WS 15171 29854 382 0 0 1233879 2331 10109982 0

This should be good trade off.

And here is the real stats: 30min after boot with the change.

root@OnePlus3T:/ # cat /sys/kernel/debug/wakeup_sources | grep IPA_WS
cat /sys/kernel/debug/wakeup_sources | grep IPA_WS
IPA_WS 30 30 1 0 0 1261 81 628620 0
root@OnePlus3T:/ #

root@OnePlus3T:/ # dmesg | grep "forcefully deactivate wakeup source"
dmesg | grep "forcefully deactivate wakeup source"
[20170328_12:16:43.563061]@0 forcefully deactivate wakeup source: IPA_WS
[20170328_12:16:43.949831]@0 forcefully deactivate wakeup source: IPA_WS
[20170328_12:16:44.151033]@0 forcefully deactivate wakeup source: IPA_WS
[20170328_12:16:44.246719]@0 forcefully deactivate wakeup source: IPA_WS
[20170328_12:16:44.353194]@0 forcefully deactivate wakeup source: IPA_WS
[20170328_12:16:44.461612]@0 forcefully deactivate wakeup source: IPA_WS
[20170328_12:16:44.633508]@0 forcefully deactivate wakeup source: IPA_WS
[20170328_12:16:44.778033]@0 forcefully deactivate wakeup source: IPA_WS
[20170328_12:16:44.938203]@0 forcefully deactivate wakeup source: IPA_WS
[20170328_12:16:45.142307]@0 forcefully deactivate wakeup source: IPA_WS
[20170328_12:16:56.535667]@0 forcefully deactivate wakeup source: IPA_WS
[20170328_12:16:56.813289]@0 forcefully deactivate wakeup source: IPA_WS

Works like atomic clock :)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] bk4speed:
AWESOME! Thank you so much.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] pahapoika91:
4.1.1 released!

Sources not up yet
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] domsch1988:
I'm not sure if it's kernel related, but i have a question concerning RAM Management.

My phone, without ever clearing apps, uses around 3GB of Ram. That's fine. But, going back to apps i didn't use a day or two typically reloads them. Is there a specific time after which a app is cleared from RAM? And can one change it?

---------- Post added at 02:35 PM ---------- Previous post was at 02:11 PM ----------

I flashed R16 over 4.1.1. Everything seems to be working fine :good:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] franciscofranco:
Don't really know how that works. I know it follows LRU scheme of some sort, so eventually its cached objects will be purged by the GC.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] domsch1988:
That's fine, I just thought that I might have missed a setting for that. In the end, opening apps takes half a second or so, so no big deal :good:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] franciscofranco:
Makes sense.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] dorimanx:
OP sorry for many posts, still testing the change, and found why bt audio was cutting when screen is off.

Its not the IPA_WS so we can shut it for good.

Problem is the screen off check in static void wakeup_source_report_event(struct

We need to remove it.

Problem is that when app start to stream music, its asking to set wakelock for its self.

But its skipped as screen is on.

Then i turn screen off, and kernel trying to freeze and go to suspend while working... No hard wakelock that keeping the suspend routine from working.

This whats creating drops in cpu.

So no need to check ws->wake for ipa.

I will push the patch soon.

Sitting in my car and testing :)

EDIT: finally all works. IPA_WS is zero on counter!

https://github.com/dorimanx/DORIMANX-OP3T-KERNEL/commit/ad133f7e293845d702067ee576344fa37965de09
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] franciscofranco:
I actually thought that display on check on that part was pretty stupid the first way around, I didn't even had time to test because I left home early today. Glad you figured that out yourself.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] joakimbo:
Flash r16 on 4.1.1 or wait for new release? Thanks
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Harmveenstra:
Updated this afternoon and flashed R16, no issues so far
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] 64ashg:
Flash, everything works as before on 4.1.1 with r16
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] MrMeeseeks:
This is good development thread stuff right here. Discussion about actual development instead of "will this work on - insert rom here-".
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] HampTheToker:
I don't see this setting anywhere, and I've looked everywhere. I always have to reset everything after a reboot, but it's only a few settings (governor's, haptic feedback, 25% underclock) so I've been dealing with it.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] foxsprout:
There's a toggle at the right in every option, and it does that.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] franciscofranco:
New Franco Kernel version for the OnePlus 3T

r17

1. Much better custom wakelock detection & blocking for lower idle battery consumption. All the wakelocks being blocked are available to check on my github repository

2. Merged upstream sdcardfs important driver fixes

zip: https://kernels.franco-lnx.net/OnePlus3T/7.1.1/anyKernel/fk-r17-anykernel2.zip

Franco Kernel Manager & Updater is the best companion for this Kernel (https://play.google.com/store/apps/details?id=com.franco.kernel)

If you don't (yet) have my full featured app you can always just download its free counter part which lets you seamlessly and automagically update Franco Kernel on your device. It's free and my cat approves! (https://play.google.com/store/apps/details?id=com.franco.kernel.free)

I also strongly suggest you install Naptime (https://play.google.com/store/apps/details?id=com.franco.doze), for free, to achieve the best battery life through out the day. Try it, you won't be disappointed!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uli_p:
Sorry if I missed it but are there any news on LineageOS support? Can't wait to use Franco Kernel there..
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] franciscofranco:
If I had it finished I would've posted it but I felt like r17 should come out asap.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] sharath_babu:
[MENTION=3292224]franciscofranco[/MENTION]

had reboot on r17 soon after applying FKU setting (which gets applied soon after phone starts) .....

cleared data, seems good now.......
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uli_p:
Thank you very much for your incredible work and lightning fast support (as always). :)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] franciscofranco:
I don't see how FK Manager & Updater can reboot your phone but ok.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] HampTheToker:
Hmmm...that's odd because I have them toggled and they still fail to set on boot.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Holgott:
Unknown error while starting camera :(.. With r16 I fixed by flashing elemental x and Franco afterwards (saw this in this thread somewhere) but with r17 it didn't work. Is there any official fix for it? I'm on freedom OS 2.6.1-1
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] oifi:
Yes there is. Don't use magisk. Or look up how to flash it correctly.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Xennet:
Try the method I described some pages back...

If it doesn't work the only way is not to use magisk...Uninstall magisk completely.. (but that may trigger safety net fail if you are not concerned about it...)

Use supersu instead...
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] lontu:
Have you enabled Apps auto-launch from Settings menu for the desired app ?

Settings -> Apps -> 2nd icon from top right -> Apps auto-launch
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Midomad:
I wonder if Oneplus will release OOS 4.1.1 kernel source or it's the same as 4.1.0?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] saurabh40629:
I think it's the same. The update is only 46mb and from changelogs, you can see that it is same as 4.1.0 except instagram fix, button swap fix and notification shade( told by people in thread). I have r17 working fine here.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Midomad:
I too,but let's wait and see.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] svandasek:
Can't wait for lineage os version.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Batfink33:
There's a different, later date on the kernel build so it should be different on 4.1.1.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] saurabh40629:
Not necessarily.... If they made a patch and compiled and built it, it will just give u a new timestamp of that date, doesn't mean that it's different. Anyways lets wait if any source gets pushed out for this.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] franciscofranco:
Me too!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] HampTheToker:
Settings stick on boot, now. How bow dah.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] svandasek:
So, are you working on it?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] tk8lm6:
FreedomOS 2.6.1-1

TWRP 3.1.0-1

Magisk 11.6

Flashed FrancoKernel r17 (just as I have for r15 and r15) using the FK app

No problems. No wrinkles. No burps. Haven't had to re-flash Magisk ever after kennel flash. Oxygen camera, Google camera, Bacon camera, and Hyperlapse camera all work fine.

I'm saying this only because, to the casual reader, this forum and others seem to be full of problems when really those are the exceptions when when folks have a problem and need some help.

Thanko Franco
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] HampTheToker:
Come on, man. He's already said that he is numerous times. If you'd read a little more than just the last page, then you would have answered your own question.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] thomas_pieps:
Sorry have to say it again. Best kernel I have ever used on a device!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] dark_knight_95:
I am sorry if this qn has been asked before. I tried to find it but couldn't find it. Is TWRP essential to flash this kernel?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] franciscofranco:
TWRP of my app to auto-flash as stated in the OP.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ac3theone:
Hey guys, just got my phone today, currently on the stock rom with this kernel. Everytime I try opening the camera it's closes out and says unknown error occurred. Also happens with any other app that tries to access the camera.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Siddk007:
As per reading on first page, this kernel is only for OOS right?

Not for custom roms?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] saurabh40629:
Try reading last few pages... It's been discussed so you can check. I dont have this problem so can't say.

You got that correct. LOS support will be coming soon as franco is already working on it.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] realkeule:
Hi. I use sheduled nightshift. But most time it turns automatically on and never it turns automatically off in the morning. Everything else works fine

Regards
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Akash1739:
Is this kernal only for oxygen is?

Cant I flash on custom ROMs?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] SpasilliumNexus:
Two f'ing posts above man!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] hristcroixqwerty:
Try flashing stock kernel..
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Alek123:
I've been having exactly the same issue before on Freedom OS and now on Stock 4.1.1 after a while it just comes back. Rooted with Magisk, using Viper4Arise and Substratum. Unfortunately​I have to give up this awesome kernel. Franco, please investigate.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] pahapoika91:
Does this kernel use hotplug? And if it doesnt why? Are hotplugs obsolete now?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] foxsprout:
Search
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] domsch1988:
Nothing to investigate. If you are on the supported OOS version there are no problems. OOS doesn't support substratum... Every other problem with this kernel has been ROM related.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Batfink33:
No problems here, you're obviously using something that's breaking the camera. It's not the kernel.

---------- Post added at 02:13 PM ---------- Previous post was at 02:12 PM ----------

The cores are always on with the 821. There's no hotplugging anymore.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] foxsprout:
Kind of weird. Substratum supports OOS as It's in AOSP, so it's listed as Legacy. What's weird is I also use Substratum and I don't have this problem. Some people actually have barebone OOS and FK and got camera problem
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Batfink33:
It could be a Magisk issue, it's known to break things like WiFi etc.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] foxsprout:
I also have Magisk and no problem. Some use Magisk and have that problem. What I'm trying to say is that, it's maybe not your problem but it's kind of sad that you said 'not kernel-related' when Franco himself isn't sure. The poster is actually reporting his problem, asking whether Franco could investigate.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Xennet:
If you don't know about substratum and legacy please don't post things that you don't know

About the camera issue many of us are facing this issue on FRESH STOCK OOS 4.1 WITHOUT ANY APP INSTALLED AND JUST ROOTED WITH MAGISK. You don't face the problem doesn't mean that the problem don't exist.

You are lucky you don't have the issue.

Many of us are facing the issue and have been repeatedly posting it here...
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Batfink33:
The fact that people are running the latest kernel and the camera is working fine suggests it something in the person's setup that is breaking the camera, not the kernel breaking the camera. It can't work for some and not for others unless there's something external to the kernel breaking it.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] foxsprout:
I'm saying, I use the similar setup (Magisk and Substratum) and don't have the issue. Some others have the issue using similar setup. What do you think? I don't exactly know and obviously don't have the knowledge so I didn't reply 'not kernel-related'. That's why people are posting their problems here. A user, Xennet, has a workaround because even with barebone OOS and FK he has that problem. Simply, reply with your knowledge AND experience; not just what you read. Even Franco try to reproduce the issue before replying.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Batfink33:
The fact you don't have a problem and I don't have a problem (flashed on a clean install of 4.1.1) suggests its not a kernel problem, surely?!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] foxsprout:
It's off topic but I think you have a processing problem. I (with Magisk and Substratum and no problem) and you (with supposedly clean OOS and FK only, and no problem) don't represent the whole users. Stop. Just let people post their problem (not battery-related ones, I think) and let Franco see them (and probably investigate). I'm pretty sure you don't have the knowledge.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Xennet:
Does clean flash of OOS 4.1 STOCK ROM with Franco kernel and having camera problems and resolving of the camera problems with stock kernel and other kernels suggest it to be a kernel issue??!!

If you don't agree to the above statement then it would be damn difficult to agree to the statement you just made!!!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] franciscofranco:
Hmm... are you clearning my app from recents?

I'm sorry but there's nothing to investigate. 100% stock camera stack.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Alek123:
It looks like you're right, flashing another kernel does not fix this anymore. It definitely has to do with Substratum Legacy or Viper4Arise. Will stay fully stock+FK for now. Thank you for your efforts!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Batfink33:
See Francos reply above.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] BartLuke94:
Hi guys and sorry for the noob question.

I bought the phone yesterday and flashed the last version of FreedomOS (with chainfire root)

Can i flash this kernel without problems?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] franciscofranco:
Yes.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] coderus:
Hello! I am using latest FreedomOS, is this kennel compatible with? Any experience can be shared?

My bad, it just answered above ?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] riirezende:
Using here.

Better battery experience ever.

Congrats Franco

Awesome Kernel
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] foxsprout:
I see. I stand corrected - it's not kernel-related. Though it's still wiser to reply using your own knowledge and experience.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] coderus:
Thank you, installed via FK updater, and spot one problem - seems beer in your country is so expensive ? bought FK manager from store instead, hope that can help too.

Btw, kernel and manager works fine here ?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] 64ashg:
Does anybody have the fastboot images of the stock oos? People facing the camera issue might find using fastboot wipe and flash method helpful.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] domsch1988:
Just reflash stock firmware without wiping. This restores stock kernel...

Wait... Did i get it wrong? Else they can be downloaded from OnePlus website...
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ac3theone:
When I reflash stock rom the camera works, as soon as I flash Franco kernel I get the error for the camera
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Midomad:
Custom rom?MagiskSU?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ac3theone:
Stock rom,no mods, no magisksu, not even sure what that is lol
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Midomad:
Weird!try a clean flash.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] hristcroixqwerty:
This happens to me too but in Boeffla kernel instead, flash stock kernel and camera is working, then I flashed Franco kernel.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] B3501:
Always flash a new kernel over the stock clean kernel. There's so many things that can mess an install up, Magisk, old custom kernel etc etc.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ac3theone:
I'll try, should I let the ROM boot up or just flash kernel after flashing ROM?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Midomad:
Flash rom + supersu,

Then reboot and flash FK.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
Hey guys, wanna ask if there is any bugs or anything with the new kernel (r14 I think). Gonna clean flash OOS 4.1.1 and flash Magisk.

Edit : Can I flash this as well or is this not needed ?

https://xdaforums.com/showpost.php?p=70352820&postcount=2146
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Midomad:
No, and it's R17*.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
Can I flash this ?

https://xdaforums.com/showpost.php?p=70352820&postcount=2146

AKT
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Midomad:
Yes,but francokernel is already optimized.