[Magisk] Dreamer(3MF):
The General Steps:

- SELinux Enabled Kernel/SELinux Development Mode Is Required Which Means The Installed/Flashed Rom/Kernel Has The Ability To Switch Between Enforcing Mode & Permissive Mode

- To Check The Above Mentioned Ability, Install Terminal Emulator From PlayStore --> Open It -->

-----> For Getting The Current Android SELinux Mode, Write

su

--> Click On Enter --> Write

getenforce

(Most Devices) Or

sestatus

(Some Devices) --> Click On Enter

-----> For Setting The Current Android SELinux Mode, Write

su

--> Click On Enter --> Write

setenforce 0

(For Permissive Mode) Or

setenforce 1

(For Enforcing Mode) --> Click On Enter

-----> Check Again The Current Android SELinux Mode

-----> If The Mentioned Steps Worked/Succeeded, Download SELinuxModeInverter4Magisk From This Link https://androidfilehost.com/?w=files&flid=293646 & Flash It Then Reboot

-----> Enforcing Mode Is Preferable For Security (Specially Banking Apps) & Permissive Mode Is Preferable For Mods (Specially Audio Mods)

-----> For Magisk Users, Disable Magisk Core Only Mode From The Section Of Settings In Magisk Manager

-----> For Activating The Functionality Of SELinuxModeInverter, Use Any Root File Explorer Such MiXplorer -->

Root

-->

data

--> DreamerMods --> MultiFunctions --> SELinuxModeInverter --> Copy The File Of Disable To

The Folder Of Inactive

--> Reboot

-----> Some Issues Which Are Related To Magisk/Rom/Kernel Itself Can Be Solved By Using A Different Modes [Where The Wait Mode (The Default One) Can Be Used For Resolving The Issue Of Bootloop/Bootscreen/Blackscreen Which Changes The SELinux Mode Within 5 Min. After Rebooting & The Fast Mode Can Be Used For Changing The SELinux Mode At Booting]

-----> For Activating The Fast Mode, Use Any Root File Explorer Such MiXplorer -->

Root

-->

data

--> DreamerMods --> MultiFunctions --> SELinuxModeInverter --> Copy The File Of Disable To

The Folder Of Wait

--> Reboot

-----> For Activating The Wait Mode, Use Any Root File Explorer Such MiXplorer -->

Root

-->

data

--> DreamerMods --> MultiFunctions --> SELinuxModeInverter --> Delete The File Of Disable From

The Folder Of Wait

--> Reboot

-----> If The Mentioned Steps Didn't Work/Succeed, It Means The Flashed Rom/Kernel Hasn't The Ability To Switch Between Enforcing Mode & Permissive Mode So Flash Another Rom/Kernel Which Supports The Ability Of Changing SELinux Mode

- P.S. Maybe The Flashed Rom/Kernel Hasn't The Ability To Switch Between Permissive Mode & Enforcing Mode During Startup So You Can Use Only The Wait Mode (Not The Fast Mode)

- For Magisk Users, If You Want To Get Accurate Feedback From getenforce/sestatus, Disable Magisk Hide (Magisk Manager --> Settings --> Disable Magisk Hide) And After Finishing, Enable Magisk Hide Again [P.S. Magisk Hide Will Hide That Your Device Is In Permissive Mode To Pass The SafetyNet]

In-Case Of Failure: After Doing Successfully The Above Mentioned Steps

- For Magisk Users, Disable All Modules From Magisk Manager (Modules) & Also Disable All Apps Except Terminal Emulator From Magisk Manager (SuperUser) Then Reboot

- For Non-Magisk Users, Disable All Apps Except Terminal Emulator From SuperUser Of The Used Rooting Tool Then Reboot

- For Activating The Functionality Of ClearDalvikCache, Use Any Root File Explorer Such MiXplorer -->

Root

-->

data

--> DreamerMods --> MultiFunctions --> DalvikCache --> Delete The File Of Disable From

The Folder Of Active

--> Reboot

- For Activating The Functionality Of SELinuxModeInverter, Use Any Root File Explorer Such MiXplorer -->

Root

-->

data

--> DreamerMods --> MultiFunctions --> SELinuxModeInverter --> Copy The File Of Disable To

The Folder Of Inactive

--> Reboot

- Terminal Emulator --> Write su --> Click On Enter --> Write getenforce (Most Devices) Or sestatus (Some Devices) --> Click On Enter --> Write setenforce 0 (For Permissive Mode) Or setenforce 1 (For Enforcing Mode) --> Click On Enter --> Write getenforce (Most Devices) Or sestatus (Some Devices) --> Click On Enter --> Send The Screenshot Of Terminal Emulator

- Download The Test Module Of SELinuxModeInverter4Magisk From This Link https://androidfilehost.com/?w=files&flid=274655 & Flash It Then Reboot

- Wait About 30 Min.

- Terminal Emulator --> Write su --> Click On Enter --> Write getenforce (Most Devices) Or sestatus (Some Devices) --> Click On Enter --> Send The Screenshot Of Terminal Emulator

- Reboot & Wait About 30 Min.

- Terminal Emulator --> Write su --> Click On Enter --> Write getenforce (Most Devices) Or sestatus (Some Devices) --> Click On Enter --> Send The Screenshot Of Terminal Emulator

- Send A Copy Of debug-SELinux.txt & debug-SELinux-BU.txt (Their Paths Are Root --> /data/debug-SELinux.txt, /data/debug-SELinux-BU.txt & For Copying These Files, Use Any Root File Explorer Such As MiXplorer)

- For Magisk Users,

Magisk Manager --> Modules --> Send Its Screenshot

&

Magisk Manager --> SuperUser --> Send Its Screenshot

- For Non-Magisk Users, Send The Screenshot Of

SuperUser Of The Used Rooting Tool

- Send Full Logcat (

Download Logcat Extreme From PlayStore

)

- For Magisk Users, Send Magisk Log (

Magisk Manager --> Log --> Magisk

& Also The Screenshot Of

Magisk Manager --> Log --> SuperUser]

P.S. In-Case Of Facing A Bootloop/Bootscreen/Blackscreen Issue Due To Flashing A Module,

- For Magisk Users, Download CoreOnlyMode4Magisk From This Thread https://xdaforums.com/apps/magisk/module-core-mode-bootloop-solver-modules-t3817366 Then Flash It

- For All Users [Non-Magisk Users & Magisk Users] (Unity), Reflash The Module To Uninstall The Module