FORUMS
Remove All Ads from XDA

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

1,285 posts
Thanks Meter: 4,695
 
By blastagator, Inactive Recognized Contributor on 13th June 2015, 06:23 AM
Post Reply Email Thread
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



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
The Following 20 Users Say Thank You to blastagator For This Useful Post: [ View ] Gift blastagator Ad-Free
13th June 2015, 06:23 AM |#2  
blastagator's Avatar
OP Inactive Recognized Contributor
Flag Fern Park, FL
Thanks Meter: 4,695
 
Donate to Me
More
saved1
The Following User Says Thank You to blastagator For This Useful Post: [ View ] Gift blastagator Ad-Free
13th June 2015, 06:24 AM |#3  
blastagator's Avatar
OP Inactive Recognized Contributor
Flag Fern Park, FL
Thanks Meter: 4,695
 
Donate to Me
More
saved2
The Following User Says Thank You to blastagator For This Useful Post: [ View ] Gift blastagator Ad-Free
13th June 2015, 08:05 AM |#4  
renzo090513's Avatar
Senior Member
Thanks Meter: 162
 
More
What type of loss of / data settings? And if i dont want selinux on it is ok ?
13th June 2015, 08:07 AM |#5  
L0nelyE4rth's Avatar
Senior Member
Flag Khok Kloi, Phang Nga
Thanks Meter: 113
 
More
Quote:
Originally Posted by renzo090513

What type of loss of / data settings? And if i dont want selinux on it is ok ?

Anyway you want, Enforcing or Permissive
17th June 2015, 04:14 AM |#6  
drew150931's Avatar
Senior Member
Flag Biñan
Thanks Meter: 102
 
More
@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.
17th June 2015, 09:00 AM |#7  
Member
Thanks Meter: 2
 
More
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
17th June 2015, 12:16 PM |#8  
krija's Avatar
Senior Member
Flag Šahy
Thanks Meter: 872
 
More
@defynoob No need to flash ROM, just flash ORIGINAL dorimanx kernel with disabled SELinux
18th June 2015, 06:58 PM |#9  
blastagator's Avatar
OP Inactive Recognized Contributor
Flag Fern Park, FL
Thanks Meter: 4,695
 
Donate to Me
More
Quote:
Originally Posted by drew150931

@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.
6th November 2015, 12:06 PM |#10  
Member
Thanks Meter: 12
 
More
Hi i use dorimanx kernel on samsung galaxy s2. I reflashed kernel & then flashed script. But in setting>about it says it is desabled. What should i do? @blastagator
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes