yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab S2 Android Development] engine95:
This is for all the Permissive S2 Marshmallow kernels. Further builds of kernels will go in their own threads.

Make sure to thank @ashyx and @jafangie if you use their kernels.

Permissive_Marshmallow_S2_Kernels​

This will work on the 815/710/715/810 MM. So far

You flash this at your own risk. We are not responsible for anything that happens!!! There's the discaimer. :p​

Install instructions:

You MUST HAVE ROOT and TWRP installed to flash this!!

This is for Marshmallow only

Flash kernel then wipe cache and dalvic

Reboot and profit!!

Changelog

815 Permissive Kernel - Stock with init.d support

710 Permissive Kernel - Stock with init.d support

715 Permissive Kernel - Stock with init.d support

810 Permissive Kernel - Stock with init.d support

______________________________

Downloads:

815_Permissive_initd_Kernel engine95

710_Permissive_initd_Kernel engine95

715_Permissive_initd_Kernel jafangie Thank here

810_Permissive_initd_Kernel engine95

XDA:DevDB Information

[KERNELS]Permissive_MM - 815/710/715/810 so far, Kernel for the Samsung Galaxy Tab S2

Contributors

engine95, ashyx, jafangie

Source Code: https://github.com/engine95/exynos5433-MM-NNKernel.git

Kernel Special Features:

Version Information

Status: Stable

Stable Release Date: 2016-05-08

Created 2016-05-08

Last Updated 2016-05-26
[Galaxy Tab S2 Android Development] engine95:
extra info

In a rooted explorer, you will need to delete /system/app/SecurityLogAgent. Or you will get a nagging warning.
[Galaxy Tab S2 Android Development] papampi:
I think whenever I reboot to recovery the permissive will be gone

Is it possible ?

I see the red line says "recovery is not seandroid enforcing" and apps that needs permissive won't work any more

But about shows permissive

weird ha ?

So I flashed kernel again and apps work ok.
[Galaxy Tab S2 Android Development] engine95:
The latest TWRP has fixed that warning. For recovery.

As for the kernel, it will show "Kernel is not seandroid". That's just wording and doesn't affect anything.

Why you would lose permissive can't happen. But your root could be broken if you flashed 2.65 and higher. Some apps still look for root in /system. So check and see if your app still has root. I'm betting that's the cause of it.

Edit. SU will say you have root. But if you actually use root for the app, it'll say no root. Estrong file explorer is a prime example.
[Galaxy Tab S2 Android Development] Josephigloe:
Dang so the issue I have had with es was broken root all this time I didn't know, I don't have that issue now but, that would have been nice to know a while ago...lol.
[Galaxy Tab S2 Android Development] ashyx:
The maker of the app needs to stop using hard-coded paths for root detection.

Most have corrected this. If you have an app that doesn't I urge you to contact the author or use a different app.

As said the Seandroid warning is nothing but a flag and wont affect anything in any way.
[Galaxy Tab S2 Android Development] jafangie:
@Engine95, Hi my friend!

You're so lucky, take a look here http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=t710 .

Concerning T715 I asked for sources to Samsung last Saturday... They just reply to me that they are now in the process of reviewing my inquiry.

Jaf
[Galaxy Tab S2 Android Development] engine95:
The 815 source came out in 2 days after I requested it. I was in shock.

I requested 710 a week ago, so you made good time.

I have a feeling 710 source will be tied with the 810. So the 810 MM will probably need to release before I get source.

At least you got it and can move forward now. [emoji3]

Major edit: My bad. I just assumed. Wow

Maybe I should request your source. I'm on a roll. Maybe I should bet it all on black. Lol

Edit #2: Too funny. I just now got the notification from Samsung.
[Galaxy Tab S2 Android Development] engine95:
To the 815 users of this kernel. I have 2 questions.

1. Is wifi dropping on reboot? Meaning do you have to sign in each time you reboot? If you do, let me know so I can fix it. I'm taking things one step at a time because I don't know how Marshmallow runs yet.

