Bypass SafetyNet hardware attestation with an unlocked bootloader

Over the last few years, the challenge of bypassing SafetyNet Attestation has evolved from a simple cat and mouse game between Google and the modding community to a burgeoning battle full of obscure barriers. Thanks to the rise of hardware-backed certification techniques, it is very difficult to bypass the boot image integrity verification routine and hide root access. Installing Magisk on its own would not be enough to circumvent the latest update to SafetyNet, especially on newer devices. This is where the Universal SafetyNet Fix Magisk module comes in.
While legacy device owners, as well as custom ROM users, often use modules such as MagiskHide Props Config to spoof the CTS profile to pass basic certification, as long as the method in question relies on a valid combination of device and model names, fingerprint building, and security patch levels, there is no guarantee that the root hiding trick will remain useful in the future. This is due to the fact that Google Play Services is starting to use CTS profile validation hardware certification in many cases, even when a basic certificate is selected.
In case you have an Android device that has an unlocked bootloader (or locked using custom verified boot keys) and thus doesn’t pass hardware attestation, then the Universal SafetyNet Fix Magisk module may fix that. Created by Danny Lin AKA XDA Senior Member kdrag0n, the module works by taking advantage of the opportunistic nature of the hardware attestation routine. Quoting the developer:
Read Also: Android 17 Security Features: Anti-Scam Calls, Theft Protection, and Privacy Controls Explained
… it (hardware attestation) falls back to basic attestation if key attestation fails to run — and prevent GMS from using key attestation at the framework level. This causes it to gracefully fall back to basic attestation and pass SafetyNet with an unlocked bootloader.
…
The “not implemented” error code from Keymaster is used to simulate the most realistic failure condition to evade detection, i.e. an old device that lacks support for key attestation.
The workaround is already available pre-integrated on the ProtonAOSP ROM from the same developer, which lets you pass SafetyNet without Magisk on fairly modern devices such as the Google Pixel 5. If you are a custom ROM maintainer and you wish to integrate this method with your build, you can do so by cherry-picking the necessary patches from this repository. On the other hand, the latest version of the ready-to-flash Magisk Module variant can be found here. Note that MagiskHide is still required if the target device is rooted.
Universal SafetyNet Fix: XDA Thread ||| GitHub Repo

Google Pixel Watch 4

Google Pixel 9

Samsung Galaxy Watch 8
Comments & Discussions
Join the conversation! We use Disqus to handle comments. Click the button below to load the comment section.
Keep Reading
Samsung builds the Galaxy Watch on the assumption that most people want some level of health and fitness tracking. That may be true for many users – but even if it describes you, there are several health settings running in the background that you might never actually check. If that data isn’t being used, there’s […]

Portable tech exists on a spectrum. A desktop setup stays home. A laptop travels. A phone handles the street-level stuff. And when even pulling out a phone to skip a song feels like too much effort, a smartwatch steps in. It’s the layer of tech that lives on your wrist, always available without the friction. […]

Before USB-C came along in 2014, smartphones relied on mini USB, micro USB, or Apple’s proprietary Lightning port. Android devices made the switch to USB-C early on — the Nokia N1 tablet was one of the first devices to feature the reversible connector — and Apple eventually followed suit, dropping Lightning with the iPhone 15 […]

There comes a point where upgrading your smartphone every year or two just does not make much sense anymore. My Google Pixel 9 Pro from 2024 is still performing well, and unless the next upgrade brings something meaningful, I do not see myself moving to the Pixel 11 Pro either. The trade-off for keeping a […]

At some point, there’s a good chance you’ll need to create and send a PDF from your Android phone. The instinct is usually to head straight to the Google Play Store — but with ongoing reports of malicious apps turning up on both Android and iOS, that search can quickly become a security minefield. Before […]



