yashsingh1/xdaforums huggingface dataset:
[Magisk] PetNoire:
This was just the first one that gave me any success so I initially assumed it was because of the hiding. I wasn't even able to pass basic integrity without this one and most others didn't help either. I tries yours at one point with no success. Do you change all the "dangerous props" that this one does?
[Magisk] Didgeridoohan:
Basic integrity passing has nothing to do with the device fingerprint or other props. With Magisk, that usually means that MagiskHide isn't working (for whatever reason, most of the times it just needs a restart) or you have something installed that MagiskHide can't hide (like Xposed, remnants of other kinds of root, etc).

Edit: Scroll down a little here for a table of examples of what will cause a true or false cts profile or basic integrity response.

https://developer.android.com/training/safetynet/attestation#compat-check-response
[Magisk] PetNoire:
I don't know what Tue additional setup does, but I always do it and its been working. Also your device may have thumbprint props instead of fingerprint.

Run this in a terminal and let me know what you get

getprop | grep print
[Magisk] Didgeridoohan:
My module changes all the common fingerprint props, but as far as I know, it's only ro.build.fingerprint that is important for the ctsProfile check.
[Magisk] PetNoire:
I wiped all partitions, installed lineage 15, installed magisk and enabled hide and it wouldn't pass basic at any point. Even still its never passed it without this module. It didn't even pass it on the clean install, before magisk
[Magisk] Didgeridoohan:
If it didn't pass basic integrity out of the box there's something in the ROM.

What is it that you're changing with the module now, to pass SafetyNet? The fingerprint props, I assume. And all the "dangerous props", I guess. I might add that all of those "dangerous props" that are included in this module are changed by default by MagiskHide, except for selinux.reload_policy. Does the module do anything else, currently?
[Magisk] PetNoire:
Heh currently all it does is cause my phone to hang on the boot logo. I blame 4am andvetures in code for that.

But before I broke whatever I broke, that was about it

also do you know the difference between fingerprint and thumbprint? my stock rom had thumbprint props instead and they dont pass safetynet if i put it into the fingerprint entries

i modified it to support thumbprints too. its not fully working but i could pass basic integrity with my stock thumbprint, but ro.build.fingerprint seems to reset to lineage after being deleted

lmao update on the stuck boot situation: it was because a mac .DS_Store file got added to system. should probably look into turning those off.. i made a new version on my phone and it worked. zipped it, disabled it and flashed the zip and it stuck. so did 'diff -r' between the 2 and found it :3
[Magisk] winzzzzz:
Sorry for the late reply.

I haven't tried the terminal command, but i did flashed the CporeOnlyMode4Magisk. It boots up, but (seems like) still the same. ctsProfile and basicInyegrity both results success (since before i flashed your mod), but the app "SafetyNet Test" results failed (SafetyNetApi.AttestationResult == false or empty payload)
[Magisk] Didgeridoohan:
Are you absolutely sure that the stock ROM doesn't have a fingerprint prop? What happens if you run:

getprop | grep fingerprint

As I've said before, as far as I know the cts profile only looks at ro.build.fingerprint. I did not think that basic integrity would be affected by prop values. What have you found by experimenting with the thumbprint? Do you mean that you only pass basic integrity if you alter the thumbprint props? What happens if you disable your module, do you fail both cts profile and basic integrity? So many questions, I know, but I'm a curious fella...

Also, like I said prevously, pretty much all of the "dangerous props" you're altering are already taken care of by MagiskHide. No need to do it again...

Lastly, if you're going to be providing the updated USNF module, could you at least alter it to not replace Magisk's Busybox? It's just a matter of removing the cp commands...
[Magisk] PetNoire:
without the thumbprint, it fails both checks. with thumbprint it passes basicintegrity. i feel like there might still be ro.build.fingerprint but im really not excited about reflashing it to get one value.

as it stands now,

ro.build.fingerprint is resetting to the lineage one when i delete it.

ro.vendor.build.fingerprint and ro.buildimage.build.fingerprint are gone