2. Do you have the nagging security notice? If so, you need to delete /system/app/SecurityLogAgent, in a rooted explorer.

710 users, I have a permissive kernel about done. It was built using 815 source. So I'm gonna need this kernel flogged to death to make sure all is right. I just used the 710 MM defconfig.

Edit: This is in the OP now also. 710-MM-Permissive-Kernel
[Galaxy Tab S2 Android Development] rumrunner4000:
[MENTION=1280108]engine95[/MENTION]

will not let me download from link above or in OP -error on android filehost for 710-MM-Permissive -Kernel unexpected response from server?
[Galaxy Tab S2 Android Development] engine95:
Try a different server. I just dl'd from the Georgia one and it worked fine.
[Galaxy Tab S2 Android Development] rumrunner4000:
Update download available now.
[Galaxy Tab S2 Android Development] kutaxov:
@engine95, please create kernel for T810:

http://www.sammobile.com/firmwares/download/71178/T810XXU2CPD9_T810DBT2CPD9_DBT/

Model	SM-T810

Model name	Galaxy Tab S2

Country	Germany

Version	Android 6.0.1

Changelist	7767647

Build date	Mon, 25 Apr 2016 11:01:57 +0000

Product code	DBT

PDA	T810XXU2CPD9

CSC	T810DBT2CPD9
[Galaxy Tab S2 Android Development] engine95:
I need to request source. Then wait til Samsung will release it.

But ya, you'll get one.
[Galaxy Tab S2 Android Development] Josephigloe:
Worked for me.
[Galaxy Tab S2 Android Development] jafangie:
Hi engine95,

I am stil trying to build from T815_MM my T715_MM!

But I have one issue.

What I do :

1) Update Cross-Compiler

$ git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8

2) Edit the base kernel Makefile to set up my cross compiler.

3) Build the kernel

$ export CROSS_COMPILE=/home/ja/android/arm-eabi-4.8/bin/arm-eabi-

$ export ARCH=arm

$ make exynos5433-gts28lte_defconfig

$ make ARCH=arm -j5

No eror, I have my Zimage

4) Make the new image

$ umkbootimg boot.img

$ mkbootimg --kernel zImage --ramdisk initramfs.cpio.gz --output boot.img

My boot.img doesn't boot at all... I try your T815_MM it boots and bootloop (I think it is normal way :))

What I am missing, is there one step more on MM?

Any idea? It was exactly what I did for T715_LL and everything is going well!

In advance thank a lot.
[Galaxy Tab S2 Android Development] engine95:
It could be a few things. And I'm guessing you're building a "Permissive" kernel.

Just in case, my git is here. https://github.com/engine95/exynos5433-MM-NNKernel.git It uses 815 source.

I didn't see that you did: "make menuconfig" when building your zimage.

Edit: Just save it. You don't need to make any changes there.

As for the ramdisk, use it from the 715 MM kernel.

In "default.prop" add this line. "ro.securestorage.support=false".

Above "# BOOTIMAGE_BUILD_PROPERTIES" I think we have to have this in now, not just for WIFI" I think I needed this to get it to boot. But I'm not positive.

Another problem could be the "defconfig". I tried "L" and it didn't work. I needed to wait for source so I could get it for "M". But this could have been my problem when I first built. Trying to figure things out.

SU might be another issue. I think I used a clean boot.img from the .tar. Don't root it.

Thing is, my ROM has SU built in /system, instead of systemless root. So I'm not sure what that's going to do to you.

When I build 710 or 810 using same source, the zImage does build differently. So they aren’t interchangeable. That was probably the bootloop when you tried that with 815 on 715.

Let me know how it goes. We'll get it figured out. :D
[Galaxy Tab S2 Android Development] :
Please, T810 ?
[Galaxy Tab S2 Android Development] Rekan_:
Request Opensource Samsung for T810 6.0.1 kernel source, more demand will mean faster source code, which results in a permissive kernel (root :D)
[Galaxy Tab S2 Android Development] engine95:
I'm cleaning a huge mess I had, from when MM first popped up. I had files scattered across 7 OS's. Testing some different Linux distro's for myself.

