מידע על ההוצאה משימוש של SafetyNet Attestation API
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
SafetyNet Attestation API הוצא משימוש בשנת 2022 והושבת באופן מלא בינואר 2025. מפתחים צריכים לעבור ל-Play Integrity API, שמרכז כמה חבילות שירות של בדיקות תקינות (כולל תוצאת בדיקת התקינות של SafetyNet Attestation) בממשק API אחד.
הגדרת האפליקציה לשימוש ב-Play Integrity API
מומלץ לעבור ל-Play Integrity API כדי למנוע שיבושים בזיהוי אינטראקציות מסוכנות עם האפליקציה ובמאבק נגד ניצול לרעה.
שני ממשקי ה-API דומים מבחינה מושגית, כך שאם כבר הגדרתם את האסטרטגיה שלכם למניעת ניצול לרעה והשתמשתם באימות של SafetyNet, ההעברה תהיה פשוטה. אתם יכולים להתחיל להגדיר את Play Integrity API באמצעות Play Console כבר עכשיו.
השבתה מלאה של SafetyNet Attestation API
אם תנסו לבצע קריאה ל-SafetyNet Attestation API, תופיע הודעת שגיאה.
ממשק ה-API attest מחזיר משימה שתמיד מפעילה את on
failure listener עם ApiException וקוד סטטוס של 7 (NETWORK_ERROR
). אם פרסמתם גרסה של האפליקציה שמשתמשת ב-Play Integrity API, עליכם להנחות את המשתמשים לעדכן את האפליקציה.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[],[],null,["# About the SafetyNet Attestation API deprecation\n\nThe SafetyNet Attestation API was deprecated in 2022 and fully turned down in\nJanuary 2025. Developers should migrate to the [Play Integrity API](/google/play/integrity) that\nconsolidates multiple integrity offerings (including the SafetyNet Attestation\nintegrity verdict) under a single API.\n\nSetting up your app to use the Play Integrity API\n-------------------------------------------------\n\nWe recommend that you migrate to the Play Integrity API to avoid any disruptions\nin detecting risky interactions with your app and fighting abuse.\n\nThe two APIs are conceptually similar, so if you've already defined your\nanti-abuse strategy and were using SafetyNet Attestation, the migration is\nstraightforward. You can [start to set up](/google/play/integrity/setup) the Play Integrity API using your\n[Play Console](https://play.google.com/console/u/0/developers) now.\n\nSafetyNet Attestation API full turndown\n---------------------------------------\n\nIf you try to call the SafetyNet Attestation API, you will receive an error.\nThe [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\nfailure 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\n[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\nversion of your app that uses the Play Integrity API, you should instruct your\nusers to update their app."]]