yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Ibuprophen:
I deeply apologize for the delay in getting back to you...

I'm just dumbfounded by this because I, honestly, had never seen this issue arise from both my experience nor another member either.

The closest issue, that I can recall, was a minor mistake a member had made shortly after installing the app that resulted in experiencing a similar issue that was easily resolved.

I'll try to explain the reasons the best way I can...

After installing this app, and selecting Permissive Mode, if the device can't/won't go into Permissive Mode, then the command is rejected and nothing was changed.

Even If the Permissive Mode Command was accepted, upon reboot, the devices SELinux State then reverts back to Enforcing Mode until the auto launch sequence for the apps that are set to launch upon boot, then this app will resend the Permissive Mode Command to change the devices SELinux State.

In closing, If the device has/is stuck in Boot or a Bootloop, this would actually be happening before this app had even launched and, technically, the device is still in its default SELinux State.

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! :thumbup:

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

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:
***** QUICK UPDATE *****

I am thinking about closing The SELinux Toggler thread but, I'll be keeping the releases on the Downloads tab of the thread, my File Host Account as well as the Labs Store (with the information on the Labs Store appropriately updated).

I'm also going to be launching a more appropriate Q&A Support thread for continued users of The SELinux Toggler App.

The Official Announcement of the new thread will be made soon followed by the closing of this thread by a Moderator or Administrator.

Thank you all for your time, support and understanding for this development!!!

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

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:
***** CLOSING ANNOUNCEMENT *****

I would like for everyone to please go to the following thread for continued development since The SELinux Toggler development has been discontinued.

[APP][TOOL][4.2+][OFFICIAL]The SELinux Switch by Ibuprophen

After thinking about this a bit further, I've decided to just close this thread and recommend all The SELinux Toggler users to uninstall the app and install The SELinux Switch App as outlined within the OP in the above thread.

I would like to thank everyone for their long standing support, patience and understanding.

I hope to see you in The SELinux Switch thread!!!

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

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] Younex:
I have a .sh script file that can be executed using my default root file manager, it does this :

#!/system/sh
setenforce 0

Is this app's purpose the same ?

Exactly what I was looking for ! I tried an app that supposedly runs init.d at boot but it didn't work...
[Android Apps and Games] Miustone:
[MENTION=4544860]osm0sis[/MENTION] has made a flashable ini.d enabler which works Perfectly for Me and My Users. But I'm not able to find a Script which can set SElinux States.

#!/system/sh
setenforce 0

Has never worked for Me on MM or Nougat (On Stock Firmwares)

#!/sbin/sh
setenforce 0

As Recovery Script does also not work. That is why i was lookin for this new Apk.

I hope [MENTION=4828250]Ibuprophen[/MENTION] can help us! Like i said. That would be a big thing for us...
[Android Apps and Games] Ibuprophen:
According to the OP, this app doesn't make permanent changes to the devices Boot Scripts as reflected in your question.

I really do understand what your asking and i know that there are apps, modules, etc... out there that requires this to be performed for the device to remain in a permanent Permissive Mode for them to perform as they're designed to do but, I really can't help you with that (at least at this point of time).

This app is for those who require the Permissive Mode but, doesn't require it, nor needs it, to be a permanent part of the boot script.

The really wish that I can be of further assistance but, this is indeed a challenge for everyone and I wish you the best of luck!

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] ~El Julio~:
Sorry if it is a dumb suggestion, but iirc there is the Paragon NTFS & HFS+ app I used to use that can set SELinux to permissive at boot.

You may want to have a try : https://play.google.com/store/apps/details?id=com.paragon.mounter
[Android Apps and Games] Ibuprophen:
I never tried that app and it just may have that type of feature but...

That app has partial support for the Android 5.0 and no support for the Android 6.0 and up...

Also, it doesn't have any statements as to it having any features for SELinux Mode Changes either.

If it did reflect anything that has to do with affecting a devices SELinux Mode, then the App would be removed and the Developer could also end up being banned as a Developer for the Play Store.

SELinux is a Security implemented by Google and i know others who got banned for apps that bypass/override specific Security features that Google themselves has implemented.

That is a really shortened version of a much larger story though, i hope i explained it okay.

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] Younex:
Interesting, I never tested on stock so I assumed it worked... I'm running Slim7 rooted with phh's superuser (not sure about BusyBox, I tried to install it long ago but it kept failing)
[Android Apps and Games] ~El Julio~:
Thank you (despite the thumbs up ? ) for the explanation.

Although, I tried it a couple minutes back and it still seems to work (see attached screenshots - Pixel C on 7.1.1 - french, sorry) at boot time (just when exactly? I don't know).

Looks like the "almighty" Google might have not caught that one (yet ?)...
[Android Apps and Games] Miustone:
50% Right! It does work fine on Nougat but You're right about the Play Store Rules. I'm not a B!tch but i'm going to Report this App. The Rules about SElinux are for all Devs the same. You don't push Your App up there and the Original Author of SElinux Changer has also never tried it again after the banishment from Google. Paragon Tech is a German Group, means i do punish My own Nation :laugh: Not that anyone says it was You who reported that App...

Seems like AOSP ROM's have merged some Changes to allow it on such a easy Way... Stock Firmwares are Made by OEM's who don't want that People disable SElinux... Makes Sense or!? :rolleyes:

Anyways, thanks for the share! Looks like it is possible to make SElinux permissive on startup with a App, but i would like to force that on the App from the OP even before the first boot of the System...

Got My Answer from Ibu about that. I will wait :angel:
[Android Apps and Games] Ibuprophen:
If you notice on the OP that it uses BusyBox Binaries in order to operate correctly.

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] Ibuprophen:
Post #30 was moved to Post #2

****UPDATES/CHANGELOG*****
[Android Apps and Games] Doc Franky B.:
FYI

I'm on Note4, MM 6.0.1 Feb patch

Can't get back to enforcing with zip or app.

The app always shows me the permissive toggle.

See my pics pls

Send from Note4 - 6.0.1
[Android Apps and Games] Doc Franky B.:
Deleted
[Android Apps and Games] Ibuprophen:
I think there's a little bit of a language barrier here...

Your stating that you can't get back to Enforcing but your images look like your in Enforcing already.

Can you please clarify a bit more?

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] G4 Man2:
Are there any plans to support the quick settings tile API as a way to quickly toggle selinux modes without using the application interface? If so, would it be possible to have an option to remove the application icon from the quickdrawer altogether? It's an application I open once to set to permissive and then if all is well never touch again, sort of becomes a waste of space.
[Android Apps and Games] barclac:
I tried it on my rooted Nexus 5 and works like a dream, thanks.
[Android Apps and Games] Ibuprophen:
Wow... I never had anyone point something like that out... LOL!

I do understand what you are asking.

If i provide an option like that... Then how are individuals going to be able to get back into the app if needed?

I have the Next Launcher 3D and it provides a way of hiding and un-hiding apps in the app drawer.

I'm sure there are others out there that will do the same thing too.

I really can't think of a way to do that and have an individual get back into it...

When it comes to certain customizations, I have to look at the whole picture from a user's perspective. I've got to look at its functionality and if it really fits in with the app.

This is a simple and easy app and i can't think of any further modifications other than keeping it functional.

I'm sorry and I wish that i could help you out more with this.

Thank You for using the app and I hope that your happy with its performance.

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] G4 Man2:
I believe that having the tile set to toggle the selinux mode on regular press and enter the application interface on long press would work no?
[Android Apps and Games] Emin015:
Very nice job! I remembered that you're the one who helped me get SELinuxModeChanger to work by providing me with a modified zip file for me to flash for Nougat. Keep up the awesome work!
[Android Apps and Games] Ibuprophen:
All you need to do is select the mode and check the box below them. Then just hit your back button and exit the app.

You'll then see an indicator at the top reflecting the mode your on.

That's it... As easy as 1-2-3... LOL!

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] Doc Franky B.:
Thx for your quick reply.

I'm on permissive (in German it calls "zulässig")

I want to change back to enforcing but the app didn't allow / show me that. Enforcing button is gray. Only permissive is showing me.

BTW : Thx for your hard work

.. and, yes i'm an old german guy and I read better English then I write [emoji15] sry for my bad english.

Send from Note4 - 6.0.1
[Android Apps and Games] Ibuprophen:
No apologies needed. I understand completely!

Just to clarify...

Your already on Permissive and when you open the app, and wait a moment, the Enforcing option is not available? And your stuck on Permissive?

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] DarkSJ1998:
Great! Although the original "SELinuxMode​Changer v3.2" app works fine for me on Nougat itself! :D

Using it since I was on LP, then to MM, to 7.0 & now on 7.1.1 :)
[Android Apps and Games] DJBhardwaj:
Great work! Been looking forward to this for a long time now. :)
[Android Apps and Games] image45:
Same here both the original and updated app work fine for myself on Nougat for Wileyfox storm (Kipper ) device.
[Android Apps and Games] :
With the app icon hiding idea... If you need to enter the app you can simply delete the app data in case you need to enter the app (Because the user will delete the preference of the hidden app), or maybe put a dialer code to enter the app.

Now when i look at this... Wow this is a tongue twister lol
[Android Apps and Games] Doc Franky B.:
Yes, that's right