Besides that, I've been trying to get a ROM figured out. I either get an unmountable system, or I break wifi and ext SD. 710 isn't a problem because I have that.

Samsung still hasn't posted source for the MM 810. I was waiting for it so I can pull the 810 defconfig.

I'll get you one shortly. :)

Edit: I've requested 810 source already. Almost a week ago.

Funny, but I'm having an easier time building kernels than Roms now that MM is out. :eek:
[Galaxy Tab S2 Android Development] jafangie:
Hi Engine95,

Many thanks for your help and finally I got it!

I don't know why, but when I decompile original boot.img, I lost dt_image!

I add it manually and everything is ok.

This morning Samsung add sources for T715_EUR.

So, I add T715 permissive boot.img here.

Jaf

edit : I forgot special thanks for your GIT... It helps me to build without error in driver/pci!
[Galaxy Tab S2 Android Development] donky kong 017:
Can I flash this on my t715 with ODIN or twrp?
[Galaxy Tab S2 Android Development] engine95:
Awesome. Glad you got it figured out and I was able to help you fix things.

You and ashyx are allowed to edit the OP. I gave you both edit rights to it. Just click the edit tab and you can add it there.

Make sure to give a link so people can thank you and not me for your work. Or just link to that post.

If you don't edit it, I can do it for you.
[Galaxy Tab S2 Android Development] ashyx:
You don't need a permissive kernel for root.
[Galaxy Tab S2 Android Development] donky kong 017:
Nevermind flashed it with twrp and su afterwards cause it was gone the first time. But it is not permissive. What do i miss?
[Galaxy Tab S2 Android Development] engine95:
[MENTION=234631]jafangie[/MENTION] I added your post to the OP. Does your kernel have init.d support built in? Just so we all know.

To all:

I had to modify how these kernels installed. The Kernels are fine, they just deleted existing scripts. So check the scripts you want/need.
[Galaxy Tab S2 Android Development] miloshdrown:
You still need sources for the SM-T810? If you just need to boot.img I can get you that but last I saw you needed the sources.
[Galaxy Tab S2 Android Development] engine95:
Yup. Just source so I can pull the defconfig for MM.

We don't need permissive kernels with MM. But it's still requested.

And we may need it if we take out Knox. I haven't messed with that yet. I haven't found a need to. Everything seems pretty open compared to L.
[Galaxy Tab S2 Android Development] engine95:
OP and links all better now. I had some goofs.

715 permissive also has init.d support. Yeah, I noticed. ;)
[Galaxy Tab S2 Android Development] Error404html:
A noob Q:

What is the advantage of a Permissive kernel.
[Galaxy Tab S2 Android Development] engine95:
With M, I don't really know yet. We're all still figuring it out.

L had to have one for root/ TWRP.

It shouldn't hurt anything if you use it, regardless.
[Galaxy Tab S2 Android Development] ubergeek77:
But don't we need one for Mm in order to be able to modify /system? Right now, all we have is systemless root, so we can't have nice things like Xposed. It makes things on MM very limited as far as root goes.
[Galaxy Tab S2 Android Development] engine95:
We shouldn't and haven't need it yet. Check this post. http://xdaforums.com/showthread.php?p=66956024 and about the last 2-3 pages of that thread. That should get you squared away.

People are already installing exposed without permissive.
[Galaxy Tab S2 Android Development] ubergeek77:
Thanks! I'll take a look. I just got this tablet yesterday, so I'm still trying to get up to speed on root methods and such.
[Galaxy Tab S2 Android Development] jaydizman:
Can this kernel fix the no 5ghz Wi-Fi on MM?
[Galaxy Tab S2 Android Development] patrioticparadox:
I assume you'd need the source for the 817 as well and who knows when that will come. Anyways, 817T owner here ready to help whenever/however I can.
[Galaxy Tab S2 Android Development] engine95:
5g works 40 and lower. Just not the higher channels.

