We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All
ReferencesSafety DetectAndroidcom.huawei.hms.support.api.safetydetectClass SummarySafetyDetectStatusCodes

SafetyDetectStatusCodes

Expand

Class Info

public class SafetyDetectStatusCodes extends CommonStatusCodes

Status codes of the Safety Detect SDK.

Expand

Result Code

Value

Description

Solution

SDK_INTERNAL_ERROR

19001

HMS Core SDK internal error.

Go to Support > Customer Service. On the Submit a ticket online page, select the relevant category, and submit a ticket. Huawei will get back to you as soon as possible.

NETWORK_ERROR

19002

Network exception.

Verify that your phone has access to the Internet.

UNSUPPORTED_AREA

19003

The API is unavailable in this region.

Verify that this API is supported in the region where the user is located.

INVALID_APPID

19004

Invalid app ID in the request.

Verify that the app ID in the request is valid.

UNSUPPORTED_EMUI_VERSION

19202

The EMUI version on the user device does not support the Safety Detect service.

Use a device that supports the service.

VERIFY_APPS_VIRUS_NUMBER_EXCEEDED

19402

The number of apps to check exceeds the maximum allowed by AppCheck.

Reduce the number of apps to check.

PARAM_ERROR_EMPTY

19150

A mandatory parameter in the request is empty.

Verify that all mandatory parameters in the request are correctly set.

PARAM_ERROR_INVALID

19151

Parameter verification failed.

Verify that parameters in the request are valid.

APPS_CHECK_INTERNAL_ERROR

19401

An internal error occurred during app security check.

If the error persists, submit a ticket online to seek for help from Huawei technical support.

URL_CHECK_INNER_ERROR

19600

An internal error occurred during malicious URL check.

If the error persists, submit a ticket online to seek for help from Huawei technical support.

CHECK_WITHOUT_INIT

19601

Initialization failed because the initUrlCheck API is not called before calling URLCheck.

Call the initUrlCheck() API first to initialize URLCheck.

URL_CHECK_THREAT_TYPE_INVALID

19602

The URLCheck API does not support the passed URL categories. Currently, Safety Detect can only identify phishing and malware URLs.

Verify that the passed URL categories are valid.

URL_CHECK_REQUEST_PARAM_INVALID

19603

Invalid parameters for calling urlCheck.

Verify that relevant parameters are valid.

URL_CHECK_REQUEST_APPID_INVALID

19604

The app ID passed for calling urlCheck is invalid.

Verify that the passed app ID is valid.

DETECT_FAIL

19800

Fake user detection failed.

Try again. If the detection fails for three times, risks exist.

USER_DETECT_TIMEOUT

19801

Fake user detection timed out, for example, when the user enters the verification code.

Try again.

USER_DETECT_INVALID_APPID

19802

The app ID passed for calling userDetection is invalid.

Verify that the passed app ID is valid.

USER_DETECT_PERMISSION

19803

Failed to display a popup on a non-Huawei phone.

Go to Settings (or your phone manager app), assign HMS Core (APK) with the permission to display a popup while running in the background, and try again.

ANTI_FRAUD_INIT_FAIL

19820

Failed to initialize imperceptible fake user detection.

If the error persists, submit a ticket online to seek for help from Huawei technical support.

ANTI_FRAUD_INIT_PARAM_INVALID

19821

The app ID passed to the initAntiFraud API is incorrect.

Verify the passed parameter.

RISK_TOKEN_GET_FAIL

19830

Failed to obtain the risk token.

Initialize the API again.

RISK_TOKEN_INNER_ERROR

19831

An internal error occurred on the API for obtaining a risk token.

If the error persists, submit a ticket online to seek for help from Huawei technical support.

If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.

HMS Core SDK Framework Result Codes

For details about other error codes, please refer to HMS Core SDK Framework Result Codes.