yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] loreo:
Nice work! I thought I would be able to use your app to fix a root problem I'm having, but it didn't. I'm getting root with KingRoot, but without full permissions(?). I can get a few things done after my phone says it's rooted, but then it auto reboots and it reverts to an unrecognized root state. So I thought I would use your app, get my phone to temp root, and use the toggler's permissive tool. Your app did its thing. My notices said it was active,.. but then the auto reboot happened and I was back blah.

So, your app is awesome, but my phone is lame.
[Android Apps and Games] hedak:
Hi Ibuprophen and friends,

I just got my S7 and would really like to get SELinuxToggler working (for using USB MASS STORAGE Enabler v1.6), but I wasn't successful until now :/

(of course it's rooted and TWRP flashed, but STOCK KERNEL)

Whenever I press "Permissive" the whole system's UI freezes and after about 30s the phone reboots itself. The system is working again after that reboot, but SELinux is enforcing (according to setting -> about), so nothing changed.

Is there any special reason you linked smikel82 to https://xdaforums.com/and...m-rom-t3534768?

Is it due to the samsung kernel? Here it's stated that "All samsung kernels are unable to switch selinux status", but other samsung users in this thread already reported success. (I know there are non-stock kernels that always act in permissive mode, but that's not what I'm looking for...)

I first tried using Magisk (v12), then wiped all data, tried SuperSU (SR3-SuperSU-v2.79-SR3) systemless.

Currently I'm on SuperSU non-systemless with BusyBox installed to /system/xbin as you suggested, but still enforced :(

(Just for information: USB MASS STORAGE Enabler v1.6 detects, that the phone is enforced and asks right after app start if I want to change to permissive. If I try this advise, the behaviour is the same as when trying to change with your app)

Please help, best regards!
[Android Apps and Games] Ibuprophen:
I understand what your saying...

I'm not a fan of KingRoot at all. I don't believe that it provides proper Root but, with that stated, there are individuals who are successful in using it.

I, personally, Root using the Wondershare PC Software because that can Root almost any device as well as installing the SuperSU for Root Management.

Okay... you have the gist of the information but, it looks like you're a bit mixed up with a few of them...

Samsung's Stock Kernel doesn't play well with changing the SELinux State.

As long as you have the Stock Kernel, that's accompanied by the Stock ROM, Knox will not allow the SELinux State to change and when you had attempted it, via The SELinux Toggler, the device had, kinda, panicked in a way by freezing up.

When it comes to Magisk... It can allow a devices SELinux State to change because it has a unique way for handling a devices SELinux State.

Magisk Is able to hide, or fool the device, in the way it will change the SELinux State by way of making the device think that the device is still in Enforcing Mode, when it's actually in a Permissive Mode.

It's tough to explain via text...

By sticking with the Stock ROM, in order to change your devices SELinux State, what you need to do is to locate/find a Flashable Kernel somewhere that will allow your device to change its SELinux State.

Or try and locate/find a custom ROM for your device that, typically, has the Kernel already coded in it that will allow you to change the devices SELinux State.

"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] RBEmerson:
I'm using the procedure in the article. The question is whether or not SELinuxToggle can become stealthy enough to not trigger a PSA? I'm guessing the answer is no.

Thanks again for a really useful "use it every day" tool.
[Android Apps and Games] Ibuprophen:
The question isn't whether or not it's stealthy, the question is whether or not your devices Kernel will permit the change.

The app, itself, wouldn't trigger anything since it doesn't make permanent changes to anything. The app only submits the commands for a temporary change in the SELinux State. It's only whether or not the device itself will allow the change as written in your devices kernel.

It's challenging to explain in layman's terms via text.

"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] RBEmerson:
I think I see where this is going. If the phone's permissive when it's never supposed to be, then the alarm bell rings (very, very sloppy description on my part). Is that close enough?

Unbranded US S7, rooted (of course), stock ROM and bootloader
[Android Apps and Games] hedak:
Ok, thanks so far! :) I'll try to find such a kernel.

Maybe qou can answer the following: This S7 kernel is "SeLinux is set to permissive". Can you say, if such a kernel would support to set SELinux enforced? :cyclops:

BTW, thanks a lot for you app, anyway!
[Android Apps and Games] Ibuprophen:
I had just posted the following on another thread and decided to post it here to, hopefully, help those who may need a bit more clarification on the subject of "Root -v- SELinux" because so many individuals are confused by way of them thinking that having Proper Root means that they should be able to modify a devices SELinux State and that's just incorrect.

