My device is Samsung Galaxy Note 3 SM-N9005.
This phone comes with SELinux set to Enforcing by default.
I have been trying to change this to permissive but to no avail.
I built the kernel from source code following Samsung instructions, and added a line to init.rc file in the ramdisk: "setenforce 0" and this worked, however WiFi broke and I am not clued up on kernel development.
I have tried, as root, running "setenforce 0" in terminal and via adb. There is no error, however it stays Enforcing.
I am running out of options have looked through the init files in the Samsung source code and cannot find anywhere where Samsung set SELinux to be Enforcing.
Any help will be vastly appreciated!
setenforce
changes only the runtime mode, so if you want the change to persist over reboots, addsetenforce 0
to your init.rc files or edit the value of ro.boot.selinuxboot.img
hacking. This make a terrible mess for everyone, but you can do it from a local terminal shell.