yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] YamiYukiSenpai:
Just want to inform you that this doesn't work.
[Android Apps and Games] fobtob387:
The alternative mirrors in the OP work fine, this is to be expected from a 4 year old OP.
[Android Apps and Games] victorsv:
Is this application still developed?

I own a Moto G7 Plus (XT1965-3) with TWRP (3.5.2_9-0-lake), LineageOS 18.1 and MagiskHide (23.0).

I wanted to use the system as permissive in order to use "Viper4Andriod"!
[Android Apps and Games] m0han:
you might like to read this post and try the attached ViperFX_Android11 file: https://xdaforums.com/t/magisk-general-support-discussion.3432382/post-85163825
[Android Apps and Games] Ibuprophen:
A long awaited update to the The SeLinux Switch v7.1.4 b714 was just pushed.

Changes reflected on the OP & Changelog.

Never perfect and always a work in progress.

Please Enjoy!

~~~~~~~~~~~~~~~

Unless asked to do so, PLEASE don't PM me regarding support. [Sent from the room next door.]
[Android Apps and Games] ecompton59:
love this app thanks without this i couldn't do audio and network mods
[Android Apps and Games] Ibuprophen:
I do appreciate your support with this app. It's a development that's simple and easy to use for those who understand the SELinux regarding how to use it, why it's sometimes necessary with a select number of certain situations/devices.

This is one app I currently have no plans/reason to discontinue.

I've been involved with numerous other contributions (like the Classic/Open Shell Start menu software to name one) that does take time too.

Please Enjoy! :-)

~~~~~~~~~~~~~~~

Unless asked to do so, PLEASE don't PM me regarding support. [Sent from the room next door.]
[Android Apps and Games] Droidriven:
Glad to see you're still around and glad to see that you're keeping this development alive.
[Android Apps and Games] Ibuprophen:
Thank you my friend! :-)

This and 1 other app development I've got no current plans to discontinue (along with the the Device Specific Threads that still applies), but there's a few developments/threads that I plan to discontinue due to time and such.