I think that's all we'll get till they release US version

I do. I could use a boot.img to make an init.d kernel though. Pull it from the .tar That way, it's not rooted yet.
[Galaxy Tab S2 Android Development] patrioticparadox:
The 817 is still on 5.1.1 (at least the T is). I read MM may be coming soon though. Still want the LP boot img?
[Galaxy Tab S2 Android Development] starring1:
Permessive Kernel T810 ViPER4Android

Just wanted to know if someone already got ViPER4Android installed and the drivers running on 6.0.1 with status normal?
[Galaxy Tab S2 Android Development] engine95:
No. Looks like we'll all get M, eventually. So might as well stay on that path.
[Galaxy Tab S2 Android Development] jaydizman:
Still no 5ghz Wi-Fi after flashing kernel that's deal breaker as far as MM for now going back to Optimal Rom.
[Galaxy Tab S2 Android Development] engine95:
5g works. Just channels 40 and below.
[Galaxy Tab S2 Android Development] jaydizman:
What do I need to do in order to see the 5ghz band in the Wi-Fi settings? My 2.4ghz band is hitting 40mps no problem but the 5ghz isn't visible
[Galaxy Tab S2 Android Development] engine95:
Change the channel on the router. It gives you choices in its setup. Select 40 or lower then it'll show up. I don't know of an app.
[Galaxy Tab S2 Android Development] Rekan_:
http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=sm-t810

The Kernel Sources for T810 Marshmallow came out.
[Galaxy Tab S2 Android Development] engine95:
Yup. It came out yesterday. I just haven't had the time to build it yet.

Hopefully, I can get it built by tomorrow. If not, it'll be next week before I have time.
[Galaxy Tab S2 Android Development] engine95:
Permissive 810 kernel in OP. Untested and needs to be flogged.

Let me know how it goes.
[Galaxy Tab S2 Android Development] hurray:
The kernel runs beautiful but my issue with FolderMount is not solved.

If I use v 2.92b and let exchange the vold the tablet did not boot anymore.

It seems that using the external sdcard and mounting some folders under MM is a real problem.

Thank you very much for the permissive kernel!!

Update: there is a new version of Folder Mount 2.93b with a 32 bit-version of a modified vold, which runs very well!!

Now this is the situation: The permissive kernel runs very well at my T810 and I am able to mount folders from my external sdcard into the internal sdcard. Perfect. :)
[Galaxy Tab S2 Android Development] lewmur:
That's fine for people who have problems with their own routers. My problem is with the router at my local pub and I have no control over it.
[Galaxy Tab S2 Android Development] :
With that permissive kernel, is there the message when booting : "SELinux: kernel is SE Enforcing" or anything like that ?

And with only TWRP flashed via Odin, the same message ?

And with Autoroot via Odin too ?

Thank you.
[Galaxy Tab S2 Android Development] hurray:
Yes, there is the message at boot but it does not interfere with anything so it doesn't matter.

I don't know what you mean with "autoroot"...

- I flashed the ROM via ODIN

- I flashed after the first boot of MM the TWRP-Recovery via Odin

- I went into TWRP

- in TWRP I flashed the permissive kernel, SuperSU BETA-SuperSU-v2.74-2-SYSTEMMODE.zip, xposed-v84.0-sdk23-arm-custom-build-by-wanam-20160504.zip, Neked_Nook_Maker_V2.zip

All in one step just in this order. :D

The next boot is a little bit long as the caches are build again and voila, everything runs as described.

I only have to look now how I can deodex the MM-Rom.
[Galaxy Tab S2 Android Development] :
Ok, thank you.

Autoroot (by Chainfire) is the same thing that SuperSU_2.74.zip, except it is a .tar, flashable via Odin, so it make appear the kernel message.

It's usuable when you don't want to install a custom recovery, only need root on STOCK ROM...

