Universal SafetyNet Fix
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 Beta 3 are supported, including OEM skins such as Samsung One UI and MIUI.
How does it work?
The way this workaround works is relatively low-level. An in-depth explanation, as well as source code and ROM changes, can be found on GitHub.
Ideally, this workaround should be incorporated in ROMs instead of overriding part of the ROM in a Magisk module. The ROM changes for it are linked above for ROM developers to use.
Downloads and changelogs can be found on GitHub. The topmost release is the latest.
- Fixed fingerprint on OxygenOS/ColorOS 12 (@osm0sis)
- Support for Magisk 24+ module updates (@benjibobs)
- Restored support for Android 7
- Spoofed OnePlus OEM unlock status for futureproofing (@osm0sis)
- Minor code improvements
If this helped you, please consider donating to support development: recurring donation for sustainable support or buy me a coffee. Thank you for your support!
Last edited by a moderator: