yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Ibuprophen:
Thank you very much for reminding me to post the Magisk and PSA information! :cool:

Please take a look at the following (Post #3) regarding Magisk:

INSTRUCTIONS FOR MAGISK/MAGISK HIDE USERS by Ibuprophen

I had taken a look at the site...

It looks to me like their information was based on the Flashable Zip only.

Also, the score looks like it reflects on the fact that it involves the SELinux State based upon the permissions that the app requires for Root and SELinux.

I'm not surprised at all with the results because this app is extremely helpful only to those who knows WHAT the app does as well as HOW to use it and, importantly, using it RESPONSIBLY.

Thank you anyway for the information.

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

I Am The Egg Man,

They Are The Egg Men.

I Am The Walrus!

Coo Coo Cachoo!
[Android Apps and Games] bayad:
Thank you for this great work but it's not working on my Samsung Galaxy A9 Pro A9100 :(

I'm on custom rom with enforcing selinux. When I use The Selinux Switch, I can verify that it is working but when I reboot my device, the selinux returns to its enforcing position.

Can you make a fix please ?
[Android Apps and Games] Ibuprophen:
Please read the following information on the OP:

"What does The SELinux Switch NOT do?"

"What do I do to use this app?"

Thank you :)

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

I Am The Egg Man,

They Are The Egg Men.

I Am The Walrus!

Coo Coo Cachoo!
[Android Apps and Games] Ibuprophen:
* A LITTLE HELP FROM MY FRIENDS... *

Sorry for the cheesy title... LMAO! :)

I've noticed 2 primary items that I'm hoping for some member assistance with...

1) The SELinux Switch App has increasingly been used as a part of various other developments (in one way or another) and though i don't mind this at all and am very happy that it has been working out for them but, I've noticed that a majority of them don't refer to this thread regarding support for this specific app.

I'm not looking for glory and even don't mind my not being listed as this apps developer but, providing a link to this thread for support regarding The SELinux Switch is important to both the user and myself.

2) I'm still seeing The SELinux Toggler being provided as part of other developments as well. This is fine with me but, those developers/members should be made aware of that app being Discontinued.

What I'm asking from the supporters here is if you run into any of those threads in question (and a little assistance) with making one and/or both the points known within those developments.

I'm not looking for a spam like announcement but, just a little heads up for those members/developers if you happen to notice this.

I've posted some updates on some of the threads but, the increasing use would make it allot of work for me to search for the various ways this app (and my member name) is being listed in them.

I'm not complaining about it but, it's only fair for the users of those developments to know this information.

I hope i had explained it okay via text... :)

Thank you all very much and please let me know if you have 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] surajloharia:
will do for sure
[Android Apps and Games] Thebear j koss:
Credit should always be given where credit is due. Nothing wrong with wanting proper credit given, and also helps get clear and correct support from the app dev and not just any user who may not give the best advice.
[Android Apps and Games] Ibuprophen:
I agree with you completely! :thumbup:

Something had prompted me to do a quick search and i had seen what I had posted.

The primary issue that I have is really that if someone had a negative experience with the app could potentially reflect badly on this development if the member didn't know where to obtain support. I just didn't want to have posts out there recommending against this app and i just wanted to try to prevent this.

Also, it had just occurred to me, how the app is being implemented. A bad implementation can encompass various things like app updates being reflected on both the development and, if the member uses the Labs Store, will the app even be reflected for updates too (as well as other possible issues).

Though i try to keep this in check, i know that there's developments out there that i don't know about. This is why I asked for members to help spread the word on those threads that are unaware of this.

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

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] martyfender:
[MENTION=4828250]Ibuprophen[/MENTION] I would like to wish you a happy New Year!

This is such a great app which has worked flawlessly for me since I have been using it for the past few months.

At least until I started testing Magisk 15.1 on two of my older devices.

All 4 of the devices are Intel x86, Nextbook Ares 8A tablets with Android 6.0.1. with Android Kernel version 3.14.64-x86_64.

As far as I can tell the hardware is the same on all of them, but have different ROM versions and IFWI (Intel Firmware Interface) versions on them.

ROM versions are v1.1.1, V1.2.0, V2.1.5 and finally the newest, V3.0.4.

Months ago, when I got the first device then created my Nextbook Ares 8A root thread, I started with vampirefo's custom TWRP recovery for it and have used SuperSu up until now. I had tested Magisk months ago with older versions of it, but in less than 24hr. it would loose root, so I reverted eventually to Supersu systemless versions.

now that I have extra devices I decided to test Magisk on two of the older versions of the tablet, since CCMT has been in the wind for many months.

I first flashed Magisk V15 and that was a disaster since it did not properly patch my original boot.img. Topjohnwu was quick to fix it though in V15.1 and after 2 days, it is working very well, indeed, (so far).

With SELinux Switcher install, once again, on fresh Rom installs on both tablets I have run into a potential problem.

Once I launch it, I grant it su rights and then set it to permissive.

When I check it though in the only Root check app I use, Jrummy's Root Check, a slightly older version, 3.4.3 that came out before Nougat was released that seems to work better on my devices, it shows SELinux is enforcing.

When I open a terminal and type su, enter then enter busybox getenforce, the terminal shows it as permissive.

Do you think it is just misreporting it or should I try some other root check app?

I like this because it not only reports that busybox is installed but what version, also. Do you have any recommendation for another root check app and do you believe it could be enforcing?

In the mean time, I just thought of something, I will once again let the playstore update JR root check to the lastest version, to see if it was a bug and if it was fixed.

UPDATE:

Well, sorry it must have been a bug, because I updated Jrummy root check and it now shows as disabled.

The older version used with SuperSu did not do this. It's a mystery to me?

Thanks again
[Android Apps and Games] Ibuprophen:
[MENTION=8126387]martyfender[/MENTION], Thank you for your time with this valuable information I hope will help others.

A thought to keep in mind is that I do believe that Magisk uses a Pseudo like way for handling a devices SELinux State and there's been members who has previously expressed that their device will reflect being in Enforcing Mode when they are actually in Permissive Mode. This isn't the case for all Magisk users but, there are instances based on device and other aspects.

I'm happy that it's working out for you and I hope you and yours has a Happy New Year too!

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

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] Jeroen1000:
Thanks for this tool! And also an extra thumbs up for posting how to find which status SELINUX is currently in. It appears, I cannot check this on the OnePlus5T. The info is no longer present in the "About Phone" menu.
[Android Apps and Games] Vipauer:
Thanks for this tool too... Nexus 5X with official Android 8.1 January patch works very well :good:
[Android Apps and Games] tcat007:
You got this too work on your 5t? I get apk blocked when I try to install from APK.
[Android Apps and Games] Ibuprophen:
That looks like a Google Play Protect preventing the app from installing because The SELinux Switch app affects the devices SELinux State and, as long as that specific Google security feature is ON, it'll prevent the app from installing/working.

Please see Post #5, on this thread, for the instructions regarding the PSA Alerts...

INSTRUCTIONS FOR PSA ALERTS

Once it's disabled, then try installing 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.

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] tcat007:
Thank you. Turns out I hit OK rather than Install anyway. I thought the ok was an ok to install anyway. Installed fine. I do get the ps warning, so I'll check out your great advice. Viper started working!
[Android Apps and Games] Ibuprophen:
A funny thing happened earlier...

A friend of mine came over to my house and asked me about the last Switch update and I took a look at what was wrong.

It turned out that the switch app was installed as a system app and a user app and i didn't get a chance to see what prompted this but, had resulted in him having to redo the whole device.

I can't get into the whole interaction since it would take a novel to explain but, all i can express to you is as follows...

Please let me know if any other developments that include The SELinux Switch App as a system app.

Though it will work, it will be misleading to members to think that the updates provided by myself will update the app but, will more than likely create a huge headache if it is already installed as a system app as well as a user app together.

This can, potentially, be a huge issue by simply misleading to make a user think that it's the app itself when it's actually a developer not providing the needed information by informing others of this in the first place. Also, the updates are not set up to install and/or update the Switch app as a system app in the first place.

I don't know who, what, where, why, when, etc... prompted any developer to do this but, if a member has this issue, it just makes it a bit more challenging to figure out that this was the case.

I'm just spreading the word as a precaution AND awareness to everyone.

Thank you all for your time and understanding with this and, as always, please let me know if you have 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] martyfender:
Can you please clarify what prompted your friend to install it as a system app, in the first place?

The only user app I have normally made a system app is Greenify, as I have not seen any benefit to doing it with any other user app have installed on my devices.

an app I use all of the time, Apps2Sd allows me to do this, but I have not done so as I have not seen any clear evidence to support the practice for the user apps I use.

If you have a link to support it , I would appreciate if you would share it.

