yashsingh1/xdaforums huggingface dataset:
[Sprint Samsung Galaxy S6] tdhite:
I know if no issue with RAM related to the kernel? I need info the suggests, as with every other finding, its not an app or service or Xposed module or similar. I run the phone on this kernel and my TDH-JR ROM for days upon days without reboot and zero memory loss.
[Sprint Samsung Galaxy S6] Poebat:
Weird. Any apps that I can use to track what's hogging all the ram?
[Sprint Samsung Galaxy S6] tdhite:
Updated -- Arp. 08, 2017

Updated to v4.10 to provide very fast bootup time. OP is updated to point at the new release. That is the only change to the kernel, so not quite yet to Magisk, but quite close now.

As always: READ THE DISCLAIMER.

:cowboy:
[Sprint Samsung Galaxy S6] digitalchaos1980:
Most awesome! Ready downloaded and about to be flashed! I do have a question. I normally never ask about adding features, however, I ask now because I love this kernel and do not want to switch. Is there any possibility in the future of possibly adding nethunter support? There are some kernels with it already but they aren't for the Sprint variant, sadly. I guess not enough folks who want or need it, but I thought to ask. Thank you once again [MENTION=4988866]tdhite[/MENTION] for a great kernel, sir! :)

Chuck
[Sprint Samsung Galaxy S6] Poebat:
Awesome! Flashing now.
[Sprint Samsung Galaxy S6] t-bob:
Amazing boot time now, thanks.
[Sprint Samsung Galaxy S6] Poebat:
Funny, the update fixed the ram issue. My phones been running for 1 day without any ram issues.
[Sprint Samsung Galaxy S6] Poebat:
Can you look into adding the ability to have the led indicator fade off and on?
[Sprint Samsung Galaxy S6] tdhite:
I'll add the patches and see where we land. It's a very small commit; looks like it should work fine; we'll see.

Well, it's already there. Did you not turn it on? LED page in Synapse.
[Sprint Samsung Galaxy S6] digitalchaos1980:
Well shoot, thank you so very much [MENTION=4988866]tdhite[/MENTION]! I totally appreciate it, whether it works or not, it's appreciated! Also my RAM issue seems to be much better under control now. I was able to go back to stock settings in Synapse and got rid of the build.prop tweaks and so far so good! I realize Android wants to keep RAM as full as possible, and that's great. I just got aggravated when it ran out and the phone went unresponsive. Haven't had it happen yet. Thanks again good sir :)

Chuck
[Sprint Samsung Galaxy S6] Poebat:
I turned it on in synapase and nothing changes. Maybe I am doing something wrong? The light blinks off and on.

Edit: the test notification fading works. But other notifications don't. Must be an issue on my end
[Sprint Samsung Galaxy S6] Poebat:
On Android 7.0 on the s6 Samsung added a flashlight brightness options to the flash light. Do you think this is possible to implement with a kernel?
[Sprint Samsung Galaxy S6] tdhite:
Yip. I'll add the facilities once I get updated.

Can someone post the kermel build number from your nougat upgrade?
[Sprint Samsung Galaxy S6] koop1955:
Is 3.10.61-1994289 what you are looking for?
[Sprint Samsung Galaxy S6] tdhite:
Yup. Thanks.
[Sprint Samsung Galaxy S6] Nye-uhls:
[MENTION=4988866]tdhite[/MENTION] so it sounds like you're working on getting this kernel all situated to nougat?

Does that take a lot of work? Some people are running the kernel in its current state on nougat... i wouldn't think theyd be remotely compatible??

And side question, what does this mean for the future of magisk being included either in this kernel or your just enough rom?
[Sprint Samsung Galaxy S6] elesbb:
About running this kernel or any marshmallow kernel ln nougat, it truly depends on the amount of changes made. Some changes are simple like changing a timer value or something that doesn't affect functions or return types. We won't know what changes there are until Samsung releases the kernel source for nougat.
[Sprint Samsung Galaxy S6] tdhite:
[KERNEL] [ROOT] [SM-G920P] [08-Apr-2017] SkyHigh Kernel (Port) [v4.10]

