yashsingh1/xdaforums huggingface dataset:
[Magisk] Shafwan7:
so should use this one or old version?

or it is still the same function?
[Magisk] lawong:
does this work on samsung?
[Magisk] Skull97:
Yup, as long as you have magisk.
[Magisk] lawong:
already tried , it didnt work , latest magisk , samsung stock 7.1.1 .
[Magisk] Jman420:
I'd recommend using the new one... i mean newer is better, right?
[Magisk] Jman420:
This module won't work for everyone... it depends on the kernel that your phone is running. If the kernel doesn't support the mode you are trying to put it into then you won't see any result. Or, if you are trying to enable permissive mode and have Magisk Hide enabled, then Magisk will be hiding the fact that you are in permissive mode.
[Magisk] stefano91av:
After I install any version of this module, if I give the "getenforce" command from my terminal I get "enforcing" as a result.

Yet during the installation I set "Permissive".

If I try from the terminal to give "setenforce 0" I get as a result "Could not set enforcing status: Invalid arugment".

How can I solve?
[Magisk] Didgeridoohan:
MagiskHide might be masking the SELinux status, that's one of its functions. Check the Magisk log in the Manager.

If you type this in terminal, what's the output?

setenforce --help
[Magisk] peterlee928:
ok so this is a dumb question - bur is selinux permissive not a given w/ stock rom and magisk?
[Magisk] Didgeridoohan:
No, it's not. Magisk can patch dm-verity and forced encryption, but it doesn't touch SELinux (except for MagiskHide, that can hide a permissive state).
[Magisk] peterlee928:
learn something new every day :) thanks!

EDIT

another dumb question - how do i confirm whether my selinux is enforcing or permissive?
[Magisk] Jman420:
Make sure magisk hide is disabled and run 'getenforce' from a command line.
[Magisk] peterlee928:
can selinux be set to permissive if magisk hide is enabled?
[Magisk] Jman420:
Yeah, but magisk hide will hide the fact that you are in permissive mode so that you pass safety net checks.
[Magisk] peterlee928:
i have systemless xposed installed. thus my safety net is broken. although the xposed mod "no device check" restores cts profile only.

given the aforementioned facts, do i still need to disable magisk hide? also, can i use any android terminal emulator and run that cmd that you noted earlier?
[Magisk] Jman420:
Magisk Hide is gonna hide your SELinux Permissive status regardless of whether something else has broken Safety Net. Whether or not you use Magisk Hide is up to you... If you want to get accurate feedback from 'getenforce' then you need to disable anything that will interfere with it, which includes Magisk Hide.
[Magisk] peterlee928:
so i disabled magisk hide. then typed getenforce into my emulator. it comes back with:

getenforce: command not found

am i doing something incorrectly?
[Magisk] Jman420:
Try 'sestatus', if that command doesn't work then its possible that your kernel either doesn't support SELinux at all or it doesn't support changing the SELinux mode.
[Magisk] peterlee928:
that command didnt work either. im running stock rom april update. no custom kernels.
[Magisk] Didgeridoohan:
Are you using Termux? If so you need to run the command as su.
[Magisk] peterlee928:
i am using termux. so type su getenforce or su sestatus?

EDIT

ok i understand now. thanks for answering my incredibly noob questions. ????
[Magisk] peterlee928:
does this mod make (permanent) changes to the boot script files? i wasnt sure of this after reading the op. much thanks in advance :)
[Magisk] Jman420:
No, it uses magisk to run a script at startup. No files are changed outside of the module itself.
[Magisk] DenisEhm:
Hi all. Is there a reason why I don't see this module in the repo?? I don't have a custom kernel, so might not work anyway, but I figured I would still see it..?
[Magisk] JERW28:
[MENTION=5458305]user2k10[/MENTION] [MENTION=621402]DenisEhm[/MENTION]

