How to Easily Change Your SELinux Mode with This One-Tap App
If you're an Android enthusiast, a user who enjoys flashing custom ROMs, or even someone who simply requires root to feel satisfied with their phone's configuration, then you've most certainly heard of the term SELinux. It's a lot like an application sandbox, in that it prevents apps from doing anything they don't explicitly ask permission to do, particularly when it comes to changing system features.
By default, SELinux is set to enforcing mode, which automatically denies and logs all attempts made by apps to do things that they haven't been allowed to do. But certain root apps require SELinux to be in permissive mode in order to work correctly—equalizers like ViPER4Android, custom frameworks such as Xposed, and many other powerful mods. Thankfully, developer Ibuprophen has created a solution to the endless problem of SELinux compatibility, and it even works on Marshmallow and Nougat, unlike SELinuxModeChanger, which has since been abandoned.
The app that makes it easy to toggle your SELinux mode is aptly titled SELinuxToggler. To begin, just grab the APK from the following link, then tap the Download complete notification to open up Package Installer and install the app.
When the app has successfully installed, open it up and tap "Grant" on the Superuser access request. SELinuxToggler requires root to change the SELinux mode, since SELinux is a system security measure that was put in place to help make Android a tad more secure. After granting root permissions, all you have to do is tap on "Permissive," then you'll never have to worry about SELinux issues again.
If you'd like to revert this change at some point in the future, you can simply open the app, then tap "Enforcing." Aside from that, you'll probably never need to open the app again. Ibuprophen programmed SELinuxToggler to automatically launch at boot and change SELinux to the mode that was previously set, which makes it a "set it and forget it" type of app. Another great thing about SELinuxToggler is that it won't modify your boot script files, which can potentially result in slower boot up times, or even a bootloop.
If you have any thoughts or comments, be sure to share them with us in the section below. Otherwise, grab your headphones, because ViPER4Android should now be working correctly.
Screenshots by Kevin M./Gadget Hacks