yashsingh1/xdaforums huggingface dataset:
[Sprint Samsung Galaxy S6] tdhite:
The issue is Magisk, not BD or this kernel. Magisk v12 loses root now and then, and further the overlay files the SkyHigh Magisk module lays down are not necessarily compatible with BD (Samsung played a very bad trick on S6 users). All that will surely drive one nuts. Magisk V12 also cannot pass SafetyNet without dramatic acrobatics. That is why SuperSU let's you succeed. SuperSU, however, does not have the kind of module abilities and hiding that Magisk has. We are just caught in a bit of transition.

As well, so all know, the latest firmware has a dramatic number of better memory leak fixes, so those who kept trying to fix that with kernel tweaks (or otherwise thinking somehow the kernel was leaking) will be thrilled. That's likely the end of BD ROM unless the author one day sends the base so possibly I can update it.

Next update to this kernel roots with v13 Magisk, which we just got dramatically close to release today. We are literally days away now. Soon thereafter I'll update this kernel.

Working with Magisk has not need easy, so I definitely applaud your efforts and feel your pain. With that said, I am running my latest TDHJR ROM (not yet released for the same reasons -- waiting for release of v13 Magisk) with Magisk v13 beta (latest, dropped just today) and it is flawless so far.

I will update everyone very soon.
[Sprint Samsung Galaxy S6] Nye-uhls:
You're my hero for still hanging in there after all this crap you've had to deal with since nougat.

Agreed on the flawlessness of the new magisk beta, the only issue I've run into is magisk not setting proper permissions for boot scripts

Also, yes the firmware news is a huge relief lol
[Sprint Samsung Galaxy S6] gimmeitorilltell:
I have the same issue plus my device is always loosing root and forgetting wifi passwords. We NEED to figure out how to ge ta good working build with open source and Tdhites kernel. Then we would have a super nice device. I have enjoyed TW roms but I build open source and it bites that I can't build for my DD. I haven't given up just yet tho.
[Sprint Samsung Galaxy S6] Jimmy1life:
Hey he fixed the Wifi issue the last update or so. No bluetooth user here so idk about that hotspot works for me I love the kernel.

---------- Post added at 07:17 AM ---------- Previous post was at 07:16 AM ----------

Any one update magisk im getting update available today thru the app?
[Sprint Samsung Galaxy S6] Jimmy1life:
Anyone curious about in app update thru Magisk it breaks the synapse app lol says no uci so I went back to v12
[Sprint Samsung Galaxy S6] nostrings:
I think v13 does not have busy box anymore. Maybe you need to either install it, or maybe there is a module?
[Sprint Samsung Galaxy S6] Nye-uhls:
This kernel only works with v12 for now (tdhite said so), the module is totally incompatible with v13... Really, all v12 modules are not going to work properly on v13+

He's working on changing things up to work with v13.

(And finding workarounds for all the other crap samsung has done to screw us over)
[Sprint Samsung Galaxy S6] tdhite:
On the way this weekend. Just testing for a couple days now with Magisk v13.1 official release. Same for the my deodexed/debloated ROM (which is all I run any more).
[Sprint Samsung Galaxy S6] nostrings:
Looking forward to both the ROM and kernel. ?
[Sprint Samsung Galaxy S6] _Epic:
I need this ROM and Kernel meow! ?
[Sprint Samsung Galaxy S6] gimmeitorilltell:
I'm using the June 5th "N" kernel and do not see any updates. I do see an update for the "M" kernel but that won't help me.
[Sprint Samsung Galaxy S6] mahdi72:
i have battery issue, battery is very bad.
[Sprint Samsung Galaxy S6] tdhite:
You need to quantify a whole lot more than that. If you are claiming the kernel is at fault, please provides logs, indications of running apps, all that it takes to actually show a problem. At present, all users report excellent battery life with this kernel, which leaves me with little to help you.
[Sprint Samsung Galaxy S6] Nye-uhls:
Is it possible for you to release a .zip installer for the skyhigh module? Just for using if for example i were to uninstall magisk and reinstall it?

Just for the module, i realize flashing the kernel does so much more than just install the module. But i assume the module is the only thing skyhigh related that gets removed when magisk is removed.

Edit: nvm extracted it from qf1 just enough rom
[Sprint Samsung Galaxy S6] tdhite:
Updated 07/17/2017 -- Sports Magisk v13.2 with Module

Yup -- always the plan, now official with this UPDATE. In fact, I already updated the module to cover off on the recent SafetyNet changes by Google. Flash the one in the OP and all will be well.

As the post title states, the kernel is updated and released as v5.02 for N ROMs.