Thank You
[Android Apps and Games] Jeroen1000:
You need to allow "Unknown sources" in the "Security & lock screen" menu (you can find it under settings).
[Android Apps and Games] tcat007:
That was checked. As I mentioned, got it working after overriding play store warning message.
[Android Apps and Games] Ibuprophen:
I tried to get the information from this individual and it seems as though he realized this mistake and tried to talk around it... LMAO!

I told him that, if it happens again, I'll have to do some interrogation with a spotlight before i help him out... LMAO!!

That prompted me to provide that little FYI post.

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

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] martyfender:
[MENTION=4828250]Ibuprophen[/MENTION] Thank You for this app. In reality though, I have, as of yet, no need for SELinux to be permissive on my device, with the programs I use.

I'm just curious, though, Can anybody provide link to various apps and other reasons where it may be necessary to run in permissive mode? The only one I am currently aware of is Viper4android, which I don't use.

Thanks
[Android Apps and Games] Ibuprophen:
It looks like your question may specifically stated as "When/Why is it required/needed for the SELinux State to be changed?"...

This is a GREAT question and I'm surprised that it isn't asked about more frequently.

First of all... this is a tough question to answer without getting into the "Geek Mode" with verbiage that would confuse those who are not familiar with the technicalities involving the Android/Linux domain.

So I'll try my best to provide an answer in a more "layman's" and "bottom line" way that can be understood by a less experienced/noob member.

In short, a devices SELinux State is pretty much an access control implementation for a devices Linux kernel that is protected when a device is in Enforcing Mode.

The following is just a short list for what/why Permissive is needed/required:

- When in Permissive Mode, the devices SELinux does not enforce its policy and provides certain logs that would have been blocked when a device is in an Enforcing Mode (aka Permissive would grant certain logging actions).

- Certain applications are developed as being "SELinux-aware". Those applications may behave differently (not bad, just differently) if a device is in a Permissive Mode as opposed to being in Enforcing Mode.

- There are certain "file contexts" within the devices system where a required "relabeling" is needed that Enforcing Mode does not allow.

Those are the primary items to remember and know. There's much more to it but, that would end up with my getting into "Geek Mode" as stated before.

To be honest, I, personally, am in Enforcing Mode most of the time and really don't require being in a Permissive Mode on a full time basis but, I do need to change my devices SELinux State from time to time.

Some developments require the SELinux State to permanently be in Permissive Mode but, I'm not, personally, a fan of this requirement for my device.

Now I'm not stating that those are bad developments and the requirement is bad in itself but, allot of members are not aware of the pros and cons nor the precautions needed to keep their devices safe and secure.

Well I hope that I had stated this okay via text and your question is an EXTREMELY IMPORTANT one and I do thank you for asking this for others to know.

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

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] RBEmerson:
Problem: SELinux won't go to permissive.

What I got and what I done...

S5, rooted, TWRP, 6.0.1 stock ROM - DQL1

I went to the OP, d/l the zip, flashed it with TWRP, and it all looks good but...

The notification shows up, but every time I open the switch I'm in Enforcing. su getenforcing returns Enforcing. setenforcing 0 doesn't change anything. Bottom line: Enforcing won't change.

Root Check Pro says I'm rooted. Su says I'm rooted. TI says I'm rooted, FX says I'm rooted. So I should be able to change SELinux to permissive but can't. Why is that, Cap'n Ron? (you saw the movie, you didn't see the movie)

The About doesn't list the version info.
[Android Apps and Games] Ibuprophen:
I'm not sure which variant you have (I've got a G900V GS5 myself) but, just 2 clarifications i need that you may have overlooked.

1) Have you accomplished the Prerequisites outlined on the OP?

2) Do you have a Custom Kernel installed that allows for the changing of the SELinux State?

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

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] RBEmerson:
1) If you're referring to Toggler, it wasn't installed prior to flashing the switch.

2) [/ Deity of your choice] only knows. I'm pretty much a "just follow the script" person on the details (touchin' display of faith, ain't it). About the only evidence, one way or the other, is "su setenforce 0 ; su getenforce" doesn't show a change in enforcement. I have the uneasy feeling that is trying to change things with a simple terminal type-in doesn't work, I'm pretty much SOL. [/frown]
[Android Apps and Games] Ibuprophen:
I apologize for the misunderstanding... I had thought that I placed the Prerequisite information on the OP and i intend to do so within the next day or two.

You will need BusyBox with the BusyBox Binaries installed, a Superuser app with the Superuser Binaries installed and, importantly, a Custom Kernel installed that will allow for the SELinux State to be changed.

