目录

Mobile SDK

The SDK needs to be loaded to your app when you package the app. The SDK starts to run in the app process when a user launches the app and is stopped immediately after the user closes the app.

SDK Permissions

The SDK requires the following permissions:

SDK Data Collection

HUAWEI Scan Kit does not collect personal data. It collects business intelligence (BI) data for operations purposes only. On a non-Huawei phone, if HUAWEI Scan Kit is used, data in the preceding table is also collected. The following table describes the types of BI data that may be collected.

Name

Description

package

Package name of the app that calls HUAWEI  Scan Kit.

appid

App ID.

version

Version number of the HMS Core Scan SDK.

service

The value is fixed to com.huawei.hms.scankit.

apiName

API name.

result

Result code indicating whether the  scanning is successful.

costTime

Average API delay per second.

callTime

Start time of API call.

transId

Transaction ID that is randomly  generated.

operator

Carrier ID.

networkType

Network type.

apkVersion

Version number of ScanKit.apk.

appName

App name.

countryCode

Country code.

deviceType

Device type.

emuiVersion

EMUI version.

androidVersion

Android version number.

deviceCategory

Device category.

allCnt

Total number of calls per second.

failCnt

Number of program errors per second.

codeCnt

Number of barcodes scanned per second.

scanType

Barcode format.

sceneType

Scenario type corresponding to the  barcode content.

min

Minimum barcode parsing time per second.

max

Maximum barcode parsing time per second.

imgSizeHistogram

Image size histogram per second.

algapi

Name of an internal algorithm API.

algopt

Indicates whether the full, lite, or noso  algorithm package is used.

algPhotoMode

Indicates whether the barcode scanning  algorithm is in image mode.

contentLength

Length of the character string used to generate a barcode.

reqWidth

Width of the barcode to be generated, in pixels.

reqHeight

Height of the barcode to be generated, in pixels.

outputWidth

Width of the barcode that is generated, in pixels.

outputHeight

Height of the barcode that is generated, in pixels.

buildBitmapOption

Color, margin, and background color of the barcode to be generated.

hmscoreVersion

HMS Core version.

SDK Data Security Protection

The SDK does not collect personal data but reports the API call result to the BI server. The SDK uses HTTPS to encrypt data during transmission. BI data is reported to sites in different areas based on users' home locations. The BI server stores the data and protects data security.