I'll update the kernel once I get updated to nougat, which will be only when the sprint downloadable Odin flash shows up. I suspect this kernel will work with just selinux syncing with the new ramdisk, given the much further progress made here (e.g., I updated this to 3.10.105 vanilla base). Nougat is still the same build base as the MM kernel (3.10.61), so if they changed anything, it wasn't much.

Also, I can rebase the entire commit set for this kernel on top of any kernel sources they drop, once available, in 20 minutes as I already automated the picks of all my commits onto any base.

I'll have it out very soon, just waiting for the sprint Odin drop. I will update the TDH-JR ROM as well at that time.

Hang in . . . It's coming.

If someone is in a super hurry, send me your boot.img files from a TWRP backup of nougat. I'll build a quick kernel for you to test.
[Sprint Samsung Galaxy S6] giaoluanawm:
Which kernel for nougat??
[Sprint Samsung Galaxy S6] giaoluanawm:
hi bro, Which kernel for nougat?
[Sprint Samsung Galaxy S6] tdhite:
No clue. Backup in TWRP, flash and give it a whirl. Let me know.
[Sprint Samsung Galaxy S6] giaoluanawm:
I do not find kernel 3.10.61-1994289
[Sprint Samsung Galaxy S6] Nye-uhls:
Don't worry, not tryin to hassle ya;)

Just genuinely curious about what's involved
[Sprint Samsung Galaxy S6] tdhite:
Do me a favor-- please go remove the quote of the original post in your question. There is no need to repost all that for your question.

As for the kernel, as I mentioned in another post, I will update this soon. For now, use the stock kernel.
[Sprint Samsung Galaxy S6] Poebat:
Will you continue to work on the MM version of the kernel once you get the N version of it working?
[Sprint Samsung Galaxy S6] tdhite:
Yup! Of course. The kernel will include builds for both and should install the correct version without need to pick a separate flash.

With that said, I would appreciate anyone sending me their boot image and also /system/build.prop if you don't mind. PM me if you are willing, you will need to be rooted to get the build image (either TWRP backup copy or generate it with this command, as root (su'd) in a shell (e.g., adb shell or a terminal app):

dd if=/dev/block/platform/15570000.ufs/by-name/BOOT of=/sdcard/boot.img

Then send me the /sdcard/bootimg file (put it on your cloud drive and share it to me, or of you need a cloud drive to upload to let me know).

Two things I want to do while waiting for the ODIN stock N flash:

Update this kernel for all you N users; and

Fix the hotspot issue folks have seen (disappearing tether option).

Thanks folks (hopefully someone has time to sent the stuff above).

:cowboy:
[Sprint Samsung Galaxy S6] tdhite:
Updated -- Arp. 22, 2017

OP is updated to include BETA NOUGAT BUILDS. That is the only change to the kernel.

Before you flash this kernel onto your fresh, new Nougat update, you must READ THE DISCLAIMER and make darned sure you have backups in TWRP. If you don't know what that means, don't flash, wait until the betas are over and a release is given.

With that said, I strongly urge that you should know what you are doing because the beta builds are untested and unproven. That means you should know how to recover if all 'H' breaks loose. Yes, that is intended to scare you if you are not someone like [MENTION=5241571]Saafir[/MENTION], [MENTION=3816775]koop1955[/MENTION] or [MENTION=2675647]elesbb[/MENTION]. There's more like those folks, but I just happen to have high confidence seeing their works and posts.

With that said -- let me know how it goes. I am definitely moving the kernel to Nougat now, builds are flowing as I need them, which means as we need fixes.

