The user application

According to the official website, there are two types of user applications.

  • An application installed in the traditional manner

  • Installation-free applications that provide specific functionality (that is, atomic services)

Unless otherwise noted, applications in the documentation refer to the first two forms.

User application package structure

The app, with the suffix.app, consists of one or more HarmonyOS capabilities Package (HAP).

HAP files can be divided into entry modules and feature modules.

  • Entry: The main module of the application. (Only one)
  • Functionality: Dynamic functional modules of an application. (There can be more than one)

Image from the official website.

Ability to

A capability is an abstraction of what an application can provide.

It feels like a component concept.

Ability is divided into FA (Feature Ability) and PA (Particle Ability). The difference between these two features is that FA has a UI interface, while PA does not.

Other documents

  • The library files
  • Resource file
  • The configuration file
  • pack.info
  • HAR (HarmonyOS Ability Resource)

These files are the basic configuration files in hongmeng application development. These files are basically useless right now, so skip them for now.