Send from Note4 - 6.0.1
[Android Apps and Games] Ibuprophen:
LOL!!!

I have been pondering a few options regarding the suggestion from [MENTION=4049305]G4 Man2[/MENTION]. Kinda like what some XPosed Modules have as an option to hide the icon from the app drawer and still being able to get in through the XPosed Installer. I can't even do something like that until the great Rovo89 has released the Framework for Nougat because that type of option would leave those who with Nougat in the dark and i want to prevent that. Anyway, this would require some more pondering for a possible future release.

It was a good idea though...

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] Ibuprophen:
I never had an issue like that come up. Even when I was releasing the flashable zips in the SELinuxModeChanger thread.

You've got me in a thought process and without a thought left LOL!

Until I can think of an idea, to add to my current list, on another release version, I would have to recommend one of a few ideas...

If you know how to freeze an app then freeze it and restart.

The Mode changes isn't permanently in the boot scripts so freezing it will prevent it from automatically launching the app upon boot up and the SELinux Mode won't be changed.

Then when you do want to use the app, just unfreeze it and reboot.

There are many app tools/utilities out there that can do this. I like the Root Uninstaller app. It's pretty powerful and can do allot of things as well as freezing any app (even a system app) but, that's one out of many.

Please let me know if you have any further questions.

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] Doc Franky B.:
No question atm, yust FYI

That's it after I frozen your app. See my pic when interested.

All good for me [emoji4]
[Android Apps and Games] Ibuprophen:
I really appreciate your patience regarding this temporary workaround solution.

Your issue is one of the priorities to work out towards the (hopefully) next release.

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] droideastcoast:
Did not work on my Canadian Note4 - N910W8 still says "enforcing" yes busybox is installed and up to date.
[Android Apps and Games] SnakeFist:
Running CM13 6.0.1 on the nexus 7 2013 and it will change to permissive before reboot but after reboot the notification says it is changed but in settings it's back to enforcing.
[Android Apps and Games] 5mohsen5:
for set selinux to permissive during boot time, you must change the kernel boot.img

this app just set it to permissive after boot time.
[Android Apps and Games] SnakeFist:
I'm using Elemental X kernel.
[Android Apps and Games] Ibuprophen:
Post #56 was moved to Post #3

*****ANNOUNCEMENT*****
[Android Apps and Games] Ibuprophen:
Post #58 was moved to Post #2

****UPDATES/CHANGELOG*****
[Android Apps and Games] SnakeFist:
Here is the log from my tablet. If it's not the right one I'll redo it through adb.
[Android Apps and Games] Ibuprophen:
Okay...

I really have no idea what the whole story is. You really need to paint a picture for me.

I have no idea what you have, what you did already, what your doing or trying to do and what prompted whatever the attachment is stating...

I can't even state weather or not the attachment is sufficient enough without knowing the above information...

I had stated this very thing only a few posts back as you can see here:

https://xdaforums.com/showpost.php?p=71511713&postcount=3

Thank You for Understanding!

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] Doc Franky B.:
Hi Ibuprofen

YUST FYI

My problem with selinux is not from SELinuxtoggler, It's probably an magisk issue

Take a look for more Info

https://github.com/topjohnwu/Magisk/issues/125

Send from Note4 - 6.0.1
[Android Apps and Games] Ibuprophen:
It's funny how i don't see this post of yours using the browser but, I see it in the app.

I believe that you are playing with the Dark Arts!!!

LMAO!!!

I took a look at the Github link and now i don't need to worry about the issue when it comes to Magisk... At least for the time being anyway... LOL!!!

Thank You Very Much for Bringing this to my attention.

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] Ibuprophen:
*** ANNOUNCEMENT ***

For those who can see this announcement...

There seems to be an XDA issue (of course) affecting my thread and some others.

The issue has been reported, confirmed, and submitted to the XDA Server Guys.

I'm going to lay low on the thread a bit until it's been resolved. I'll still try monitoring the thread as best as I can because I can't always see all the posts... Kinda like some of the posts are playing "hide and seek".

I'll let you all know when, hopefully soon, all is well.

Thank You For your Patience and Understanding!

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] Ibuprophen:
I was just notified that they had resolved the issue.

I can see all the posts now! YAY!!!

I hope it doesn't happen again.

Thank You All for your Patience.

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] Ibuprophen:
Just an FYI...

I'm adding an item on my to-do list...

- Workaround for Magisk.

No guarantees but, I'll be looking for a way for the SELinuxToggler to work with Magisk.

As I've stated before, I'm not the very familiar with Magisk but, I'm looking into it.

I'll keep you all posted.

Thanks!

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] ahrion:
Magisk uses pseudo enforcing which means that it automatically toggles from permissive to enforcing after boot.

