Want to set SELinux to Permissive mode on your Android? This app will help you do that in a matter of seconds.
SELinux is a Linux kernel security module that was implemented to Android ecosystem in Android 4.3. While it was a huge step towards better Android security, but at the same time also proved to be a hitch for the custom Android universe. It brought problems to root methods and popular mods like Xposed Framework. But with time, the genius minds at XDA community made it possible, and we were again able to enjoy our favourite mods and root (SuperSU).
If you have dealt with SELinux in the past, you would be well acquired with a tool, namely “SELinuxModeChanger”. And as the name suggests, it helped you switch between SELinux permission modes on your Android. The development for the app was soon halted and the developer (XDA member – MrBIMC) finally discarded the project. While the app still works great for Lollipop, and also some devices using Marshmallow, but it has finally reached its end-time with Nougat.
Why would you set SELinux to Permissive?
Since the beginning we have obeyed the old-school mythology, that root permissions on your Android would let you do anything with your device. But with the introduction of SELinux protocol, even root apps could be denied permissions to access certain files or perform several actions. It is one of the reasons that many of you are still not able to get mods like ViPER4Android working correctly.
On every device with Android 5.0 and above, SELinux is fully-enforced (Enforcing mode). So to get things in line, the last resort is to change the and set SELinux to Permissive mode. Let us see below how these two modes work.
- Enforcing: Any process/service that is not explicitly allowed is not only logged, but is also enforced denial of permissions. So even if you have root, you won’t be allowed to perform certain actions.
- Permissive: While if you are able to change it and set SELinux to Permissive, those specific processes/services will only be logged and the permission denial will NOT be enforced.
So with Permissive mode, your root apps or mods will again have full power over your Android device.
SELinuxToggler offers switching SELinux modes through an Android application user-interface. It has been developed by XDA member Ibuprophen, who decided to take over the project and made necessary changes to make it support the latest Android version. It can be installed and used on any Android with 4.2 or above.
So if you have been using modified boot script mods previously on Nougat, you can just relieve yourself from them and use this app to make things easy again.
The app could be installed either by simply installing the APK or by flashing a flashable zip through TWRP. So choose your desired method and get your installation file from here. You must also have a proper root method (preferably SuperSU) and Busybox installed on your Android.
Once the app is installed on your device, go to the app drawer and run it. On the first run, even though the app is not set to prompt for root permissions, you just may be prompted anyway, so grant them. Once that is done, you can simply tap on the Permissive button and the SELinux status will be changed.
However the app still has limitations. It will still not be able to make permanent changes to the boot script. So every time you reboot your device, the SELinux status will be rolled back to “Enforcing”. But then, the app will automatically launch (along with the other apps that are set to automatically launch upon boot), and will then set the SELinux back to Permissive. No further action would be required unless you decide to open the app and change the SELinux mode back to Enforcing.
So now, you can easily use mods like ViPER4Android without any issues. If you have any problems or questions, post a comment right away. And don’t forget to share this article on your social profiles by clicking the buttons below.