go to settings >clear repo cashe> go back to settings and swipe down. This mod will appear again
[Magisk] DenisEhm:
Thanks! Should have figured that out on my own really... Seems I'm making a bunch of noob mistakes lately. Like getting excited and not doing a backup before installing this module and being stuck in a boot loop now..... :(

Edit: Well I'm bricked. Nothing works, adb is not starting in TWRP, I can't install MM for recovery and flashing the module again doesn't work, even Magisk Uninstall doesn't work! I don't understand why this happened; I used sideload plenty of times before and there is no reason for my /data to be unmountable! But beyond that, is there ANY way I can recover from this??? I know it's totally my fault, but I haven't backed up in a few weeks and I can't remember if I have anything important there...
[Magisk] JERW28:
Have you tried this?
[Magisk] DenisEhm:
Yes, but unfortunately my /data is encrypted for some reason so I can't even install it... I'm pretty sure because of this I am absolutely boned :(
[Magisk] JERW28:
I'm sorry, I don't know how to help you. Maybe someone else with more knowledge can.
[Magisk] DenisEhm:
I appreciate the effort :) I've flashed my phone, and it got through boot, but now I'm stuck at a boot password to decrypt the data. Usually "default_password" works, but now neither that or any of my usual passwords work! I'm about to have a stroke trying to fix this!!
[Magisk] JERW28:
Try searching and asking in your device forum. Hopefully you can get help there.
[Magisk] jsdecker10:
Running the newest Magisk v16.4 and noticed my device had at some point switched from being in permissive mode to enforcing mode all on its own somehow. I've ran this module for quite some time now with success and now when updating, it automatically chooses enforcing mode for me as the module installs. I've tried uninstalling the module, reinstalling it, installing it from TWRP Recovery, installing it with the word "permissive" added to the end of the module filename (just as the op instructions suggest). No matter what i do, i can't get it to give me the key-in option to select permissive mode. This is all on Android 8.1 Resurrection Remix, yet everything used to work fine just a couple weeks ago on this same exact device and same ROM/kernel.

Suggestions?
[Magisk] sandeep101:
When installing through magisk it doesn't ask for user option and selects enforcing as default mode.... While if flashed from TWRP it will ask for mode.. First it will ask to press vol+button then for permissive mode press vol- button.... It will set permissive mode as default and create corresponding script for it..
[Magisk] GloomySVT:
Where is the download link to the latest version? The attached file in your post is for 1.0
[Magisk] Didgeridoohan:
You might want to re-read the OP, right at the bottom.... :p
[Magisk] SysGhost:
You mean "All Releases are available on the Magisk Module Repo. Releases will not be distributed here."

Well.. there are none available in the repo either. :confused:

Using Magisk 16.4 - build 1642

EDIT:

Seems I solved it by uninstalling magiskmanager, rebooting, then reinstalling it again (adb install magiskmanager.apk) followeds by another reboot. Just clearing the repo cache and force update the repo didn't help.
[Magisk] Jman420:
This doesn't sound like it had anything to do with the module, but instead had to do with the functionality of magisk manager. I've seen similar issues, but clearing the repo cache had always worked for me.
[Magisk] newuserrr:
Hello. I have a problem like jsdecker10. The module auto switch selinux to enforcing when hard reboot. After that i tried to uninstall it then reinstall but the first reboot it showed the selinux is enforcing. I don't know, it is weird. I'm on 6.0.1 if that helps. Also my device has knox enabled. Sorry for the bad English.
[Magisk] Sirius@15:
Is it possible to go from permissive to enforcing on a ROM which is initially in permissive state?

TIA
[Magisk] Jman420:
Sure, as long as the kernel supports enforcing.
[Magisk] Sharath Mane:
Help, I'm using NOS, and the selinux is in permissive mode. I want to change into enforcing. And the developer said that is not ready for enforcing.

By using this, can we change selinux mode into enforcing?

