Help setting SElinux to permissive. SM-T700, Lineage 14.1. - Galaxy Tab S Q&A, Help & Troubleshooting

I've tried simpler solutions (running su set enforce 0 in terminal / creating a scripted with init.d app to run on boot) I have it rooted with SuperSU from chain fire. I was using resurrection remix and was able to install v4a with magisk, not able to do the same on lineage. I like lineage a bit more than RR because it feels cleaner and the battery life has been better in my experience. Any help would be greatly appreciated.

The kernel needs to support permissive selinux.

Related

Open source superuser for jaguar

This is Superuser open source app for my roms. It is based on excellent work of Koush and @phhusson who keeps this app active.
SuperSU is a great app, but it is closed source. Without casting any shadow on great developer Chainfire, a proprietary app that manages root and has literally total control over your device is not good security. Period. Well, if you don't believe me, then you should believe Koush:
Why another Superuser?
Superuser should be open source. It's the gateway to root on your device. It must be open for independent security analysis. Obscurity (closed source) is not security.
Superuser should be NDK buildable. No internal Android references.
Superuser should also be AOSP buildable for those that want to embed it in their ROM.
Superuser should also be AOSP embeddable, meaning a ROM can easily embed it into their Settings app.
Maintenance and updates on both the market and source repositories should be timely.
I want to be able to point users of my app to a Superuser solution that I wrote, that I know works, and that I can fix if something is wrong.
Handle multiuser (4.2+) properly
Handle concurrent su requests properly
So, this is a zip for flashing in recovery. It puts:
1. Freshly built Superuser.apk into /system/app; and
2. SU binary into /system/xbin
Nothing else is required. After reboot, you will have a working open source Superuser. If you are on Jaguar with Supersu, just reinstall the latest release (dirty) and flash the attached Superuser_Jan6.zip.
In case you would want to return to Chainfire's SuperSU, you'll just need reflash SuperSU zip.
The app is confirmed to work on Jaguar and my unofficial builds of Tesla-Redux, LiquidSmooth and DirtyUnicorns. It should also work without any problems on other roms including stock, if your Selinux is either disabled or set to permissive.
Source: https://github.com/phhusson/Superuser
Credit: @phhusson
Screenshots
Screenshots added.
optimumpro said:
This is Superuser open source app for my roms. It is based on excellent work of Koush and @phhusson who keeps this app active.
SuperSU is a great app, but it is closed source. Without casting any shadow on great developer Chainfire, a proprietary app that manages root and has literally total control over your device is not good security. Period. Well, if you don't believe me, then you should believe Koush:
Why another Superuser?
Superuser should be open source. It's the gateway to root on your device. It must be open for independent security analysis. Obscurity (closed source) is not security.
Superuser should be NDK buildable. No internal Android references.
Superuser should also be AOSP buildable for those that want to embed it in their ROM.
Superuser should also be AOSP embeddable, meaning a ROM can easily embed it into their Settings app.
Maintenance and updates on both the market and source repositories should be timely.
I want to be able to point users of my app to a Superuser solution that I wrote, that I know works, and that I can fix if something is wrong.
Handle multiuser (4.2+) properly
Handle concurrent su requests properly
So, this is a zip for flashing in recovery. It puts:
1. Freshly built Superuser.apk into /system/priv-app; and
2. SU binary into /system/xbin
Nothing else is required. After reboot, you will have a working open source Superuser. Just delete Chainfire's supersu from /system/
In case you would want to return to Chainfire's SuperSU, you'll just need reflash SuperSU zip.
The app is confirmed to work on Jaguar and my unofficial builds of Tesla-Redux, LiquidSmooth and DirtyUnicorns. It should also work without any problems on other roms including stock, if your Selinux is either disabled or set to permissive.
Source: https://github.com/phhusson/Superuser
Credit: @phhusson
Click to expand...
Click to collapse
Thanks for this. Do you think there should be any problem using this app on touchwiz roms? I'm currently on GN4 with 5.1.1 touchwiz. Thanks.
Kul_dood said:
Thanks for this. Do you think there should be any problem using this app on touchwiz roms? I'm currently on GN4 with 5.1.1 touchwiz. Thanks.
Click to expand...
Click to collapse
I don't see why not. You would need selinux set to permissive...
Superuser updated
New release: this time no problems after install + there is a dark theme included. Flash in recovery. See OP for download.
P.S. If you have installed Supersu, deleting it won't do. You need to reinstall the latest rom and then flash the Superuser_Jan6.zip