I still pop in every so often and take a look at various items and such (as well as showing others that I'm still alive and kicking... LOL!).

~~~~~~~~~~~~~~~

Unless asked to do so, PLEASE don't PM me regarding support. [Sent from the room next door.]
[Android Apps and Games] kecodoc:
Someone please help.With the seilinux switch can I install an application that requires seilinux permission to open it in On mode then switch it off for security ?

Sorry I don't understand seilinux
[Android Apps and Games] kecodoc:
Can someone please help me with this app?After using the application that requires seilinux on, I switch back to seilinux of this, does this affect system security ?
[Android Apps and Games] Ibuprophen:
This app doesn't specifically perform this behavior, but you might be able to locate another app that specializes in tasks like this.

I'm not sure, but there's an app called "MacroDroid" that may be able to perform this specific task (as I haven't used that app in quite some time. The following link is to it via the Play Store.

MacroDroid - Device Automation - Apps on Google Play

Number one automation app for Android - Over 10 million Downloads.

play.google.com

Good Luck! :-D

~~~~~~~~~~~~~~~

Unless asked to do so, PLEASE don't PM me regarding support. [Sent from the room next door.]
[Android Apps and Games] kecodoc:
thank you very much

i hope in the future there will be an app that grants seilinux permissions for a specific app
[Android Apps and Games] Ibuprophen:
The devices ability to change its SELinux State is determined by a kernel in your device that gives it the ability to change it's SELinux State via your devices sepolicy (as determined by that kernel which dictates whether or not this policy change can happen).

Please be sure that your device fits the prerequisites outlined on the OP & those within the Posts after it.

Good Luck! :-D

~~~~~~~~~~~~~~~

Unless asked to do so, PLEASE don't PM me regarding support. [Sent from the room next door.]
[Android Apps and Games] kecodoc:
Thank you so much for explaining it to me
[Android Apps and Games] ecompton59:
Anyone tried this on Android 12. I have 8t about to try I bricked updating from 11 to 12 because of wrong exposed
[Android Apps and Games] ecompton59:
it works on Android 12 on OnePlus 8t. wont brick phone but doesn't apply at boot you need to go back in app
[Android Apps and Games] cimon666:
how do i know if my policy can change and is there any work around without flashing a whole kernel that supports it ..thank you in advance
[Android Apps and Games] Ibuprophen:
As I've previously stated and will try to do so again slightly differently.

The devices SELinux State is determined by a kernel in your device. That Kernel is what provides the ability to change it's SELinux State.

The OEM provides the Kernel to, by default, maintain its Enforcement of the SELinux State. This is why another Kernel is required that will allow its SELinux State the ability to change.

This app is only something that helps to change the SELinux State on devices that has this Kernel already that provides this ability.

I hope I had explained this okay via text.

Good Luck! :-D

~~~~~~~~~~~~~~~

Unless asked to do so, PLEASE don't PM me regarding support. [Sent from the room next door.]
[Android Apps and Games] Droidriven:
I don't think it works like that. It's either everything in permissive mode system-wide or not at all because it functions at the kernel level, not system software or user software level.
[Android Apps and Games] Humaxxx:
Hello, is this app also capable to set selinux from permissive to enforcing?

I have tried it on LOS18 on Galaxy S6
[Android Apps and Games] zogoibi:
Hi @Ibuprophen and thanks for your work. However, the download links give an error on cloudflare. Is this temporary or the files aren't there any more?
[Android Apps and Games] pendor24:
hello

no server is up to date.

xda this train for 2 years. or are the good old days of sharing and mutual aid.

i can provide version 6.apk

if necessary .
[Android Apps and Games] Ibuprophen:
I see that the AFH Server is having some type of technical difficulties.

I just emailed Alex (AFH Admin) regarding this and I'll pass along any information he sends my way (hopefully real soon).

~Ibuprophen
[Android Apps and Games] zogoibi:
Is it ok to "disable" the Selinux switch app (so it doesn't show in my drawer) once I set my desired permissive/restrictive mode, or does it need to be activated at all times in order to work? I assume the former holds true for as long as I do not reboot the phone, but I don't know if after a reboot it keeps the set status or reverts back to restrictive.
[Android Apps and Games] pendor24:
Hello

it remains as defined by you.
[Android Apps and Games] Quayron:
having twrp /sac23 on s20U rooted magisk

trying to install this app and change my SELinux permission so i fallow steps except

-2) Uninstall The SELinux Toggler then reboot your device.

not sure how to do it did google search could not figure it out how to

but did the rest and app is actually installed,

but when i try to tocuh button changes permission my phone freezes and reboots,

anybody know what to do pls ?
[Android Apps and Games] pendor24:
hi you can also use the zip

Magisk_SELinux_Manager-v1.0.5.zip
[Android Apps and Games] Ibuprophen:
Just an FYI that I haven't forgotten about the development and I do plan to push a periodic update for the Switch app sometime soon. Been very busy.

Happy/Merry Christmahannukwanzadan Everyone!

~~~~~~~~~~~~~~~

Unless asked to do so, PLEASE don't PM me regarding support. [Sent from the room next door.]
[Android Apps and Games] Da_Tall_Man:
Hello Ibuprofen

Am trying out your app, but sadly I did not get it to work.

Phone is a HTC one M8, model M8_UL, boot version 3.19, software version 6.13.206.5 (this is the latest from 2015).

Reasons to try out your app is that I want to install Android 13 on my phone but this ROM comes with Selinux permissive and I would prefer it to be enforcing: https://xdaforums.com/t/rom-13-0-unofficial-m8-m8d-lineageos-20-0-beta.4496405/

Phone shows a black screen and gets very hot.

Is there anything I can try/test/log?
[Android Apps and Games] marisaleh:
I am having the same problem

I installed it on a rooted Umidigi A13 Pro Max 5G with stock android 12

It installed fine, but it doesn't work

It is not changing the mode to permissive

please help
[Android Apps and Games] ale5000:
Hi,

the error message is unreadable.

Is it possible to improve it?

View attachment 5883843
[Android Apps and Games] EAZY BLACK:
Do you know why every restart selinux is back to permissive from enforcing unless i give the app forever root access? because giving once doesnt work after restart
[Android Apps and Games] ItsIgnacioPortal:
I can confirm that v7.1.4 works in LineageOS 19.0 (Android 12) :)
[Android Apps and Games] ecompton59:
working on OnePlus 8t on 13.1 helped with Dolby qnd viper install thanks again Ibuprophen.
[Android Apps and Games] Ibuprophen:
I've noticed postings regarding the App not working and all I can state is that those individuals really should take another look at the prerequisites/requirements outlined in the OP & the few posts thereafter.

Thank you very much for your time, patience and understanding! :-)