You can download the latest N kernel from the OP.

As always: READ THE DISCLAIMER!

As for the rest: the kernel package is updated. I bumped the version to 5.02 to signify the change to the package itself, but no mods are in the kernel itself at all (just the module). Therefore, if you are using the TDH-JR ROM I updated yesterday, no need to flash the kernel. You *should* flash the Magisk module to catch the recent update that covers the very recent (yesterday evening) Google release of SafetyNet updates breaking all prior Magisk installs. The module handles it, just flash the module only if you already have the kernel installed. The kernel flash (full) as the module so no need in that case.

Also, the module had an incorrect path for kernel module loading, that is also fixed in the most recent module (v1.0.20170717).

Enjoy!

:cool:
[Sprint Samsung Galaxy S6] tdhite:
I totally forgot to mention: The Hotspot/Tether fix is now built in to the SkyHigh Magisk Module. No need to flash anything else! Sheesh -- that was a pretty significant change (and I forgot).

Also, please throw plenty of things on [MENTION=7553501]Nye-uhls[/MENTION], [MENTION=8301821]seneko[/MENTION] and [MENTION=6013569]gargleblarg[/MENTION] -- their donations (recent) are the kind of thing that keep it real for me. Thanks so much for that.
[Sprint Samsung Galaxy S6] Redhusker2018:
Do i flash your rom v4. 0 first then flash your kernel? I'm running Big Daddys 6.0 rom still.
[Sprint Samsung Galaxy S6] Redhusker2018:
Any help would be appreciative! Thanks!
[Sprint Samsung Galaxy S6] tdhite:
No need to flash any kernel at all after flashing the ROM.

You can flash the SkyHigh Magisk Module after installing the ROM. The module handles startup operations and I update that regularly. The kernel will not have a lot of updates, but still, the kernel itself is part of the ROM flash.

Hope that helps.
[Sprint Samsung Galaxy S6] Redhusker2018:
I flashed your rom 4.0 and flashed the magisk and now i get failed safetynet. Any suggestions? I get root is not properly installed?
[Sprint Samsung Galaxy S6] Nye-uhls:
Step 1: uninstall magiskmanager.

Step 2: flash magisk uninstall zip (link below).. do not reboot yet!

Step 3: flash latest magisk (link below) Still do not reboot.

Step 4: flash ONLY the skyhigh module from the OP. (Assuming you've already previously flashed the full kernel, and since you said you're using his rom, you have) Do not flash full kernel, it'll downgrade you to a previous version of magisk and you'll have to start over. Clear cache/davlik too for good measure.

Step 5: now you can reboot. Safety net should pass now.

Btw that's basically just the process to properly upgrade magisk with skyhigh module, tdhite might recommend a different process, idk. That's what seems to be the cleanest way to do it for me.

Link to official magisk thread https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

Edit: also, did you flash the rom clean or dirty? Going from bigdaddy to just enough rom you should do a clean wipe.
[Sprint Samsung Galaxy S6] tdhite:
Looks good, if not a bit overkill but it will work!

The reason SafetyNet failed on your first load is well documented in the Magisk threads. Google can and will add checks that break modules' and Magisk's ability to overcome. Updates happen thereafter and all is good.

This cat and mouse game won't stop until Google eradicates the fundamental ability to root phones and add kernel mods. That day is definitely coming, imho, but in the meantime, just get used to updating the SkyHigh Magisk Module and Magisk itself. I will keep the former up to date. The kernel itself will change much less frequently.

Just for the record, upgrading Magisk will not wipe out the module, so normally you need only update Magisk as it notifies, and flash my module whenever it is updated. It really is easy to keep up to date.
[Sprint Samsung Galaxy S6] Redhusker2018:
I did as you said and still getting safety net failed. I'm pretty damn smart with these kind of things too. I flashed everything you said. I rebooted again and all is good
[Sprint Samsung Galaxy S6] tdhite:
Images attached. It passes, so something is different in your setup.

As I note in the OP, magisk support is in the Magisk threads, but let's see where you are.

What do you have loaded other than what you see and my ROM? Xposed, foe example, will always force failure.

Magisk is finicky. It may bear fruit to toggle off/on Hide and reboot.
[Sprint Samsung Galaxy S6] Redhusker2018:
I'm good now! I had systemless checked in settings! :):):)
[Sprint Samsung Galaxy S6] tdhite:
The next step is key.

Turn hide off and set Magisk to Grant root (not ask or deny). Reboot. Then load Synapse and set your kernel settings (e.g., ktoonservative governor, under/ over clock, network multipath, etc.). Also run all your root apps so Magisk grants them Root access.