[MENTION=5475764]hedak[/MENTION] and [MENTION=4740519]RBEmerson[/MENTION] should find this helpful too since they also have the gist of this but, based solely on their posts, may not be getting the whole picture/understanding.

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

I'll try my best to explain it a bit more... User Friendly :)

Apart from a typical kernel modification, the actual SELinux (Security-Enhanced Linux) tools/policies are all located in one file "/sepolicy". That file, simply, contains the instructions for the actual control mechanisms typically located in the "/sys/fs/selinux/" directory.

Obtaining/Gaining proper Root within the device doesn't mean that your granted Root control in one of the devices features within the, commonly referred to as, MAC (Mandatory Access Control) System.

Individuals often confuse the devices Root access with certain, higher privileged roles, that are assigned to the devices Security-Enhanced Linux. The individual with a Rooted device typically confuses the two separate device privileges and should keep in mind that an Android does have multiple device privileges.

But that does mean that restricting root access to a folder means that some additional countermeasures need to be implemented. It just means that those separate policies are typically determined by way of the devices "Kernel" that outlines the users ability to make modifications to the devices "Security-Enhanced Linux" (aka SELinux).

The following URL does explain this in a great way:

Security-Enhanced Linux in Android

Though, you should keep in mind, that the above URL is a start but, if you do a little searching on the Internet, you should be able to locate other websites that explains the SELinux (Security-Enhanced Linux) in different ways that may be in more of a "layman's terms" that is better understood for some non-technical or less-technical minds.

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

"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] RBEmerson:
Great thanks for the user friendly explanation and the link. I should have anticipated this situation from my experience with (non-phone) linux.

Ah well, I'm hardly counting on Google to be my first line of defense against malware. NTL defense in depth is a good thing, and the deeper the better (mostly). I guess Google is too deep for me. [/LOL]
[Android Apps and Games] Ibuprophen:
I feel that the Google Security Feature is a good thing for the common everyday user as well as the less experienced. It does help them allot. So I wouldn't state that this feature should go away as it does help them with the security of their device.

It is a little thorn on the side for those more experienced with Rooting, Unlocking, etc... As long as there's a way to turn off/disable this feature, then I'm not against it and would definitely keep it, purely, for those who does need it.

"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] RBEmerson:
Gotit. Again, great thanks for everything! [/ two thumbs up]
[Android Apps and Games] Datta258:
Latest app v4.3.7 working on redmi 2 prime running Tesla ROM.

Thanks for your efforts.

One question for dev, will changing status of selinux to enforcing make device more secure?
[Android Apps and Games] Ibuprophen:
Thank you!

I may be a bit delayed on the next release because, unfortunately, 2 family tragedies has recently occurred...

My Grandmother of 88 had recently passed away peacefully and my Aunt had a Stroke the day afterwards and is still in critical condition.

I may just as well be working on the app a bit (on top of 2 other projects i haven't released yet) to keep my mind from exploding...

What a bad streak of luck!

"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] shawek:
sorry to hear this man.ill pray for you family.dont worry bout project, family first✌️

Sent from my One+ 3T [4.1.3][7.1.1] :)
[Android Apps and Games] Ibuprophen:
Well I'm still here if anyone has any questions, concerns or just wanted to say hello :)

I've recently been trying to re-familiarize myself with Github again so I can get some projects that was never appropriately launched as the they were set on the back burner when I gave my full attention, first to the SELinuxModeChanger Flashable files (those of you may remember that prequel to the SELinuxToggler) and then to the development and launching of the original SELinuxToggler.

I can't believe how much I had forgotten about Github (as well as how much i remembered LOL!). Though, i did remember about how much of a "pain in the caboose" it was too!

If anyone had followed me, in Github, they'll notice a handful of stuff that I've been testing on as a sort of practice round to help with my familiarizing myself.

Anyway, I haven't forgotten about The SELinux Toggler and wanted to let you all know that I'm here and I'm still touching base with the next release.

As a side note... I also remember about The SELinux Toggler version with the app using the new directory structure. Well... I'm a little farther behind than i had planned (not too extreme). I had crapped out with my first through sixth beta versions of the new SELinux Toggler whereas I've been getting better with each one.

Okay, I'll chat with you all later...

Take Care Everyone!

