SafetyNetStatusCodes

public final class SafetyNetStatusCodes extends CommonStatusCodes

Status codes for the SafetyNet API.

Constant Summary

int RECAPTCHA_INVALID_KEYTYPE Cannot start the reCAPTCHA service because type of site key is not valid.
int RECAPTCHA_INVALID_PACKAGE_NAME Cannot start the reCAPTCHA service because calling package name is not matched with site key.
int RECAPTCHA_INVALID_SITEKEY Cannot start the reCAPTCHA service because site key parameter is not valid.
int SAFE_BROWSING_API_NOT_AVAILABLE An internal error occurred causing the call to lookupUri(GoogleApiClient, String, int...) to be unavailable.
int SAFE_BROWSING_API_NOT_INITIALIZED lookupUri(String, String, int...) called without first calling initSafeBrowsing().
int SAFE_BROWSING_MISSING_API_KEY The API key required for calling lookupUri(GoogleApiClient, String, int...) is missing in the manifest.
int SAFE_BROWSING_UNSUPPORTED_THREAT_TYPES None of the input threat types to lookupUri(GoogleApiClient, String, int...) are supported.
int UNSUPPORTED_SDK_VERSION User device SDK version is not supported.
int VERIFY_APPS_INTERNAL_ERROR An internal error occurred while using the Verify Apps API.
int VERIFY_APPS_NOT_AVAILABLE Verify Apps is not supported on this device.
int VERIFY_APPS_NOT_ENABLED Cannot list potentially harmful apps because Verify Apps is not enabled.

Inherited Constant Summary

Inherited Method Summary

Constants

public static final int RECAPTCHA_INVALID_KEYTYPE

Cannot start the reCAPTCHA service because type of site key is not valid.

Please create new site key with the key type set to "Android" via reCAPTCHA admin site: https://g.co/recaptcha/androidsignup.

Constant Value: 12008

public static final int RECAPTCHA_INVALID_PACKAGE_NAME

Cannot start the reCAPTCHA service because calling package name is not matched with site key.

Please add the new package name to your site key via reCAPTCHA admin site: https://g.co/recaptcha/androidsignup or choose to disable the package name validation for your key.

Constant Value: 12013

public static final int RECAPTCHA_INVALID_SITEKEY

Cannot start the reCAPTCHA service because site key parameter is not valid.

Constant Value: 12007

public static final int SAFE_BROWSING_API_NOT_AVAILABLE

An internal error occurred causing the call to lookupUri(GoogleApiClient, String, int...) to be unavailable.

Constant Value: 12002

public static final int SAFE_BROWSING_API_NOT_INITIALIZED

Constant Value: 12009

public static final int SAFE_BROWSING_MISSING_API_KEY

The API key required for calling lookupUri(GoogleApiClient, String, int...) is missing in the manifest.

A meta-data name-value pair in the app manifest with the name "com.google.android.safetynet.API_KEY" and a value consisting of the API key from the Google Developers Console is not present.

Constant Value: 12001

public static final int SAFE_BROWSING_UNSUPPORTED_THREAT_TYPES

None of the input threat types to lookupUri(GoogleApiClient, String, int...) are supported.

Constant Value: 12000

public static final int UNSUPPORTED_SDK_VERSION

User device SDK version is not supported.

Constant Value: 12006

public static final int VERIFY_APPS_INTERNAL_ERROR

An internal error occurred while using the Verify Apps API.

Constant Value: 12004

public static final int VERIFY_APPS_NOT_AVAILABLE

Verify Apps is not supported on this device.

Constant Value: 12003

public static final int VERIFY_APPS_NOT_ENABLED

Cannot list potentially harmful apps because Verify Apps is not enabled.

The developer may call enableVerifyApps(GoogleApiClient) to request the user turn on the Verify Apps.

Constant Value: 12005