HAP and HSP Build Products
HAP and HSP build products in release mode typically include the following files:

- resources: directory of resource files in the build product, such as images, media resources, and configuration files.
- modules.abc: bytecode file compiled from the source code in the build product.
- module.json: runtime configuration file generated by processing with module.json5 in the src directory of the module in the build product. For details, see module.json5 Configuration File.
- resources.index: resource index file in the build product, including all resource IDs, names, types, and values in the module.
- pack.info: package content description file in the build product, which provides related information during installation and upgrades.
- pkgContextInfo.json: context information table file in the build product, which is used to search for dependency library information during runtime.
- The resources.index file contains plaintext information. To prevent information leakage, do not configure sensitive information in plaintext within resource files, such as string.json.
- In the src/main/ets directory of a module, only .ets, .ts, and .js files are processed during compilation. Other files are packaged as resource files in the build product, without obfuscation or encryption. Do not store sensitive information in this directory.
- In HAP or HSP files built with debug mode, the ets directory contains sourceMaps.map files with source code mapping information. For details about the format and parsing process of sourceMaps.map, see ArkTS Stack Trace Analysis Principles.
- Lite wearables use standard JavaScript runtime. Therefore, the build product in release mode contains JavaScript source code. Take appropriate measures to protect your code assets.
App Pack Build Products
The following figure shows an example of the App Pack build products. The package name depends on the module name in your project, which may be different from that shown below.

- entry-default.hap: an entry HAP containing bytecode, resources, third-party libraries, and configuration files. It is the basic unit for app installation and running. application-default.hap is a feature HAP.
- library-default.hsp: an HSP containing bytecode, resources, third-party libraries, and configuration files, which allows for dynamic sharing of code and resources.
- pack.info: a package description file that provides necessary information for releasing the app to AppGallery.
- pac.json: a privacy manifest file in app build products, which is used to provide information required for releasing an app on AppGallery. For the configurable fields in this file, see pac.json5 Privacy Manifest File.