Is there any problem doing so?
[Magisk] Jman420:
I recommend working with or waiting for the dev to provide a build that supports enforcing. You can certainly try to enable enforcing with this module, but it may break your Rom. Make sure you have a restore strategy.
[Magisk] gFknQ:
It worked for me on Nos just fine. I used it for a couple of months with no problems. But I have been on a different rom for a while and can't confirm anything more recent. Nitrogen thread has a lot of helpful users if you want to ask there
[Magisk] Sharath Mane:
#60

#61

Thank you for helping.

I tried before to change selinux mode with other app. That didn't work.

I will try wt u said. Thnk u. ☺
[Magisk] tthatswhy:
installed the module, cant choose anything during installation progress, it said vol- to select permissive, I did but still install as enforcing. Using custom kernel HyperPlus which enable permissive selinux.

Solved, flash it in twrp
[Magisk] Jman420:
Another potential alternative would be to use the File Name Convention to select the SELinux Mode you want the device to be in. By specifying either 'enforcing' or 'permissive' in the zip file name the volume key selection process will be bypassed.
[Magisk] heeroyuyj:
i got the Magisk SELinux Manager v1.0.5 on my phone

Now I want to install it for a friend, but I can't find the Magisk SELinux Manager in Magisk Module Repo

Is it off the shelf? sth went wrong?
[Magisk] Didgeridoohan:
Clear repo cache and reload.
[Magisk] heeroyuyj:
ok, thx bro
[Magisk] victorsv:
APP conflicts with this other ...

https://xdaforums.com/showthread.php?t=2190753
[Magisk] Jman420:
um... how so? Can you provide any real details other than a complaint? Perhaps you are getting an error, or seeing unexpected behavior?

Quickly searching that thread it seems that the app requires your phone to be in permissive mode... if you are using this module to put your phone into enforcing mode then yes, this will interfere with AdAway. That has nothing to do with this module and everything to do with how you are using it. This module does not and will not change the requirements of other apps, all it does is give you control over which mode your phone is in when it boots.
[Magisk] Ruben Craveiro:
It seems to bootloop when changing selinux from permissive to enforcing (doing the vol+ install, tried both on magisk and twrp, both bootloop), on AOKP 7.1.2 on Elephone P9000, im trying to get Cts profile to come true, and selinux isnt helping by being permissive
[Magisk] Dreamer(3MF):
According To Your Description, The Flashed Rom/Kernel Hasn't The Ability To Switch Between Enforcing Mode & Permissive Mode So That Flash Another Rom/Kernel Which Supports The Ability Of Changing SELinux Mode. To Fix Uncertified Status In PlayStore & Pass The SafetyNet, Download DeviceSpoofingTool4Magisk From This Thread https://xdaforums.com/apps/magisk/qa-want-to-install-modules-magisk-v13-3-t3800435 & Do What Are Mentioned In The General Steps. P.S. Magisk Hide Will Hide That Your Device Is In Permissive Mode To Pass The SafetyNet.
[Magisk] Ruben Craveiro:
Yeah i saw that it hides it, was able to get cts profile to true with a module that changed fingerprint
[Magisk] Dreamer(3MF):
Did You Try DeviceSpoofingTool4Magisk From This Thread https://xdaforums.com/apps/magisk/qa-want-to-install-modules-magisk-v13-3-t3800435 To Pass The SafetyNet?
[Magisk] nijihana:
You should add a terminal command as both my volume buttons are broken
[Magisk] Jman420:
You can modify the file name in order to select the options instead. By doing so you will bypass the volume button selections. See the OP Usage section. Note that this method will only work in TWRP because of how Magisk Manager copies the zip file.
[Magisk] fassal:
Hi, enabling permissive state does not work for me. In settings info it still says SELinux permissive. Installation went flawless. Any ideas?

Device: S4mini Value Edition (serranovelte)

ROM: LOS14.1 by Danil_e71

