Set SELinux mode to Permissive permanently My Samsung Galaxy Note S2 (GT-N7102) running stock 4.3 JellyBean by default blocks all apps from Google (courtesy of the Chinese government). I followed a tutorial to gain access to gapps that relies on SELinux being set to permissive, but the mode changes on a reboot and I get a continuous stream of pop-up that says:


  Unfortunately the process com.google.gapps has stopped


What is changing the SELinux mode and how do I stop it from doing so?
If your ROM supports init.d or if you wish to enable init.d support for this purpose, here's a way to disable SE Linux automatically everytime after each boot..

Create a new script as follows:

#!/system/bin/sh
setenforce 0


(Note: If you're using an app to emulate init.d, use su -c setenforce 0 if just setenforce 0 doesn't work)

Save it as set_permissive.sh, move it to /system/etc/init.d/ directory and give it permissions 755.