mirror of
https://github.com/openharmony/startup_syspara_lite.git
synced 2026-06-29 19:38:09 -04:00
master
syspara_lite
Introduction
The syspara_lite module provides APIs for obtaining device information, such as the product name, brand name, and manufacturer name, based on the OpenHarmony Product Compatibility Specifications (PCS). It also provides APIs for setting and obtaining system attributes.
Directory Structure
base/startup/syspara_lite/ # syspara_lite module
├── frameworks # Source files for the syspara_lite module
├── hals # Header files for the hardware abstraction layer of the syspara_lite module
└── interfaces # External APIs for the syspara_lite module
Constraints
- The syspara_lite module is developed using the C language.
- It supports mini-system devices (reference memory ≥ 128 KB), such as Hi3861 V100, and small-system devices (reference memory ≥ 1 MB), such as Hi3516D V300 and Hi3518E V300.
- The fields of system attributes are defined by original equipment manufacturers (OEMs). Currently, only default values are provided. The specific values need to be adjusted as required.
Usage
To obtain the system attributes, use the following code:
char* value1 = GetDeviceType();
printf("Device type =%s\n", value1);
free(value1);
char* value2 = GetManufacture();
printf("Manufacture =%s\n", value2);
free(value2);
char* value3 = GetBrand();
printf("GetBrand =%s\n", value3);
free(value3);
Repositories Involved
Description
Languages
C++
59.7%
C
40.3%