About the SafetyNet Attestation API deprecation

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.