[Dorimanx LP][v2.9+][SELinux-Enabler] Script to Enable SELinux

blastagator

Inactive Recognized Contributor
Dec 27, 2012
1,288
4,702
113
Fern Park, FL
Enable SELinux on Dorimanx LP Kernel!
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 :p



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:

drew150931

Senior Member
Mar 1, 2015
326
102
0
35
Biñan
@blastagator. Please i need help, im on cloudy G2 3.1 LP rom and what i did is to install dorimanx kernel 2.9 then reboot to recovery and then install the doriLP-selinux-enable-v1-blastagator-signed then reboot. after reboot im stock on lg logo. how do i fix it? thanks.
 

defynoob

Member
Feb 6, 2014
37
2
0
Can confirm your problem @drew150931 . Was on cloudyG3 3.1 . flashed dorimanx, then flashed this script without rebooting in between. Got stuck into a bootloop. Phone model is same as you, D802.

I fixed it by going into factory reset.
____________________________
This is from dorimanx kernel thread:

BOOTLOADER 20A!
Connect USB Push PWR + Vol Down till phone reboot and you will see LG Logo!
Release and press the buttons again! till you see screen asking if you want to WIPE your device!
if you have recovery installed, then it's will just OPEN the recovery! no WIPE will happen!!!

Just push 3 time the PWR key. and you will be moved to recovery.
Install your device STOCK kernel and wait for FIX.

BOOTLOADER 20H!
To enter recovery from LG logo now have different button combo!!!
Power OFF by holding long the power button till black screen!
Press and hold power and volume down until you see the LG logo then release and press and hold the volume up and volume down buttons until reset screen appears.

it's will ask SCARY QUESTIONS!!!! if you want to hard reset your device!!!
SAY YES/YES!!!! 2 times, then its will show LG logo and boot your custom recovery! in this case the bumped TWRP.

If you have STOCK Recovery!!!! it's will WIPE your device...
___________________________________

Saying YES 2 times will not wipe your device, but will boot into TWRP. There you can wipe and flash rom again :)
 
Last edited:

blastagator

Inactive Recognized Contributor
Dec 27, 2012
1,288
4,702
113
Fern Park, FL
@blastagator. Please i need help, im on cloudy G2 3.1 LP rom and what i did is to install dorimanx kernel 2.9 then reboot to recovery and then install the doriLP-selinux-enable-v1-blastagator-signed then reboot. after reboot im stock on lg logo. how do i fix it? thanks.
Reflash kernel. SELinux off by default. SELinux on without proper permissions causes this error.
 

blastagator

Inactive Recognized Contributor
Dec 27, 2012
1,288
4,702
113
Fern Park, FL
Last edited:

Manbot27

Senior Member
Mar 23, 2013
246
104
0
You need?

Or anyone else for that matter?

If so, I might look in to changing it. If not, RIP
Hey Blastagator I'd love if you could take a look at this again. I'm trying to use magisk to get Android pay and Pokémon go working while rooted but I think Selinux being disabled is causing root to be detected.
 
  • Like
Reactions: repulse