Summary: [Constants](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode#constants) \| [Inherited Methods](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode#inhmethods)  

# StandardIntegrityErrorCode


`
public


abstract
@interface
StandardIntegrityErrorCode
`


`


implements

`[Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)`


`

|-------------------------------------------------------------------------|
| com.google.android.play.core.integrity.model.StandardIntegrityErrorCode |

<br />

*** ** * ** ***

Error codes for Standard Integrity API.

## Summary

|                                                                                                                                                      ### Constants                                                                                                                                                       ||
|-------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [API_NOT_AVAILABLE](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#API_NOT_AVAILABLE) Standard Integrity API is not available.                                                                                        |
| `int` | [APP_NOT_INSTALLED](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#APP_NOT_INSTALLED) The calling app is not installed.                                                                                               |
| `int` | [APP_UID_MISMATCH](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#APP_UID_MISMATCH) The calling app UID (user id) does not match the one from Package Manager.                                                        |
| `int` | [CANNOT_BIND_TO_SERVICE](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#CANNOT_BIND_TO_SERVICE) Binding to the service in the Play Store has failed.                                                                  |
| `int` | [CLIENT_TRANSIENT_ERROR](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#CLIENT_TRANSIENT_ERROR) There was a transient error in the client device.                                                                     |
| `int` | [CLOUD_PROJECT_NUMBER_IS_INVALID](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#CLOUD_PROJECT_NUMBER_IS_INVALID) The provided cloud project number is invalid.                                                       |
| `int` | [GOOGLE_SERVER_UNAVAILABLE](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#GOOGLE_SERVER_UNAVAILABLE) Unknown internal Google server error.                                                                           |
| `int` | [INTEGRITY_TOKEN_PROVIDER_INVALID](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#INTEGRITY_TOKEN_PROVIDER_INVALID) The `StandardIntegrityTokenProvider` is invalid.                                                  |
| `int` | [INTERNAL_ERROR](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#INTERNAL_ERROR) Unknown internal error.                                                                                                               |
| `int` | [NETWORK_ERROR](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#NETWORK_ERROR) No available network is found.                                                                                                          |
| `int` | [NO_ERROR](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#NO_ERROR)                                                                                                                                                   |
| `int` | [PLAY_SERVICES_NOT_FOUND](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#PLAY_SERVICES_NOT_FOUND) Play Services is not available or version is too old.                                                               |
| `int` | [PLAY_SERVICES_VERSION_OUTDATED](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#PLAY_SERVICES_VERSION_OUTDATED) Play Services needs to be updated.                                                                    |
| `int` | [PLAY_STORE_NOT_FOUND](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#PLAY_STORE_NOT_FOUND) No Play Store app is found on device or not official version is installed.                                                |
| `int` | [PLAY_STORE_VERSION_OUTDATED](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#PLAY_STORE_VERSION_OUTDATED) The Play Store needs to be updated.                                                                         |
| `int` | [REQUEST_HASH_TOO_LONG](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#REQUEST_HASH_TOO_LONG) The provided request hash is too long.                                                                                  |
| `int` | [TOO_MANY_REQUESTS](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html#TOO_MANY_REQUESTS) The calling app has made too many requests to the API and has been throttled, or your app has exceeded its daily request quota. |

| ### Inherited methods |
|-----------------------|---|
| From interface ` `[java.lang.annotation.Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)` ` |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` abstract `[Class](https://developer.android.com/reference/java/lang/Class.html)`<? extends `[Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)`>` | ` annotationType() `                                                                       | | ` abstract boolean`                                                                                                                                                                         | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` abstract int`                                                                                                                                                                             | ` hashCode() `                                                                             | | ` abstract `[String](https://developer.android.com/reference/java/lang/String.html)                                                                                                         | ` toString() `                                                                             | ||

## Constants

### API_NOT_AVAILABLE

```
public static final int API_NOT_AVAILABLE
```

Standard Integrity API is not available.

Standard Integrity API is not enabled, or the Play Store version might be old.

Recommended actions:
- Make sure to be allowlisted to use Standard Integrity API.
- Make sure that Integrity API is enabled in Google Play Console.
- Ask the user to update Play Store.

<br />

<br />

Constant Value:

-1
(0xffffffff)


### APP_NOT_INSTALLED

```
public static final int APP_NOT_INSTALLED
```

The calling app is not installed.

Something is wrong (possibly an attack). Non-actionable.

<br />

Constant Value:

-5
(0xfffffffb)


### APP_UID_MISMATCH

```
public static final int APP_UID_MISMATCH
```

The calling app UID (user id) does not match the one from Package Manager.

Something is wrong (possibly an attack). Non-actionable.

<br />

Constant Value:

-7
(0xfffffff9)


### CANNOT_BIND_TO_SERVICE

```
public static final int CANNOT_BIND_TO_SERVICE
```

Binding to the service in the Play Store has failed. This can be due to having an old Play
Store version installed on the device or device memory is overloaded.

Ask the user to update Play Store.

Retry with an exponential backoff.

<br />

Constant Value:

-9
(0xfffffff7)


### CLIENT_TRANSIENT_ERROR

```
public static final int CLIENT_TRANSIENT_ERROR
```

There was a transient error in the client device.

Retry with an exponential backoff.

If the error persists after a few retries, you should assume that the device has failed
integrity checks and act accordingly.

<br />

Constant Value:

-18
(0xffffffee)


### CLOUD_PROJECT_NUMBER_IS_INVALID

```
public static final int CLOUD_PROJECT_NUMBER_IS_INVALID
```

The provided cloud project number is invalid.

Use the cloud project number which can be found in Project info in your Google Cloud Console
for the cloud project where Play Integrity API is enabled.

<br />

Constant Value:

-16
(0xfffffff0)


### GOOGLE_SERVER_UNAVAILABLE

```
public static final int GOOGLE_SERVER_UNAVAILABLE
```

Unknown internal Google server error.

Retry with an exponential backoff. Consider filing a bug if fails consistently.

<br />

Constant Value:

-12
(0xfffffff4)


### INTEGRITY_TOKEN_PROVIDER_INVALID

```
public static final int INTEGRITY_TOKEN_PROVIDER_INVALID
```

The `StandardIntegrityTokenProvider` is invalid (e.g. it is outdated).

This error can be returned only for `StandardIntegrityTokenProvider#request(StandardIntegrityTokenRequest)`.

Request a new integrity token provider by calling `StandardIntegrityManager#prepareIntegrityToken(PrepareIntegrityTokenRequest)`.

<br />

Constant Value:

-19
(0xffffffed)


### INTERNAL_ERROR

```
public static final int INTERNAL_ERROR
```

Unknown internal error.

Retry with an exponential backoff. Consider filing a bug if fails consistently.

<br />

Constant Value:

-100
(0xffffff9c)


### NETWORK_ERROR

```
public static final int NETWORK_ERROR
```

No available network is found.

Ask the user to check for a connection.

<br />

Constant Value:

-3
(0xfffffffd)


### NO_ERROR

```
public static final int NO_ERROR
```

<br />

<br />

Constant Value:

0
(0x00000000)


### PLAY_SERVICES_NOT_FOUND

```
public static final int PLAY_SERVICES_NOT_FOUND
```

Play Services is not available or version is too old.

Ask the user to Install or Update Play Services.

<br />

Constant Value:

-6
(0xfffffffa)


### PLAY_SERVICES_VERSION_OUTDATED

```
public static final int PLAY_SERVICES_VERSION_OUTDATED
```

Play Services needs to be updated.

Ask the user to update Google Play Services.

<br />

Constant Value:

-15
(0xfffffff1)


### PLAY_STORE_NOT_FOUND

```
public static final int PLAY_STORE_NOT_FOUND
```

No Play Store app is found on device or not official version is installed.

Ask the user to install an official and recent version of Play Store.

<br />

Constant Value:

-2
(0xfffffffe)


### PLAY_STORE_VERSION_OUTDATED

```
public static final int PLAY_STORE_VERSION_OUTDATED
```

The Play Store needs to be updated.

Ask the user to update the Google Play Store.

<br />

Constant Value:

-14
(0xfffffff2)


### REQUEST_HASH_TOO_LONG

```
public static final int REQUEST_HASH_TOO_LONG
```

The provided request hash is too long. The request hash length must be less than 500 bytes.

Retry with a shorter request hash.

<br />

Constant Value:

-17
(0xffffffef)


### TOO_MANY_REQUESTS

```
public static final int TOO_MANY_REQUESTS
```

The calling app has made too many requests to the API and has
been throttled, or your app has exceeded its daily request quota.

Retry with an exponential backoff. Request an increase to your daily request quota
if you're at your daily request limit.

<br />

Constant Value:

-8
(0xfffffff8)