And thanks for throwing thanks on [MENTION=5241571]Saafir[/MENTION], who sent the ramdisk so I could try to figure things out without updating (I have special apps I run in MM that I wrote for myself given my work and they won't run on N quite yet).

:cowboy:
[Sprint Samsung Galaxy S6] tdhite:
Hmm -- not good. No UCI tells me /sbin/uci is not pointed to a valid executable, which is supposed to be just a link to /res/...

As root, do:

ls -l /sbin

see if where /sbin/uci points (/res/synapse/uci) actually got laid down and is a valid shell script. If not, BUG! ;(

--- edit #1 ---

Also, check /data/local/tmp/SkyHigh.log -- that better be there and tell you (if you cat it) what it was doing during boot. If not, I think I know what's up.

--- edit #2 ---

I'm going to make ktoonservative the default governor (forced). That way, as we test things, battery won't be subject to interactive, which sucks by comparison. UCI is the app that gets run to get the JSON for Synapse. Most folks setup the governor and UC/OC on the cpu and that's about it so at least you can use the kernel while i fixup the UCI issue. Anyway -- let me know about the above.
[Sprint Samsung Galaxy S6] tdhite:
Ok -- that I didn't expect. CRAP! I'm just going to upgrade and move on (I'll fix my custom apps tomorrow). The issue is bootstrapping is mucking with /sbin and I just need to override that so SkyHigh has control. Sigh -- always something.

Hang in -- gonna take a few hours to rebuild the phone once I upgrade.

Thanks [MENTION=5241571]Saafir[/MENTION] for the test. The kernel works, now just have to fixup a teeny bit of bootstrapping. If you knew what it means (the kernel works) you'd understand. For example, have to decompile and recompile the file_contexts (SELinux) file. SkyHigh needs some additional contexts within the file system, and Nougat went with a binary version of that file. What a PIA!!!!!

Soon . . ..
[Sprint Samsung Galaxy S6] tdhite:
Cranking on it all this weekend. It WILL come alive.
[Sprint Samsung Galaxy S6] tdhite:
[KERNEL] [ROOT][MM | N] [SM-G920P] [22-Apr-2017] SkyHigh Kernel (Port) [v4.10]

There are command line parameters to the kernel to turn enforcing off, but there is a much easier way than modifying the boot image.

You can load up a terminal (e.g., adb shell) and type the following):

su
setenforce 0

That should get you to permissive mode.

Also, if you just need to run some commands as root at boot or something, like the above, load up my full hotspot fix flash and drop a script in /system/etc/init.d/ named something like 99-mybootstuff.sh or similar. Make sure the script has execute bits set (chmod 755 /system/etc/init.d/99-mybootstuff.sh).

The hotspot fix runs the init.d scripts with full supersu rights, so no need for the "su" command, just do what you need. In that case, just put the setenforce command above in your script.

This kernel will ultimately setenforce 0 during boot,just FYI.

Anyway, hope all that helps.
[Sprint Samsung Galaxy S6] tdhite:
Well, faith is sometimes a fleeting hope. :)

Here's the reality after a heck of a lot of hacking. There are extensive changes in the N kernel, even though the appearance (per the sources) is the code is still based on kernel 3.10.61. If it was, things like SELINUX are completely modified and our prior kernel cannot load the policy database (it panics the kernel, which causes a boot loop indefinitely).

So I hacked it all into a buildable set from other kernel sources (e.g., the G920F sources which were released, http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=g920F), and can get a boot. Alas, too many things are not working (didn't expect all the hardware work, just wanted to see if it was feasible to even try this).

Here's where I land -- making a merged copy between MM G920P and N G920F is just not worth the time it will take to get a working kernel for this phone (at least not yet). Samsung will release our kernel sources soon enough (they have to by rules of GPL), at which time I can just rebase all of this kernel onto that source set.

So, long story short -- I was wrong earlier thinking there was not significant change given the suggestion (in the sources) the kernel base is still 3.10.61. There are large changes both to the kernel and the external policy files that make me simply acquiesce to a place of failure for the moment. Unless my brain settles on a better model, I'll wait for actual G920P kernel sources to show up.

:(
[Sprint Samsung Galaxy S6] yaibakt:
please take anytime you need bro. you have been already doing great.
[Sprint Samsung Galaxy S6] Nye-uhls:
[MENTION=4988866]tdhite[/MENTION]

I'm no dev by any means, just thought I'd share that I've heard talk if other devs using magisk to bootstrap their roms and kernels.

I don't know any specifics, and i only saw a comment chain on reddit, other wise I'd put you in touch with someone for more info.

I can't make sense of how that would work, just guess that the way magisk modifies boot image is some crafty ninja work?

Magisk definitely seems magic to me, this past Friday i updated to nougat (dirty) ran it for a day, then rooted with that unofficial supersu, ran that for 12 hours, bam random bootloop, usually fixes didnt work... flashed magisk v12, fixed it instantly. Now I've got full root, crazy stability, and i pass safetynet.

So basically what I'm saying is, I mostly don't know what I'm talking about, but it might be worth looking into magisk.

Edit: also if you look through the repo of magisk modules, its really surprising to see things like "unified universal UKM"
[Sprint Samsung Galaxy S6] EstPC13:
Here on Stock Nougat it causes a BootLoop
[Sprint Samsung Galaxy S6] Nye-uhls:
Im on stock nougat (updated dirty no less) and it fixed my bootloops when nothing else would.

Just make sure you have the uninstaller zip handy. That way if something goes wrong, you can uninstall and try again.

I've also noticed its more likely to work (atleast for me on g920p) if you flash magisk while unrooted and without busybox. (Magisk has its own systemless SU and busybox)
[Sprint Samsung Galaxy S6] nostrings:
It would help if you sent [MENTION=4988866]tdhite[/MENTION] logs to help out in squashing these problems. :(
[Sprint Samsung Galaxy S6] cyberone3:
do you have fly-on mod installed?

my reboot issues seem to have resolved by itself

but i did have to

1) uninstall fly on mod

2) flash this kernel

3) reflash the latest xposed
[Sprint Samsung Galaxy S6] JoeFCaputo113:
I doubt it unless it's just Xposed. I don't flash many things/mods. Only mods I have are Xposed+Modules. But something was deff up with the kernel.
[Sprint Samsung Galaxy S6] I Brick Phones:
I would suggest flashing this kernel on a clean ROM install. Not one that already has tons of other modifications through Xposed or any other framework. If you're still having the issues, then please post a log here.

Other than that, it's purely speculative to be blaming the kernel.
[Sprint Samsung Galaxy S6] JoeFCaputo113:
Like I said, it could be Xposed causing the kernel to go haywire. But I have had no other problems (be4 flashing) and this happened only after I installed the kernel... Soo uhh pretty sure it has to be one or the other. But it's deff the kernel. Not speculation, facts.
[Sprint Samsung Galaxy S6] I Brick Phones:
Lol, it's not "deff" the kernel until you can reproduce the problem running stock ROM rooted + this kernel.
[Sprint Samsung Galaxy S6] tdhite:
Updated 12/14/2016 -- v2.82

See the OP for download link.

The kernel itself does not change, rather the installer now fixes broken ROMs that fail to properly setup SELinux file contexts, thus causing failure of telephony services to start. For example the recent Renegade ROM release, which is great, has a large number of file context errors This kernel installer fixes that for such ROM(s).

I'll work with the ROM folks over time to get their installers fixed so the kernel doesn't have to perform this work after ROM installation.

:cowboy:
[Sprint Samsung Galaxy S6] Bobthahog:
I am really glad you got it working on the Renegade ROM but after flashing this kernel all the Knox information shows back up in settings in the about device section. When I was running one of the kernels that came with the room all of the Knox info nonexistent
[Sprint Samsung Galaxy S6] Bobthahog:
how come this is still saying 2.81? I flashed the new version in the op.
[Sprint Samsung Galaxy S6] Bobthahog:
here is the info page from synapse. It still says 2.81.
[Sprint Samsung Galaxy S6] tdhite:
That's a frustrating anomoly of the fact the kernel itself did not change, only the installer. Hmm. Maybe i should rebuild the kernel just to slam in a new version.
[Sprint Samsung Galaxy S6] ram9200:
Lol
[Sprint Samsung Galaxy S6] Bobthahog:
OK, I was just wanting to make sure it wasn't anything my phone did wrong. I really think you did a great job with this.
[Sprint Samsung Galaxy S6] Bobthahog:
Having issues with deep sleep but just started happening. Haven't installed any other apps or anything.
[Sprint Samsung Galaxy S6] Bobthahog:
I got it figured out. Deep sleep is working good now.
[Sprint Samsung Galaxy S6] Euronymous88:
Is it just me...or is boot up a little slower with this kernel?
[Sprint Samsung Galaxy S6] 1619415:
That's completely normal, its the kernel getting "Proper selinux specs" (quote [MENTION=4988866]tdhite[/MENTION]).
[Sprint Samsung Galaxy S6] Euronymous88:
Ah, I see. Thanks.
[Sprint Samsung Galaxy S6] nostrings:
Was it the `15510000.mdmpm_pdata` kernel wakelock, by any chance? If so, what was your solution?
[Sprint Samsung Galaxy S6] Lord Zaros:
Great updates [MENTION=4988866]tdhite[/MENTION]. Thanks for keeping this old phone alive!
[Sprint Samsung Galaxy S6] Poebat:
It's not that old.
[Sprint Samsung Galaxy S6] tdhite:
Wanted to give a shout out to Samsung. I made an official request for the sources last weekend, they notified me today that it is published.

I'll update soon.
[Sprint Samsung Galaxy S6] amieldl143:
Awesome bro. Cant wait for your kernel.
[Sprint Samsung Galaxy S6] nostrings:
Ditto!
[Sprint Samsung Galaxy S6] Tekken Lord:
My man...yo...:good:
[Sprint Samsung Galaxy S6] nostrings:
I can confirm that they have indeed posted them. Happy cherry-picking! :)
[Sprint Samsung Galaxy S6] tdhite:
Update for all: base build is running now. Also cleaned up the Samsung releases to produce no warnings on latest compilers.

