[ Web Proxy ]
URL:
Viewing: https://developer.android.com/training/safetynet/attestation [Back]  [Original]

About the SafetyNet Attestation API deprecation  |  Security  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]

About the SafetyNet Attestation API deprecation Stay organized with collections Save and categorize content based on your preferences.

The SafetyNet Attestation API was deprecated in 2022 and fully turned down in January 2025. Developers should migrate to the Play Integrity API that consolidates multiple integrity offerings (including the SafetyNet Attestation integrity verdict) under a single API.

Setting up your app to use the Play Integrity API

We recommend that you migrate to the Play Integrity API to avoid any disruptions in detecting risky interactions with your app and fighting abuse.

The two APIs are conceptually similar, so if you've already defined your anti-abuse strategy and were using SafetyNet Attestation, the migration is straightforward. You can start to set up the Play Integrity API using your Play Console now.

SafetyNet Attestation API full turndown

If you try to call the SafetyNet Attestation API, you will receive an error. The attest API returns a task that always invokes the on failure listener with an ApiException and a status code of 7 (NETWORK_ERROR). If you have released a version of your app that uses the Play Integrity API, you should instruct your users to update their app.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-03-06 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-06 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page