Thank you.
[Magisk] Jman420:
Which state are you trying to enable; permissive or enforcing? If you've enabled permissive and the settings info say permissive then it sounds like it worked...
[Magisk] fassal:
No it's the other way round: I want to set enforcing. It seems there is no problem with installation and the boot script of the module seems to get loaded (Magisk log) but in phone settings info it still says permissive. Is there a way I can provide a log or something?
[Magisk] Jman420:
Not sure how that particular piece of info gets populated. Can you try running 'getenforce' in a terminal emulator? It's also worth trying 'setenforce 1', which is the command that the script runs in order to set enforcing mode.
[Magisk] fassal:
Thanks for the tips Jman420. However, I tried setting enforce with setenforce 1. I do not get errors using those commands. But permissive mode still remains. Maybe I have to ask the ROM developer (it is not an official LOS).
[Magisk] Vision:
Dissappear

Very good module work perfect Xperia z5 7.1.1 E6653.. Go to Magisk manager app in the download and the magisk selinux manager dissappear? Why? Only in my modules I have it
[Magisk] Jman420:
If I remember correctly we've had this issue before. I think it was solved in the past by clearing the Module Cache and re-downloading the full list of Magisk Modules. Check the Magisk Manager Settings for functionality to clear the cache.
[Magisk] Vision:
I clear the repo cache but still dissappear maybe reboot my phone or clear data of magisk manager

---------- Post added at 02:04 PM ---------- Previous post was at 01:08 PM ----------

I reboot I clear the data of the app I clean repo cache not working.. Weird
[Magisk] kgursu:
Same here. I think the developer needs to explain this resourcefully...
[Magisk] Jman420:
Seems that this module has been added to the Magisk Modules Graveyard. I have not been contacted regarding why it has been removed. The module package is still available at https://github.com/Magisk-Modules-Grave/magisk_selinux_manager/. You should just be able to add all of those files to a zip and it should be flashable.

Edit : It seems that as of today this module no longer satisfies the requirements for listing in the Magisk Module Repo. (https://github.com/Magisk-Modules-Repo/submission#announcements) At this time I don't believe it is necessary or beneficial to continue to support this project. I will maintain the current state of the module at https://github.com/Jman420/magisk_selinux_manager for anyone that wants it.
[Magisk] backamblock:
Hey, i can not get it to work :/

i've got lineageos 16 unofficial on pocophone F1 with newest magisk 17.2

almost every other module works, what am i doing wrong?

i flashed it in the magisk manager app, or am i supposed to do it in twrp?
[Magisk] Aswin08:
Can someone please say where is the download option in the above link?
[Magisk] Lither:
[MENTION=5956519]Jman420[/MENTION] I downloaded the zip (magisk_selinux_manager.zip) from your Github and renamed it to (magisk_selinux_manager_permissive.zip) as per your OP instructions but it won't flash in TWRP due to incorrect name?
[Magisk] krzee:
i have a on5 running on this stock rom: https://xdaforums.com/samsung-galaxy-on5/development/rom-galaxy-on5-metropcs-stock-rom-t3544572 android 6.0.1

and nothing seems to be able to set selinux to permissive. getenforce 0 has no error but selinux still enforcing. I installed this zip with no errors from magisk modules (both I tried both 17.3 and 18.0) and it is still enforcing. When I try to load the zip via twrp it asks for me to press volume up, then down for permissive (even though its named magisk_selinux_manager-develop_permissive.zip). so i do and it gets to "Writing SELinux Mode to startup script" and nothing more happens.

Does anybody have any ideas how I can put this phone in to permissive?
[Magisk] provolinoo:
Could you please reconsider that? It would be very handy to have your script in Module Repo, it's much easier to find, download and install :)
[Magisk] Zeuszoos:
Hi,

I went to GitHub but it shows a list of files, like before they're compressed into a Zip.

Where can I just get the v1.0.4 Zip? I tried the other link too, but got a "404" Error.

Thanks
[Magisk] Vision:
I have Xperia z5 7.1.1 android.. I'm little confused.. Now I have magisk manager 15.1 and have this Magisk_SELinux_Manager-v1.0.5.zip is all OK? If update to latest version magisk v18 can use that? Or exist some new?
[Magisk] Zeuszoos:
I have not seen posts from anyone who has been able to get the mode to change to Permissive on bootup no matter which tool they use. If you manage to do it, please write a "Step by Step How To" and post it.

Thanks!

Sent from my wicked fast, way bad ass,

LG V20 (H910), Droid Oreo v8.0, Rooted,

Alpha-Omega F*ck Sh*t Up Master ROM
[Magisk] Vision:
Volume + or -

Yes flash the zip file say press volume + for test and after say press volume + for enforcing or volume - for permissive mode and press the volume - and say now have permissive mode and all work with Magisk_SELinux_Manager-v1.0.5.zip
[Magisk] Zeuszoos:
Are you saying that you did that and you verified that it worked?

Or are you telling me what the instructions say?

Sent from my wicked fast, way bad ass,

LG V20 (H910), Droid Oreo v8.0, Rooted,

Alpha-Omega F*ck Sh*t Up Master ROM
[Magisk] Vision:
Both the instructions say this and I did that the instructions say and work for me my selinux is always permissive
[Magisk] Zeuszoos:
Tried it. Didn't work for me. Guess it doesn't like my phone. :)