Soon...

[emoji41]
[Sprint Samsung Galaxy S6] nostrings:
Ah, good stuff. I appreciate the work you're putting into this.
[Sprint Samsung Galaxy S6] tdhite:
Update for N builds . . .

A quick update for everyone. I've now completed all the cherry-picks and merge conflict cleanups and will start testing the full N version of this kernel over the next couple days.

With that said -- here's a question for the folks reading this thread: to Magisk or not?

There are a lot of great things about Magisk, yet also some less than obvious suboptimal tings as well. The dev is very open about these issues -- see https://xdaforums.com/showpost.php?p=72293984&postcount=20 and see the following quoted material:

"As a result, in the last build (v12.0) there are tons of binaries scattered, loosely working together with poor communication."

". . . all pre-v13 are haunted with the same issue - the environment Magisk is running is a mess."

That just says it can be a challenge and stability is not yet at the level of SuperSU.

So -- I'll ask again -- SuperSU or Magisk? What do you think for the install of this kernel?
[Sprint Samsung Galaxy S6] koop1955:
Very fair presentation of the question. At this time, I would vote for Magisk, taking into account the various issues. I believe that Magisk represents the future for everyone, but Samsung owners in particular.
[Sprint Samsung Galaxy S6] Jimmy1life:
I'm Just used to what worked. Dosnt matter to me. What ever is easier for you would be best I'd think. Now the new modules is something but there is zips for alot of the same mods.