~Ibuprophen
[Android Apps and Games] Ibuprophen:
Have you ever received one of those Google Security Alerts regarding Harmful Apps after installing The SELinux Switch?

~~~~~~~~~~~~~~~

I Am The Egg Man,

They Are The Egg Men.

I Am The Walrus!

Coo Coo Cachoo!

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Android Apps and Games] Fe Mike:
Sorry just saw your post, yes both initially and every time I go into playstore to update my apps there is a notice on top of screen.
[Android Apps and Games] Ibuprophen:
Ahhhh... I know why it's not automatically launching now.

That's the Google's PSA Alert. This is preventing the app from launching upon boot because The SELinux Switch app affects the devices SELinux State and as long as that specific Google security feature is ON, it's preventing the app from working.

Post #5, on this thread, has the instructions regarding the PSA Alerts...

INSTRUCTIONS FOR PSA ALERTS

Once it's disabled, then relaunch the app, set the desired SELinux State, then reboot the device and it should work.

From time to time, the security feature gets re-enabled and it has to be disabled again.

~~~~~~~~~~~~~~~

I Am The Egg Man,

They Are The Egg Men.

I Am The Walrus!

Coo Coo Cachoo!

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Android Apps and Games] Fe Mike:
Thank you much, that was my issue!
[Android Apps and Games] Ibuprophen:
I had to take a step back for a moment and then that specific question popped into my head to ask you.

It's been a while since someone had a similar issue with the Toggler app and the light bulb came back on in my head.

LMAO!!! :thumbup:

~~~~~~~~~~~~~~~

I Am The Egg Man,

They Are The Egg Men.

I Am The Walrus!

Coo Coo Cachoo!

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Android Apps and Games] Ibuprophen:
I just wanted to stop by the thread to say Hello and that I'm still here.

Please let me know if you have any questions or concerns.

Thank you ALL so much!

~~~~~~~~~~~~~~~

I Am The Egg Man,

They Are The Egg Men.

I Am The Walrus!

Coo Coo Cachoo!

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Android Apps and Games] Ibuprophen:
***** QUESTION REGARDING OREO *****

I would like to know if i can get a confirmation regarding The SELinux Switch App working on Android O (aka Oreo).

I can only, personally, confirm up to Nougat and, when it comes to the Oreo, i can only confirm it using the Android Studios Virtual device (as well as the lack of anyone reporting any issues with the Oreo either).

Thank you all very much and please let me know if there is any questions or concerns.

~~~~~~~~~~~~~~~

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Android Apps and Games] phaino00:
Working perfectly on factory image of Oreo.
[Android Apps and Games] Ibuprophen:
Thank you very much!

A friend of mine asked me, on a phone call, if the app was actually confirmed working on the Android O and I was speechless and had to laugh because I never thought of just simply asking any of the app users.

This was the reason behind the last question and your answer was very valuable.

Hopefully there's more members with the Android O who can confirm this too.

I'm not looking for a zillion confirmations but, a smart handful would be very helpful.

Thanks a Bunch!

~~~~~~~~~~~~~~~

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Android Apps and Games] alecxs:
Hi,

after several tries, finally reading the whole thread... please.. it would be nice to inform people on FIRST PAGE, that this is only working for custom roms and kernel with SELinux Development mode is required.

What does The SELinux Switch NOT do?

- does not support Stock ROM

- does not change the kernel / boot image

Apparently Google has removed the CONFIG_SECURITY_SELINUX_DEVELOP kernel flag from many of their Stock kernels

(btw there is still that little typo in notification "Device Notified for SELinux Permisive." - character "s" lost)

