Google is committed to advancing racial equity for Black communities. See how.

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(String, 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(String, String, int...) is missing in the manifest.
int SAFE_BROWSING_UNSUPPORTED_THREAT_TYPES None of the input threat types to lookupUri(String, 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 register new site key with the key type set to "reCAPTCHA Android" via //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 Console 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(String, 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(String, 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(String, 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() to request the user turn on Verify Apps.

Constant Value: 12005