yashsingh1/xdaforums huggingface dataset:
[Magisk] Skyjohn5510:
It was working but not anymore

Today I just found out safetynet probably upgraded and this module doesn't work anymore and it even causes basic integrity test to fail. But it does worked few weeks ago. Thanks for the effort of author.
[Magisk] pndwal:
Solutions are cited on last page here. PW
[Magisk] jayem tech:
im still using this safety patch and still pass safetynet

with a slight change on the post-fs-data.sh
[Magisk] jayem tech:
fix safetynet

pass your safetynet using safety patcher

instruction:

1.update ur magisk to v20.4

https://mega.nz/file/LclhRLKY#QYFzi0xLPqta1Z039fIGkFtu7ssKgDrby9ZKgJVSZmc

2. on magisk go to module and flash busybox module

https://mega.nz/file/eFlixQYA#Jy7Ie9QV43JtV_W03Hd1aMggyLPm_Y48-4O84_f2Z2g

then reboot.

3. then back to module and flash safety patch v3.1

https://mega.nz/file/KYtwTKgR#WIZhXMmM7aodBLp2R-jqiY6z5Dm6W40PqrI_hU1jKK4 then reboot your phone

4. after reboot go to settings of magisk and open MAGISK HIDE

now you have pass the safety net

you can check it on safetynet checker from playstore

https://play.google.com/store/apps/details?id=com.flinkapps.safteynet
[Magisk] Kris Chen:
Do you use Edxposed ? I'm wondering how's it after using Edxposed ?
[Magisk] xuxu1:
[MENTION=5058180]Kris Chen[/MENTION]

Activate "Pass SafetyNet" in EdXposed Manager settings and install HiddenCore Module.
[Magisk] jayem tech:
no im not using edxposed

---------- Post added at 07:53 PM ---------- Previous post was at 07:47 PM ----------

hiddencore module is failed on safetynet checker:laugh::laugh::laugh:
[Magisk] xuxu1:
[MENTION=10451603]jayem tech[/MENTION]

Working great on my Nexus 6 with lineage os 17.1
[Magisk] HippoMan:
Not available for Magisk 20.4/Magisk Manager 7.5.1 ???

I am running Magisk 20.4 on my OnePlus 7 Pro, and my version of Magisk Manager is 7.5.1

This SafetyPatcher module is not available to me under Settings->Downloads.

Is there anywhere I can obtain the zip file so I can manually flash it from my SD card via Settings->Modules?

Thank you in advance.

.​
[Magisk] surajloharia:
https://github.com/kam821/safetypatch/releases/tag/v4.0.1
[Magisk] xuxu1:
Try to clean Cache from Google Play Services
[Magisk] surajloharia:
For the ones using edxposed,.

I passed SN without hiddencore and safetypatch.

Just flash the canary build of riru edxposed from the edxposed manager and clear the data for google play store, services and framework..

Iam able tu used Snapchat, Gpay without any issue .. and even double checked with safety net checker app

Edit:IT MAY NOT WORK ALWAYS..

Just failed SN :crying:

Edit : Don't know whats goin on

SN failing in Magisk but passed in SN checker app and even Playstore showing device is certified and Iam able to use snapchat, G pay and banking apps .. and netflix also available and updatable
[Magisk] jayem tech:
credit on the developer of safetypatch and sorry for editing some script and now it is compatible on magisk20.4
[Magisk] hulyahulya:
deleted...
[Magisk] Cedoresti:
this possible work for sexlinux permissive ?

---------- Post added at 04:25 PM ---------- Previous post was at 03:36 PM ----------

this its not compatible on samsung.
[Magisk] jayem tech:
did you open magisk hide?:confused:
[Magisk] Cedoresti:
Yes.
[Magisk] DON2003:
I tried this module, it return both CTS and basicintegrity false, before its only CTS failed and magiskhide works, but it now allow my banking app to work which before the banking app return error that it cant runs in emulator,

any tips?
[Magisk] pndwal:
Please edit double post above. :good:

https://xdaforums.com/apps/magisk/mod-magisk-v1-universal-systemless-t3432382/post82169951 PW
[Magisk] DON2003:
sorry for the double post, already edit it,

does this means using safety patcher with both basic integrity and cts failed not good for any banking app that work with it?
[Magisk] pndwal:
SafetyPatch is simply a way to achieve CTS (Compatibility Test Suite) pass, and Playstore 'Device is Certified' status, so it can help if banking app is looking for this.

Native Magisk hide is enough for many with proper device fingerprint on many ROMs, but often Chinese devices etc (like MiPad4) will require fingerprint set by props to work as they were never certified in the first place. (Both SafetyPatch and MagiskHide Props Config accomplish this, but SafetyPatch, which simply applies a certified Huawei fingerprint to all devices, now trips basicIntegrity without manually editing files.)

While originally certified devices won't need this solution with many custom ROMs and Magisk, it is needed with others.

In many cases SafetyPatch module became a problem on devices where it was not actually needed to achieve 'Device is certified' status, and it could simply be removed. Others have fixed the problem by changing to MagiskHideProps and a fingerprint of their choice. PW
[Magisk] DON2003:
thanks, nicely explained, thats what I thought too, but just curious why selecting a wrong fingerprint (in my case with my Lenovo K5 Pro on Lineage Pie which I select Lenovo forgot the model with Android 7) makes stuck on boot, I think it shouldnt happen, I want to try again, may you suggest me a fingerprint to pick for my device? thanks
[Magisk] pndwal:
https://xdaforums.com/apps/magisk/module-magiskhide-props-config-t3789228/post82873489

https://xdaforums.com/apps/magisk/module-magiskhide-props-config-t3789228/post82856645 PW
[Magisk] DON2003:
Ah ok, may I make it clear that I should use a fingerprint that is specific for my device and not any from other phone, may be thats why I stuck in boot,

I think my phone is not a popular model, should I submit a fingerprint for it to make it work with me? will learn how to pull a fingerprint info if needed, sorry very noobie on this
[Magisk] pndwal:
:confused: - As [MENTION=4667597]Didgeridoohan[/MENTION] said to you, generally 'you should be able to use any fingerprint' as long as it passes ctsProfile. https://github.com/Magisk-Modules-R...ob/master/README.md#can-i-use-any-fingerprint

I don't think you'll get any advantage making one for specific Lenovo device either. After all, SafetyPatch module worked fine for many different device brands (until Google started detecting it's unusual bind mechanism which tripped basicIntegrity), and it used a Huawei fingerprint across the board. PW
[Magisk] Simon1511:
Excuse me if Im asking, but where is the download link of this module?
[Magisk] Didgeridoohan:
The module was removed from the Magisk repo a while back, when [MENTION=4470081]topjohnwu[/MENTION] did some spring cleaning. But, if you really want to get a hold of it you can still find it in the Modules Grave: https://github.com/Magisk-Modules-Grave/safetypatcher
[Magisk] Spartacus500:
Delete...
[Magisk] Hendra_Sutanto01:
try this
[Magisk] Danhack000:
Guys, I just came across this magisk mod and it works flawless in magisk 23.0. I'm able to pass safety net without issues, but for some reason it breaks riru lsposed. Anyone have an idea if I can a change a line within the patch file to fix this issue. I'm on MIUI 11 Pie running Magisk 23.0 and again the patch file works great. Any suggestions ? Props to Dev for the great mod. 👍
[Magisk] Depau:
I tried running the magisk module and it didn't change the status (i.e. /proc/cmdline still shows "orange"). Have you checked Lineage toybox's sed doesn't do anything weird?

Running Lineage OS 15.1 on OnePlus 3T, Magisk 16
[Magisk] hackintosh5:
What version of the module is in use? Does /proc/cmdline show 'orange' or 'ORANGE'? Is it different in /data/local/tmp/cmdline?

I'm running LineageOS myself, the toybox seems ok. However, despite the lack of a device with lowercase orange to test on, I was able to manually test the sed toybox, and it worked case-insensitively, which is how it should.

I think there may be a problem in your end, so I need the magisk logs and the contents of /data/local/tmp/cmdline
[Magisk] hell0:
on Xiaomi A1 stock 8.1 August patch level, Magisk 16.0, this module didn't work, editing post-fs-data.sh to use lower case DID work.. either make the script run twice with both versions or check which one it is?

default for my device was lower case, /proc/cmdline showed 'orange'

Thanks for your work!
[Magisk] hackintosh5:
Which version of the module are you using? I recently updated it to use case-insensitive matching
[Magisk] hell0:
First post of this thread

I now see it says June 28, might not be the newest :D
[Magisk] gusbalaa:
Will work for Magisk 17.1 ?
[Magisk] jbradshw:
So I thought I would give this a try since basicIntegrity is failing in Magisk Manager. It's always failed for quite awhile now - I'm just finally getting around to fixing it. Once this is fixed I'll move on to the CTS failing.

LineageOS 15.1-20180629-UNOFFICIAL-potter

AceKernel v1.14

Magisk 17.1

For starters, I disabled all of the Magisk modules and it's still failing. I verified Magiskhide is working by installing RootBeer and hiding it. It thinks my phone is not rooted so we're good to go on that.

I re-enabled the modules (Magisk Manager for Recovery Mode being one of them) and then installed this module but I'm still getting a failure on basicIntegrity after reboot.
[Magisk] :
succ
[Magisk] hackintosh5:
Yes
[Magisk] hackintosh5:
Please grab /proc/cmdline. If it has the word 'orange' then also get the magisk logs and /data/local/tmp/cmdline.

If, in /proc/cmdline, it's green, this module is functioning correctly and some other aspect of your system is detected by safetynet.
[Magisk] jbradshw:
I don't see the word "orange" or "green" in there so I assume the module is working. Since it's not fixing the basicIntegrity though, I'll just remove it.

Thanks!
[Magisk] hackintosh5:
Please PM me the file, one of them must be there
[Magisk] jbradshw:
PM sent
[Magisk] Topogigi:
In my case, the world "yellow" was found in the file instead of the expected "orange".

So, I modified the module and in the version here attached the world "yellow" is replaced with "green"

P.S. I have a Nubia Z17, so I modified some other properties concerning root

TY for your module!
[Magisk] hackintosh5:
I'll push and update on around an hour.

Edit: updated.
[Magisk] hackintosh5:
Just a kind request to others, please don't repost this file!

It'd be great if that not was added into the quoted post too.
[Magisk] diaboliku123:
Hi!

I tried to install your module on my xiaomi mi5s but it says "This zip is not a magisk Module!".

Can you help me out?

Thanks
[Magisk] hackintosh5:
This zip is a magisk module, so try to download again.
[Magisk] diaboliku123:
Strange... I tried but I receive the same error.

Can you upload it somewhere?

Cheers.
[Magisk] Srithar bosss:
:svetius: Nice Work Man:svetius:
[Magisk] Ryder.:
Sorry, do i have to install MagiskHide Props Config too? Or i just need this module? My device is Asus Zenfone 3 Deluxe (ZS570KL). Bootloader unlocked, stock rom/firmware, cts verification fails. Asus devices have their unlock way by installing an .apk file from asus website. Could this have anything to do with safetynet?
[Magisk] hackintosh5:
If you're failing cts on a stock ROM, I'd suggest trying to repackage that app with a different package name. But first, try props config and enable improved hiding, that may fix it.

Note: I haven't even got an Asus device, so idk if that'll work.
[Magisk] Ryder.:
I tried the repackage option on magisk settings. It doesn't work. I tried props config changing the fingerprint but i didn't change security patch date. I don't know how to enable improved hiding, how i have to do that?

I think that the problem is the bootloader which is detected as unlocked
[Magisk] hackintosh5:
Just in general on Asus, will uninstalling the APK relock the bootloader? Perhaps you could try removing the APK?
[Magisk] Ryder.:
No. The apk is needed only for the bootloader unlocking. I don't have it anymore of course. I wonder if your module can solve the problem
[Magisk] hackintosh5:
So, you have this module installed... Please can you grab the info outlined for debugging in the OP, then I can see where the issue is taking place.
[Magisk] Ryder.:
I have not yet installed your module. I have to try but im not sure about it. I installed magisk universal safetynet fix and my phone got stuck at the asus logo screen. Maybe your module is safe but i don't know if there is the risk. Can you tell me?
[Magisk] hackintosh5:
It is unlikely that my module will break your phone... Worst case, it will at least launch ADB so you will be able to debug it
[Magisk] Ryder.:
I can do much things but not this one. :mad: If you want to explain to me...

I thought your module could be installed with magisk but i have to flash it with recovery. If something goes wrong or it doesn't work how can i remove it?

Wait. Your module fixes only basicIntegrity? My device is ok with that. It's cts the problem
[Magisk] hackintosh5:
Yeah, you may want to try something else if you have dead CTS....
[Magisk] hackintosh5:
[MENTION=4470081]topjohnwu[/MENTION] Hi,

I find it quite inappropriate that modules that 'just' run a boot script are forbidden in the magisk modules repo. As a result, I'll have to add a feature to my module that I didn't want anyway, just to get it included.

Please could you reconsider this rule?

Thanks!

(Note: I'm currently adding a binary for helping with debugging/gui, since it's a file, hopefully I'll be allowed back in. Nonetheless, I think this rule is inappropriate)
[Magisk] jatan666:
I got the same error. I got it to install by unzipping and making a new zip from the files in the folder.
[Magisk] hackintosh5:
Oh, that's because GitHub messes things up. It makes sense now, thanks for pointing that out.

Anyway, the module was removed because _someone_ changed the rules, but I've sent a request for it to be re-added, since it now complies. In the mean time, an updated version is at https://github.com/penn5/SafetyPatch . I'll update the op to reflect that.
[Magisk] henningsieh:
It seems your module is back in the repo! :fingers-crossed:
[Magisk] hackintosh5:
Yay!
[Magisk] RedSkull23:
Tested it as i noticed it was updated in the repo. First shot, rebooted and worked like a charm! Thanks a lot man. This module is gold
[Magisk] Aelsherbiny56:
Sir .. after passing safety net checks .. should i wipe data and cache of the play store and Google play services and Google services framework,after checking play store and framework in magisk hide section?
[Magisk] hackintosh5:
If it all passes, there's no need, unless you are unable to download apps like netflix from Google play
[Magisk] Ryder.:
Oh my god! It works! Cts passes! Thank you very much. I read that last update fixes cts too so i tried and now i'm happy. Finally i can use google pay?

Just wonder how it works. How did you do this miracle? :)
[Magisk] pi4a7a:
Didn't work here - Mix 2S stock based custom rom with magisk and twrp / unlocked bt

https://drive.google.com/file/d/1Kd_LzWA8G1c8q2iYg4hV8eeFwztCMjfc/view?usp=sharing here is the debug
[Magisk] hackintosh5:
Magic! Just look at the module source - all the magic happens in common/post-fs-data.sh
[Magisk] RedSkull23:
Double post my mistake, DELETE please
[Magisk] RedSkull23:
Sadly the module isn't able to do correctly his work anymore from today (no system modifications, everything is still the same as when i flashed it) :( sincerely for how much it was nice i suspected this outcome sooner or later, since first day of use i knew that Google = Orwell 1984 :silly:

Do you have any kind of explanation for this, if it's different from the fact that Google has detected it? I actually own an Honor 6X and it worked without a single problem when i first flashed this great module. Thanks in advance for your work [MENTION=8556932]hackintosh5[/MENTION]!
[Magisk] hackintosh5:
Can you please gather debug information. Also, have you installed Xposed or anything else that may be detected as evidence of rooting? Please also try repackaging the Magisk Manager.

EDIT: and yes Google is a communist dystopia.
[Magisk] hackintosh5:
Hi

Please send a screenshot of the Magisk manager safetynet check result.

Thanks
[Magisk] MRDOCA:
Just tried this on s7 flat with noname rom which was failing cts, worked great! Thanks so much. Time to get my fortnite on! Lol
[Magisk] pi4a7a:
Attached. :)
[Magisk] Dodgexander:
Been trying to pass safetynet on my ZTE axon 7 using stock 8.0 official. Both magisk hide props module and this don't seem to help which is odd because it works on custom.

Basic integrity and CTS both fail when I have magisk and before installing magisk only CTS fails.

I tried to get debug logs in terminal but the command safetypatch is missing. /data/local/tmp/cmdline is also missing and my magisk log is empty but attached is /proc/cmdline

Note it returns "orange" not green.

Is there something I can do to figure this out?
[Magisk] Didgeridoohan:
Since the Magisk log is empty, I suspect the stock ROM doesn't have logging enbled. That would mean MagiskHide won't work...
[Magisk] hackintosh5:
Double post, thanks XDA forums mobile app.
[Magisk] hackintosh5:
The issue is a Magisk issue, please try to reinstall Magisk.

Actually, since the Magisk log is empty, not only is it not doing MagiskHide, but it isn't applying the module (bind_mount: /system/bin/safetypatch should show)
[Magisk] hackintosh5:
Hi,

Please can you try to a) tap the Install button in MM to reinstall Magisk and b) try to repackage Magisk Manager (in settings)

Hopefully it will then work.

Thanks!
[Magisk] pi4a7a:
Did a) and it didn't help. I didn't quite catch b) what do you mean?
[Magisk] hackintosh5:
The button I mean is shown in the attached screenshot. For you, it will say 'hide Magisk manager' but for me it's different because I've already used it. Afterwards, reboot and check safetynet.
[Magisk] pi4a7a:
Still doesn't work.
[Magisk] hackintosh5:
could you please verify that magiskhide is enabled by sending a screenshot of the navigation drawer please.
[Magisk] RedSkull23:
Yesterday evening I've rebooted my phone, and tried again before taking a log. I can't understand why, but i'm happy to say that the easiest method made things come back to work.

The module was working before the reboot, when SafetyNet check failed and i then took the screenshot attached in my previous post. I've also checked in modules section in MM before rebooting. If this should happen again, i won't miss a logcat.
[Magisk] hackintosh5:
Glad it started working. Just a note: not a logcat, just logs ;)
[Magisk] Zakaryan2004:
After installing the module the Android System tells me to install the correct system image as the vendor image doesn't match the system image. It tells me to flash HUAWEICLT-L29 vendor image.

Galaxy J5 2015

Android 9.0 Pie

Non-treble OS
[Magisk] hackintosh5:
That makes sense, unfortunately I cannot fix it as that is against the definition of the module.

However, I wouldn't expect that to show on a non-treble os... I'll see if I can fix it, but i don't have a non-treble device to test, so any changes may just make it worse.
[Magisk] Dodgexander:
Thanks. I actually have to use a patched boot.img to get anything more than magisk v16.7 so could this be related?

Anything higher has never worked on ZTEs stock ROMs.

Other modules seem to be working fine.

Is there a way to enable logging?
[Magisk] hackintosh5:
Try just clicking the install button at the bottom of the Magisk manager, it sounds like you have a partial installation. Use direct install
[Magisk] sielhadi:
Tested on galaxy s9 plus and it works like a charm. Thanks
[Magisk] hackintosh5:
Hit the thanks button :wink:!
[Magisk] Txatxiquesi:
Hello everyone, i recently flash a pie HavocOS on my Xiaomi mi a2 lite, and i have "cts profile false" on my safetynet.

I am wondering if this module can help me out before try to use it, any toughts?.:)
[Magisk] hackintosh5:
Yes it can.
[Magisk] Txatxiquesi:
Thanks, works for me, i was wondering what should be install , this or "Magisk hide props config".:)
[Magisk] hackintosh5:
Ok, just hit the thanks button :victory:
[Magisk] Nom@d:
hi! Xposed still outsider?
[Magisk] DenyDarko:
There is no "still".

Xposed modifies (or attaches to) the system in a way that will never ever be possible to pass Safetynet.

If you need Safetynet you can't have Xposed. Not now, not ever.
[Magisk] Dodgexander:
I tried that but the log is still empty. I know it probably doesn't belong here but I'm quite sure this issue is to do with the workaround we have to do on our phone to use Magisk higher than 16.7 on stock ROMs.

It basically means in recovery you can't only flash Magisk without the phone entering a bootloop. You first have to install a patched boot.img and then Magisk followed by a custom signed modules script. Here's the thread: https://xdaforums.com/axon-7/development/kernel-magisk-17-stock-roms-t3856809

I have asked there too.

I also asked in the magisk support thread how I can raise this issue with Magisk itself but the problem is I can't get any logs when the device gets stuck in a pre init bootloop (stuck in bootloader).

Any advice to get to the bottom of this? It probably also explains why safetynet is failing.
[Magisk] hackintosh5:
If the log is empty, it means magisk isn't loading this module, nor any other. So, you'd need to fix magisk first. Sorry I can't help more.
[Magisk] DiGtal:
Is it supposed to work with a custom kernel? It's not working for me. I'm using production version of Oos Pie on my OnePlus 6. I am also using the recommended custom version of Magisk. Xposed is not installed. Safetypatch in terminal does not return anything.
[Magisk] Ravi_sh594:
First time used on redmi 5 plus..great work..thanks...
[Magisk] hackintosh5:
If the command safetypatch doesn't work it means that either the module or Magisk itself is not installed correctly. Please try to reinstall magisk and this module.
[Magisk] DiGtal:
I unrooted, rerooted and only installed your module. Still nothing.

Attached is a log just after I tried the command in terminal after rebooting.
[Magisk] hackintosh5:
That's the wrong log. Please reboot and gather a new log and send me the right file this time.
[Magisk] Didgeridoohan:
Your log looks fine from a Magisk standpoint (everything seems to be running and mounting as it should).

Are you by any chance using Termux? That's a good app sometimes, but can be troublesome for this kind of thing. You're calling su before running the command, right?

You could try a simpler Terminal Emulator instead (if you're using Termux that is).
[Magisk] trinaldi:
My J7 Prime falls into the same problem with the "HUAWEICLT-L29 vendor image."

Is the GitHub repo closed?
[Magisk] DiGtal:
Ah! That's where I was wrong. It works with Termux.

I'm attaching the debug log as a text file to because the site does not allow me to upload .debug files.

Is a logcat necessary as well?
[Magisk] hackintosh5:
This only appears to happen on non-treble devices... I'll see about fixing this
[Magisk] trinaldi:
Awesome!
[Magisk] hackintosh5:
Beta

Heres one to test...

Beware it may bootloop. If it does, just uninstall either the module or magisk.

Hopefully the warning will be gone!
[Magisk] trinaldi:
Ok, I'm going in.

Wish me luck haha

Thanks

EDIT: So far no bootloop, but also no effect. I'll try again. Nothing =/