Sent from my wicked fast, way bad ass,

LG V20 (H910), Droid Oreo v8.0, Rooted,

Alpha-Omega F*ck Sh*t Up Master ROM
[Magisk] Vision:
My phone Xperia z5 7.1.1 android work good
[Magisk] Jman420:
Nope, sorry... I've moved on to bigger and better projects...
[Magisk] provolinoo:
Thanks a lot for your reply... are these projects related to SELinux management?

Merry Christmas :)
[Magisk] Jman420:
Thanks! And Merry Christmas to you and everyone at XDA. Unfortunately, at this time, I do not have further plans for SELinux Management (although I won't rule out returning to SELinux in the distant future). I've learned quite a bit since joining XDA and 2019 is ramping up for even more exciting opportunities and ideas.

I haven't announced my current project outside of some very choice circles, but I suppose some teasers won't hurt. I'm not quite ready to release its name yet, so for now let's just call it 'Untitled'. So far it's taken me deep into the AOSP C++ code, specifically in the AudioFlinger Service, although I've thankfully resurfaced since then. It's currently taking me on tours of Fourier Transform and Convolution Algorithms and Libraries. Although breaking ground was difficult due to various expected factors, now that I have a solid foundation I am happy with the pace I'm moving at. There is still a ton of infrastructure that I need to design and build (c++ backend in progress, java frontend not started), but once I have a build that actually does something I will make a post and release it for the public (and I'm sure the more curious of you can find the public repo anyway).

What does this mean for SELinux Management? Well, in the short term is bad news... I am focusing all of my free time on Untitled and won't be spending any time on other projects outside of my day to day job. But, in the long term this is great news; I'm moving out of the Android Scripting space into the Mobile App Dev space (which is really where I'm more comfortable). There is so much more that can be done in the App space from cooler functionality to better source code management. Not to mention that means GUI Frontends for all of you guys (and I suppose more work for me, but who cares about all that?). I had resisted doing Mobile App Dev for a long time because I knew it would be a rabbit hole that I may never come out of and now that I'm firmly entrenched in that rabbit hole I don't expect I will be coming up for a good while.
[Magisk] m0han:
after much searching, i found v1.0.5 Zip. i can attach it here if that is NOT disallowed.
[Magisk] Zeuszoos:
I don't think it would be disallowed and I would appreciate it! Or even a link to where you downloaded it from, if possible?

Thanks! :)

Posted from my way cool LG V20 (H910) Nougat 7.0
[Magisk] m0han:
xda does not let me attach the file. temp. link to file added. standard disclaimer applies.

https://www117.zippyshare.com/v/Vr5dH1bo/file.html
[Magisk] Zeuszoos:
Thank You! :)

Posted from my way cool LG V20 (H910) Nougat 7.0
[Magisk] RootedLee:
Would someone please post a link to the latest v.1.0.5 installable either via Magisk or TWRP?
[Magisk] m0han:
try the link a couple of posts above.
[Magisk] RootedLee:
removed from zippyshare. But I just found out that one can simply download the latest repo from github (link on the first page here), move all files & folders in that zip to top level, save as Magisk_SELinux_Manager-v1.0.5.zip, install, done :) !
[Magisk] bmaz121:
Selinus Mode Changer not working for OnePlus One