ro.vendor.build.thumbprint and ro.buildimage.build.thumbprint are both the stock ones from my phone

passing basic but not cts, as expected for for lineage fingerprint.

tried deleting ro.build.fingerprint with ro.build.thumbprint and it readded fingerprint.

i tried setting ro.build.fingerprint to the stock thumbprint value and it gave the same results

i have no idea why i didnt get rid of all the duplicates while i was getting rid of everything else. next version i guess

planning to get rid of the usnf file all together soon as long as no one is saying my other one exploded their phone.
[Magisk] PetNoire:
just extracted my stock backup. build.prop has ro.build.thumbprint and no fingerprint, plus it is slightly different from the vendor thumbprint
[Magisk] PetNoire:
to test it on another app, you have to make sure its checked on the magiskhide page in MM
[Magisk] winzzzzz:
Yes, i did made sure that they are checked on the MagiskHide.

1. Root checker says that my phone is not rooted. otherwise, the SafetyNet part says that it's failed: Your device is NOT compatible with SafetyNet. Details: SafetyNet request: Failed. CTS profile match: N/A. Basic Integrity: N/A.

2. SafetyNet `attest` replies "Success", SafetyNet response: CTS profile match: true. Basic Integrity: true.

3. SafetyNet Checker (which will show ads no matter what you do): only turning and turning and turning.
[Magisk] PetNoire:
a lot of apps are just outdated too. the one in the newest magisk and SafetyNet `attest` use the new API

root checker uses the old safetynet so it cant be relied on, however the root check does work if you have it unchecked in magiskhide.

that "false or empty payload" message is a good indication that it's outdated

in short, sounds like its working perfectly. just need to make sure you use updated apps to check :)
[Magisk] Didgeridoohan:
The fingerprint prop isn't necessarily found in the build.prop file, so unfortunately the only sure way of knowing is to run the getprop command.
[Magisk] furrypotato:
Here's an odd one for you....

S9+ Running Unofficial PixelExperience GSI Pie - If I flash this via Magisk, then I pass SafetyNet (Previously failed ctsprofile), however my screen brightness goes down extremely low.

I've disabled the module and rebooted and I fail ctsProfile again but brightness is restored.
[Magisk] winzzzzz:
Therefore, my phone passes SafetyNet? then may I ask another app which uses safetynet as well? i know Pokemon Go uses it. it says, my device is not supported. (I played it for some months before)
[Magisk] TheUndertaker21:
will something like this able to fix samsung pay for gear that kept detecting root since magisk hide can't hide it anymore?
[Magisk] Xgztylm:
Which one u’ve chosed? I flashed via TWRP and my s8 stucked at the Samsung logo

---------- Post added at 03:27 PM ---------- Previous post was at 03:26 PM ----------

I think its a Knox thing which means no way to solve this problem.
[Magisk] TheUndertaker21:
the gear spay has nothing to do with knox.
[Magisk] Xgztylm:
I flashed via TWRP and it stucked at the Samsung logo......

---------- Post added at 03:36 PM ---------- Previous post was at 03:33 PM ----------

Not sure man, but it need the phone version pay app and framework I guess. It used to be working one my OP5T but my s8 always saying that my device is rooted....

Hope it can work. FC
[Magisk] PetNoire:
Gross. I guess will update on that in like an hour after restoring to stock and back

i love my stock rom. especially how it encrypts my data partition without my consent and doesnt tell me what password it uses to do it.
[Magisk] PetNoire:
Pokemon fails if you have a magisk folder in /sdcard or /data. If you're using 17, you can safely delete both since the files are in /data/adb now

it also looks for the MM app so you need to use the Hide Magisk Manager option on the settings page
[Magisk] PetNoire:
Not sure about Samsung specifically, but it works for google pay. In theory it should work, they may have put their own detection in though
[Magisk] TheUndertaker21:
yeah SPay for the gear has their own detection it's looking for magisk like crazy
[Magisk] PetNoire:
Do you need help getting it to boot again? There's a flashable zip around that puts magisk into core mode, which disables all modules so you can boot and fix it, or you can manually do it from twrp terminal.

Did you check it in magiskhide? It should help hiding Knox problems too
[Magisk] PetNoire:
[MENTION=4667597]Didgeridoohan[/MENTION]

so not what i was expecting.. from stock rom:

cedric:/ $ getprop | grep print
[init.svc.fingerprintd]: [running]
[ro.bootimage.build.fingerprint]: [motorola/cedric_retail/cedric:7.0/NPPS25.137-93-14/21:user/release-keys]
[ro.build.fingerprint]: [motorola/cedric/cedric:7.0/NPPS25.137-93-14/21:user/release-keys]
[ro.build.thumbprint]: [7.0/NPPS25.137-93-14/21:user/release-keys]

no vendor print, and both thumb and finger but not the same.

so guess time to pop those into my module and see what happens

update: these 3 pass both basic and cts! now just want to see if i can find someone else with a thumbprint one to know if its the same format
[Magisk] Didgeridoohan:
If you could do some experimenting, that would be interesting. Try setting different combinations of the props:

Only fingerprint

Only bootimage fingerprint

Fingerprint + thumbprint

Etc...

I'm really curious about what the results would be...
[Magisk] PetNoire:
so after a ton of testing, i have come to the conclusion that i hate this phone. results in attachment vv

when i got the pass before, i set it without rebooting so i think it still passed from the xiaomi spoof
[Magisk] Didgeridoohan:
Interesting... So it seems like the thumbprint doesn't have anything to do with it. The other findings are a bit interesting though. That you get a vendor mismatch if you don't set the vendor fingerprint properly isn't that strange, but the fact that the bootimage fingerprint is different on the stock setup is weird.

What happens if you pick a known working fingerprint from my list? The Nexus familly usually work when nothing else does:

Google Nexus 6P (8.1.0)=google/angler/angler:8.1.0/OPM5.171019.019/4619337:user/release-keys
[Magisk] PetNoire:
I tried one of your Motorola ones before I found usnf and didn't pass anything. only one so far that worked is the xiaomi one in usnf. but will give the nexus one a go

got an email "welcome to your new nexus 6p" lmao. so that worked

Yet the Cedric one in your list didn't pass basic. You said you test them before adding?
[Magisk] Didgeridoohan:
I do test all the prints I put on the list and only add those that can make my test device pass cts. On a couple of occasions I have been known to mess up the fingerprints though, so I'll take a look at that when I have an opportunity (spoiler: not any time soon).
[Magisk] pistolius1:
I installed this module but safetynet is false. And gpay don't work.
[Magisk] dsmol:
Thank you! It has helped me to solve my SafetyNet ctsProfile check problem on my Mi MIX (lithium) with Pixel Experience ROM
[Magisk] PetNoire:
Can you run a command and tell me what it says?

getprop | grep print

Can run it in any terminal app or adb shell. Root not required
[Magisk] FatalONEM8:
Would this work without magisk on my bootloader locked SM-G955U, I have twrp so I can flash it but I dont have magisk so yeah..

Oh and I have xposed installed which is the reason safetynet fails on my phone.
[Magisk] pistolius1:
127|hero2qltechn:/ $ getprop | grep print

[ro.bootimage.build.fingerprint]: [Xiaomi/sagit/sagit:7.1.1/NMF26X/V8.2.17.0.NCACNEC:user/release-keys]

[ro.build.fingerprint]: [Xiaomi/sagit/sagit:7.1.1/NMF26X/V8.2.17.0.NCACNEC:user/release-keys]

[ro.vendor.build.fingerprint]: [Xiaomi/sagit/sagit:7.1.1/NMF26X/V8.2.17.0.NCACNEC:user/release-keys]

