yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Ibuprophen:
Reserved

**********************************

****UPDATES/CHANGELOG*****

**********************************

********************

DATE: 10-09-2017

********************

- The OP of the thread was just updated for corrections, clarifications, etc...

********************

DATE: 08-14-2017

********************

- The SELinux Toggler has been discontinued for a new app called The SELinux Switch (please see the top of the OP).

- Until further notice... The SELinux Toggler Thread will remain available. All downloads will also remain available on the Thread, Android File Host and the XDA Labs Store for those who may want to continue using this app.

- The votes on the poll are complete and the Flashable Zip option for The SELinux Switch shall remain.

- THANK YOU ALL VERY MUCH FOR YOUR TIME, PATIENCE AND SUPPORT FOR THIS APP!!!

********************

DATE: 08-08-2017

********************

- Final Release: The SELinux Toggler Version 4.3.9 Build 62

- App Installer & Flashable Zip Uploaded.

- *ADDED NEW POLL - PLEASE VOTE *

----->(Poll Will Close In 1 Week)
[Android Apps and Games] Ibuprophen:
Reserved

***************************

*****ANNOUNCEMENT*****

***************************

1) As i had outlined in the OP, I can't guarantee that it will work for everyone but, i want it to. So I'll need some more help from those of you who have been experiencing issues by providing additional information as to your device specs and, importantly, a Logcat.

2) I also want to let everyone know that I'm aware of individuals who have experienced some issues with the app that also use Magisk and a few other similar ones like it.

I'm going to be honest with you... I've never used Magisk before. I've got nothing against it but, never really felt the need to use it.

I've got a general idea about how it works but, I'm not 100% on what/how it works.

I'm going to need some time to figure out what makes Magisk tick and may need some help with those who does use it to help me understand it better.

3) Please keep in mind that there is just 1 release version of the app. With more to come as i can work things out with various fixes and other items on the agenda.

4) If anyone is not familiar with Logcat in general as well as how to obtain a Logcat file to submit then please let me know so I can provide you with some guidance regarding it.

5) Lastly, Just making a statement similar to "it won't work on my Galaxy S3 d2vzw SCH-I535 with CM13" doesn't tell me anything that I could use to pin down what and why it's not working. It could be anywhere from "user error" to "application error".

Please be patient as i may not be online all the time. I do have other responsibilities offline and try to get online as much as I can, as well as working on the apps next version update, etc...

Thank You All for your Time Understanding and Consideration with this.
[Android Apps and Games] mauam:
Awesome:cool:

Edited: tested on S3 mini & Honor 5 X. Working perfectly.
[Android Apps and Games] Ibuprophen:
Thank You!

The verbiage of this post may be tweaked a bit but, I believe that it looks pretty good to me.

The app is still being worked on for 1 or 2 minor changes but this release is pretty much good to go.

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] Tilagoon:
Hi,

Tested on my Galaxy S2 running Resurrection Remix based on Lineage 7.1.1 and it works perfectly.

Notification after reboot working as well :good: Awesome job :good::good:
[Android Apps and Games] Dixon Butz:
Tested on Moto Nexus 6, stock, rooted, 7.1.1 N6F26U (Mar 5th). I think it is working. I can't see SEL status in About Phone. It is not there anymore. Did they take it out? Any other way to see SEL status? But it seems like it sticks after a reboot. When I open your app after a boot, I can only select Enforce.

On another Nexus 6 with the Pure Nexus ROM, it does not stick after a reboot. I get a notification that SEL mode was changed to permissive. But when I go to about phone, the SEL status says Enforcing. Is there something in the build.prop that can change it in a ROM?

I see this in build.prop:

ro.build.selinux=1

Does that affect it?
[Android Apps and Games] Ibuprophen:
Thank You!

Though i was confident that it would work for other Nougat devices... i was nervous as well. LOL!!!

I did realize something and just added a caveat to the OP.

I also just realized that I had forgotten about a Prerequisite regarding an updated BusyBox needed... Oy Vey!

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:
Do you have BusyBox installed and up to date?

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] Dixon Butz:
The stock rooted nexus has BB.

That one with Pure Nexus is rooted with Magisk. Doesn't that have BB built in or something?

---------- Post added at 05:51 PM ---------- Previous post was at 05:38 PM ----------

Installed BB on that Pure Nexus ROM phone. Still don't stick after reboot.
[Android Apps and Games] Ibuprophen:
BusyBox (and its Binaries) is a separate app in itself.

If you have it installed, then you should see it in your app drawer.

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] andaleeb:
Its working. good job!!
[Android Apps and Games] pluto123:
Thanks for the great work! :)

PS: Just want to let you know that I've got a false positive antivirus detection
[Android Apps and Games] rbradmag:
Works great on my LG-G5. Verified mode change in both TWRP Manager and in Terminal.

Thanks for the great work!
[Android Apps and Games] Keij0:
Kitkat is 4.4, 4.2 is jellybean. SELinux was introduced with 4.3, I believe. You might want to fix that misconception in your thread.
[Android Apps and Games] arjunarora:
Hi.. Thank you for the release.. I am using a oneplus 3t..app works like a charm.. Installation failed as i had a previous version installed, removed it and installed this version.

I use magisk so the superuser request prompt came up a bit late.. Rest all. Works.. Thumbs up given..!
[Android Apps and Games] ad44891:
Also working on mate 8 5.0.. After reboot & all, thx
[Android Apps and Games] Syaani:
Kitkat is Android 4.4 not 4.2 :)
[Android Apps and Games] Miustone:
Any Chance to get the Apk to Permissive by default, to allow a Permissive SElinux State on the first Boot? Maybe with a Script or a second Version of the Apk?

Would be a really awesome thing for ROM Cookers and People like Me with su.d and init.d Support (Think init.d is faster at booting).

Thanks anyways dear [MENTION=4828250]Ibuprophen[/MENTION] !
[Android Apps and Games] Ibuprophen:
Thank you ALL for your input!

It's really valuable to me so I can take the information and note it.

It wasn't an easy task and am still working on future updates to address some minor items on my to do list.

Sometime, down the road, the app will be overhauled with a different structure to the installation location. It currently uses my predecessors installation labels i plan to revamp. But, that's a much larger task in revamping that while maintaining its function.

As for what a few of you had mentioned about the correct KitKat version, thank you very much for pointing this out. My memory was a bit off... LOL! I'm going to be correcting it soon.

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:
***** HEAR YE! HEAR YE! *****

Just a quick heads up on the status of the SELinuxToggler app...

I'm about done with the v4.3.6 release and now just waiting for my PC to stop throwing a tantrum so I can finally compile the app to test LOL!

I'm not sure if anyone remembers (though I'm sure that some of my long time followers should) regarding my mentioning a release of the SELinuxToggler app using a more appropriate file structure to sever and replace the "MrBIMC" from the installation directory for the app.

Well I'm close to completing this process and, as long as it tests out fine for me, i may ask for a few offline beta testers with, at least, a decent knowledge android to confirm that it tested out fine for them before releasing it (with, at least, one individual using Magisk to make sure that it remains working for those Magisk users).

This newly revamped version of the app will more than likely be announced as the "The SELinux Toggler v5.0" (note the name and spaces between them) and will require the previous version of the SELinuxToggler to be uninstalled before installing the new one to prevent any app conflicts. This is because the current SELinuxToggler uses "com.mrbimc.selinux" and the new one will use a more appropriate "com.toggler.selinux".

I can't say for sure as to when the revamped version will be ready for beta testing and public release but, I'm hoping to have it ready soon.

In addition, the v4.3.6 may have some minor items implemented that was meant for the v5.0 but, I don't see any reason to get them done for the next release.

I'll keep you all posted and Thanks!

"Live Long and Prosper..."

~Ambassador S'chn T'gai Spock

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise [NCC-1701].
[Android Apps and Games] jjakajonas:
Hey.

To be hones.. I'm not the biggest android shark but I try to learn a lot about it.

Also I use magisksu and magisk hide so if no others wolenters to test the beta release then I will stand up to it and try my best.
[Android Apps and Games] Ibuprophen:
***** EXTRA! EXTRA! *****

Finally got a handful of different items taken care of so please see the Changelog for additional information.

Please let me know how this release works for you. I'm hoping it performs a bit better and a more appropriate "verbiage" notification at the top of the device.

If you noticed that i had skipped version number... This is due to a communication breakdown between me, the app and my PC. That missing version went a bit wacky on my device due to some kind of issue i was unaware of while compiling the app. Thank the man upstairs that i figured it out and recovered my device from a bit of a temper tantrum LMAO!

As any developer should know, this is why I have to test it out before I release it... LOL!

Anyway, please let me know if anyone has any questions or concerns.

"Live Long and Prosper..."

~Ambassador S'chn T'gai Spock

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise [NCC-1701].
[Android Apps and Games] amn1987:
No issues with version so far. Magisk user. Viper4Android continues to work. And I finally got adbd insecure to work as well on MM.

P.S. Glad that you tweaked the name.
[Android Apps and Games] Ibuprophen:
Thanks. The notification verbiage was the big one because it used to mislead individuals in thinking that SELinux was changed and the app doesn't detect the status, it just sends the commands to the device.

I'm happy to see it working for you and thanks for the feedback.

"Live Long and Prosper..."

~Ambassador S'chn T'gai Spock

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise
[Android Apps and Games] SavageRobot:
Just found this app and tried, doesn't seem to work. Tried to get logcat on adb but for some reason says logcat read failure.

I downloaded and clicked set permissive and reboot, went back into it and still has set permissive as the one to select. However the notification says it has been done. Root check says otherwise.

LG G4 H815 Imperium Stock based ROM MM rooted with magisk.

I know you said earlier in thread magisk may not work but thought this may help to know this set up doesn't ?

Subscribed. Let me know if any more info needed.
[Android Apps and Games] Ibuprophen:
Regarding Magisk, please read these 2 posts.

https://xdaforums.com/showpost.php?p=72001334&postcount=155

https://xdaforums.com/showpost.php?p=72002230&postcount=156

Due to the fact that I don't/have never use Magisk, [MENTION=3853110]Dixon Butz[/MENTION] & [MENTION=5357345]ahrion[/MENTION] are the Magisk experts in this thread.

The OP outlines the SuperSU & BusyBox requirements too.

"Live Long and Prosper..."

~Ambassador S'chn T'gai Spock

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise
[Android Apps and Games] Ibuprophen:
I'm wondering if it's just me or am I not looking hard enough, in the right place, etc.. and was hoping if one of the fine outstanding members here could give me a hand.

There's apps out there that will detect BusyBox and/or Superuser apps, details, etc... but, nothing that will solely detect a device's SELinux State.

With that stated, i know there's a few (and I'm sure more than what I can locate) apps that does have the option to reflect a device's SELinux State but, i can only locate this feature as a part of an inclusive feature amongst many others.

I had been pondering the idea of creating a basic/simple App that will only reflect the current Mode of a device's SELinux State but, only if there's nothing else out there that's dedicated to this specific feature.

My question for you all is kinda 2 fold...

1) Is there an app (or even an XPosed Module) that is dedicated in reflecting a device's current SELinux State?

2) Is there even an old/older/abandoned app (or XPosed Module) that is dedicated in reflecting a device's current SELinux State?

Thank You for Your Help!

"Live Long and Prosper..."

~Ambassador S'chn T'gai Spock

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise
[Android Apps and Games] jjakajonas:
Okay.

I do not have much info for what happened on my device.

But any how.

I have a HTC One A9 whit lineage 14.1, busybox pro and magisksu and hide also I run some google apps.

After installing the app first time the SIM card couldn't be detected and there was a very slow boot, second time after clean install the os there was a problem of installing busybox and root did not work at all.

And under one install try busybox caused a reboot.

I don't know what caused it and I have no log.

But if there's more specific info you need then I can try to give you the info.
[Android Apps and Games] Ibuprophen:
Okay... This is a new issue I've, personally, never came across before... Especially when the app doesn't make permanent changes to the device.

I'm going to provide a type of "bottom line" of your issue based upon what you had stated on your post.

Please be patient while I'm trying to understand the following.

1) After installing The SELinux Toggler, your SIM card suddenly stopped being detected and still cannot be detected.

2) Furthermore, when you had installed The SELinux Toggler, you didn't do anything with the app when the issues began happening.

3) You have BusyBox Pro installed but, upon trying to install the BusyBox Binaries, the device suddenly rebooted itself.

4) You have both the Magisk SU and Hide installed but, the Magisk SU was unable to gain Superuser access.

5) Now you had redone the whole device to include but, not limited to, wiping everything, Flashed the ROM, etc... and currently stuck.

Though, my questions for you are based upon your answer to the above information.

I encourage you to please correct, elaborate, add, remove, etc... the information above.

Since this issue is also regarding Magisk, it would be GREAT if [MENTION=3853110]Dixon Butz[/MENTION] & [MENTION=5357345]ahrion[/MENTION] could monitor and chime in when needed.

Thank You!

"Live Long and Prosper..."

~Ambassador S'chn T'gai Spock

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise
[Android Apps and Games] jjakajonas:
Yes to all points.

And now that I don't have it installed there's only the normal problems on my device.
[Android Apps and Games] Ibuprophen:
Okay... What is, currently, your specific status of the device?

Do you have the device redone now? I mean if the device was completely wiped with everything installed like Magisk SU/Hide and BusyBox?

The thing is that, if you haven't noticed, on the OP, The SELinux Toggler requires the Magisk SU/SuperSU (one or the other) and the up-to-date Superuser Binaries installed AND BusyBox with the up-to-date BusyBox Binaries installed (in the /system/xbin directory) BEFORE you are even able to use The SELinux Toggler.

The SELinux Toggler requires Superuser access and one or more of the BusyBox Binaries to even work.

If your having trouble with Magisk itself, then you need to ask someone in the Magisk thread for assistance with that.

Once Magisk and BusyBox is good to go, then you can check in here for what to do in Magisk to allow The SELinux Toggler to work with Magisk. This is because there's a few settings in Magisk that allows this app to work (thanks to [MENTION=3853110]Dixon Butz[/MENTION] & [MENTION=5357345]ahrion[/MENTION]).

"Live Long and Prosper..."

~Ambassador S'chn T'gai Spock

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise
[Android Apps and Games] jjakajonas:
I have been reading everything in the tread after you posted a link in the tread from the abandoned app.

I have fresh rom with both the latest magisksu and busybox installed and all my other apps.

I have even testet with a root checker and that app says that both root and busybox are correct installed and working like the other times.
[Android Apps and Games] jjakajonas:
Fotos from the app
[Android Apps and Games] Ibuprophen:
Have you looked at the following posts within this thread?

https://xdaforums.com/showpost.php?p=72001334&postcount=155

https://xdaforums.com/showpost.php?p=72002230&postcount=156

They're Magisk specific for using this app.

"Live Long and Prosper..."

~Ambassador S'chn T'gai Spock

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise
[Android Apps and Games] jjakajonas:
Yeah I have seen that to.

But the thing is as soon as I set SElinux Toggler on my hide list it won't work because it can't see that my device is rooted.
[Android Apps and Games] Ibuprophen:
Did you previously have the SELinuxModeChanger installed and then installed The SELinux Toggler over it?

This Root issue was present on the SELinuxModeChanger.

"Live Long and Prosper..."

~Ambassador S'chn T'gai Spock

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise
[Android Apps and Games] jjakajonas:
I had it installed on my device before. But as the OP post told "remove, restart and install the new" so I did.

And the tries I did afterwords was without the old app but on a new fresh install of the os with needed apps.
[Android Apps and Games] Ibuprophen:
So the bottom line is when you set The SELinux Toggler to Permissive, your device still reflects Enforced?

"Live Long and Prosper..."

~Ambassador S'chn T'gai Spock

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise
[Android Apps and Games] jjakajonas:
If I put it on the hide list then I can't do anything.

If I don't put it on the hide list it starts up grants root permissions and can use it.

But I have to check the message check box ant try a few times before it works and then my device acts strange and do like described before.

Maybe it's the OS? I have a lot of problems in that as stock install.
[Android Apps and Games] Ibuprophen:
To be honest, this behavior is not a common one for this app.

This app doesn't make any permanent changes to the boot scripts. It only sends the temporary commands to the device and when the device reboots, the SELinux defaults back to Enforcing and after it's booted up, the app autoruns and sends the temporary SELinux commands again.

Maybe if you try this...

First perform a traditional uninstall of the app and reboot the device.

Then see if you can locate the following directories and, if you do (as i believe that it may be there), delete them both.

/data/data/com.mrbimc.selinux/

/data/app/com.mrbimc.selinux-1/

Then reboot your device and install the latest SELinux Toggler app and see how it does.

If the folders/directories exists after you uninstall the app, then that is probably the old SELinuxModeChanger files that may be conflicting with The SELinux Toggler app.

Let me know how it did.

"Live Long and Prosper..."

~Ambassador S'chn T'gai Spock

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise
[Android Apps and Games] jjakajonas:
Those folders do not exist on my device.
[Android Apps and Games] Ibuprophen:
Which step?

Are you referring to them not being there after you uninstall the app and reboot the device?

There's only one of 2 things going on here...

1) There's something missing in regards to some kind of small detail that is tied to, what i call, the "ah ha!" factor. i just can't think of what it could be.

2) Your devices kernel isn't set up for or just isn't allowing your SELinux to be changed... Not conventionally anyway.

This app isn't a guarantee to work for all devices. I've got a feeling that yours may be one of them.

Unless i, personally, had your device, i can't think of anything else to do or state besides the fact of you proceeding at your own risk if you prefer to keep trying to figure this one out.

Of course, if you do decide to do so, and have any questions, I'll be more than happy to answer them the best i can.

"Live Long and Prosper..."

~Ambassador S'chn T'gai Spock

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise
[Android Apps and Games] jjakajonas:
As I atm.

I think you are right regarding the not working on your device part.

But yeah I'm on beta OS whit bugs.

So I think I will try again etch time ether one gets an update (OS and/or your app) to see if I can get it to work.

But thanks for the try.
[Android Apps and Games] Ibuprophen:
I appreciate your understanding!

I'm not brushing you off or giving up on you. The SELinux Toggler isn't, in any way, perfect and there's always room for improvement.

If you are able to get it going too, it would be GREAT if you could share your findings with us so we can all refer to it in the future.

Thank you very much my Friend!

"Live Long and Prosper..."

~Ambassador S'chn T'gai Spock

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise
[Android Apps and Games] jjakajonas:
It is what it is. Whit a variety of hardware and software it can be hard to get it to work on all devices.

I will keep following the tread and share the findings I hopfely get over time.
[Android Apps and Games] Ibuprophen:
Just a quick referral...

See if you have any luck within the following thread.

http://xdaforums.com/showthread.php?t=3034245

"Live Long and Prosper..."

~Ambassador S'chn T'gai Spock

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise
[Android Apps and Games] jjakajonas:
I will give it a read thru a little later.

But thanks ?
[Android Apps and Games] RBEmerson:
I'm lovin' SELinuxToggle - no need for ibuprofen. ;) But... of course Google gets cranky about finding SELinuxToggle. OK, I can tell Google not to check for evil stuff coming into the machine. OTOH with all manner of malware loose in the world, I'll take whatever help I can get. Question: is there a way to conceal SELinuxToggle's existence? I have notification turned off.
[Android Apps and Games] Ibuprophen:
Thank you very much for your compliment!

I'm always happy to see that the app worked out for a member :).

That popup you had mentioned is called a PSA (Poisoned System Directories) warning from Google Play that warns users to uninstall various apps, especially, if they're SELinux-related ones.

If you want, the following link has a nice little "how to" for Disabling those pesky "App is harmful" Security Alerts:

How to Disable the Android's (‘App is harmful’) Security Alert

Please keep in mind that you can always let me know if you have any questions or concerns regarding The SELinux Toggler.

"Live Long and Prosper..."

~Ambassador S'chn T'gai Spock

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise [NCC-1701].