yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] GWARslave119:
Ok I reflashed the ROM cleanly, but couldn't find where it tells me the SELinux status (usually it's in the About Phone tab but it's not there in Pie) so I had to look up how to find it in the Terminal in recovery. It says status enabled, mode permissive, policy version 30. I'm assuming then that whatever firmware I flashed a while back keeps it at permissive? Cause otherwise if you flash a new ROM i assume it's supposed to be Enforced. And I think the phone did boot into the OS when I had the black screen because there was a vibration when I hit the power key, my hardware key lights are on, but no touch response. Anyways, I guess because of my firmware, it causes some kind of clash with the switch app trying to switch it?

Edit: I installed a different Oreo ROM and installed the switch app, and it allowed me to switch back and forth between enforcing and permissive, so maybe it was the kernel I was using with the Pie rom? I'll install Pie back on and reply with the results..
[Android Apps and Games] Shizzle2889:
I might be wrong as I don't know a whole lot about the SELinux states and what it does. However, the fact you were checking while in recovery mode might be an issue. I Would expect that there should be a way to check while booted into the ROM, even if it is through a terminal window. However again, my knowledge on this is fairly limited. I would just expect while booted into recovery, that the security protocols would be more relaxed due to limited functionality and necessity.
[Android Apps and Games] GWARslave119:
Well I probably could have checked while booted into the ROM, but I didn't have a terminal app installed, and I couldn't find where in the settings (in Pie) where it tells you the SELinux status, so I used the terminal in recovery and typed 'sestatus'.

Also, I installed the pie ROM back on and tried the switch app again with the same results, black screen, had to hold power and volume to get back to recovery, so maybe it's the kernel like you said? Quite odd though since it's a lineageos kernel, but who knows. The ROM is an official PixysOS ROM, a screenshot is attached.
[Android Apps and Games] Ibuprophen:
I've been running into a handful of (New to Fairly New) Custom Firmware Developments that has some type of dependency to operate in its current SELinux State (Permissive/Enforcing).

This type of restriction/issue will have to be addressed by their prospective Firmware Developers and cannot be fixed by myself or this development.

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

UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my SM-G900V device.
[Android Apps and Games] Shizzle2889:
With that said, i am running lineageos 15.1 on a galaxy note 4. Give it it may be different between oreo and pie, but the rom comes with a built in terminal app that is activated through dev options. Just need to find it if it is there. Might be an option.
[Android Apps and Games] MikeyLee:
It would be nice to be able to download this without the Trojan warning
[Android Apps and Games] Ibuprophen:
This Trojan warning is definitely a false positive as long as it's being obtained/downloaded via the provided download links on the OP.

If this app had any Viruses, I would be seeing reports on the thread, PM's and other ways.

Though a Trojan specifically infecting an Android is extremely uncommon and is generally created for infecting Windows which Windows viruses doesn't work on Android's.

My apologies for what you're experiencing... :(

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

UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my SM-G900V device.
[Android Apps and Games] MikeyLee:
No worries. It was doing it in Windows. Got it resolved but wasn't able to get the app to work on my device regardless.
[Android Apps and Games] Ibuprophen:
**** BY ORDER OF YOUR MAJESTY! ****

Okay... A new release was just pushed.

Without being repetitive... I am just going to ask for you to please read the Changelog just below the OP of the thread.

I do hope that you like the work that I've been doing on the OP! :eek:

I had also used the new Switch Logo image on the OP as well but, it has the transparent background for those who use different colored themes and such to view the XDA threads.

Please let me know if it looks okay with the different colored themes. If needed, i can always use the ones with the White or Black background instead.

I've been very busy lately with Currently Released and Unreleased Developments as well as providing assistance with other developers too.

Just like the old television commercials slogan... "CALGON! TAKE ME AWAY!"... LMAO! :)

Please let me know if you have any questions or just wanted to say hello!

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

UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my SM-G900V device.
[Android Apps and Games] m0han:
hi, not sure whether you can suggest a solution... please see my post here: https://xdaforums.com/showpost.php?p=77911861&postcount=35. i understand the issue could be selinux being enforcing (the thread title says so). do you think i can flash your latest zip (from here) and get my device to boot? or is getting a boot.img that has selinux permissive my only way out of this mess? thanks for any help.
[Android Apps and Games] Ibuprophen:
I had looked into this a bit and I'm a little speechless...

Though none of the following are your fault nor am I intending this either but, here's what I think about this in general.

1) The OP Developer [MENTION=7210959]mountaser halak[/MENTION] first didn't ask me if he could include any of my developments to be encompassed with his developments.

As a personal rule and practice, I've decided long ago not to support other developments that encompasses either "The SELinux Toggler" or "The SELinux Switch" apps if they have never asked me first if it was okay.

This is only because there's a good amount of developers on the forum that does so (without permission) and most of them doesn't implement them correctly. After so long, I found that I would go crazy with the time spent to track them all down as well.

2) The Features on the OP (for that development you had pointed out) states "SELinux mode Toggle" (assuming that he means The SELinux Toggler app).

The SELinux Toggler App has been discontinued for over a year as you can see from the following Official thread...

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

... and was superseded by this threads development.

3) I've also noticed in some posts, of said development, that the SELinux wasn't right within that development.

With that stated...

To answer your question [MENTION=4620757]m0han[/MENTION], I've got a few hunches and a few guesstimates regarding what may have went wrong but, to be honest, I really can't provide you with any guidance regarding the files within the AFH link you had provided since I'm not familiar with that device nor development.

All i can help you with is a referral to the following post that's located within the area of the forum that's specific to your device.

https://xdaforums.com/showthread.php?p=77772744

That post may not be located within the same development but, it's regarding what is ultimately needed for a Device to be able to change its SELinux State that requires a Custom Kernel.

Just be sure to ask questions regarding a Custom Kernel to be sure it's specific for the ability to change its SELinux State and (unless you want/need it) it's not permanently in a Permissive/Enforcing Mode.

If it is, in fact, permanently in a Permissive/Enforcing Mode, then trying/attempting to change it may/might result in a Bootloop or being Stuck in Boot.

This is the best I can do for you and I hope that I had stated everything okay via text. :thumbup:

I wish you the best of luck! :)

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

UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my SM-G900V device.
[Android Apps and Games] mountaser halak:
Excuse me what of your work did i use exactly?

I don't think you understand what he asked you or what kind of Selinux switch is being used in the rom (even if it was your work am just a maintainer man don't blame me)

Anyway this guy is just asking you if he can use your tool to patch his boot.img to make it permissive that's it

Anyway all respect for your work but i don't use any of it i just built the gsi man

Gave a nice day
[Android Apps and Games] Ibuprophen:
Please read the information that you had just quoted...

Also, just to clarify, please note that I didn't state that you had used any of my developments. I only stated that I can only assume based upon your OP...

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

UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my SM-G900V device.
[Android Apps and Games] mountaser halak:
I did read it and updated my reply please read it
[Android Apps and Games] m0han:
[MENTION=4828250]Ibuprophen[/MENTION], all i was asking was whether i can use your tool to patch the boot.img of the gsi made by [MENTION=7210959]mountaser halak[/MENTION] to make it permissive and get my device to boot. any confusion created (inadvertently) was purely unintentional and is regretted.
[Android Apps and Games] Ibuprophen:
[MENTION=4620757]m0han[/MENTION], As the OP of this thread states... This app makes no permanent changes to the device.

That link to another post I had previously provided you looks like the best option you have at this point in time.

I apologize if I had slightly misunderstood the initial question... :(

[MENTION=7210959]mountaser halak[/MENTION], I had only mentioned you as the OP Developer. I do deeply apologize if my post was a bit of a "finger pointing" statement. I do realize that I should have worded it a bit differently.

Good Luck!

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

UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my SM-G900V device.
[Android Apps and Games] mountaser halak:
Don't worry about it! Water Under the bridge

Have a nice day!
[Android Apps and Games] Ibuprophen:
I just wanted to check in and say Hello!!! :)

I've currently been trying to get into the Development Arena in a different way/direction right now in Github by way of Android Studio and Eclipse.

I have used them before but, not as much as I used to and not at the level I'm approaching at this time.

As I've always stated regarding my being familiar with certain areas and now I'm trying to get a bit more involved in them. It helps being familiar with certain things that I can apply towards the actual application as I attempt to extract my former education and experience i haven't used in quite some time.

I do apologize if I'm absent a bit more frequent here but, I do check in on the Forum at least once or more per day.

Please let me know if there are any questions or if you even want to say Hello. :eek:

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

UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my SM-G900V device.
[Android Apps and Games] Ibuprophen:
I had almost forgotten about the new Halloween App Icon!!! :eek: :eek: :eek:

The app was ready to go but, good thing I had bumped into it when I did.

I plan to get into the spirit for the Holidays to come! :)

Enjoy Everyone and HAPPY HALLOWEEN!!!

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

UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my SM-G900T device.
[Android Apps and Games] Zerikwan:
Hello [MENTION=4828250]Ibuprophen[/MENTION]

Sorry for asking you this off-topic question

Do you know a way to change SELinux state permanently?

Let's say I want the SELinux state to permissive, even after reboot, and it will be premissive by default.
[Android Apps and Games] Ibuprophen:
You will need a Custom Kernel that allows for your device to be able to change its SEAndroid State.

Then you would need to make a few command changes to your boot scripts to remain in Permissive Mode.

Though the concept is the same, I can't state how you could do this because the approach is different for every device model/variant.

This question isn't a problem for me to answer. There may be more to it but, that pretty much sums it up. :)

Good Luck! :thumbup:

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

UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my SM-G900T device.
[Android Apps and Games] Ibuprophen:
*****

AND NOW, A WORD FROM IBUPROPHEN

*****

I've been asked about (and have noticed) the following question quite a bit recently (in various ways):

"Why are there so many of the newly/recently released Custom Firmwares being in a Permanent Permissive Mode?"

I'm just shocked by the fact that so many/most Firmware Developers either don't provide ANY information, Vague Information or just Passive Information.

I'm going to provide the following information as clear as possible in hopes of more individuals to react in that "AH-HA!" way. :thumbup:

__________

Question: "Why are there so many of the newly/recently released Custom Firmwares being in a Permanent Permissive Mode?"

Answer: Many/Most of the newly released versions of Custom Firmwares (ie... Android 9.x/LineageOS 16.x) typically provide the SELinux State to be in a "Permanent "Permissive Mode" by default.

This is only because that, In this mode, the SELinux itself will then log any SEPolicy Violations (unfortunately it will not attempt to block those associated activities either).

The purpose of this Permanent Permissive Mode is so the Custom Firmware Developer can analyze those Logs that was created by the SEPolicy to allow them to Analyze it.

The information gathered, over time, becomes possible for those Custom Firmware Developers to make any Corrections to the Firmware, therefore, enhancing the SEPolicy itself.

Over time, the end results will be at a point when the only remaining SEPolicy Violations left are actually/indeed determined to be malicious/undesired behaviors.

When it comes to that said end result, the Custom Firmware Developer will have everything said and done to begin providing their Custom Firmware with the Default SELinux State back to "Enforcing Mode" whereas the SEPolicy will then not only Log but, also block those offending/malicious/undesired behaviors.

__________

I hope that I had explained this much better than before via text... :cool:

Please let me know if there are any further clarifications (so I can provide a my face palm example... LMAO!!!). :eek:

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

UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my SM-G900T device.
[Android Apps and Games] Droidriven:
Then there is also the fact that some of the "extras" in certain flavors of custom ROMs(e.g. CM, LOS, RR, PA, AOSP, AOKP, etc..) require permissive mode for those built-in custom features/mods to work, such as, some ROMs have Xposed and certain modules built-in as well as certain sound mods or apps that allow modifying system or kernel function and performance. It depends on what features and mods are built-in or not.

There are plenty of other mods and features that could be listed, but it depends on the flavor of custom ROM and the developer of the ROM.
[Android Apps and Games] Ibuprophen:
Good Point! :)

The explanation was actually geared towards the recent Custom Firmware Android Versions like the Oreo and Pie developments that doesn't have those other broad features included in them.

My explanation was really intended to reflect in on itself as many/most of what you had mentioned (that I'm aware of) does typically have the disclaimer regarding the reasons for a Permanent Permissive Mode because of those said features.

I'll have to work on some additional verbiage to help with distinguishing those items you had mentioned.

Thank you very much for pointing out those items to note. :thumbup:

Once I get the verbiage better worded, I had planned on, eventually, placing the information on one of the reserved posts that follows the OP in this thread.

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

UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my SM-G900T device.
[Android Apps and Games] bayad:
Ohh I see now... I understood now... Very sorry for my noob question :angel:

Thank you again for your great work :good:
[Android Apps and Games] Ibuprophen:
Not a problem at all!

I even make them too... LMAO :)

Please refer to the following post within this thread:

https://xdaforums.com/showpost.php?p=73435489&postcount=20

It should answer your question but, If it doesn't, then please elaborate a bit more.

Thank you!

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

I Am The Egg Man,

They Are The Egg Men.

I Am The Walrus!

Coo Coo Cachoo!
[Android Apps and Games] pendor24:
What additional information do you want?

I used the same magnet on my s7 edge as on my s8 +

On the latter, I tested all available versions.

I'm rooted with magisk and busybox pro a day
[Android Apps and Games] Ibuprophen:
Seeing that you have Magisk...

Did you take a look at this threads Post #4?

INSTRUCTIONS FOR MAGISK/MAGISK HIDE USERS by Ibuprophen

It's pretty specific and i can't think of any way to improve upon it but, if any member would like to suggest anything that would improve on it, i would be more than happy to consider any suggestions.

I believe that member input and suggestions are extremely important to a developer to take under advisement because it helps both sides on improving the app and threads experience.

Thank you!

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

I Am The Egg Man,

They Are The Egg Men.

I Am The Walrus!

Coo Coo Cachoo!
[Android Apps and Games] Thebear j koss:
[MENTION=4828250]Ibuprophen[/MENTION] I made a dark theme version, I can send you the apk and the edits I made if you want a dark option for users. Screens
[Android Apps and Games] Ibuprophen:
I was actually in the process for a dark theme for my next release. :banghead:

That looks really impressive!!! ;)

Please PM me a download link to take a look.

Maybe i can use this one to implement my other work in to for the next release. That would have saved me some time too.

It really looks pretty cool! :cool:

Thank you very much!!!

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

I Am The Egg Man,

They Are The Egg Men.

I Am The Walrus!

Coo Coo Cachoo!
[Android Apps and Games] pendor24:
Hello

I have no parameters for busybox in my version of magisk 13. 3

I use stericson pro 1. 27. 1

On my s7 edge i have supersu (installed in the system) 2. 82 sr1 + magisk 13. 3 and busybox pro 1. 27. 1
[Android Apps and Games] Ibuprophen:
I'm just going by what I know about Magisk because I've never used it...

In your case, this app should work as long as:

1) The parameters for the Magisk only portion on the 4th post are set.

2) The BusyBox Binaries are installed in the "/system/xbin".

3) Superuser's SU Binaries are installed appropriately.

That's pretty much how I understand it unless [MENTION=5357345]ahrion[/MENTION] & [MENTION=3853110]Dixon Butz[/MENTION] has anything to clarify, add, remove, etc... because they have a better understanding on using this app with Magisk (you could say that they're the Resident Experts).

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

Thank you!

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

I Am The Egg Man,

They Are The Egg Men.

I Am The Walrus!

Coo Coo Cachoo!
[Android Apps and Games] ahrion:
So Magisk currently limits the use of BusyBox, especially with installing it. It's weird because it now has its own included with Magisk. I'm assuming that BusyBox was bundled with his rom or kernel. I recommend installing the osm0sis BusyBox that is in the Magisk Manager repo. That thing is money.

This is a known issue, which is why 13.5 Magisk tested the use of an internal Magisk BusyBox.
[Android Apps and Games] Ibuprophen:
**** THREAD BUG ANNOUNCEMENT ****

I wanted to inform you all about an issue with the thread i had just reported to an Administrator.

I'm not sure if everyone has experienced this or just the few that I know about.

The issue is regarding posts that are appearing and disappearing on the thread that i coined... "The Case of the Disappearing Post"... LMAO :) .

I don't know if any of the followers from The SELinux Toggler thread remembers this but, this also happened shortly after i had created The SELinux Toggler thread too and the Administrator had sent the issue to, what i call "The XDA Geek Squad Guys" who also saw the issue then quickly and easily fixed it and no further issues arose again.

I don't know why this is happening to my DevDB Threads but, i must have been born under a bad sign... LMAO!

I'm sure that they will fix it early next week...

I just wanted to give you a heads up in case you also noticed something not right and let you know that it's already been reported.

Thank you ALL for your time and understanding with this!

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

I Am The Egg Man,

They Are The Egg Men.

I Am The Walrus!

Coo Coo Cachoo!
[Android Apps and Games] Ibuprophen:
I really don't do this much at all (very rarely)...

This is from a PM from a member and my response that I'm passing along so others can get help in case this question arises again for other members.

Please don't take this the wrong way because i don't turn away support for my developments...

I prefer for members to post all their questions, concerns, etc... within the Forum Thread for one specific reason...

Sharing of information whereas another member has/have/had the same, similar or even a solution to your inquiry.

Now for your issue, the notification only indicates that the commands to the device were submitted.

It does not reflect the actual SELinux State of the device. That is for the individual to confirm.

I would like to refer you to the Threads OP that reflects a list of prerequisites for the Switch app to work as designed.

Also, the screenshot images also has extremely helpful information too.

It may be a kernel issue with your device. Keep in mind that one of the ways a device will be able to change it's SELinux State is for the devices sepolicy to allow it through the devices Kernel (which dictates this policy changes).

I hope i had explained all of this okay via text... :)

I'll see you on the thread...

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

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:
**** THREAD BUG RESOLVED****

I wanted to inform you all that, apparently, the issue had, kind of, resolved itself somehow... :what:

Thank you very much for your understanding for this! :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] Ljseegar:
Idk what the problem is sands207 has one of the variants of the same device and its working but it refuses to work on sprint

---------- Post added at 03:07 PM ---------- Previous post was at 02:42 PM ----------

Im about to try a logcat so i can see if i can locate the issue
[Android Apps and Games] Ibuprophen:
have you looked at the following thread?

[ROM] (STABLE) Custom ROM for J3 Emerge SM-J327P BOOST MOBILE/SPRINT/VIRGIN MOBILE by Sands207

The thread mentions that The SELinux Switch App works for them.

Maybe you could locate/post this within that thread...

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

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] Ljseegar:
I have already posted the issue in that thread but you told me to post the bugs on here so that is what im doing sir you are confusing me very much