Terminal app wrote this
[Magisk] PetNoire:
All looks good there. Do you have magiskhide enabled and don't have xposed?
[Magisk] PetNoire:
As far as I'm aware, nothing can help with xposed
[Magisk] pistolius1:
I have a both.
[Magisk] PetNoire:
For clarity, do you have xposed?
[Magisk] pistolius1:
yes , i have :)
[Magisk] PetNoire:
That's the issue then. Don't currently have a way to hide xposed. If you want to pass safetynet, you'll have to get rid of it
[Magisk] pistolius1:
If i will delete xposed , safetnet is work good ?

upd

i deleted xposed and my phone dont run android
[Magisk] PetNoire:
I don't know enough about xposed to help much with that. Can you flash it back from recovery?
[Magisk] pistolius1:
i will reinstall android.
[Magisk] winzzzzz:
Okay, I confirm this works. I could not find any (only) "Magisk" folder in /sdcard nor /data. Otherwise, I found "MagiskManager" inside /sdcard. upon renaming it (deleting it), pokemon works now. I have hidden Magisk Manager all the time.

Thank you!
[Magisk] PetNoire:
Ya, sorry, I forgot the exact name of it. Glad you got it working :laugh:
[Magisk] PetNoire:
Okay, sorry about the extra trouble. Once that's done, I'd you reinstall magisk and this module, you should be able to keep root and pass safetynet :good:
[Magisk] jagawana27:
Thanks OP module worked

Thank for OP its work for me... device redmi 3s prime (land) safetynet work
[Magisk] A.lemane:
Those ho have Xposed should try this

http://repo.xposed.info/module/com.pyler.nodevicecheck
[Magisk] PetNoire:
Can anyone confirm if this works?
[Magisk] abacate123:
As far as I remember, it does. But only for the ctsProfile, not the BasicIntegrity... As stated here.
[Magisk] PetNoire:
Interesting. Will look into that a bit later
[Magisk] A.lemane:
Correct
[Magisk] cpt.macp:
[MENTION=9437215]PetNoire[/MENTION]

If shows passed in the MM app, both cts and basic imtregity

But fails in the sn app

See

I'm using 9.0 pixel based rom
[Magisk] abacate123:
Uh, that's because this app is using the old SN API... Which's not working anymore and it didn't update since 2017, as you can check on its own play store page. If the magisk manager says that you're passing it, then you're fine. If you want other SN checker, then use this one, which's updated to the new API.
[Magisk] A.lemane:
When I uninstall. Magisk safety net became fully functional & when I install it it Trips

I think am pretty sure I know why CZ when I install it I notice a lot of changes that I made comes back with it like 2 tap to wake .....

Now what am asking is if magisk doesn't fully clean it's data upon uninstall then how can I do it using root explorer or costume recovery ?
[Magisk] cpt.macp:
thanks for the info , idk what it did to fix my cts profile mismatch

i treid other module and i was getting vendor mismatch error on bootup

i guess its all fine now .

thanks OP for this awesome module

im using

Android :- 9.0

ROM :- MCAOSP by mcflash

SN status :- pass , ( both )

xposed :- no

using magisk canary builds because they can edit props
[Magisk] robbayani:
i'm also using Xposed Systemless, is this module can bypass SafetyNet(both ctsProfile & basicIntegrity, or one of them)??

i need Xposed because i'm using Greenify(pay), Amplify(pay), MinMinguard, Youtube Adblock etc..

before using Xposed my stock rom can bypass SafetyNet(both cts & basic are green)..

---------- Post added at 00:51 ---------- Previous post was at 00:31 ----------

when using Xposed Systemless i'm usually using this module to bypass ctsProfile, its works..

but how about make basicIntegrity became green?? any trick??
[Magisk] Fif_:
No, you can't pass basicIntegrity with Xposed enabled.

If you need to run an app that requires basicIntegrity, disable Xposed in Magisk Modules and reboot.
[Magisk] robbayani:
actually i don't have any apps/games that required basicIntegrity:D

just want became green, only that..
[Magisk] Fif_:
Well then, you should be just a toggle in Magisk modules and a reboot away from getting all green. ;)
[Magisk] robbayani:
i need xposed
[Magisk] fastie:
Hi

My device: galaxy s9+, running gsi 9 treble.

When enabling your module in magisk it passes safetynet, success!!

But device is stuck on very low brightnes, I cant change it with settins etc, it goes very dark on boot splash screen. Removig or disabling this plugin fixes that. Need help. Thanks
[Magisk] sh0wst0pper:
I have a samsung S6 Edge just installed lineageos 14.1 and magisk. Safetynet fails on ctsProfile for some reason.

I am trying to get the Wear (Gear) app working for my watch but it still says "The operating system has been modified..." any help?
[Magisk] justwannaread:
Hi, your link on github going to post edit, so when you go on it - it's open "Our records show that you have already registered under the name of "myname". If you have lost your password, click here. If you would like to modify your profile, click here."
[Magisk] Baron.Slade:
After I installed the module and restarted my phone, I can no longer open Magisk Manager. It force closes.

---------- Post added at 09:32 AM ---------- Previous post was at 09:29 AM ----------
[Magisk] Ravi_sh594:
Thanks..first time my device passing safety net on android pie...
[Magisk] Ravi_sh594:
Please continue your work, it is a great module..

Hats off
[Magisk] IllUMINATUz:
Amazing job mate. Thank you so much!!!
[Magisk] MysteriousVoltz:
Thank you! Works perfectly. I have a Redmi 3s Prime. When I flashed it on TWRP, my ctsProfile was false but when I flashed on the Magisk Manager, it worked perfectly, just wanted to share. ?
[Magisk] wstephen:
Galaxy Note 3 LTE SM-N9005 is a Nightmare

It's ro.build.fingerprint = samsung/hltezh/hlte:5.0/LRX21V/N9005ZSUGP J2:user /release-keys. It passes both basic integrity and CTS with bootloader unlocked with twrp 3.2.3.0 and stock firmware lollipop.

But, as soon as Magisk 17.1 (or lower version) is flashed, it fails both. Even with PetNoire's Safety Spoofer flashed (twrp). When I flash the stock boot image to the rooted device, it passes both safetynet tests again. Flash Magisk then fails again....

I really hope [MENTION=9437215]PetNoire[/MENTION] may give a guideline on how to crack it.
[Magisk] wstephen:
You are referring to "Permissive SELinux"? No, it is stock and it failed the basic integrity test.
[Magisk] Didgeridoohan:
No... I'm referring to all kinds of tips and tricks that you'll find if you follow that link.

Testing if MagiskHide actually works (which a failing Basic integrity hints at that it doesn't), things to try if it doesn't, what info to provide (hint: logs) when things aren't working, and so on...
[Magisk] PetNoire:
[MENTION=1893948]wstephen[/MENTION]

Far as I've been able to tell so far, some phones are just mean . I have a moto g5 that constantly fails basic integrity with its stock fingerprint on a lineage ROM, but passes both with a nexus 6p print. My only suggestion is to try a different print. Didgeridoohan's prop plugin comes with a good list of them to try. I'm actually using his now because the print library is just too handy.
[Magisk] thomas140:
How about magisk 18
[Magisk] :
Does this work for new magisk 18? Actually universal fix official does not work
[Magisk] Swapnil Soni:
Thanks a lot sir :)
[Magisk] miremo:
Systemless Xposed Installed.

Hello sir, how about having systemless xposed, will this still work? I mean gonna pass safetynet?
[Magisk] tuancollection:
Pls Update for magisk 18
[Magisk] Didgeridoohan:
No.

There's nothing in the module that needs updating for Magisk v18...
[Magisk] jettitare:
Breaks NFC

After some testing I can reliably tell that this fix works but breaks NFC! Do not use if you need NFC.

Uninstalling the module brings NFC back to life.
[Magisk] Klyno:
Hey,

Thanks for the fix.

It seems to be working when checking when checking into Magisk although pokemon doesn't work neither does fortnite.

Quite weird tbh.

Nvm got it working by hiding magisk manager. Cheers :)

PS. Fortnite still doesn't work.
[Magisk] superent:
Okay, so I have Lineage OS 14.1 with Nougat 7.1.2 on a Galaxy S3, installed MM 6.1 with v18 (all installed through TWRP), tried endless fixes including this one and nothing works for me. I still get the same 'false' result. I also want to play Pokémon Go with this backup cellphone but I can't for the life of me.

I'm still new to this thing but I've followed the simple steps and nothing worked so far.
[Magisk] The Penguin:
It worked on my Samsung Galaxy J5 2016 with Bootleggers Pie ROM thank you so much!
[Magisk] repey6:
[MENTION=9437215]PetNoire[/MENTION] , amazing fix!:good: Samsung Tab A SM-T585 LTE , crDroid v.5.1, magisk 18.1. Safety net complete now! Thanks a lot.
[Magisk] crackers8199:
this worked for me to pass safetynet on my crdroid oneplus 5, but now wifi calling isn't working (it was working before installing the safetynet fix)...is there something i need to do now to get that working again?

edit: nevermind, working again after a reboot.
[Magisk] Curious-Guy:
Please update for Magisk v18.1
[Magisk] Edge-1337:
Thank you for this! Fixed my SafteyNet problem on crDroid v5.1 for the Samsung Galaxy SM-T217s! I can play POGO on it now! <3
[Magisk] いいえ:
Does it work with the latest Magisk version?
[Magisk] gavilan2010:
This module work on 19.3 magisk i can confirm that.

*.A true warrior enters the battle with all his powers at the ready*. LG-H918
[Magisk] jonners59:
Magisk 19.3

Magisk Manager 7.3.2

Samsung S7 running Superman ROM

This does NOT work. Any ideas. Fails Saftynet tests and tried regesting cards. Can not pay in shops using phone message.
[Magisk] Didgeridoohan:
If your issue is that you're failing the CTS profile check, then this module should be able to help.

If you got other problems, other measures may be necessary. Here are some tips: https://www.didgeridoohan.com/magisk/MagiskHide
[Magisk] jonners59:
Thanks. Saw your otger solution which I tried but that didn't work, sadly.

Issue is I can not set up pay by phone/contactless... i can register cards but not pay in shoos. I get the error message when setting it up that the phone is either rooted or changed.

I also tried the safty checks in Magisk but they state failed too.

Ill have a look at the links you sent me later. Not in the country on leave abroad. Just been using a spare few minutes to try and fix this very annoying issue.
[Magisk] Didgeridoohan:
If both SafetyNet checks fail that means that either MagiskHide isn't working on your device (try toggling it off and on again) or you have something that cannot be hidden installed (like Xposed). More info and tips in the previously posted link...
[Magisk] MrAnssaien:
Great job!

Unlike SafetyPatch V3, this doesn't prompt the pesky device 'internal problem' error during startup on my LG G4-H815. I didn't have to modify vendor or system build.prop or anything.

Thank you so much, PetNoire! <3 Now I got Magisk v17.4 Beta with your module installed, and both SafetyNet checks pass. :laugh: :good:
[Magisk] PixelPro:
Hi PetNoire. I just tried your fix, and it worked perfectly for me. I'm running the Pixel Experience Plus ROM, and my system now finally passes all SafetyNet checks. Thanks, again, for your kind generosity. :good:
[Magisk] zentara:
Worked for me Nexus 7 LTE Lineageos 16
[Magisk] Z00nkor:
Does this work with magisk 20.3?
[Magisk] Racer29:
No. Cannot install PetNoire's SafetyNet Spoofer on Magisk 20.4. Installing PetNoire's Module gives a "Not a Magisk Module" error.

Looking desperately for a solution.

Thank you
[Magisk] snakeman65:
I've installed this on my Zenfone 6 and unfortunately Wifi refuses to turn on since, it just immediately goes back to off. It does pass safetynet though! The wifi still works on slot b. How can I remove this and set it back to how It was before? I've checked the build.prop from both versions and there doesn't appear to be any difference!
[Magisk] Didgeridoohan:
Uninstall the module from the Magisk Manager modules section and reboot.