How To: Easily Change Your SELinux Mode with This One-Tap App

Easily Change Your SELinux Mode with This One-Tap App

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.


Step 1: Download & Install SELinuxToggler

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.

Step 2: Grant Root Permissions, Change the SELinux Mode & Forget

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.

Cover image by Dallas Thomas/Gadget Hacks
Screenshots by Kevin M./Gadget Hacks

Be the First to Comment

Share Your Thoughts

  • Hot
  • Latest