The SafetyNet Attestation API was deprecated in 2022 and fully turned down in January 2025. Developers should migrate to the[Play Integrity API](https://developer.android.com/google/play/integrity)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](https://developer.android.com/google/play/integrity/setup)the Play Integrity API using your[Play Console](https://play.google.com/console/u/0/developers)now.

## SafetyNet Attestation API full turndown

If you try to call the SafetyNet Attestation API, you will receive an error. The[attest](https://developers.google.com/android/reference/com/google/android/gms/safetynet/SafetyNetClient#public-tasksafetynetapi.attestationresponse-attest-byte%5B%5D-nonce,-string-apikey)API returns a task that always invokes the[on failure listener](https://developers.google.com/android/reference/com/google/android/gms/tasks/Task#addOnFailureListener(com.google.android.gms.tasks.OnFailureListener))with an[ApiException](https://developers.google.com/android/reference/com/google/android/gms/common/api/ApiException)and a[status code](https://developers.google.com/android/reference/com/google/android/gms/common/api/ApiException#getStatusCode())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.