I flashed Viper 6.1 Pie and it was set to permissive. The instructions for this module say that it is only to be used to set Permissive Mode but seeing the switch when installing I selected Enforcing. The result is a boot lockup at the 1+ screen. the only way to get out of it is to power off, power on to recovery TWRP and flash Magisk-Selinus-Manager.zip which sets it to Permissive I guess. To risky to run Viper on permissive. No word from Viper on this issue I just wanted to let other know so they don't have reflash the phone and loose all the settings. Any feed back would be appreciated.
[Magisk] bullx:
no mather how many times i press volume down button during installation it always chooses enforcer mode, i also tryed adding _permissive in the end of the zip when installing nothing changed.

trying it on GT-N5105 with TWRP and magisk 17

i have tryed it with the link posted few messages back v1.05

edit: https://www117.zippyshare.com/v/Vr5dH1bo/file.html
[Magisk] krekis:
too bad this project discontinued,

big thank for the dev
[Magisk] buddy66:
Does someone have a valid link? Downloading the package from GitHub wont work.
[Magisk] Hritwik:
PFA v1.0.5
[Magisk] Dreamer(3MF):
Download The Module Of MultiFunctionsPlus From This Thread https://xdaforums.com/apps/magisk/module-social-media-cache-advanced-t3799155 For Getting The Ability To Use The Function Of SELinuxMode Inverter To Invert The Default Android SELinux Mode ([From Permissive To Enforcing] Or [From Enforcing To Permissive]).

P.S. The Installed/Flashed Rom/Kernel Must Have The Ability To Switch Between Enforcing Mode & Permissive Mode​
[Magisk] death_jax:
In my case the above module seems not to work, unfortunately :( . For me the only way that works is The SELinux Application
[Magisk] Dreamer(3MF):
Download both of MultiFunctionsPlus4Magisk & QuickFix4Busybox4Magisk from this link (https://androidfilehost.com/?w=files&flid=274628) and do the next steps:

- flash them thru either Magisk Manager or a Custom-Recovery such TWRP and then reboot the device

- use any root file explorer such MiXplorer to access the part of data thru root

- copy the file of disable from /data/DreamerMods/MultiFunctionsPlus/disable to /data/DreamerMods/MultiFunctionsPlus/SELinuxModeInverter/Inactive and then reboot the device

P.S. for the module which is ended its name with Unity1.5.4Ax, it supports Any-Rooting-Tool such SuperSU, Lineage-AddOnSU & Magisk [From v8(800) To The Latest One]

P.S. for more details about the module of MultiFunctionsPlus, check the following thread https://xdaforums.com/apps/magisk/module-social-media-cache-advanced-t3799155
[Magisk] death_jax:
Thanks a lot Dreamer(3MF), it worked for me also without QuickFix4Busybox4Magisk, simple I misunderstood the tutorial, better explained with the your above message:

copy the file of disable from /data/DreamerMods/MultiFunctionsPlus/disable to /data/DreamerMods/MultiFunctionsPlus/SELinuxModeInverter/Inactive and then reboot the device
[Magisk] KZekai:
Is this tool still relevant if I want to deserialize sepolicy binary rules into readable format for audit?