Please can you make me informed about deodexing the MM stock ROM please ?
[Galaxy Tab S2 Android Development] engine95:
I'm not quite sure where to put this, so it's going here since it mostly pertains to the kernel.

I haven't had much time lately, but I'm working on removing Knox, enabling OTG, and removing Samsung rooting restrictions. It's not going well so far. I'm not sure if it's in the kernel, ROM, or both. It may even have to do with the SDCard encryption. Give me some time and I'll see what I can get. I'll be able to build for the 710, 810, and 815.

So far, Knox is still showing even with it removed from the Kernel. It's also removed in my ROM, but is still showing. So that's gonna take some work.

[MENTION=4899305]ashyx[/MENTION] has mentioned needing rooting restrictions removed for ADB to work in TWRP. I'm just starting on that option. I still need to test it out.

OTG is configuring very strangely and I'm sure it has something to do with the encryption. While I do have it working, I keep getting these notifications on mounting the SDCard. So obviously that's gonna need some work too.

Once I get these things figured out, I'll move on to getting us some M kernels out. :)

I don't need any testers yet. But I will once I can get things to work on my 710.

Just thought I'd let you all know what's up.
[Galaxy Tab S2 Android Development] ashyx:
If you restore the stock boot image then flash supersu again that should get rid of the SEANDROID message.

You shouldn't get this message in TWRP either as I have patched the ramdisk.

Removing root restrictions shouldn't be necessary on a permissive kernel.

In any case it's a simple defconfig modification.

You can remove all the knox you want, but that won't remove the details in the about info page.

It's imbedded in the rom and you will need to edit some smali files to remove it.
[Galaxy Tab S2 Android Development] engine95:
I was trying to help out because of this post. http://xdaforums.com/showthread.php?p=67173382

Yes it is.

With L, it was removed. Obviously not with M. I've removed everything Knox, which is a lot more now, and it still shows. I've even modified the build.prop. Oh well.
[Galaxy Tab S2 Android Development] ashyx:
I understand, however there is no source available yet for the new S2, so I can't compile the kernel with the fixes I need.

However I do appreciate your input.
[Galaxy Tab S2 Android Development] engine95:
So I compiled the kernel with rooting restrictions removed and ADB still says "offline". Drivers are all there following what we went through a couple months ago.

I was hoping to get it figured out before source came out for the new S2's.

I need to spend more time on it, but that's where I'm at right now.
[Galaxy Tab S2 Android Development] ashyx:
Is this a boot image or recovery image?
[Galaxy Tab S2 Android Development] engine95:
MM 710 boot.img on your 3.0.2.1 TWRP. Got me some time later today so I can mess with it more.
[Galaxy Tab S2 Android Development] ashyx:
The kernel needs to be compiled with twrp or unpacked and repacked with the new kernel.
[Galaxy Tab S2 Android Development] ksr007:
Can you modding kernel for charging faster ?
[Galaxy Tab S2 Android Development] engine95:
I think the best I can do is give us Charging Control like I did with the previous NN Kernels. It'll allow adjusting of the voltages. So I assume it'll charge faster.
[Galaxy Tab S2 Android Development] ksr007:
ok ! that fine . I'll waiting for new version support for Charging control, thanks.
[Galaxy Tab S2 Android Development] iStation:
Hi

it has a conflict with De-Odexed De-KNOXed zip for T815
[Galaxy Tab S2 Android Development] engine95:
It's probably because I haven't DeKnoxed any of them yet. Give me a few days and I'll update them.

Hopefully that's all it is anyway.
[Galaxy Tab S2 Android Development] DionWhite33:
Just got this...I have 5 Note Tablets and had the Tab S 32Gb Version...it was stolen and could never find another. I'm about to Root this and am seeing 2 versions...there is the SM-T710 and the SM-T713 which is newer. Is the Kernel for the 710 compatible on 713?
[Galaxy Tab S2 Android Development] engine95:
Those are the model numbers. So no, there is not one for the 713. It uses a Snapdragon CPU. Samsung still doesn't have source for the 713 yet. And I'm not sure if I'll build for the newer S2's.
[Galaxy Tab S2 Android Development] deezid:
Does this kernel support conservative governor? Helped to get rid of micro stutter on my Galaxy S7 Edge. :)