Anyluck with Synapse and governers?
[Sprint Samsung Galaxy S6] Nye-uhls:
Would it be possible to have two options? Possibly in an aroma installer...

Option 1(default): root with superSU by chainfire

Option 2(advanced): root with magisk by topjohnwu

I'm​ on magisk and never going back, but i can see a huge percentage of people finding magisk in its current state as cumbersome and glitchy.

Magisk is definitely high maintenance for us samsung users at the moment. (Having to jump through hoops to get certain things to work and having to reflash magisk every couple of days)

When i think about the majority of people commenting on the bigdaddy thread and this thread, i know most would simply be unable/unwilling to deal with magisk.

It totally is the future though.
[Sprint Samsung Galaxy S6] Poebat:
I agree with what he said. I am not too familiar to magisk. In fact I have no clue what it is. But an option would be nice to toy around with. That is if it doesn't require that much work.
[Sprint Samsung Galaxy S6] koop1955:
Next Version of Magisk

Mostly for [MENTION=4988866]tdhite[/MENTION]:

https://www.xda-developers.com/magisk-v13-android-o-single-binary/
[Sprint Samsung Galaxy S6] ChubbbySquish:
[MENTION=4988866]tdhite[/MENTION] Absolutely Magisk, it is great for us Samsung users, as Koop had said. No bs "Can't run because this system has been modified, etc." Even Samsung Health has that implemented as of now. Magisk provides a larger variety of things to do, compared to SuperSU. Though, they both have pros, and cons. Tis' only an opinion. Keep up the amazing work on this beautiful Kernel bro. ✌ We all appreciate your hard work, and effort.