Finally, turn Magisk settings back to Prompt for root access, turn Hide back on and reboot.

The reason is a long story regarding Magisk itself until we fix a few bugs therein. Juat trust me for now on this.
[Sprint Samsung Galaxy S6] Jimmy1life:
Updated Magisk to v13.3 perfect instructions thanks guys. I had gave up on Tryn to update magisk till these last few posts.
[Sprint Samsung Galaxy S6] AdoKing:
Hello. I'm running big Daddy nougat Rom and I flashed now what configurations should I use to have a balance between battery and performance? Or should I let as default?
[Sprint Samsung Galaxy S6] tdhite:
Governor: ktoonservative

Underclock and overclock both CPU and GPU

Turn. No extra CPUs offline to 1 for the A57 CPU in governor settings

Turn on multipath tcp in networking.

That will take care of the vast majority of your needs.

All of that, btw, is within this thread, so a bit of reading would have sufficed.
[Sprint Samsung Galaxy S6] bigazzdave:
so this does work also for the g925p as well correct? iv read quite a bit of pages here and keep seeing sent from g925p and just wanted to verify thanks in advance
[Sprint Samsung Galaxy S6] tdhite:
I can make an edge image if someone can send me an up to date boot image.
[Sprint Samsung Galaxy S6] bigazzdave:
tell me how and what and ill gladly help, i have the bigdaddy rom installed etc as well
[Sprint Samsung Galaxy S6] tdhite:
[KERNEL] [ROOT][MM | N] [SM-G920P] [17-July-2017] SkyHigh Kernel (Port) [v5.02]

Hey [MENTION=5241571]Saafir[/MENTION], sorry for late reply. Traveling heavily lately.

Mptcp is mostly useful in tethered situations, when multiple paths to the same endpoint target exists. The other end also has to support mctcp, otherwise it is harmlessly ignores i. The tcp stack.

Best latency is handled by mucking the tcp stack parameters in /proc/net/...

Generally, size parameters and window. The easiest way to get that started is to Google on "oracle Linux tcp stack optimization" -- they do a great job of explaining and also initial settings.
[Sprint Samsung Galaxy S6] nilc23:
Synapse wont work
[Sprint Samsung Galaxy S6] tdhite:
Wanted to let everyone know an update is coming soon. I'm waiting for the next Magisk release because it has some critical bug fixes.

In any event, I'll post up a v5 SkyHigh Magisk module in the next couple days, it will work with v13.3 of Magisk on up.
[Sprint Samsung Galaxy S6] Jimmy1life:
If you go back 2 pages post 560 is all the details to update Magisk and istall the module for Synapse. If that helps or fixes the issue give a like atleast.
[Sprint Samsung Galaxy S6] nostrings:
I've been using 13.5 without problems. Well, the usual culprit remains; i.e., losing root.
[Sprint Samsung Galaxy S6] thsalespts:
EDIT -Read the thread again and Installed TWRP- Then Installed V4.10 SkyHigh- Currently Running so not sure how long it will take- I think I may install Biggdaddy QC7 Aroma V1.1 afterwards but we will take it one step at a time- Suggestions still helpful- I think I may have been overthinking the process as I "seem" to be grasping it now. Thanks again.

EDIT EDIT- Got stuck on creating paths- now using TWRP to install JUST the SUPERSU w/No Kernel posted until original one fixed-Not sure where I am going from there yet

EDIT EDIT EDIT: Finally clicked and ended up answering most of my questions. Just kept reading and now have a basic understanding of how to use Odin, TWRP, etc. And figured out can always add features (most of the time) as I need them. Still trying to learn but Ended up Installing https://xdaforums.com/sprint-galaxy-s6/development/rom-tdh-jr-rom-t3550677

**** Deleted most stuff but wanted to give THANKS, credit, and links that were used in Original Post as seen below *****

I read this post: https://xdaforums.com/showpost.php?p=66563123

(Big thanks to Koop1955 for doing that write up) -

Original Thread:

https://xdaforums.com/sprint-galaxy-s6/general/guide-how-to-update-to-nougat-install-t3589496
[Sprint Samsung Galaxy S6] Entity_0101:
May I ask, what kernel source is this based off of? Sm-G920?
[Sprint Samsung Galaxy S6] Nye-uhls:
G920p specifically.
[Sprint Samsung Galaxy S6] tdhite:
Hi all,