Gesendet von meinem SM-T810 mit Tapatalk
[Galaxy Tab S2 Android Development] engine95:
Not yet. I have had no time to do anything Android lately. But I do plan on a kernel for us.
[Galaxy Tab S2 Android Development] deezid:
That would be amazing, the level of stutter in many apps (Google+, Tapatalk, Facebook etc. are worst case), is really bad.

Only Conservative (ondemand isn't bad either) helps. Interactive governor causes lots of lag, even on the Galaxy S7 edge.
[Galaxy Tab S2 Android Development] DionWhite33:
Thank you for your response. I did some research as well and found that out. I did get Root and Xposed. It took a little while...but its what I like. And i like a challenge...hahaha

---------- Post added at 12:31 PM ---------- Previous post was at 12:29 PM ----------

This looks great! Nice Work!
[Galaxy Tab S2 Android Development] C_Karhu:
I have an issue after flashing permissive kernel for T710. My external MicroSd won't work anymore. It says "damaged". But I can read the files on the card in TWRP. And in another phone it works flawless. Can it be related to the kernel?

Best regards
[Galaxy Tab S2 Android Development] engine95:
It shouldn't. Flash or restore the stock kernel and see what happens.

There's no reason for it to happen. It's the same kernel as init.d just selinux permissive.
[Galaxy Tab S2 Android Development] d.cortez:
My T715Y, w/MM 6.0.1 and this kernel working well so far. Thanks.
[Galaxy Tab S2 Android Development] camdadeye291:
Greetings ? What does this kernel do¿
[Galaxy Tab S2 Android Development] RMXO:
Hi,

By any chance you have a T813 version, its the 2016 9.7 32gb wifi version.
[Galaxy Tab S2 Android Development] crisb2411:
Install TWRP and than flash the kernel and install SU?
[Galaxy Tab S2 Android Development] engine95:
Not for a while. My android time is non existent lately. I know ashyx is working on one.

Yes, yes, and that depends on how you rooted. Systemless vs system. System root you should be good without flashing SU.

You will probably end up with a message that means nothing when booting. Something like"Kernel is not Seandroid enforcing". It means nothing as far as working right.
[Galaxy Tab S2 Android Development] Ovevhkin:
Can't install any Zip with TWRP. Whats the difference beteween system and systemless root? which is better?
[Galaxy Tab S2 Android Development] westernmg:
Going to flash the "SM-T810XXU2CPG1" image today, is the last permissive kernel in the OP still functional?

Or do we need an updated one?
[Galaxy Tab S2 Android Development] andyroidking:
I'm downloading it right now... I'll check the kernel. Sammobile is dead slow!!
[Galaxy Tab S2 Android Development] Torrentula81:
Worked fine for me. I was able to paste apps in the sytem/app and they were system after reboot. Nothing would happen with stock kernel but did for this one.
[Galaxy Tab S2 Android Development] IngoPan:
Is there a permissive kernel for PG1 to flash?

I just flashed stock rom PG1. Whats the procedure to root now?

1) flash twrp 3201

2) flash permissive kernel

2) use cf-autoroot?

Got it again: It´s just flash twrp 3xxx and afterwards supersu2.7x via twrp. thanks.
[Galaxy Tab S2 Android Development] adithya2306:
If you are on a non-enforcing kernel, after unlocking bootloader, you won't be able to boot into android anymore, cuz SELinux is enforcing. Permissive kernel sets the SELinux to 'permissive' & thus allows you to boot into android.

---------- Post added at 08:47 AM ---------- Previous post was at 08:45 AM ----------

Yeah, I am on Sam's latest version, & the permissive kernel works fine.
[Galaxy Tab S2 Android Development] Jackz314:
So do you guys have any idea where I can find a working kernel for android 5.0.2 ROM?