Toodles for now. ?
[Sprint Samsung Galaxy S6] Poebat:
Alright I have been using your kernel for awhile now and have only encountered two issues. The first issue is that I cannot use my phone while it's charging because it looses power. When I let it sit while it's fast charging with the screen on I max out at 450ma. When I turn off the screen it shoots up to 2500ma. Is there something in the synapse settings I should change?

Also, whenever I close out of the synapse app it always trys to set my big cores to 1700Mhz and my little cores to 1600Mhz. Any ideas on how to fix this?
[Sprint Samsung Galaxy S6] tdhite:
Voltage limits are in the Battery tab of Synapse.

I have to admit, no one has ever reported that. One of the governors does set screen off values and may be failing to honor /sys settings. Please switch to ktoonservative if so and let me know, also be sure to save the settings on frequency settings.
[Sprint Samsung Galaxy S6] Poebat:
I am currently using the ktoonservative Governor and getting this issue still. Once I change the clock speed back to 2400Mhz in synapse my phone runs like butter. Give it five minutes and it's slow and unresponsive. When I go to the synapse app I see that it changed the clock speed to 1700Mhz.

Edit: Changed 2.4Ghz to 2400Mhz for consistency
[Sprint Samsung Galaxy S6] tdhite:
Soon. Not quite. A few nooks and crannies left to solidify. It does boot ridiculously fast, though. Here's some proof for all to wait on (see attached image). Notice it is running enforcing and it is clean!
[Sprint Samsung Galaxy S6] digitalchaos1980:
Hey [MENTION=4988866]tdhite[/MENTION], just curious, did you ever try to implement the Nethunter stuff into this newest kernel by chance? I'm so wanting to try it out :)

Chuck

EDIT : Forgot something

Also just wanted to give u props again for a super awesome kernel! Can't wait to eventually go to Nougat knowing I'll be covered still. Just awaiting a working Xposed for Nougat.
[Sprint Samsung Galaxy S6] tdhite:
Update for N builds . . . 05-22-2017

All -- I have an apparently very stable and solid build of the nougat SkyHigh. I do not yet have Magisk fully working (it requires startup rules different than SuperSU. My apologies for that, it's just work but now that the kernel is stable I can get that pretty quickly.

You can download a test kernel from the OP.

Please let me know how it goes. As always: READ THE DISCLAIMER!

I did give that a serious shot, I think I mentioned earlier -- Samsung has precluded it in the way they have the gadget code configured. Why is not clear to me (possibly a hardware thing, but I don't think so). With that said, once I get the nougat build Magisk clean I'll revisit it.

:cool: