[Q] is there a stock OG1 kernel with SELinux set to permissive? - Sprint Galaxy S 5 Q&A, Help & Troubleshooting

I've been searching for a stock OG1 kernel with SELinux set to permissive on both xda app and google, and i haven't been able to find one. I need a precompiled one thats flashable through recovery, as my pc has died and im not able to use odin to flash .tars or compile it myself from source with it set to permissive. If anyone has a link to one please let me know, SELinux set to enforcing is causing me problems. Thanks in advance.

Related

How to flash another kernel over franco

I have a nexus 5 running marshmallow Stock ROM rooted with Franco kernel and xposed framework installed. When I was on lollipop ,if I had to change kernels ,I would just flash the stock kernel using flashify and then flash custom kernel.
But now,i have Franco kernel running and I plan to flash code blue kernel. If I try to flash the stock kernel using flashify ,the phone won't boot,the Marshmallow boot Animation occurs infinitely. So what should I do? The superSU version is 2.52.
Please explain me the steps to flash code blue kernel.One the members suggested flashing superSU 2.61 but for that I need to flash the stock partition.I don't want to do that.Is there any workaround?
Thanks in advance
Flash stock System and Boot images, then flash code blue kernel. This is probably the safest solution, I don't know if there are many other options available.
Try flashing stock system.img and boot.img then blu_spark + SuperSU 2.61
EDIT: too late
ReAvenger said:
Flash stock System and Boot images, then flash code blue kernel. This is probably the safest solution, I don't know if there are many other options available.
Click to expand...
Click to collapse
Primokorn said:
Try flashing stock system.img and boot.img then blu_spark + SuperSU 2.61
EDIT: too late
Click to expand...
Click to collapse
Will i lose root if I do that? As I said I also have xposed installed.Will i also lose the xposed modules ? also,can you provide me with the links or else zip files would be more helpful so that i can flash them right away .
Sorry if I'm asking silly questions,please bare with me .
goutham kumar muvva said:
Will i lose root if I do that? As I said I also have xposed installed.Will i also lose the xposed modules ? also,can you provide me with the links or else zip files would be more helpful so that i can flash them right away .
Sorry if I'm asking silly questions,please bare with me .
Click to expand...
Click to collapse
Yes you will have to root again and install Xposed framework. You won't lose your modules though.
Use this to download the nexus 5 factory images: https://is.gd/84Nk59
Tutorials are availabe to know how to flash them with fastboot.

oneplus one cm13 official rom

Hi I have issues regarding setting selinux as I want it to set permissive and I have rooted oneplus one. I flash official cm13 zip with multi rom manager but still I cannot set it to permissive, so please help me how to solve this issue, and I have tried flashing various supersu zip from 2.64 to 2.76 which is beta build, still I get same problem. Thanks in advance and yes my oneplus one is rooted. :good:

[CLOSED] SELINUX Android 5.1.1 Samsung Disable

Hello, I need to disable Selinux (SEANDROID) many apps that i have not working i have 0x0 flag Custom Recovery, Rooted,Xposed Installed, I tryed all tutorials but none of them work, Enforcing Restarts when it was permissive apps wasn't crashing like App Name Has Stopped or Selinux need to be set to permissive for this app to work i need help with disabling SELINUX Now i get while booting to recovery "Recovery Is Not Seandroid Enforcing" how can i disable Selinux? Samsung Galaxy Grand Prime SM-G531F Lollipop 5.1.1
TheSMGCraft said:
Hello, I need to disable Selinux (SEANDROID) many apps that i have not working i have 0x0 flag Custom Recovery, Rooted,Xposed Installed, I tryed all tutorials but none of them work, Enforcing Restarts when it was permissive apps wasn't crashing like App Name Has Stopped or Selinux need to be set to permissive for this app to work i need help with disabling SELINUX Now i get while booting to recovery "Recovery Is Not Seandroid Enforcing" how can i disable Selinux? Samsung Galaxy Grand Prime SM-G531F Lollipop 5.1.1
Click to expand...
Click to collapse
it has to be done in the kernel aka boot.img. im not a kernel dev, so you will probably get the best results by looking around the forums for a kernel dev and pm ing them
toolhas4degrees said:
it has to be done in the kernel aka boot.img. im not a kernel dev, so you will probably get the best results by looking around the forums for a kernel dev and pm ing them
Click to expand...
Click to collapse
well thats bad, selinux keeps changing to permissive... i really need boot.img modded? i created my own Custom Firmware and flashed it, it doesn't flagged/tripped knox warrenty void upload here boot.img?
i found in root directory /SYS/FS/SELINUX some files like policy,disable,access,enforce Many files give's access denied or Re-Create's Disable file set to 1 Re-creates same with enforce change to 0 inside re-creates
i'm sick of this selinux ! ! help
Custom Kernel
toolhas4degrees said:
it has to be done in the kernel aka boot.img. im not a kernel dev, so you will probably get the best results by looking around the forums for a kernel dev and pm ing them
Click to expand...
Click to collapse
I Made with DadziokPL Custom Kernel with selinux permissive
***THREAD CLOSED!***

[Completed] Samsung Galaxy S5 Se android status enforcing

I have Samsung S5 G900f recently updated to marshmallow and this SE status enforcing is not letting me do anything neither can do any modification via framework unable to add any rom via twrp i saw many post but was unable to find any solution plzz guide me coz i want to install alliance rom.
When installing via twrp my mob is just restarting but no rom are getting installed same for cwm.
Supersu is providing root but i am unable to do any modification in my system plz provide me solution for this prob.
simms22 said:
change your selinux to permissive. google an app for it..
Click to expand...
Click to collapse
Yeah tried that Se linux mode changer but still facing problem in installing custom rom or any changes to system files
sk.shehbaz said:
Yeah tried that Se linux mode changer but still facing problem in installing custom rom or any changes to system files
Click to expand...
Click to collapse
What kernel are you running ? On samsung with MM you need a permissive kernel to change selinux from enforcing it can't be done with an app. Try flashing a permissive kernel and you should be ok
Good Luck
Sawdoctor

Magisk SafetyNet failed cts profile mismatch (help!)

Hey there! I am definetly not a newbe when it comes to rooting, but sinsce xposed seems to fail with Android N and Netflix now wants "google certified" devices, which means not rooted or unlocked devices, I switched to Magisk...
The problem is, I can#t make SafetyNet to work!
my phone: xperia z5 e6653
Android 6.0.1 (5.11 build)
stock repack patched kernel (dm verity off, dmr patch, twrp)
Magisk 12.0
deodexed
developer settings off, usb debugging off
why cant I pass SafetyNet?
Is it because my ROM is deodexed? I made a reset using a clean ftf before rooting!
is it because of the patched kernel? How am I able to flash the magisk zip without a custom kernel which includes a recovery?
note: developer options OFF, Magisk Hide ON, BusyBox OFF
can anybody provide help?
Read this #4 and apply all solutions.
https://forum.xda-developers.com/showpost.php?p=71154562&postcount=4
---------- Post added at 06:14 PM ---------- Previous post was at 06:11 PM ----------
or Try unofficial v13
https://github.com/stangri/MagiskFiles
ok I reinstalled Android 6.0.1 and flashed a stock based kernel which only difference is that it has a dmr fix and a recovery
then I flashed magisk 12.0
developer options off
magisk hide on (I tested it with Titanium Backup, works just fine!)
so now my phone:
Sony Xperia E6653
Android 6.0.1 rooted via Magisk 12.0
unlocked Bootloader
TWRP recovery
dmr patched kernel
no deodex etc, but it still fails when checking SafetyNet!
sceryavuz said:
Read this #4 and apply all solutions.
https://forum.xda-developers.com/showpost.php?p=71154562&postcount=4
---------- Post added at 06:14 PM ---------- Previous post was at 06:11 PM ----------
or Try unofficial v13
https://github.com/stangri/MagiskFiles
Click to expand...
Click to collapse
Basic integrity doesnt pass
I found the problem: I need a kernel that supports SElinux enforcing!!!! anybody has a link?
freaky2xd said:
I found the problem: I need a kernel that supports SElinux enforcing!!!! anybody has a link?
Click to expand...
Click to collapse
SElinux isn't the problem, but you want to try
Use that : https://f-droid.org/repository/browse/?fdfilter=selinuxmodechanger&fdid=com.mrbimc.selinux
Direct link : http://forum.xda-developers.com/devdb/project/dl/?id=12506
sceryavuz said:
SElinux isn't the problem, but you want to try
Use that : https://f-droid.org/repository/browse/?fdfilter=selinuxmodechanger&fdid=com.mrbimc.selinux
Direct link : http://forum.xda-developers.com/devdb/project/dl/?id=12506
Click to expand...
Click to collapse
I've tried that, but even though I have root it stays at permessive. commands via terminal doesnt change anything either!
my kernel is Androplus v42
freaky2xd said:
I've tried that, but even though I have root it stays at permessive. commands via terminal doesnt change anything either!
my kernel is Androplus v42
Click to expand...
Click to collapse
Androplus not stock, contact with developer. Stock changed permissive to enforcing, or enforcing to permissive with this APK.
freaky2xd said:
I've tried that, but even though I have root it stays at permessive. commands via terminal doesnt change anything either!
my kernel is Androplus v42
Click to expand...
Click to collapse
Try with terminal, type :
su
setenforce 1
sceryavuz said:
Androplus not stock, contact with developer. Stock changed permissive to enforcing, or enforcing to permissive with this APK.
Click to expand...
Click to collapse
I don't get it
I managed to set SElinux to enforcing using the terminal and then a apk which keeps it that way after every boot, but I still get that stupid SafetyNet error where CTS and basic Integrity fail
Any updates to this? I can't pass SafetyNet using Magisk either.
sceryavuz said:
Read this #4 and apply all solutions.
https://forum.xda-developers.com/showpost.php?p=71154562&postcount=4
---------- Post added at 06:14 PM ---------- Previous post was at 06:11 PM ----------
or Try unofficial v13
https://github.com/stangri/MagiskFiles
Click to expand...
Click to collapse
Very useful link !
A Linux kernel version of at least 3.8 or a kernel that has the necessary features (mount namespace) backported.
Click to expand...
Click to collapse
doesn't tell me really much though
Is CONFIG_USER_NS meant ?
cause that afaik is used for chrome on Linux to sort of enforce security (sandboxing without suid)
well, the thing is that memcg is recommended in combination with it, too
but since we're not using it for CarbonROM, LineageOS, etc.
Also CONFIG_USER_NS is disabled in the kernel and not really sure if stock ROM would even boot with it (currently just switched to RR so can't and won't test)
edit:
CONFIG_NAMESPACES=y
is enabled by default, the others are off
CONFIG_NAMESPACES=y
# CONFIG_UTS_NS is not set
# CONFIG_USER_NS is not set
# CONFIG_PID_NS is not set
CONFIG_NET_NS=y
Click to expand...
Click to collapse
Some explanation:
https://github.com/netblue30/firejail/issues/1347#issuecomment-311038614
https://unix.stackexchange.com/questions/92177/kernel-namespaces-support
Try to repatch your kernel without busybox and any root.
gemenee said:
Try to repatch your kernel without busybox and any root.
Click to expand...
Click to collapse
Busybox was the problem. Thanks mate!

Categories

Resources