S6 is not going away yet! I have an update to include Magisk 14, so hang in. I am traveling abroad for the week, but should be able to get things up around the 18th/19th or so.
[Sprint Samsung Galaxy S6] Jhoward22:
Do you think this kernel would work with AOSP 7.0 and 7.1.1 ROMs?
[Sprint Samsung Galaxy S6] tdhite:
True. If someone points me at a source code set for any AOSP ROM that works on the G920P device, I'll port the kernel. What I won't do is port it to an AOSP body of code or a ROM in which the code is only half-baked -- meaning CPU drain is high, audio doesn't work in-call, etc.

I admin I've not watched the Lineage OS work of late due to heavy travel, but last I saw it wasn't really close to baked.

Let me know! I love AOSP work and have a heavy history in PAC-ROM and CM (prior to Lineage OS due to having this phone).
[Sprint Samsung Galaxy S6] Nye-uhls:
I've honestly never even held a device with AOSP and I've been 100% Android since the htc EVO 4g.

LineageOS for galxy s6 is definitely a little behind, and doesn't work at all for g920p (like i mentioned to you)... But the dev(s) working on it are putting a surprising amount of work into it. From what people are saying, it seems like its starting to be close to being a daily driver.

That being said, i don't think the dev is that much of a kernel whiz like you, so who knows, you might be the missing link there ;) otherwise, life is still good on nougat with SH
[Sprint Samsung Galaxy S6] Jhoward22:
https://xdaforums.com/galaxy-s6/orig-development/g92xx-android-o-samsung-galaxy-s6-t3663901

What about this rom? From what I've heard this rom has been pretty stable, but for the SM-G920P it boots up, but the touchscreen doesn't work, and it's an kernel issue.
[Sprint Samsung Galaxy S6] tdhite:
[KERNEL] [ROOT][MM | N] [SM-G920P] [17-July-2017] SkyHigh Kernel (Port) [v5.02]

I need a stable ROM as I honestly don't have the time to spare fixing the plethora of issues in that. It is honestly nowhere near daily use level and intellectual honesty says it is in the same state as all AOSP efforts on this phone for the last two years -- not usable by any stretch of the imagination.

Samsung sent this phone to the AOSP Death Valley by precluding anyone but their engineers from the knowledge necessary to make things actually work via its deeply proprietary hardware. I'll keep watching, but honestly I still find it very wishful thinking there will be an AOSP ROM that actually works usably on this phone. A kernel can't fix that, there is a heck of a lot more to it than that, thus my wait on anything even remotely stable before spending days porting and testing. How would I know an issue is kernel or framework related where bugs appear? That's the time consuming part.
[Sprint Samsung Galaxy S6] tdhite:
[KERNEL] [ROOT][MM | N] [SM-G920P] [17-July-2017] SkyHigh Kernel (Port) [v5.02]

QH1 update coming tomorrow. Major mods to coerce Magisk to work at 1420 release of that. Also runs selinux ENFORCING now. That is a major thing as it prevents all sorts of security breaches, even if a process is running as su.

Hang in. This one took some synapse and bootstrap work.

TDHJR ROM also getting the updates.
[Sprint Samsung Galaxy S6] Ryan-sv:
Hey man, would you recommend me to jump to this update from the last bigdaddy's ROM? I just need a ROM with dev support </3 it's been a long time now
[Sprint Samsung Galaxy S6] koop1955:
Nice work. I'll try to grab the QH1 TAR and upload to AFH.
[Sprint Samsung Galaxy S6] koop1955:
QH1 TAR File for anyone that needs it: https://www.androidfilehost.com/?fid=673791459329049854
[Sprint Samsung Galaxy S6] Ryan-sv:
Sorry but, what is this for?
[Sprint Samsung Galaxy S6] Jimmy1life:
Hey Yo

Its the latest firmware just updated myself yesterday stock and magisk V14, and I have no Synapse at the moment.
[Sprint Samsung Galaxy S6] tdhite:
Updated -- Sept 30, 2017

As the post title states, the kernel is updated and released as v5.02 for N ROMs.

You can download the latest N kernel and Magisk Module from the OP.

As always: READ THE DISCLAIMER!

Note -- the kernel core code is not modified, only the magisk module, which underwent healthy changes. Most important change is the default now is SELinux is ENFORCING. This is important for all sort of security reasons. File contexts are updated as part of bootstrapping now, so those take care of the proper access rights to various files written or read by the kernel magiskl module activities.

Enjoy! Let me know how it goes and if there are problems.

:cool:
[Sprint Samsung Galaxy S6] Nye-uhls:
10/10 great update! Stability is through the roof now! Going on like 18 hours without losing root and it feels much better to be selinux enforcing!

Donation coming to ya on my next pay day!

Edit: 4 days now with not a single loss of root for any apps!
[Sprint Samsung Galaxy S6] Nye-uhls:
So I'm typing this on my phone, that as of an hour ago, is totally out of whack. So I'll have to be brief... I haven't changed anything root wise in like 5 days.

