com.google.android.gms.safetynet
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 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 2024-10-31 UTC."],[[["\u003cp\u003eThe SafetyNet API provides access to Google services that assess the health and safety of an Android device.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSafetyNetClient\u003c/code\u003e and (deprecated) \u003ccode\u003eSafetyNetApi\u003c/code\u003e serve as the main entry points for interacting with SafetyNet.\u003c/p\u003e\n"],["\u003cp\u003eSafetyNet offers functionalities like device attestation, harmful app detection, safe browsing checks, and reCAPTCHA verification.\u003c/p\u003e\n"],["\u003cp\u003eVarious response objects and status codes provide information about the results of SafetyNet operations.\u003c/p\u003e\n"]]],[],null,["# com.google.android.gms.safetynet\n\n### Interfaces\n\n|----------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [SafetyNetApi](/android/reference/com/google/android/gms/safetynet/SafetyNetApi) | The main entry point for interacting with SafetyNet. |\n| [SafetyNetApi.RecaptchaTokenResult](/android/reference/com/google/android/gms/safetynet/SafetyNetApi.RecaptchaTokenResult) | *This interface was deprecated. use [SafetyNetApi.RecaptchaTokenResponse](/android/reference/com/google/android/gms/safetynet/SafetyNetApi.RecaptchaTokenResponse) returned from [verifyWithRecaptcha(String)](/android/reference/com/google/android/gms/safetynet/SafetyNetClient#verifyWithRecaptcha(java.lang.String)).* |\n\n### Classes\n\n|--------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [HarmfulAppsData](/android/reference/com/google/android/gms/safetynet/HarmfulAppsData) | APK information pertaining to one potentially harmful app. |\n| [SafeBrowsingThreat](/android/reference/com/google/android/gms/safetynet/SafeBrowsingThreat) | A threat of interest used as input to [lookupUri(String, String, int...)](/android/reference/com/google/android/gms/safetynet/SafetyNetClient#lookupUri(java.lang.String, java.lang.String, int...)) and returned as output if these threats are detected for the input URI to [lookupUri(String, String, int...)](/android/reference/com/google/android/gms/safetynet/SafetyNetClient#lookupUri(java.lang.String, java.lang.String, int...)). |\n| [SafetyNet](/android/reference/com/google/android/gms/safetynet/SafetyNet) | The SafetyNet API provides access to Google services that help you assess the health and safety of an Android device. |\n| [SafetyNetApi.AttestationResponse](/android/reference/com/google/android/gms/safetynet/SafetyNetApi.AttestationResponse) | Response from [attest(byte[], String)](/android/reference/com/google/android/gms/safetynet/SafetyNetClient#attest(byte[], java.lang.String)) that contains a [Compatibility Test Suite](//source.android.com/compatibility/cts-intro.html) attestation result. |\n| [SafetyNetApi.HarmfulAppsResponse](/android/reference/com/google/android/gms/safetynet/SafetyNetApi.HarmfulAppsResponse) | A [Response](/android/reference/com/google/android/gms/common/api/Response) returned from [listHarmfulApps()](/android/reference/com/google/android/gms/safetynet/SafetyNetClient#listHarmfulApps()). |\n| [SafetyNetApi.RecaptchaTokenResponse](/android/reference/com/google/android/gms/safetynet/SafetyNetApi.RecaptchaTokenResponse) | [Response](/android/reference/com/google/android/gms/common/api/Response) from [verifyWithRecaptcha(String)](/android/reference/com/google/android/gms/safetynet/SafetyNetClient#verifyWithRecaptcha(java.lang.String)). |\n| [SafetyNetApi.SafeBrowsingResponse](/android/reference/com/google/android/gms/safetynet/SafetyNetApi.SafeBrowsingResponse) | [Response](/android/reference/com/google/android/gms/common/api/Response) for [lookupUri(String, String, int...)](/android/reference/com/google/android/gms/safetynet/SafetyNetClient#lookupUri(java.lang.String, java.lang.String, int...)). |\n| [SafetyNetApi.VerifyAppsUserResponse](/android/reference/com/google/android/gms/safetynet/SafetyNetApi.VerifyAppsUserResponse) | A [Response](/android/reference/com/google/android/gms/common/api/Response) to get user decisions for the Verify Apps API. |\n| [SafetyNetClient](/android/reference/com/google/android/gms/safetynet/SafetyNetClient) | The main entry point for SafetyNet. |\n| [SafetyNetStatusCodes](/android/reference/com/google/android/gms/safetynet/SafetyNetStatusCodes) | Status codes for the SafetyNet API. |\n| [VerifyAppsConstants](/android/reference/com/google/android/gms/safetynet/VerifyAppsConstants) | Constants pertaining to the Verify Apps SafetyNet API. |"]]