Assuming you have made a NANDROID backup via TWRP when the phone was unrooted, simply restore "boot" from your backup. If you don't have a copy, you'll need to reflash your ROM. And if you have to do that, just flash boot and system.This thread is dedicated to understanding what is causing the SafetyNet to report the CTS profile match as false.
View attachment 3902690
I tried unrooting and flashing a new kernel, but the error remains.
Anyone knows what does it check?
@Tesla
@xstahsie
Phone was rooted on second boot.Assuming you have made a NANDROID backup via TWRP when the phone was unrooted, simply restore "boot" from your backup. If you don't have a copy, you'll need to reflash your ROM. And if you have to do that, just flash boot and system.
Sent from my Nexus 6P using Tapatalk
I've dirty flash system on LG G3 many times without any issues. Just wipe cache afterward.Phone was rooted on second boot.
I will try to flash a stock kernel when i return home, but i don't expect much.
Flashing stock system is definitely not an option, do you think dirtyflash will work?
Sent from my Xperia Z5 using Tapatalk
here is a guide:For people for which SafetyNet fails, is /sys/fs/selinux/enforce or policy readable by an application?
On standard Android it's not readable, but perhaps that's the difference on your devices.
my kernel is set to permissive and I can't switch it, i will try to flash stock and report back.This prints SELinux mode. (Permissive or Enforcing)Code:$ getenforce
This will set SELinux mode Enforcing.Code:$ su # setenforce 1
or try
Code:# setenforce Enforcing
Already tried it, but not with those commands. I switched from an unofficial CM13 ROM with SElinux set to permissive to an official CM13 nightly with SElinux set to enforcing. I removed root and bam, Safety Net check passes all checks now.@AbiDez , @Boosik , @asdone001 check here, we all have the same problem!
anyone here tried switching SELinux mode as phhuson suggested?
my kernel is set to permissive and I can't switch it, i will try to flash stock and report back.
great info, we are getting somewhere. :good:My superuser-r266-hidesu config is "eng noverity crypt hidesu".
Fixed it by setting my superuser-r266-hidesu to verity (was using noverity to be able to mount /system as rw).
Open the superuser-r266-hidesu.zip archive and there is config.txt file. Open it and there are some words "eng verity crypt hidesu" I had it set to "noverity" it has to be "verity". Also root switch app doesn't seem to work with phh's superuser.great info, we are getting somewhere. :good:
could you tell me how to change this setting?
Also, you could try with "noverity setting" to use the "root switch" from shakalaca.
You can find the latest version here at post no: 263.![]()
thanks!Open the superuser-r266-hidesu.zip archive and there is config.txt file. Open it and there are some words "eng verity crypt hidesu" I had it set to "noverity" it has to be "verity". Also root switch app doesn't seem to work with phh's superuser.
Unfortunately chainfires su 2.78-SR1 has huge performance hit on my phone for some reason and makes it nearly unusable, so that is no option for me.thanks!
I see that the default option is verity, but it isn't passing the CTS profile match for me.
have you tried with chainfire's root and hidesu, maybe got some luck with that!
i haven't tried it yet, reading about systemless install and the rest procedure.Unfortunately chainfires su 2.78-SR1 has huge performance hit on my phone for some reason and makes it nearly unusable, so that is no option for me.
no.Are you using Magisk?
I do not use it.
I have stock rom and flashed superuser-r266-hidesu.zip nothing else. Everything works fine now.

My device is Huawei Mate 8 (NXT-L29C432)i haven't tried it yet, reading about systemless install and the rest procedure.
what device are you using?
no.
here are the setups I have tried
View attachment 3903539
Sony devices generally: Sony devices seems to use ELF kernel that is unpatchable, or some has two ramdisks (inner + outer), both requires different workarounds, if you know any addition quirks about Sony boot image modifications, please contact me
If yes, I'm screwed! I have no clue why it doesn't boot with that on!AFAIK "dm verity" has to be on for CTS to pass.
yes, but there is a tool that can patch the kernel and edit those kind of things such as dm verity, sony ric, root, twrp etc.Is your current phone Sony Z5?
On the Magisk page, there is something about Sony kernels being unpatchable, maybe that is the problem why your phone does not boot while trying it with dm verity on?

something is tipping cts, we are searching to find it.What does it mean if its says this and my phone is still vanilla.as in never been rooted or used thirdparty apps or that sort of stuff