"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] Dixon Butz:
:confused:
[Android Apps and Games] RBEmerson:
SELinuxToggler sets off Google's security checks, and that leads to a demand to uninstall the app. Sounds like a form of shunning and excommunication to me. :)
[Android Apps and Games] Ibuprophen:
That 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].
[Android Apps and Games] RBEmerson:
No worries - just doing my vocabulary lesson for the day. [/LOL]
[Android Apps and Games] Ibuprophen:
***** SELinux Toggler and SuperSU *****

I'm just curious as to anyone having issues with the SuperSU v2.80 and its impact on the 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
[Android Apps and Games] Ibuprophen:
Just an update...

It seems as though SuperSU v2.82 from Chainfire had addressed the root issues for everyone (including myself) but, XPERIA devices has still been resulting in Bootlooping issues and Chainfire has continued his work for these specific devices.

Here's the link to a status update by Chainfire (especially for XPERIA users to take note of the information from Chainfire).

https://xdaforums.com/showpost.php?p=72428986&postcount=1645

Thank you all for your time and Kirk Out... LOL!

"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] rafik25:
Hello not working for me. Flash ok. After all reboot im on enforcing mod. After all reboot v4a need install drivers. With selinuxmodchanger all works fine. Phone Asus zenfone3 with nougat
[Android Apps and Games] Ibuprophen:
I apologize because, I know that it may be a small language barrier but, I'm not completely sure what you are asking.

"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] rafik25:
Sorry for my bad english. Ur mod doesnt work for me. I need it for viper4android.
[Android Apps and Games] Ibuprophen:
I believe that the viper4android is unique in the way it handles SELinux and even root in an, effective, yet unconventional way.

This app changes the SELinux State in a more conventional way.

Sorry...

"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] shawek:
To rafik25

You can try UKM and with Synapse change Selinux state on boot(or with some other Kernel Tuner app).I use Arise mod(just core + Viper4Arise),and I don't need any more to change to Selinux,it works with enforcing.

And,With original Viper4Android on my phone,and with Selinux Toggler, I never had problems,V4A was processing.

Sent from my One+ 3T [4.1.3][7.1.1] :)
[Android Apps and Games] Ibuprophen:
[MENTION=4816596]shawek[/MENTION], I have just a few questions...

First of all, regarding the V4A, i've heard about and seen it chatted about but, I'm not very familiar with V4A since I've never needed or used it before.

1) Was rafik25 in search of something that required the device to be in a, boot script (permanent), Permissive Mode?

2) Does V4A require this?

Just curious...

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] shawek:
1.Yes,he surely looking for something to get permissive on boot (during boot)(all time permissive).there is also flashable zip for that, "permissive.zip" for twrp flash.There is script also for that.There are many u possibilities to make it "permissive/enforcing on boot".

with selinux Toggler I never had problems,V4A was working.

2.not 100% sure anymore,I don't use official V4A anymore.As far as I know Viper4Arise from Arise team,can work in enforcing and is working here on my phone.

Sent from my One+ 3T [4.1.3][7.1.1] :)
[Android Apps and Games] Droidriven:
[MENTION=4828250]Ibuprophen[/MENTION], the gadgethack link goes to an article about candy crush tricks now.
[Android Apps and Games] Ibuprophen:
Thank you for the heads up!

I had just found out that they recycle URL's and this was just recycled not too long ago.

I had just removed it from the OP.

***Please Note: As always, I welcome any member to help with further valuable information/clarification for any of my posts.

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise...
[Android Apps and Games] Droidriven:
They have it here though.

https://m.xblogs.info/2017/03/how-t...nux-mode-with-this-one-tap-app-android-hacks/
[Android Apps and Games] Ibuprophen:
I have about 8 links to this apps article and 95% of them seems to be a copy and paste off one of them.

Thanks a bunch!

***Please Note: As always, I welcome any member to help with further valuable information/clarification for any of my posts.

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise...
[Android Apps and Games] Ibuprophen:
**EXTRA! EXTRA! READ ALL ABOUT IT!**

Hello again everyone!

I just wanted to bring you up to speed with what's been going on for the past month or so.

I've been working on the next release of The SELinux Toggler and, hopefully, should be out sometime soon.

I've also been working on a ton of other items that includes a few unfinished/prospective projects, cleaning/gathering/sorting/uploading a ton of items within/to/from my File Host Account.

I was thrown off track a bit as a result of, what i coined, "The Great SuperSU Trauma of 2017" LMAO! and though, I've created a temporary fix to the issue, I'm still awaiting Chainfire's SR1 release in hopes that it's a fix to the underlying issue.

