In compliance with the Personal Information Protection Law, Data Security Law, Network Security Law, and other regulations, application developers and operators (developers) must respect and protect the personal information of end users. Do not illegally collect or use personal information. This guide explains how to use the Mobile Distribution H5 SDK in a compliant manner to protect the rights and interests of end users.
1. System permissions requested by the Mobile Distribution H5 SDK
Permission | Required | Purpose |
INTERNET | Yes | The basic permission that allows the SDK to connect to the internet. This is used to provide the Mobile Distribution H5 publishing service. |
ACCESS_NETWORK_STATE ACCESS_WIFI_STATE | No | Gets the local IP address. Provides a JS API to get the current network type. |
BLUETOOTH BLUETOOTH_ADMIN | No | Provides a JS API for Bluetooth features. |
CALL_PHONE | No | Provides a JS API to make phone calls. |
READ_EXTERNAL_STORAGE WRITE_EXTERNAL_STORAGE | No | Reads or stores H5 resource packages. |
WRITE_SETTINGS | No | Provides a JS API to set the screen brightness. |
READ_PHONE_STATE | Yes | Identifies the device. |
RECORD_AUDIO | No | Provides a JS API for audio recording. This uses a dynamic permission request. |
ACCESS_COARSE_LOCATION ACCESS_FINE_LOCATION | No | Provides a JS API for location services. This uses a dynamic permission request. |
CAMERA | No | Provides a JS API to use the camera. This uses a dynamic permission request. |
READ_CONTACTS GET_ACCOUNTS WRITE_ACCOUNTS | No | Provides a JS API to use the address book. This uses a dynamic permission request. |
READ_CLIPBOARD_IN_BACKGROUND WRITE_CLIPBOARD | No | Provides a JS API to use the clipboard. This uses a dynamic permission request. |
GET_TASKS | Yes | Determines if the current process is the main process. |
2. Features and personal information
Feature | Personal information collected | Purpose of collection | Feature Configuration Scenarios and Examples |
Get H5 application updates (Basic feature) | Device information (including operating system version and device model) | Used for release policies. | Basic feature. This information is required. |
3. Mobile Distribution H5 configuration for optional SDK personal information fields
Optional personal information field | Purpose of collection | Feature configuration: Scenarios and examples |
Not applicable | Not applicable | Not applicable |
4. Compliant initialization
/**
* Initializes the Mobile Distribution H5 SDK.
* @param application The application context.
*/
void init(Application application);Ensure that the end user agrees to the Privacy Policy before you call the initialization method for the Mobile Distribution H5 SDK.
Code example
class App : Application() {
override fun onCreate() {
super.onCreate()
EmasHybrid.getInstance()
.setOpenLog(true)
.setAppKey("233xxxx91")
.setAppSecret("32675xxxxxxxxxxxxxxxxxxx61a16")
.setTtid("1001@DemoApp_Android_1.0")
.setAppVersion("1.0")
.setOpenMonitor(true)
.setEnableDynamic(true)
.init(this)
}
}