yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] iWARR:
Hello. I like your app much. Working nice on Xiaomi Redme Note 5 | RR (8.x Oreo) | Magisk. Easily made ViperFX working. Nice & Simple :) So, your K.I.S.S. philosophy works.

Also I'm appreciated you care about OS SAFE BOOT + PEMISSIVE per one session (nice idea). And ability back to ENFORCING mode also works (it switches well on this device, tested).

But having all this troubles with permissions before, I thinked all the time how "G" is stupid, weird and user unfriendly...

(And I didn't like an idea flashing Magisk's SELinux-permissive pack permamently). Lucke me, I've found your nice app.

So, may be there you will find a way to make a selective mode for the certain (trusted) apps that want permissive mode (for now, I have only one).

You clear understand, that loosing hole security for the one app is likely a joke, but there is no another way for now... Crazy "G"-devs...

I don't know if there any chance to implement selective mode, (probably, this will be even impossible), but you may think about that idea, at least.

P.S.

I think, here is confusing instruction part:

If you are talking about updating from old app (apk) to the new one (via TWRP method), if you jump from 1 to 4, then old "SELinux Toggler" will not be deleded :)

Having OLD app -> NEW zip (TWRP) = not OK <-------- Here your confusing meaning. Old app must be deleted anyway, right?

Best regards.
[Android Apps and Games] Ibuprophen:
1) I understand your question regarding the SELinux State being hidden from 1 or more apps as determined by the user.

This is only possible if a device is setup for a pseudo like way of handling the SEPolicy of a device. The only thing I can think of is Magisk because they do have this type of development but, I've only got a working knowledge of this and I can't really elaborate too much regarding Magisk. This is something that would have to be asked there.

The SELinux Switch is a simple application that only enters the commands but, does not control SELinux in the way you're asking about. I've got no plans to make this app more complicated and it works very well as designed.

2) Regarding the 4pda website... I'm familiar with this website but, rarely ever go there and I don't even have an account there (I don't want one anyway). What that website does is their issue and I have no involvement with anything there.

Also, an FYI... the 4pda website is categorized as Warez under the rules of the xda-developers and is banned here. Be careful when it comes to that website because you'll run into allot of issues with the Moderators and Administrators here if you even open a discussion about that site. I'm not either but, just providing some helpful advice.

I hope that I had addressed/explained the above information okay via text...

Please let me know if you have any further questions or concerns regarding 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] SacredDeviL666:
Hello Everyone,

Just a quick note, avoid posting links of another/similar/competitor android dev sites.

Thanks

SacredDeviL666

Forum Moderator.
[Android Apps and Games] Ibuprophen:
I just wanted to keep everyone informed that I'm still here for any questions, guidance and support for The SELinux Switch App! :eek:

I'll be back sometime soon to provide a little, behind the scenes, status update too.

Thank you very much for your time, patience and support for my development. :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:
I just wanted to pop in and state to those who celebrate this holiday...

HAPPY FATHER'S DAY!!!

​

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

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] Tachyonic007:
can i Uninstall this app from recovery if face bootloop?
[Android Apps and Games] Ibuprophen:
You should be able to locate, within TWRP, and remove the following directories/folders without any issues.

/data/app/com.ibuprophen.selinux-2

/data/data/com.ibuprophen.selinux

/data/user/0/com.ibuprophen.selinux

I believe that I had done this before and was successful.

Please let me know how it went! :)

To be honest, I don't believe that this would result in a Bootloop since it doesn't change the boot scripts.

The worse case scenario that I can think of is that the SELinux State won't get changed but, I may be wrong though I've never received any feedback regarding anything else.

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

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] Shizzle2889:
Stupid thing to do. I went through into Titanium backup and attempted to make the app a system app. From here, waited about 1.5hrs while it was processing. Never finished and i rebooted the device. Now the app appears to be gone completely from the device. I have tried installing the apk (does not populate the "update application" prompt which i assume means android does not see it as already installed) which ends in failure. I have tried the flash method, which twrp shows as passing, but on boot the app is still not there. I have done search throuth file structure and been unable to find traces of the app anywhere outside the downloaded apk and flash zip file. Anyone have any idea what to do from here on to get the device back?

If any help, running samsung note 4, rooted, on lineage 15, android 8.1

Also in reference, the only directory you (ibuprophen) listed i was able to find was the \data\data\ directory. Deleted that, but still getting nothing for installs.
[Android Apps and Games] Ibuprophen:
Oh my...

You obviously don't need me to emphasize that this app is not meant to be a system app...

The app may be located within the:

/system/app/

If the process did finish moving the app to the System Apps then you should be able to see it if you go to your Device Settings and then the Apps and select the top right menu to Show/Display the System Apps.

If it's on the list, then select it (within the App Info) -> select to force stop it -> select the Storage and Clear the Data -> then go back 1 to the App Info again and select to uninstall it.

Once completed, just restart your device and do a traditional reinstalling of the app again and you should be all set.

I've been talking a little Development break (doing very little dabbling here and there) and I'll be picking it up some more in the near future. I've just been keeping up with supporting my current developments and providing various member support on the forum as well.

Regarding The SELinux Switch app being used/installed as a system app has been worked on a bit but, I haven't really delved into it much.

Though I've successfully installed it as a system app, there's more to do regarding various areas to consider and work on some more but, this is just a work in progress and is not very high on my to-do list.

Final thought regarding this as well...

Even if your successful in moving the app to the system, and if I had pushed an update for it, it wouldn't update appropriately and you may end up with more work than you should to update it appropriately.

Please let me know how it went and if you have any further questions... :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] Shizzle2889:
Thank you for the hasty feedback. I have nothing in /system/app directory either. Ran another search using ES File Explorer w/ root explorer enabled and given root access. Found a directory that I am currently unable to delete, but going to try some other work arounds. Just tells me "Operation is not permitted". The directory is /config/sdcardfs/com.ibuprophen.selinux/ and contains 3 files. These 3 files are named appid, clear_userid, and excluded_userids.

I will post once I get these cleared and see if it helps at all.

Alright, just removed it using Root Explorer Classic. (Next attempt would have been in a root session in terminal. Happy didn't need that.) However, not seeing anything for the app listed under settings -> apps, while showing system apps. Also in regards, still wont install the app.

Also note that when doing the search, I find 3 folders just named selinux, though given the directories they are in, my assumption is they are part of the OS.
[Android Apps and Games] Ibuprophen:
Your correct regarding the directory called "SELinux". That's a part of your system.

It looks like the app was partially moved to the system...

This is indeed a unique situation... :eek:

It's been quite a while since I had used TB. Doesn't TB save a log file for the actions it performs?

Maybe if you can locate the log file, I can see what it did/did not perform and where it was hung up when you tried to move it.

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

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:
Just an FYI that I'm still here and, hopefully, the more inactive this thread may be a good sign... :eek:

I've been dabbling on a few of my current and newer projects as well as one that's Windows Software related.

It feels good to get back in the saddle regarding my first expertise regarding the Windows Software since I was formerly Microsoft Certified on a handful of areas before my retirement.

Specifically the recent Reboot of the former Classic Shell that was retired and a new Classic Start has taken over by a few new developers in Github with the assistance of the original developer.

I'm providing some assistance with a form of Migration from one to another. Though, I'm not placing all my attention to it but, i have been helping out.

I've also just received permission from a developer for Rebooting an abandoned development located on the following thread too.

https://xdaforums.com/showthread.php?t=1766031

Anyways, if there's any questions and such for The SELinux Switch App, please let me know and I'll be happy to help.

Thank you all so much for your time, patience and support for this development! :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] Shizzle2889:
Enjoy OP. Just a heads up on my situation- and at this point, thinking i am out of getting a resolution. Was unable to find a log for tb. Went through doing a clean install to a more updated version of the rom. (Messed up the image in about 10 different ways just messing with the OS so was time to be flashed.) With that said, reflashed it, and seems to be working now.
[Android Apps and Games] Ibuprophen:
Hey... Great job in getting the app going again! :thumbup:

A few days ago, I was wondering how this turned out for you and I'm happy that you're happy with the app after your device was throwing a little fit.

I've been there and it can get frustrating but, it's always important to keep your Kool.

Enjoy! :)

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

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] Feenfleisch:
First of all, thanks for the great app. Unfortunately, I can not install or flash SELinux Switch. Previously, the message was always dangerous app, but there was the possibility to install. Now there is only program could not be installed. Flashing is also possible without an error message, but the app is not on it. I ask for help. Thank you.
[Android Apps and Games] Ibuprophen:
This looks like the classic signs of "Big Brother" the Google PSA Warning from Google Play Protect.

It's Google's way of preventing the app from installing or running because The SELinux Switch app affects the devices SELinux State.