For those who are interested, i had also added a handful of devices to my File Host Account so I can have a place for, very useful and searched for files, i had for uploading to so others can use them without my deleting them forever. They are for devices that i, currently, don't own and/or have little to no experience with as well but, have been found working for those who does have them.

Though, for the most part, I'm finished with it, there's some more work to do in various areas but, If you would like to browse around my File Host Account and see if there's something that you need and/or could use, then you're more than welcome to take a look.

Downloads for Android Devices by Ibuprophen - Android File Host

As always, please let me know if you have any questions, concerns or just wanted to say hello.

***Please Note: As always, I welcome any member to help with further valuable information/clarification for any of my posts.

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise...
[Android Apps and Games] ozren8:
I've been trying for an hour but I just can't get SELinux set to Permissive.

I have Samsung Galaxy A5 (SM-500FU), with 6.0.1. TWRP or SuperSU app complained about KNOX not being knocked down, and I clicked to do so, and it hasn't complained about it since. (Whether it actually disabled knox - I don't know. ). I installed busy box from playstore. I am using twrp-v3.1.0-0 and SuperSU-v2.79-SR.

I have tried running "setenforce 0" command in terminal as root, and this does not work either, "getenforce" returns Enforcing.

I did do "Fix SELinux context" in TWRP before trying any of this, and that probably isn't causing it, but thought I'd mention it anyway.

Hope someone can try to help me, I need to enable permissive mode to rescue missing files after phone was factory restored. Two apps that were recommend to me (Undeleter, GT Recovery) require SELinux set to permissive to work.
[Android Apps and Games] Ibuprophen:
This looks like a situation where another individual had TWRP, SuperSU and BusyBox but, preferred to keep the Stock ROM...

Am I correct as to the same situation?

If i am, then all i can state it that, as long as the Stock ROM is still there, you can't change the SELinux State.

The stock ROM's kernel is preventing this. The SELinux State is not a Root function but, it is one requirement along with the BusyBox Binaries. The Security Enhanced Linux (aka SELinux) is determined by the ROM's kernel and the Stock ROM won't allow this change.

Many individuals don't realize that changing the SELinux State is based upon a few factors... The bootloader, root, BusyBox and the ROM's kernel.

I hope i explained it via text okay...

***Please Note: As always, I welcome any member to help with further valuable information/clarification for any of my posts.

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise...
[Android Apps and Games] Droidriven:
Find a custom ROM for your model number if you want to switch to permissive, otherwise, you're stuck with SELinux enforcing as long as you are on stock.

It can be switched on stock but it requires having a custom kernel that works with stock, but I doubt there are any such kernels available for your device, your device is not popular enough to interest developers to develop for that model.
[Android Apps and Games] Ibuprophen:
[MENTION=8345775]ozren8[/MENTION], take a look at the following threads.

They both reflect compatibility for your device on their OP and one or both may have what you need to be able to change your SELinux State.

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

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

Good Luck!

***Please Note: As always, I welcome any member to help with further valuable information/clarification for any of my posts.

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise...
[Android Apps and Games] Taivotat2:
As [MENTION=4828250]Ibuprophen[/MENTION] said you could try with next release of Kraken kernel from [MENTION=5261186]Bulgaricus[/MENTION] for A series. Maybe you're lucky.?

BTW a very pretty kernel I use in my stock J5 2015
[Android Apps and Games] Raymond Ebertt:
HI and great work with xda.

I am on HTC 10 and I had successfully used the SElinux app back in March with the insecure adbd to get root access and the ability to pull and push apps for theming. Now, since Leedroid's latest update, I cannot get permissive or can the insecure app to patch. I don't know what is going on. The update of the ROM only changed apps.

Do you have any troubling shooting ideas?
[Android Apps and Games] Ibuprophen:
I just love the old TV show "Have Gun Will Travel"... LMAO!

...Off the Record of course :)

***Please Note: As always, I welcome any member to help with further valuable information/clarification for any of my posts.

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise...
[Android Apps and Games] Ibuprophen:
To be honest... If the app worked before the Leedroid update, and won't work after, all I can recommend is to try uninstalling the Toggler, reboot then reinstall it to see if it'll work again.

If it doesn't work then something in the Leedroid update is preventing the app from working.

***Please Note: As always, I welcome any member to help with further valuable information/clarification for any of my posts.

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise...
[Android Apps and Games] theobjr:
When I download the apk on my pc with chrome, I get a warning about the file, it is the same way with my phone. Does everyone get this warning? By the way, I did ignore it once and installed the app and it wasn't a very good outcome.