GT-N7105 Lineage 14.1: Safetynet not working with magisk

I used LOS 14.1 on other samsung phones, activating magisk hide and renaming the magisk manager apk did lead to passing the SafetyNet check (both levels). However for the Note II it does not lead to passing SafetyNet. If I unroot, LOS 14.1 passes SafetyNet on Note II.
Any Idea what might be the reason for this?
thank you.
Solved it. For others: Its about the mnt namespace. Current LOS kernel does not support it. LO uses 3.0 kernel, mnt namespace was introduced with 3.8. however, the mnt namespace was backported to some kernels, hybrid kernel being one of them. However other kernels may obviously include other limitation. For example swap seems non-functional on hybrid kernel.

How to set SELinux to permissive in android 11?

Hello, I've rooted my device, but I can't set onto magisk setenforce=0... what can I do in order to have a permissive linux? It looks like this issue is present on all samsung devices...
robi101012981 said:
Hello, I've rooted my device, but I can't set onto magisk setenforce=0... what can I do in order to have a permissive linux? It looks like this issue is present on all samsung devices...
Click to expand...
Click to collapse
Have you tried this app:
[APP][TOOL][2.0+][OFFICIAL]The SELinux Switch
The SELinux Switch . What's The SELinux Switch & What Makes It Different from The SELinux Toggler? I'll outline this in brief since it would take too much time and space in explaining everything in detail. Primarily, The SELinux Switch was...
forum.xda-developers.com
It_ler said:
Have you tried this app:
[APP][TOOL][2.0+][OFFICIAL]The SELinux Switch
The SELinux Switch . What's The SELinux Switch & What Makes It Different from The SELinux Toggler? I'll outline this in brief since it would take too much time and space in explaining everything in detail. Primarily, The SELinux Switch was...
forum.xda-developers.com
Click to expand...
Click to collapse
Solve it by flashing a custom kernel that allows SELinux to be Permissive.
robi101012981 said:
Solve it by flashing a custom kernel that allows SELinux to be Permissive.
Click to expand...
Click to collapse
Hi I'm using a Samsung Galaxy A03s, android 12
please what Kernel could I use to get selinux permissive
I'm on Samsung a127f using custom ROM CrDroid 9.2 but still setenforce 0 doesn't seem to work. Selinux mode changer doesn't work also. Any help on how to switch selinux to permissive would be greatly appreciated

[Guide][Magisk][A10 - 13] Guide to install Viper4Android for Oneplus 8 Pro

This is a guide to install mods for OP8 Pro that improves the stereo speaker setup. I have helped many OP8 Pro users to achieve this. Some other OP users as well.
Custom ROMs that work with this mod (TESTED):
Stock Oxygen OS 11 (not 12/13)
CrDroid
Evolution X
*I am not responsible for bricked devices, damage to your device*
I am here to post my method for anyone who is interested. I have tested this myself and helped others to do this.
Issues:
IMPORTANT:
Setting SElinux can have security issues noted by @topjohnwu.
Viper4Android can be installed with SElinux Enforcing and Permissive. Choose SElinux Enforcing not Permissive
Installation Method:
With new Viper4Android Repackaged module
If you have other audio mods
Download Audio Modification Library from the links section
Install Audio Modification Library, reboot and disable it
Otherwise, skip to the next step
Download the latest Viper4Android Repackaged module from the links section
If you want to use the extra V4A features...
Download and extract all the guide setup or the other .zip file I attached below on your device. You need the DDC, Kernel and Preset folders.
If you downloaded and extracted on a separate device: Connect your device, copy and paste the folders into your internal storage.
Otherwise, skip to the next step
Install the Viper4Android Repackaged module.
Reboot.
Open the app and grant root
DISCLAIMER: On custom ROMs or certain devices, the drivers are installed, but NOT working properly after reboot. Just continue the method and comment if there are issues once u have finished the method.
If you have Audio Modification Library installed
Now go into magisk manager, go into modules and enable AML.
Reboot
Otherwise, skip to the next step
If u used the guide setup.zip file: in V4A app just press the file icon for presets and choose the preset.
Now make sure V4A driver is running (read Notes) and go into convolver -> impulse response. Choose any kernel, and done. OR choose the preset for that and done. If you have issues, make sure legacy mode is on but it is on by default.
Choose to your heart's desire if you downloaded all the V4A DDC and kernel files.
I personally use Dolby Digital Plus - Centre kernel
Done, also post the settings or kernels and your thoughts.
I also attached a screenshot of my configuration
Also, for new users if u connect your earphones like via headphone jack, USB-C or Bluetooth. You can tweak those as well. Not just your SPEAKERS! BUT some earphones can be damaged as well, so tweak them at your own risk.
After much tweaking myself. I think I have made my speakers much better on my 8 Pro.
I have attached a screenshot to the thread at the bottom. I have attached a screenshot for my headphones too!
I have added the individual settings as well. If u want to tweak them just press the text and it should expand.
The toggles I have on are for my speakers:
Master Limiter
Playback gain Control: Strength: 2, Maximum gain: 3X, Output threshold: -1.9dB
Convolver: Dolby Digital Plus - Centre, Cross Channel 100%
Speaker optimization
I have also tweaked my Bluetooth earphones as well with a DDC and the screenshot is attached below. I recommend Dolby headphone Live, but that's up to you.
U can add files in the DDC folders in the Android folder, but reboot and then tweak to see the difference. U CAN RISK DAMAGE IF U TWEAK TOO MUCH
You have completed the guide and can now experience dual/stereo-like speakers on your OP6/6T.
Enjoy
If anyone has any issues with this guide. Post a message and I'll get back to you
Notes:
Viper4Android sometimes doesn't turn on properly. So, play music and open the app to check the driver. The Driver status if it's working (NEON enable: yes, Enabled: yes, Status: Normal) and turn on the master limiter to see if there's an effect. This should give you an indication if V4A is working or not
I have attached DDC files below and you do the same thing with kernel files, but they are used for headphones.
You can try and use the preset (profiles). You don't have to use the preset files, they are there to make the setup easier for those who don't want to tweak too much.
If u want to add the custom presets:
Choose the specific presets u want
Transfer them into Android -> data -> com.pittvandewitt.viperfx -> files -> presets
Transfer the V4A.zip in internal storage
Reflash the V4A.zip again and reboot
Install the V4A driver again and reboot
V4A driver should be working, check the presets and it should be there
Enjoy having your presets
Fix for V4A:
There has been noted issues during the installation with V4A. If you experienced a bootloop after installing V4A in magisk...
Boot into OrangeFox, -> advanced -> file manager -> data/abd/magisk/modules and delete the V4A folder.
Reboot to system, install the module in magisk again and reboot. It should install.
Another issue was that V4A driver is installed properly, but there are no enhancements to the sound. To fix this, go into settings -> turn on and off the legacy mode toggle. This should restart the effect and make it stay on.
Links:
Modules required
Audio Modification Library Link
Download Viper4Android and one of the preset files if u want Viper4Android installed
Viper4Android Module Link
Viper4Android Repackaged Module Link
All Viper4Android preset files Link
Viper4Android files for this guide is attached below
All DDC, Kernel, and Presets in one zip is attached below
Threads where the modules are from
Audio Modification Library Thread Here
Credits:
@Zackptg5 for his Audio Modification Library and Viper4Android module
@Vimal Vinz for the V4A DDC + Kernel + profiles
Reserved
Updates
10/9/22 - Removed step for the option to choose Enforcing or Permissive for SElinux during Viper4Android module install. It has been removed
15/1/22 - Released the XDA thread that is a guide to install Viper4Android for the OP8 Pro
Not sure about the OP8 sadly as I don't own one and this guide could be used for other android devices too
This guide is a duplicate from my previous dual speaker guide for the OnePlus 6/6T. But this guide can be used for other android devices or users who just want to install Viper4Android
2/11/22 - Updated the Installation method as I found a new updated version of Viper4Android (Repackaged)
Tested the module and it works on Android 12 and Android 13
AML does work on Android 13 as well
3/2/23 - Updated the method Viper4Android method as repackaged installs the DDC, Kernel and preset files during installation.
So, u can just download and extract the compressed .zip file into internal storage and V4A will install the files for you during installation.
Extreme_Ninja2099 said:
Issues:
IMPORTANT:
Setting SElinux can have security issues noted by @topjohnwu.
Viper4Android can be installed with SElinux Enforcing and Permissive. Choose SElinux Enforcing not Permissive
Installation Method:
Install Audio Modification Library, reboot and disable it
Install the viper4Android module.
Choose the option to install with SElinux Enforcing not SElinux Permissive
If a new version of viper4Android module is available, install that
Reboot.
Open the app and grant root
Install drivers in the app and it will reboot automatically
Click to expand...
Click to collapse
Hello! Can't install on OnePlus Nord 2. SElinux Enforcing.
You are describing a method here with 'not SElinux Permissive'
Help me please.
2. Choose the option to install with SElinux Enforcing. When installing the module, there is no such preset. Basically, I've tried everything. It doesn't work... you need to somehow change SElinux
DeMiane said:
Hello! Can't install on OnePlus Nord 2. SElinux Enforcing.
You are describing a method here with 'not SElinux Permissive'
Help me please.
2. Choose the option to install with SElinux Enforcing. When installing the module, there is no such preset. Basically, I've tried everything. It doesn't work... you need to somehow change SElinux
Click to expand...
Click to collapse
U could just uninstall the v4A module in magisk manager. Then try again and choose SElinux enforcing. Also, this guide is for the 8 pro not nord 2. I don't own a nord 2 and only tested on the 8 pro
Extreme_Ninja2099 said:
U could just uninstall the v4A module in magisk manager. Then try again and choose SElinux enforcing. Also, this guide is for the 8 pro not nord 2. I don't own a nord 2 and only tested on the 8 pro
Click to expand...
Click to collapse
oxygen is the same. And when does he suggest choosing SELinux? It installs automatically and that's it.
Works great on the OP8 (crDroid). Thanks a lot for the guide!
DeMiane said:
oxygen is the same. And when does he suggest choosing SELinux? It installs automatically and that's it.
Click to expand...
Click to collapse
First of, what version of magisk are u using? I only use stable (V23), where are u getting the viper4android .zip file/module? I have added the download link in the thread. If ur getting it from magisk manager, the one to use is the viper4android FX (Not legacy and not XHiFi)
laurentlbm said:
Works great on the OP8 (crDroid). Thanks a lot for the guide!
Click to expand...
Click to collapse
That's great. I don't own an OP8 so idk if it works. Hopefully, u used the kernel and DDC files too as they make a difference in my experience. Thanks for your feedback
Extreme_Ninja2099 said:
That's great. I don't own an OP8 so idk if it works. Hopefully, u used the kernel and DDC files too as they make a difference in my experience. Thanks for your feedback
Click to expand...
Click to collapse
Yes, I'm using the file and the difference is quite impressive!
Extreme_Ninja2099 said:
First of, what version of magisk are u using? I only use stable (V23), where are u getting the viper4android .zip file/module? I have added the download link in the thread. If ur getting it from magisk manager, the one to use is the viper4android FX (Not legacy and not XHiFi)
Click to expand...
Click to collapse
Yes, I'm using version 23 of Magisk. I tried to install viper4android FX (Not legacy and not XHiFi) from the Magisk repository, as well as separately downloaded zip viper4android FX v2,7,2,1. But it doesn’t give a choice in which mode to put it, it just puts it all. Android 11. My English is bad, maybe I'm not expressing myself accurately, sorry. Also install the AML library. I saw how they put it on Pixel 3 / 4a, but the version of magisk is exactly 21.1. I can't downgrade.
DeMiane said:
Yes, I'm using version 23 of Magisk. I tried to install viper4android FX (Not legacy and not XHiFi) from the Magisk repository, as well as separately downloaded zip viper4android FX v2,7,2,1. But it doesn’t give a choice in which mode to put it, it just puts it all. Android 11. My English is bad, maybe I'm not expressing myself accurately, sorry. Also install the AML library. I saw how they put it on Pixel 3 / 4a, but the version of magisk is exactly 21.1. I can't downgrade.
Click to expand...
Click to collapse
Do u install it in magisk manager? if u installed it properly (without the magisk manager crashing) and leave it to install... The install terminal should show a question + options for u to choose if u want SElinux enforcing or permissive. U choose by pressing volum up or down. Up for enforcing and down for permissive. The the reboot button should show up. Maybe take a screen shot and show it here
( Нет выбора и app faled
Extreme_Ninja2099 said:
Do u install it in magisk manager? if u installed it properly (without the magisk manager crashing) and leave it to install... The install terminal should show a question + options for u to choose if u want SElinux enforcing or permissive. U choose by pressing volum up or down. Up for enforcing and down for permissive. The the reboot button should show up. Maybe take a screen shot and show it here
Click to expand...
Click to collapse
(No choice and app failed
DeMiane said:
(No choice and app failed
Click to expand...
Click to collapse
Then idk. This guide is for the 8 Pro not Nord 2...
Extreme_Ninja2099 said:
Then idk. This guide is for the 8 Pro not Nord 2...
Click to expand...
Click to collapse
Unfortunately... but https://forum.xda-developers.com/t/app-all-root-solutions-6-0-viper4android-fx-2-7.3774651/page-275
they even launched it on pixel 6. and it didn’t work for me either. I will look into it, thanks
Nice guide.
DeMiane said:
(No choice and app failed
Click to expand...
Click to collapse
I previously checked my comments and found that V4A can cause SElinux to be permissive on some OSs. There's a magisk module that will set your SElinux back to Enforcing with no app needed and it's a just a command that will set your SELinux back to enforcing during every boot. https://forum.xda-developers.com/t/...b-root-selinux-permissive-enable-eng.4050041/
Extreme_Ninja2099 said:
I previously checked my comments and found that V4A can cause SElinux to be permissive on some OSs. There's a magisk module that will set your SElinux back to Enforcing with no app needed and it's a just a command that will set your SELinux back to enforcing during every boot. https://forum.xda-developers.com/t/...b-root-selinux-permissive-enable-eng.4050041/
Click to expand...
Click to collapse
I'll test ... this post also interested me, by the way, changing boot.img did not help, is the phone bootlop. This is what I experimented with.
ps000000 said:
May I add Android 12 instruction to this thread.
(Only custom 12 ROMs since ColorOS12 I cant enable permissive.)
You should goto app settings Unrestrict battery usage for both SELinux and Viper.
1. Install SELinux apk enable permissive on boot.
2. Magisk install Viper 12 Fix module no reboot
3. Magisk install Viper
4. Open Viper grant root and then press ok phone will auto reboot.
5. After rebooot pen Viper setting enable Lagacy mode .... done.
Click to expand...
Click to collapse
on 11 did not roll ... (

[KERNEL] [OFFICIAL] GRASS KernelSU support [CHIME] by hac4us/Ash

Hello to everyone!
Here is a new Grass kernel line, which work with Kernel SU on POCO M3 (probably all chime).
It provides systemless root access on a kernel level for chosen apps only. No root access visible in system - nothing to hide.
Installation:
If you have magisk - flash uninstall.zip in recovery; then flash stock boot.img from your ROM; last flash grass-kernel.zip.
Manager run from apk file.
If you want back magisk with it's modules, you can install it from magisk.apk, grant root access from KernelSU manager, than you can patch boot via direct install (recommended). After reboot you can add your favorite modules like usually in Magisk.
The kernels are in next post.
Don't forget to change extension (apk->zip)!
Update from 19.05:
So, kernels are here:
Change extension from .apk to .zip, flash it in recovery and enjoy!
[email protected] is the latest one.
Will upload here one more time kernel for juice/chime and latest KernelSU apk:
Latest version of Grass kernel:
Optimised very good and working with 0.6.0 app. ver.
Also latest zygisk for kernel SU:
Version 10999:
Do u mean magisk module can co exist along with kernelsu. I mean i want root with KernelSu+magisk modules
Exactly. Root from KSU, modules from Magisk.
tariqa said:
Exactly. Root from KSU, modules from Magisk.
Click to expand...
Click to collapse
I'm wondering about root detection... You have double root(KSU&MagiskSU)...
Which one controls the root actually ? KSU has the better prevention from root detection but MagiskSU hasn't. If MagiskSU controls the root, it seems not to be a good idea ...
Kris Chen said:
I'm wondering about root detection... You have double root(KSU&MagiskSU)...
Which one controls the root actually ? KSU has the better prevention from root detection but MagiskSU hasn't. If MagiskSU controls the root, it seems not to be a good idea ...
Click to expand...
Click to collapse
Root is controlled by KSU.
Hello
Is this kernel for miui or Aosp Roms ? Please specify , and also mention andriod version Supported by this Kernel

Categories

Resources