As long as that specific Google security feature is ON, it'll prevent various apps like this one from installing/running.

For additional information regarding the PSA Alert, please see the following, Post #5 (from this thread) for the instructions to turn this security feature off.

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] Feenfleisch:
[MENTION=4828250]Ibuprophen[/MENTION] Thx it's works perfectly
[Android Apps and Games] Ibuprophen:
I'm happy that it worked out for you and I hope for your continued support for the Switch App as well! :thumbup:

Just let me know if you need any further assistance with this development and I'll be happy to do what I can for you. :)

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

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] iWARR:
I have a positive experience of using "The SELinux Switch" as system (priv-app).

I'm using the App Systemizer (Teminal Emulator) for systemizing any Apps systemlessly (Magisk Module).

In case "App Systemizer" is a Magisk Module, then if deleted (for example, clear Uninstalling/Installing a new version of "Magisk" itself) you will need to reinstall module and "The SELinux Switch" also.

But this is a rare situation.
[Android Apps and Games] Ibuprophen:
Originally, I had the Switch app working on 4/6 devices with it installed as one of the System apps without any initial issues.

Those 2/6 devices were stuck in boot and I was fortunate in recovering them without any big problems.

At first the 4 remaining devices were fine until I had performed various (non invasive/damaging) tests that seemed to go okay until I had attempted to perform a test update (basically it only consisted of a version/build change) and then 2 others began to experience being slow to boot and later stuck in boot.

Now I was down to 2 devices that remained okay for about a month until I finally had determined that a 2/6 success rate was not enough for me to determine that it was a success as a whole.

I an still popping in and out of this development regarding it being a system app but, at this point in time, i really feel that The SELinux Switch App lacks the true "Need" to be a system app to the point in where I don't really feel to pursue it any stronger than I am right now.

I'm not stating that it won't work for anyone else nor every device but, I am very limited, hesitant and skeptical about extending support for those who does install the Switch app as a system app, primarily, because this was done against my strong recommendations.

The process and features you used [MENTION=8329772]iWARR[/MENTION] for accomplishing this is very well appreciated to report/provide others here and I do thank you very much for bringing this information to everyone's attention here.

The thing that you need to keep in mind is that not everyone currently can/needs to use Magisk. Some of those who doesn't use Magisk is by Choice, some by Need and some by Capability.

I do hope that I had explained the above information okay via text... :)

I do appreciate you letting us all know and thank you very much for your support for this development as well! :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] iWARR:
Ок. May be I will leave the app "as it is" in the next OS installation to avoid a potential problems / incompatibility issues in the future.

Yes. But I'm talking about advanced users, who can achieve more profit being ROOTED, including security benefits. In fact, advanced/additional security methods are inaccessible w/o ROOT.

Keeping in mind that "security" by Google mention and user mention are different things.

Magisk becomes (actually, "became") a new SU standard for the modern OS + semi/modern devices. RIP "SuperSU".

I'm on Xiaomi Mi5 (still good device), and very modern OS - RR Darkness (Oreo 8.1). And today Magisk is the only suitable (supported) SU/ROOT to use.

Same as Xiaomi Redme Note 5 (up to date device) + RR (official, Oreo 8.1). Both Mi5 and RN5 working nice with "The SELinux Switch v6.2.0 build 620".

That's why I like your bright idea about unbroken (and still secure) boot + freedom of (ROOTED) device usage in PERMISSIVE mode per every one session.

My best regards. Thank you for your smart, simple (for use) and very helpful thing. Good luck!
[Android Apps and Games] Ibuprophen:
I believe that either you had misunderstood my intent or I may not have stated this as clear as I had thought I did and,if so, then I do deeply apologize for this. :eek:

The information i had provided regarding Magisk was, In NO WAY, intended as a criticism to, for and about Magisk at all.

I was just trying to help explain the following that I'll try my best to rephrase...

The decisions that I have to make regarding The SELinux Switch App is always to take into consideration 2 different categories of users.

1) Those who WANT to use it.

2) Those who NEED to use it.

The above categories are inclusive with my decisions that I have to make to help with the compatibility needs for the following...

There's various types of methods, kernels, software, apps etc... In achieving the requirements that are needed for The SELinux Switch App to work as designed.

These include (but, not limited to) those with Magisk, SuperSU, Viper4android, BusyBox (by Stericson, Osmosis, etc...) and others.

I'm not stating that Magisk is any type of second rate development. I believe that the various Magisk developments, features, etc... are a great thing and have never put it down at all.

In addition, I may not need to use it myself but, In order for The SELinux Switch App to work for those who does use Magisk, I have to have a "Working Knowledge" of the applicable areas of that development in order to provide support for this app.

In closing... :eek:

I'm not mad or upset at all and, based upon the first portion of your response, it just seemed to me that you may not have understood my position for this development and the versatility I've GOT to help keep for this development to remain as compatible as possible with as many (of course not all) developments/devices.

As you can see above, this can be extremely challenging and I can only do the best i can. :banghead: ;)

I encourage you and anyone else to continue to "help me help you" to make the experience with this app and your devices as positive, encouraging and ultimately as enjoyable as possible!

If anyone has any questions, concerns or just would like to share your experiences with this app, by all means your welcome at any time (of course, keeping it as appropriate as possible LOL!).

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

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've almost certainly missed the answer but does installing the toggler over a switch installation remove/replace the switch? If not, how do remove the switch before installing the toggler?
[Android Apps and Games] Ibuprophen:
There's no upgrading to it...

You should just uninstall the Toggler App the same as any other app, reboot your device and install the Switch App.

You should be good to go from there.

Please let me know how it went and if you have any other 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] iWARR:
1) Understood. So, if my own "special" experience/conditions were positive, then I shouldn't afraid continue using the app in my own way. While your app still remains universal / "extremely challenging" in all conditions.

From your quick list mine are: Magisk, ViperFX, BusyBox (by Osmosis).

In this small example ViperFX is what you named "NEED", and compatibility with Magisk, BusyBox and others (plus unbroken OS boot) is what you named "WANT". (According to MY installation).

2) Well. My message about Magisk consists from two parts: yours is a small feedback about phone Models/OS and the rest part it's a short message to all: do not shy being ROOTED and why.

May be this aspect is a bit offtop here, but your app is also a (separated) part of hole security scheme. I'm just noticed, that ROOT may give more PROS then CONS to users (ability to have much more advanced security instruments compared to stock).

Moreover, those users, who have a ROOT also may have an additional benefit like sysemizing your app. We have a slightly different experience, but systemizing may appear successful in some favourable conditions (but not recommended). Right?
[Android Apps and Games] Ibuprophen:
Let me just state that your information was extremely helpful for myself and others! :)

Thank you very much for your insight, experience and support for this project and your welcome to share these at any time. :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] SLAYER96:
Hi, first of all, thank you for this really useful app, some time ago I used this app to set Selinux permissive on marshmallow and it worked like a charm. Now i'm trying to do the same on Oreo 8.0 with my Samsung G-930F rooted with magisk but unfortunately when I tap "permissive" the notification message pops out but without changing anything. I'm on the stock kernel, is that a problem in my case?
[Android Apps and Games] Ibuprophen:
Unfortunately yes...

The one requirement it looks like you are lacking is a SELinux Capable Kernel.

The stock Kernel tells the Sepolicy to remain on Enforcing Mode.

When you press the Permissive button, in the Switch App, the command Sent to the device actually gets rejected because of this.

I wish that I had a better answer for you...

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

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:
It worked exactly as described. One of life's headaches cured. ;)
[Android Apps and Games] Warrior1988:
Thank you just what I needed.
[Android Apps and Games] Ibuprophen:
Your both very welcome! :)

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] j1gga84:
I installed SELinux switch on my Samsung Galaxy Tab S running ResurrectionRemix 5.8.5 and Magisk 16.6 but SELinux switch has no function allthough it has root rights.

No matter if I set it to permissive or enforcing it always shows enforcing (strict). What can I do to set it to permissive?

Regards

Sent from my SM-G900F with Tapatalk
[Android Apps and Games] Ibuprophen:
I took a look at and performed a simple search on the RR thread for your device...

I found that this RR Firmware has a Kernel that isn't capable for your SEPolicy to allow for a change in its SELinux State.

Simply, you need to locate a Custom Kernel that's Permissive Mode capable...

I had located the following thread within the Galaxy S area as an example of what you need. I'm not sure if that thread is for your specific device but, it is an example of what I'm referring to.

https://xdaforums.com/showthread.php?t=2914628

As long as the Custom Kernel (that's Permissive Capable) is only for this specific function, it should not affect your device nor the Firmware you already have installed.

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

If you need further clarification, please let me know.

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

I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.