Looking forward to see a solution one day :)
[Android Apps and Games] Ibuprophen:
This is working on many rooted stock ROM devices with the Prerequisites met.

With that stated, it doesn't work on all stock ROM's either.

I should emphasize this a bit better on the OP too...

Thank you very much for your input!

~~~~~~~~~~~~~~~

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Android Apps and Games] DJBhardwaj:
Are you getting the SELinux mode change notification after you switch to Permissive or Enforcing? I am not. Also, been using Oreo for a month now. But never noticed that Google pulled off the SELinux status display from Settings > System > About phone.
[Android Apps and Games] phaino00:
I receive a notification at boot up. I have notification checked within the app. It does appear Google removed that SE Linux status display.

Intermittently, it switches back to enforcing mode. Have not noticed a pattern to identify what causes this.

At the end of the day, if V4A is working, I know it's in permissive mode. ?
[Android Apps and Games] DJBhardwaj:
Yeah. Thanks for the reply. Ultimately it does get the work done. Hope there's more input to why they removed the SELinux status view from the Settings.

Thanks again. :)
[Android Apps and Games] Ibuprophen:
[MENTION=3097488]phaino00[/MENTION] & [MENTION=3998397]DJBhardwaj[/MENTION]...

I'm going to attempt to answer all your questions in one response the best i can as well as inject some additional information so there's no confusions regarding those members who use Magisk.

This is a bit complex depending on what is being used, set and how the status is being checked.

Regarding the Oreo's system information for reflecting the SELinux State. I am not sure when and why that was removed since I had no clue that it was. There's apps like Root Essentials and AIDA64 that can provide the devices SELinux State and they are very good apps though there's others out there that also can do this but, i only mentioned those two since I do use them.

Regarding Google's PSA Warning. When the PSA Warning pops up and you ignore or tell it not to alert you any longer, even after setting the Permissive Mode on the Switch app, Google's PSA already stopped the Switch app. What's needed to be done is for the user to go through the steps on this threads Post #5 "INSTRUCTIONS FOR PSA ALERTS" and then afterwards reopen The SELinux Switch app and set it to the Desired SELinux State again and it should be good to go from there. Keep in mind that sometimes (I don't see it much at all) Google will turn that security feature back on automatically and the steps from Post #5 may need to be performed again.

A caveat for those who use Magisk/Magisk Hide and its handling of its "Pseudo SELinux". I'm just going to paste the words from one of the Magisk threads because i don't believe that I can state this any better.

"If the SELinux state is permissive, Magisk Hide will hide it (by setting different permissions for /sys/fs/selinux/enforce and /sys/fs/selinux/policy files) or it will activate pseudo-enforced mode (It works by making SELinux policies permissive with sepolicy-inject or magiskpolicy, depending on the version of Magisk you're using and switching back to SELinux Enforcing mode once that process has been finished)"

I hope that I had explained this okay via text... :)

Please let me know if you have any further questions or concerns.

Thank you very much!

~~~~~~~~~~~~~~~

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Android Apps and Games] DJBhardwaj:
Thank you for the response :)

I checked with AIDA64 and then with Root Essentials. But it doesn't mention there either. I believe Google has completely removed the code that fetched the SELinux status and since these apps may be using the same method, they are not able to find it either.
[Android Apps and Games] Ibuprophen:
***** FEEDBACK NEEDED *****

I've been debating about a possible "Widget" for The SELinux Switch app to either implement it as part of the app OR as a separate add-on like app.

The app already has some Widget features implemented within it but, it isn't a part of the manifest build. I may just go with working on implementing it within the app but, it all depends on some factors that I'll have to weigh in on.

What I'm asking for, from the apps users, is if you would like to have a Widget feature for the app and is this something that you could use (or be interested in) having. I just don't want to really begin a project like this and it not be wanted/needed by other users.

I plan to get going on a few items regarding compatibility but, before I do (while I'm working on it), if there is an interest in a Widget feature, i can try and work on that at the same time.

Thank you very much for your time and understanding! :)

