The SELinux Switch
.
What's The SELinux Switch & What Makes It Different from The SELinux Toggler?
I'll outline this in brief since it would take too much time and space in explaining everything in detail.
Primarily, The SELinux Switch was built from scratch. It had taken me approx. 6 +/- months on building, testing, editing, etc...
The SELinux Toggler was still using the old Package Namp (com.mrbmic.selinux) and, by continuing to use that same Package Name, it also forced me to have to continue its Open Source as specified by the SELinuxModeChanger.
Though, The SELinux Toggler was my developement, it still had some underlying ties to the SelinuxModeChanger. In order to make this "My App", i had to build it up and give it a more apropriate Package Name (com.ibuprophen.selinux).
When it came to the user interface, i felt (based on the simplicity of The Selinux Toggler) that the same user interface would be the best thing to do and carried it over.
IMPORTANT INFORMATION FOR USERS OF "THE SELINUX TOGGLER"
Be sure to follow the steps BEFORE installing The SELinux Switch:
1) Download The SELinux Switch and save it somewhere on your device you can remember.
2) Uninstall The SELinux Toggler then reboot your device.
3) Once the device is booted up, install The SELinux Switch and you're done.
4) (OPTIONAL) If you would like to initially test it out, then set The SELinux Switch to Permissive Mode, then reboot your device. Once the device has booted back up, confirm the change.
***PLEASE NOTE FROM STEP ONE: If you plan to install The SELinux Switch using the Flashable Installer via custom recovery. Then instead of fully rebooting your device, just reboot into your devices custom recovery and install via the flashable Installer and reboot your device (Cleaning the Dalvik Cache right after flashing the installer is encouraged but, not required) and your good to go (you may proceed to step 4 if so desired).
What and why is SELinux Mode Important?
Since the release of Android 4.2 (KitKat) a new security enhancement called SELinux was interlaced within the system and then the Mode was defaulted to “Enforcing”.
Weather this new security measure was good or bad, it resulted in allot of challenges with many Apps that required Root access. So from then on, there have been many workarounds that developers were forced to overcome and adapt to this new security measure for their current and future developments.
Since the SELinux security measure was placed, there also have been many tools and utilities had changed the default SELinux Mode “Enforcing” to “Permissive” and one of those noted (and clever) Developers was an individual who is known as MrBIMC had created the “SELinuxModeChanger”. This app allowed the individual to change the SELinux Mode to and from its “Enforcing” and “Permissive” states.
What does The SELinux Switch do?
Basically, this app can change a devices SELinux State without having to permanently modify the boot script files of the device.
What does The SELinux Switch NOT do?
Again… This app will not make permanent changes to the boot script files!
This app will automatically boot as any app will that is part of the boot sequence. So when a device boots up, the device, by default, will be booted in its default SELinux “Enforcing” Mode. Then once the boot sequence begins launching the auto launching of the apps, this app will then automatically launch and change the devices SELinux Mode that the user last selected for the devices SELinux Mode.
What do I do to use this app?
Just as simple as downloading, installing, opening the app and then select which mode you want the devices SELinux Mode to be (Permissive or Enforcing).
And that's it! Now every time you reboot your device, the app will auto launch (just the same as other apps do) and change the SELinux state to the mode in which you've last selected within the app.
Primary Download Links
The SELinux Switch - Apk Installer via the Android File Host Server
The SELinux Switch - Flashable Zip Installer via the Android File Host Server
Some Issues that may/might be present
- This will be populated/updated as i get a better idea on any issues in time.
Special Mentions/Credits
@Droidriven - For Beta Testing & Providing Valuable Feedback.
@Thebear j koss - For Providing The Dark Theme, Beta Testing & Providing Valuable Feedback.
@ahrion - For Providing The Magisk Information & Screenshot(s)
@Dixon Butz - For Providing The Magisk Information & Screenshot(s)
All the Girls I've Loved Before... LOL!
***The SELinux Switch has just been recognized by The Custom Droid***
The SELinux Switch and I was just recently recognized by The Custom Droid
Please take a look and i hope you enjoy this highlight!
Set SELinux Permissive on Android using The SELinux Switch By @DJBhardwaj {01 February 2019}
***The SELinux Switch Recognized by xda-developers***
The SELinux Switch and I was just recently recognized by xda-developers.com
Please take a look and i hope you enjoy this highlight!
The SELinux Switch is a New Tool for Toggling SELinux Between Enforcing and Permissive By Doug Lych {August 15, 2017}
Click Here If You Would Like To Donate To My Developements
~{Donations Are Appreciated, but Never Necessary...}~
~{Donations Are Appreciated, but Never Necessary...}~
Contributors
Ibuprophen
Source Code: https://github.com/Ibuprophen/SELinuxModeChanger
Version Information
Status: Stable
Current Stable Version: 7.1.4
Stable Release Date: 2021-11-16
Created 2017-08-14
Last Updated 2021-11-16[/CENTER]
Attachments
-
For-Magisk-Using-Magisk-BusyBox.png39.5 KB · Views: 210,190
-
For-Magisk-Using-BusyBox-Stericson_1.png132.5 KB · Views: 209,477
-
For-Magisk-Using-BusyBox-Stericson_2.png146.7 KB · Views: 208,709
-
For-Magisk-Using-BusyBox-Stericson_3.png174.4 KB · Views: 207,364
-
PSA-POPUP.jpg22.4 KB · Views: 206,126
-
01-App-Drawer.jpg193 KB · Views: 205,829
-
02-First-Launch.jpg103.7 KB · Views: 204,873
-
03-Setting-SELinux-Permissive.jpg208.3 KB · Views: 203,078
-
04-Notification-After-Reboot.jpg72.7 KB · Views: 201,193
-
05-Pull-Down-Permissive-Notification.jpg82.3 KB · Views: 199,527
-
06-Example-Device-Permissive.jpg70.2 KB · Views: 181,733
-
07-Setting-SELinux-Enforcing.jpg87.2 KB · Views: 178,364
-
08-Pull-Down-Enforcing-Notification.jpg237.8 KB · Views: 174,997
-
09-Notification-After-Reboot.jpg72.7 KB · Views: 172,336
-
10-Example-Device-Enforcing.jpg203.4 KB · Views: 172,624
Last edited: