Android OS is a mobile operating system based on Unix. It uses similar kernel as Linux kernel. Therefore, you may find some of its settings are similar to Linux.
One of the features in term of security aspect is SELinux. Security-Enhanced Linux (SELinux) is a Linux kernel security module that provides a mechanism for supporting access control security policies, including mandatory access controls (MAC) – Wikipedia.
In another words, it is a security measure to add additional layer of security to a Linux-based machine/device. It is a set of kernel modifications and user-space tools essential to separate enforcement of security decisions from the security policy.
Such a technology can also be found in recent Android devices. Xiaomi phones are not exclusive to the feature, including all the variants in Mi, Redmi, and Redmi Note families.
Shortly, SELinux is there to help you preventing the potential of unauthorized malicious attacks on your device.
However, just like any other security mechanism, there is always the On-Off button to trigger the mechanism. The case of SELinux is similar.
SELinux runs in one of three modes by default:
- Disabled , meaning not enabled in the kernel;
- Permissive , meaning SELinux is running and logging but not controlling permissions;
- Enforcing , meaning SELinux is running and enforcing policy.
Flashing maniacs may (or may not) find SELinux not as useful as expected. Some custom ROMs need to have it either disabled or set to Permissive so that flashing can happen.
Luckily, as long as the bootloader is unlocked, setting SELinux to Permissive mode is possible thanks to a small script flash-able through TWRP.
Check this out also: MiXplorer – Better than stock Mi File Manager app.
Download SELinux Permissiver
You can grab the flash-able zip file of Permissiver from direct link below. The file is hosted on our server as mirror direct link.
Unfortunately, we cannot trace back to the original creator of the file. Please, feel free to contact us or drop a comment below if you are the developer of Permissiver (or you know the developer).
The file has been tested to work on Redmi K20 (Xiaomi Mi 9T) running Android 9.0 ROM. This shall also work on any other Xiaomi phones.
Again, you’ll need an unlocked bootloader and TWRP recovery to flash the file.
Please make sure you know what you are about to do with this file. We hold no responsibility of any misuse or damage caused by the file.
Found a broken link? Write a comment below!