If you have TWRP, you should be able to obtain a Custom Kernel within the dedicated area of the forum that's specific to your device.

Don't be hard on yourself or get frustrated. It's important to ask questions within any thread for member guidance.

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

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] RBEmerson:
I have BusyBox (stericson) and Su, and they're alive and well. The part about the kernel is an open question; I'm trying to run the details down. In the meantime, the only hint of how the kernel is behaving is trying to set enforce manually. As I said, setenforce 0 returns Enforcing when I use getenforce. Doesn't look all that encouraging...
[Android Apps and Games] Ibuprophen:
This is because the Stock Firmware's Kernel is not permitting it (as designed).

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

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:
For those who may have received a DevDB notification, i had to make a minor change to the OP regarding the Feedback feature. Please see the Changelog for the specifics.

I also plan to update the OP information within the next few days.

Thank you all very much for your time and understanding.

As always, please let me know if you have 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] Ibuprophen:
***** OOOHHH NOOOO!!!!! *****

A sad day indeed...

My "Lucille" has passed away... what a dreadful day indeed.

This PC has been like a child to me and now the Motherboard of Lucille had performed its last decompression, decompile, compile, etc... etc...

I had stood on my Porch and (with puzzling eyes looking upon me) I had played the Bagpipes of Taps while the Garbage Men had taken away the trash (and a huge laugh when I told them why).

I did have a newer one in the closet for such an occasion (i had purchased when i had a feeling about this day). I finally got my next Lucille back together and am currently waiting for the copying of my files on what was on my Primary Hard Drive before a good wipe and format then redo my PC as it was (through it will be a bit faster :) ).

Goodbye Lucille!!!

We won't forget how you made so many XDA Members very happy for so long.

Now it's time for the new Lucille to make even more XDA Members happy in a continuing memory of the Old Lucille.

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

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] RBEmerson:
Condolences on Lucille's passing. Ah, well... one door closes, another door opens. :)
[Android Apps and Games] Ibuprophen:
So far so good...

What a slow process for getting a PC up and running again.

View attachment 4412657

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

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] jjakajonas:
It does what its programmed for.

Not more, not less but exactly what's stated in the op.

But yeah.. Minor "problem".

I change from the app you made a fork off (https://xdaforums.com/showthread.php?t=2524485 if I stated correctly?)

The thing is now after a app uninstall of the old app, a reboot and a install of your app from the XDA shop it now trips the Google play store dangerous app error and say that it would be best to remove the app.

I know its passable to remove the message by alter on the security levels.. But I was hoping on not needing to do that and maybe the "trip wire" got "fixed" if passable.

Is that passable?
[Android Apps and Games] Ibuprophen:
That looks like a Google Play Protect preventing the app from running because The SELinux Switch app affects the devices SELinux State and, as long as that specific Google security feature is ON, it'll prevent the app from installing/working.

Please see Post #5, on this thread, for the instructions regarding the PSA Alerts...

INSTRUCTIONS FOR PSA ALERTS

Once it's disabled, then try launching and setting the desired Mode again 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.

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] jjakajonas:
I have to low security on my device no to temper whit that setting also.

I think I rater will revert to the last app I used.

It did the exact same thing and did not "trip" the Google play store "wire" even once for the 3-5 months I used it.

And there for I can still keep just a little security as a newbe on the android mod train now than there's no security net for new folks I this...

I know that I already have temped A LOT whit the security by now.

But I don't seem to find that much help in my "travel".

I receive some now and then but not that much. So I learn by doing and are talking "baby steps" to fully unlock my device someday.

But for now I will return to my old choice of app and maybe later when I get to that point get back to this app.

Any how thanks for the help ?
[Android Apps and Games] Ibuprophen:
Not a problem.

Just let me know if you have any further questions.

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

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] stylemessiah:
Everytime you try and update via XDA Labs it says package is corrupt...
[Android Apps and Games] Ibuprophen:
At one point in time, there was an issue regarding the apps signature that was immediately addressed but, a handful of members used the other one before I had pulled it for the corrected one.

Try to uninstall the old one and then reinstall it.

You should have no issues then but, please let me know how it does.

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

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] stylemessiah:
Cheers, done. Didn't even occur to me to uninstall the one I had installed and download the later, as quite a lot of XDA Labs just doesn't work very well...simple forum attachments for one....I thought perhaps XDA Labs was borking the download