All of a sudden while playing a game, everything went wrong. Magisk notified me to update to v14.0. all of system ui crashed (booted me to lock screen) and every action was laggy.

Rebooted device. Same thing . Booted into recovery. Saved recovery and kernel logs, will attach. Wiped davlik and cache, rebooted. Same thing. Uninstaller magisk manager, booted to recovery, flash magisk uninstaller, flash latest kernel. Same thing.

I noticed while all this was happening ive been briefly seeing a notification that's a checkmark in a circle, which i think is either system update or dm service. I also noticed it looks like the secure folder package is no longer disabled. Don't know the relationship there. Either way, totally mind blown, don't know why this happened out of the blue. I'll probably wipe everything and reflash ROM later, i just hope i can back up some apps in the mean time.

Do you see anything in the logs thats jumping out at you, i couldn't :/

Edit: after a few hours, several restarts, and re-disabling the securefolder package, things are a lot better... Random brief moments of instability. This was all so weird.
[Sprint Samsung Galaxy S6] Zekki:
Is there any way to port this for g925p? I need to set seandroid to permissive, can somebody help me? Thanks
[Sprint Samsung Galaxy S6] Nye-uhls:
There are plenty of apps that set selinux to enforcing... They aren't allowed on the Play Store, but you can get them from xda labs, or generic xda forums. You could even search androidfilehost.com for "selinux permissive".

But to answer your question, you could try flashing the kernel in it's current state, you MIGHT have success, otherwise, tdhite doesn't have an s6 edge so he'd have no way to officially offer support... At least without a complete set of logs and motivation...

Speaking of motivation, thanks [MENTION=4988866]tdhite[/MENTION] ! Today was payday, so I'm sending some quantifiable motivation your way via PayPal ;)

DONATE PEOPLE! WITHOUT TDHITE US G920P-ERS HAVE NOTHING! If you've got time to be dealing with the ins and outs of rooting a g920p, you've got time to donate atleast $1.
[Sprint Samsung Galaxy S6] tdhite:
[KERNEL] [ROOT][MM | N] [SM-G920P] [17-July-2017] SkyHigh Kernel (Port) [v5.02]

You can set permissive in a standard shell script as in:

su -c "setenforce 0"

Or if you open a terminal, similarly:

su
setenforce 0

I'll cut a build of the kernel for g925p -- it's just a couple tweaks to get there. I can't test it, though, because I have no access to edges.
[Sprint Samsung Galaxy S6] Nye-uhls:
[MENTION=5883667]Zekki[/MENTION] i stand corrected!

---------- Post added at 10:12 PM ---------- Previous post was at 09:50 PM ----------

Actually tdhite, I'm a little confused, where did you make the change that sets the default to selinux enforcing?

Because in the 9-29 update, the skyhigh magisk module still has "setenforce 0" in post-fs-data.sh
[Sprint Samsung Galaxy S6] tdhite:
[KERNEL] [ROOT][MM | N] [SM-G920P] [17-July-2017] SkyHigh Kernel (Port) [v5.02]

Hmm, that is a bug if there is no "setenforce 1" later in the script. Eek! Need to take a look. I'm building out out the Edge kernel version anyway, so will look and fix if enforce is not reset properly.
[Sprint Samsung Galaxy S6] Nye-uhls:
Ah i see, its the 2nd to last line, my bad! Makes sense now that i think about all the things that are set in between the two selinux changes.
[Sprint Samsung Galaxy S6] young666:
I have seen the above problem and having fixed the problem. Many thanks anw both of you :D

On your latest kernel, the selinux status default is enforcing. I saw your init.d set enforce to 0 but it doesn't work anymore so I create my own init file to set enforce to 0. It doesn't work either :(. I can't get it, could you please help me through this one, thanks. I have setenforce 0 on terminal and it's working but not on boot :(
[Sprint Samsung Galaxy S6] tdhite:
[KERNEL] [ROOT][MM | N] [SM-G920P] [17-July-2017] SkyHigh Kernel (Port) [v5.02]

What doesn't work anymore? The startup scripts set permissive, do work, then set enforcing. So, not quite sure what's not working.

What init file, where and with what permissions? You might consider that Magisk is bind mounting a lot of directories so if you modify /system and expect it to be there on boot, it may well not be there in fact due to the binds.

I honestly need a lot more to go on then (admittedly paraphrasing and boiling down to the essence): 'I did some stuff and it didn't work.'
[Sprint Samsung Galaxy S6] young666:
I fixed and editted my post right after 3m, tks anw :v