Joke Collection Website - Mood Talk - Brief introduction of HarmonyOS system application

Brief introduction of HarmonyOS system application

Android has a manifest file in which all four components and permissions need to be registered. The manifest file is an xml file. Similarly, the HarmonyOS system application also has a configuration file, and there is a "config.json" configuration file under the root directory of each HAP of the application, which mainly includes the following three aspects:

The application configuration file "config.json" consists of app, deviceConfig and module.

App signal:

DeviceConfig contains application configuration information of a specific device, which can include default, car, TV, wearable, liteWearable, smartVision and other attributes. The configuration in the default tab applies to all devices. If other equipment types have special requirements, they need to be configured under the label of that equipment type.

Description of internal structure of device configuration object

Internal structure description of default/car/TV/wearable objects.

Internal structure description of network objects

Internal structure description of security configuration object

Device configuration example:

The module object contains the configuration information of the HAP package, and its internal structure is described as follows.

Module example:

Description of the internal structure of the distribution object

Distribution example:

Description of the internal structure of the capability object

Example of ability:

Description of the internal structure of the form object

Form signal

Description of the internal structure of the skill object

Skills example:

Description of internal structure of shortcut object

Shortcut key signal

Take JSON file as a simple example of config.json, and the application of this example is declared as three capabilities.