~~~~~~~~~~~~~~~

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Android Apps and Games] Zerikwan:
Not needed for me. But hey, you can make a poll for this :D
[Android Apps and Games] DJBhardwaj:
Thank you [MENTION=4828250]Ibuprophen[/MENTION]. Absolutely love your work since the SELinuxToggler. Your app is the major reason for a working V4A installation on my 6P running Oreo. :)
[Android Apps and Games] Ibuprophen:
Not a problem my friend! :D

To be honest, I've never used V4A and though I sometimes read the thread a bit, I'm really not extremely familiar with it's inner workings but, I do understand it's function.

When it comes to Magisk, even though I still never had the need to use it, i was forced to do a little homework as well as valuable member feedback to obtain some type of working knowledge and understanding of it because it affected the use of my app for those users and helped me help them out.

I don't recall ever having a situation for the V4A as I did with the Magisk.

Well thanks for the article!

~~~~~~~~~~~~~~~

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Android Apps and Games] _Sherrif:
Good idea, but I would not need it enough to use a widget. I run Permissive

Also, congrats on the write up!!! :good: Nice to see this app recognized for the helpful tool it is....
[Android Apps and Games] Ibuprophen:
Thank you! :D

I was thinking the same thing too which is why I asked for feedback first before I was to commit to this.

It's not an extremely difficult job and maybe I'll do it and, if the user wanted to, they could just add it.

Widgets are present for many apps without individuals knowing it because it's not something that's added by default. I'll just be patient with some additional feedback first.

~~~~~~~~~~~~~~~

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Android Apps and Games] scacio:
Sorry I'm not quite sure about the requirements for installing your app. Do I need BusyBox installed? My device is rooted with Magisk.

Thanks in advance :)
[Android Apps and Games] Ibuprophen:
Did you take a look at the following Post on this thread?

https://xdaforums.com/showpost.php?p=73402878&postcount=4

It is specific for Magisk users to use this app. Please read it carefully.

Please let me know if you have any further questions or concerns.

~~~~~~~~~~~~~~~

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Android Apps and Games] scacio:
Yes I did read the post, yet I still am a little confused since it seems to me that it assumes Magisk users also have BusyBox installed.

Am I missing something?

Thanks for the quick reply :)
[Android Apps and Games] Ibuprophen:
Magisk has its own BusyBox (as seen on the screenshots there).

Some users prefer to use a separate BusyBox app for managing the BusyBox Binaries.

Yes... The BusyBox Binaries are required for using The SELinux Switch app because it uses one or more of those Binaries to work.

~~~~~~~~~~~~~~~

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Android Apps and Games] scacio:
Now I get it, thanks a lot for your help :)
[Android Apps and Games] Sivabalan:
Sorry for the NOOB question. Does this app works in Android O?? Because in my oneplus 3 running openbeta 25, Am able to set permissive mode using this app but after a reboot the SELinux setting reverts back to enforcing mode and the app doent seems to be running during startup of the device.

Thanks.
[Android Apps and Games] Ibuprophen:
I've got a feeling that you had received a Google PSA Warning sometime after installing the app.

Am i correct?

~~~~~~~~~~~~~~~

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Android Apps and Games] Sivabalan:
No I didn't.
[Android Apps and Games] paed808:
SELinuxModeChanger has been updated.
[Android Apps and Games] Ibuprophen:
I apologize for the delay in getting back to you.

Go ahead and perform the steps in Post #4 (PSA Alert) of this thread and, after that's done, reopen The SELinux Switch app again and set it up to see if that helps.

If you look back a bit, there's a member who was successful after using Viper4android (V4A).

I'm curious to know if this an option that can also work for you?

I am still working on the Switch app to see what I can do on a few areas.

The members are well aware of this.

I've seen it fail for so many as reflected within the XDA Forum as well as being reflected outside of the XDA Forum too.

You'll also notice that, within that thread as well as on Github, the issues/problems that members are experiencing haven't even been acknowledged by the developer and, again, the developer had disappeared.

I tried it a while ago and it worked sporadically for me. I just went back to my Development and do the best that I can to provide the guidance and support the members need as well as learn from the members too.

Thank you very much for all of your time, patience and understanding with my developments! :)

~~~~~~~~~~~~~~~

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE