This module switches SELinux to permissive mode during boot process.
This module intentionally lowers security settings of your phone. Please, don't use it if you don't know what you are doing.
The module will not work if your kernel compiled with always enforcing config, e.g., stock samsung kernels.
- Sets SELinux to permissive mode at both post-fs-data and service stages
- Hides permissive state from non-root apps:
- Restricts read access to
/sys/fs/selinux/enforce - Masks
ro.boot.selinuxproperty via resetprop
- Restricts read access to
- Supports Magisk Manager auto-update
- Clean removal via uninstall.sh (restores sysfs permissions and property)
Stable release:
- Download latest selinux_permissive.zip from releases page https://github.com/evdenis/selinux_permissive/releases
- MagiskManager -> Modules + Downloads/selinux_permissive.zip -> Reboot
Master branch:
- git clone https://github.com/evdenis/selinux_permissive
- cd selinux_permissive
- make install