Droid Tools
Home
⌘K
Search
FacebookX (Twitter)InstagramTikTokYouTubeRedditTelegramRSS Feed
Trending:
Galaxy S26•Android 16•Smartwatches• Tech Deals•Latest Reviews
Droid Tools

Droid Tools covers the latest Android news, device reviews, app updates, and OS guides. Stay informed with hands-on coverage from mobile tech experts.

Explore

  • News
  • Apps
  • OS
  • Phones
  • Reviews

Legal & Info

  • About Us
  • Contact
  • Editorial Policy
  • Review Policy
  • Privacy Policy
  • Terms & Conditions
  • Cookie Policy
  • Affiliate Disclosure
  • Disclaimer
  • HTML Sitemap
  • XML Sitemap
© 2026 Droid Tools. All rights reserved.
Home/Guides/Bypass SafetyNet hardware attestation with an unlocked bootloader
Guides

Bypass SafetyNet hardware attestation with an unlocked bootloader

Cristian Penisoara
Feb 9, 2021Updated Apr 6, 20263 min read
Cristian Penisoara
Cristian Penisoara
Guides Writer · Android Power User
Cristian Penisoara is a Guides Writer and Android specialist at Droid Tools. An Android user since version 2 and a professional event photographer, he combines technical curiosity with a detail-oriented approach - every guide he publishes is tested step-by-step on a real device before it goes live.
Profile →
Bypass SafetyNet hardware attestation with an unlocked bootloader
0%
Share on XFacebookBluesky
Follow on Google
Advertisement
Trust this source on GoogleAlways see our reviews and tech guides first in search results
Add trusted source

Key Takeaways

Automated Editorial Synthesis
AI Overview
  • 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.

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:

… 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.

Advertisement

Universal SafetyNet Fix: XDA Thread ||| GitHub Repo

Trust this source on GoogleAlways see our reviews and tech guides first in search results
Add trusted source
Tags:#apps#bootloader#bypass#hardware#play services#play store#SafetyNet#unlocked
Recommended Deals
1 / 5
Google Pixel Watch 5 (45mm)

Google Pixel Watch 5 (45mm)

5.0
529.99
Buy on Amazon
✨DEAL!
Samsung Galaxy Watch Ultra (2025)

Samsung Galaxy Watch Ultra (2025)

5.0
$449.99$649.99-31%
Buy on Amazon
👑A good choice
Apple iPhone 17 Pro

Apple iPhone 17 Pro

4.8
$1,012.97$1,099.00-8%
Buy on Amazon
Google Pixel Watch 4

Google Pixel Watch 4

4.8
396.00$499.99-21%
Buy on Amazon
💎Best Android Device
Samsung Galaxy S26 Ultra

Samsung Galaxy S26 Ultra

4.9
$1,212.85$1,499.99-19%
Buy on Amazon
* As an Amazon Associate, Droid Tools earns from qualifying purchases. Read our editorial policy
Cristian Penisoara
Cristian PenisoaraGuides Writer · Android Power User

Cristian Penisoara is a Guides Writer and Android specialist at Droid Tools. An Android user since version 2 and a professional event photographer, he combines technical curiosity with a detail-oriented approach - every guide he publishes is tested step-by-step on a real device before it goes live.

Advertisement

Comments & Discussions

Join the conversation! We use Disqus to handle comments. Click the button below to load the comment section.

Advertisement

Latest Stories

gemini spark
01

Google Photos integration comes to Gemini Spark for Pro and Ultra users

02

Garmin Epix Pro Gen 2 Sapphire Edition drops to under $700 at Amazon

03

Pixel Watch 5 Special Edition Stephen Curry model now available

04

Google’s Scam Detection could be coming to Xiaomi phones, teardown suggests

Advertisement
Amazon Deals
5.0
Google Pixel Watch 5 (45mm)

Google Pixel Watch 5 (45mm)

Best Price
529.99
Buy

Top Deals

Garmin Epix Pro Gen 2 Sapphire Edition drops to under $700 at Amazon

Deal
Garmin Epix Pro Gen 2 Sapphire Edition drops to under $700 at Amazon

Pixel Watch 5 Special Edition Stephen Curry model now available

Deal
Pixel Watch 5 Special Edition Stephen Curry model now available

Google Pixel Watch 5 launches with bigger batteries and Gemini Intelligence

Deal
Google Pixel Watch 5 launches with bigger batteries and Gemini Intelligence
Advertisement
More Stories

Keep Reading

Robert HabaSep 2, 20261 min read
Guides

How to turn off Safe Mode on Android

Knowing how to turn off Safe Mode on Android comes in handy, since Safe Mode is a built-in troubleshooting tool that disables every third-party app on a phone and switches on Airplane Mode, making it easier to isolate an app causing lag, battery drain, or other issues. It's also useful for safely deleting a suspected […]

turn off safe mode in android
Robert HabaAug 28, 20261 min read
Guides

Before using a new phone, disable these 5 Android settings.

Opening a brand-new phone has a particular excitement. After removing the plastic, you move your pictures, log into your Google account, and begin taking your first snapshot. However, we frequently overlook a few crucial settings that can improve our phone in all that excitement. I looked at a few options on my current phone, a […]

galaxy s25 settings menu
Robert HabaAug 20, 20261 min read
Guides

Android Phone Won’t Turn On? Try These Fixes

If your Android phone won’t turn on, connect it to a tested wall charger for at least 30 minutes, then hold the Power button for several seconds. If nothing happens, inspect the cable, adapter, outlet, charging port, and physical buttons before attempting a forced restart. A phone that appears completely dead may actually have a […]

How to fix phone that wont turn on
Robert HabaAug 19, 20261 min read
Guides

How to Free Up Storage on Android Without Deleting Important Files

The safest way to free up storage on Android is to remove temporary files, delete offline downloads you can retrieve again, archive unused apps, and move backed-up photos or large files off the device. Start by checking what is using the space, then work from the least destructive options to the most destructive. Do not […]

Android storage
Robert HabaAug 19, 20261 min read
Guides

How to Factory Reset an Android Phone Without Losing Important Data

You cannot factory reset an Android phone without erasing the information stored locally on it. What you can do is back up your important data, verify that the backup works, perform the reset, and restore the information afterward. Before proceeding, save your photos, messages, contacts, files, app data, authentication accounts, and other irreplaceable information. Do […]

Android factory reset stock
Read Next

How to turn off Safe Mode on Android

How to turn off Safe Mode on Android