This is a feature not a bug.
[Android Apps and Games] dirtyreturn:
Hey [MENTION=4828250]Ibuprophen[/MENTION] -

The rom I'm on has a toggle to switch SElinux to enforce/permissive but it seems not to stick.

Will this app override that setting?
[Android Apps and Games] Ibuprophen:
***** ANNOUNCEMENT *****

Please let me elaborate the best i can regarding the use of the SELinuxToggler app while using Magisk...

A special thanks to [MENTION=222916]Doc Franky B[/MENTION] who had provided me with the following Github link:

Magisk v11.6 reporting Permissive SELinux and ro.build.selinux #125

This provided me with the reason why individuals were having issues with the SELinux in Magisk v11.6.

I'll try to explain the best i can via text (please go to that Github link for more information)...

It seems as though Magisk v11.6 sets its SELinux path/directory for Mode changes via its own custom Magisk path/directory (though this has alot more specifics to it) that has been causing issues with a handful of devices but, primarily, for the Samsung devices due to, primarily, passing SafetyNet.

Now... those who use Magisk and are wanting to use the SELinuxToggler app, from what I've seen, have had between (all estimated in personal approximation) a 50%-60% +/- success with the SELinuxToggler app.

The big question I've been receiving within the thread and PM:

"Will the SELinuxToggler do any harm to my device and/or Magisk if i decided to use/try it?"

Answer:

"Absolutely and Positively no harm will come to your device and/or anything installed within your device!!!"

Please let me just point out something that is also outlined within the OP...

The SELinuxToggler app, itself, does not permanently alter anything to your system.

If you install the app and, no matter if it works or not, you just decide that you no longer want to use the app?

Then all you have to do a traditional uninstallation of the app (in the same manner you do with any other app), reboot your device and BAM! your device is back to it's own self.

Now let me just add that, though, the app itself doesn't do any harm... Anything negative that resulted in what was performed, altered, deleted, installed, etc... While your device was in a Permissive state was/is, in no way at all the fault of the app because the app didn't perform those actions. If the user is not responsible for learning and understanding what is going on with and in the device then the user should not be performing them. Always do your homework, backup, ask questions, etc... Before doing anything that may or may not do harm to your device.

I'll always provide support in every way that I can but, ultimately, the user is responsible for their own device.

Okay Player's... Let's PLAY BALL!!!!

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] Ibuprophen:
The answer to your question is as follows:

The app doesn't override anything. You can try this app to see if it can accomplish what is already installed that is intended to alter the SELinux Mode and failing to do so.

If the SELinuxToggler App doesn't work in doing so then just uninstall it and reboot.

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] Ibuprophen:
*** ANNOUNCEMENT/UPDATE ***

The following was just brought to my attention...

The link below reflects another issue regarding SELinux issues that Magisk is also currently addressing:

Magisk v11.* failing Safetynet tests on Phronesis N7 rom for Note 3 (SM-N9005) #132

I may have to place the recently added Magisk to-do on my list on hold until i can see what and how these Magisk issues are addressed.

This decision is based on the fact that, if i do create a version of the SELinuxToggler to work with Magisk, I'll be taking a chance that it will be undone as a result of how and what is done with Magisk to address the SELinux issues.

But, I'm not stating that it's a forgotten feature for improving the SELinuxToggler.

We'll have to wait and see...

Besides that, i may be releasing another update any day now with some fixes from my to-do list.

I'm trying to hack away at all the minor fixes and improvements on my list though, it's not a huge list LOL!!!

I'll keep you all posted.

Thanks a bunch!

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] Ibuprophen:
I gotta say that I'm working on wrapping up the next release today and a friend of mine stopped by.

Instead of listening to me by downloading the SELinuxToggler app, he decided to grab the app from my PC and installed it. After he rebooted his device, it got stuck in the boot screen.

So I took a look at it and after a while i had asked him a few questions, that's when I realized that the dope grabbed an incomplete working copy of the new release that I wasn't done with and now he's got to redo his device.

I must have laughed for about an hour! I just couldn't believe that he had done that. What a maroon!!! LMAO!!!

I just have to spread the word...

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***
[Android Apps and Games] Ibuprophen:
Just got done with the SELinuxToggler update and will be testing it out tomorrow and if all is well then I'll be releasing it.

Oh boy... I also got done helping out an XDA member who has TWRP but, also has the stock ROM in his device and had trouble disabling Knox because he can't use the SELinuxToggler due to Knox preventing the Selinux Mode from changing.

So i just provided him with a flashable file for TWRP that has the set of commands to disable Knox. I'm hoping that it works out.

Oh boy what a day...

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...

***PLZ THANK ME WITH A THUMBS UP***