contador Saltar al contenido

How to change the SELinux mode in one click

If you are an Android user and you have the habit of custom flash ROM on the device, then you will surely have noticed how difficult it has become to obtain the root permissions on your device. Once you just need to flash a zip file through stock recovery and get root permissions. Google is actively working to make root permissions on Android increasingly difficult. I can't blame them, they want their operating system as safe as possible. In fact, they have introduced SELinux to the system, a new feature introduced by Google in Android in an attempt to make it more secure. To make changes to the device, necessary change the SELinux modeand if you keep reading, you will see how to do it with just one click.

What is SELinux?

SELinux is a Linux kernel protection module that has been implemented in Android Ecosystem 4.2. We must not have a wrong idea that it is a bad thing. Actually a huge step towards making Android more secure which is a good thing for an average Android user. It is above all the Android universe of modding (customizations) that has been most influenced by this change.

SELinux interlaced within the Android central system and therefore the default mode set to "enforcing"(The other" Permissive "value). This prevents applications from doing something without explicitly asking for authorization (by the user), in particular, when it comes to changing system files / functions. Any attempts by applications to modify system files / functions are denied by default.

Why change the SELinux mode if it is actually a good thing?

Almost everyone in the Android world has heard these words: "You can do anything with your Android device if you have root permissions." With the introduction of SELinux, this is no longer true. Even with applications that run under diroot permissions, certain permissions are denied. Some applications that work with the root unlocked, must have SELinux in modePermissive?, For example Xposed Framework Module. Below is a brief explanation of what the methods are.enforcing" is "Permissive?By SELinux.

enforcing: Any process / service that is not explicitly allowed by the user to modify any file system / function is tracked, and the modification permission is denied. So even if you have root permissions, you won't be allowed to perform certain actions.

Permissive: If you have the option to change and set SELinux inPermissive, those specific processes / services that change system files / functions are not denied.

With SELinux mode set to "Permissive", root applications will again have full control of the Android system.

SELinux Toggler

Until recently there was an app called "SELinuxModeChanger" that allowed Android users with the root unlocked to change the SELinux mode. But the app developer has blocked any further development and the application has since been discouraged.

Now enter the sceneSELinux Toggler. The ibuprophen member of XDA decided to continue the good work that SELinuxModeChanger had started, and developed the new app SELinux Toggler. The brand new application and supports all versions of Android starting from Android 4.2 up to Android Nougat.

How to download and install SELinux Toggler

The developer offers two methods for its installation.

  1. You can download the .apk file> copy it to your phone> just click on it to install it as a normal APK.
  2. Or you can download the .zip file and flash it via TWRP Recovery.

Note: It is very important to note that in order for the application to work, it needs root permissions (with SuperSU, preferably) and Busybox installed on the device.

change the SELinux modeAfter successfully installing the application, simply touch the icon on the homescreen to open the application. Root permissions will be requested, allow. This is the installation process. Simple!

change the SELinux mode

Once inside the application, simply click on "PERMISSIVE" or "enforcing?According to your need.


Changing the SELinux mode very simple with this application, but there are small limitations of the app. Permanent changes to device boot scripts cannot be made. Even after SELinux mode is set to "Permissive", the device will restart in "Enforcing" mode at the first reboot. Then, once the application self-launch startup sequence starts, these applications start automatically and modify the device in the SELinux mode that the user had previously selected.