Enable SELinux on Dorimanx LP Kernel!
All Variants (that Dorimanx LP supports)
Lollipop ONLY!
All Variants (that Dorimanx LP supports)
Lollipop ONLY!
If you already installed kernel and booted ROM, script is pointless! Don't bother!
What this is:
As of Dorimanx Lollipop Kernel version 2.9, kernel defaults to completely disabled SELinux. This is done via the kernel command line. Dorimanx created a script to change the command line back and forth, thus turning SELinux on/off.
With this change, you can get some off loss of /data setting if you boot with SELinux off and then turn it ON and reboot. The way around this would be to enable SELinux before doing first boot.
This script turns SELinux on for Dorimanx!
The entire point of the script is to flash the script BEFORE you reboot after upgrading Dorimanx Kernel.
Install:
Current Kernel Versions (Script version 1.2)
(1) Flash Dorimanx LP Kernel (version >= 8.0)
(2) Download the script you want. There is a separate script for Enforcing or Permissive.
(3) Flash the script
(4) Reboot
Old Kernel Version! (Script version 1.1)
(1) Flash Dorimanx LP Kernel (version >= 2.9, and < 8.0)
(2) Flash this script
(3) Reboot
SELinux is now on. It will default to PERMISSIVE unless you have changed and saved this setting in Dorimanx app.
The entire point of the script is to flash the script BEFORE you reboot after upgrading Dorimanx Kernel.
Major Thanks to:
@dorimanx - Awesome dev!!!!
@Äptiva - Pointing out script error so I didn't have to do any work to fix the script for new versions
Download:
https://www.gregtwallace.com/lg-g2/dorimanx-selinux/
Download is under Miscellaneous.
Shameless plug for donations:
Venmo Preferred (No Fee)

Zelle, send to [email protected]
Backup (Charges Fee)
Paypal
Last edited: