Skip to content

Google SafetyNet attestation workarounds for Magisk

License

Notifications You must be signed in to change notification settings

frnode/safetynet-fix

 
 

Repository files navigation

Universal SafetyNet Fix - Updated

Magisk module to work around Google's SafetyNet attestation.

This module works around hardware attestation and recent updates to SafetyNet CTS profile checks. You must already be able to pass basic CTS profile attestation, which requires a valid combination of device and model names, build fingerprints, and security patch levels.

If you still have trouble passing SafetyNet with this module, use MagiskHide Props Config to spoof a certified device profile. This is a common issue on old devices, custom ROMs, and stock ROMs without GMS certification (e.g. Chinese ROMs).

Android versions up to 13 Developer Preview 1 are supported, including OEM skins such as Samsung One UI and MIUI.

Download

Download latest version

Install the downloaded module in Magisk Manager, then enable Zygisk in Magisk settings.

There is also a Riru version for Magisk v23 and older.

How does it work?

See Details for details about how this module works.

ROM integration

Ideally, this workaround should be incorporated in custom ROMs instead of injecting code with a Magisk module. See the ProtonAOSP website for more information.

About

Google SafetyNet attestation workarounds for Magisk

Resources

License

Stars

Watchers

Forks

Languages

  • C++ 52.1%
  • Kotlin 20.4%
  • Shell 18.3%
  • Dockerfile 7.2%
  • Makefile 2.0%