1# Multi-HAP Development, Debugging, Release, and Deployment Process 2 3Below is the process of developing, debugging, releasing, and deploying multiple HAP files. 4 5**Figure 1** Process of developing, debugging, releasing, and deploying multiple HAP files 6![hap-release](figures/hap-release.png) 7 8## Development 9You can use [DevEco Studio](https://developer.harmonyos.com/en/develop/deveco-studio) to create multiple modules as needed and develop services in respective modules. 10 11## Debugging 12After building code into one or more HAP files and installing or updating these HAP files, you can debug them by using the methods: 13* Using DevEco Studio for debugging 14 15 Follow the instructions in [Debugging Configuration](https://developer.harmonyos.com/en/docs/documentation/doc-guides/ohos-debugging-and-running-0000001263040487#section10491183521520). 16 17* Using [hdc](../../device-dev/subsystems/subsys-toolchain-hdc-guide.md) (which can be obtained in the **toolchains** directory of the OpenHarmony SDK) for debugging 18 19 Before debugging HAP files, install or update them using either of the methods: 20 21 1. Use hdc to install and update the HAP files. 22 23 When specifying the HAP files, use the paths of the files on the operating system, for example, Windows. 24 25 ``` 26 // Installation and update: Multiple file paths can be specified. 27 hdc install C:\entry.hap C:\feature.hap 28 // The execution result is as follows: 29 install bundle successfully. 30 // Uninstall 31 hdc uninstall com.example.myapplication 32 // The execution result is as follows: 33 uninstall bundle successfully. 34 ``` 35 36 2. Run the hdc shell command, and then use the Bundle Manager (bm) tool to install and update the HAP files. 37 38 When specifying the HAP files, use the paths of the files on the real device. The sample code is as follows: 39 40 ``` 41 // Run the hdc shell command before using the bm tool. 42 hdc shell 43 // Installation and update: Multiple file paths can be specified. 44 bm install -p /data/app/entry.hap /data/app/feature.hap 45 // The execution result is as follows: 46 install bundle successfully. 47 // Uninstall 48 bm uninstall -n com.example.myapplication 49 // The execution result is as follows: 50 uninstall bundle successfully. 51 ``` 52 After the HAP files are installed or updated, you can debug them by following the instructions in [Ability Assistant](https://docs.openharmony.cn/pages/v3.2Beta/en/application-dev/tools/aa-tool.md/). 53 54## Release 55When your application package meets the release requirements, you can package and build it into an App Pack and release it to the application market on the cloud. The application market verifies the signature of the App Pack. If the signature verification is successful, the application market obtains the HAP files from the App Pack, signs them, and distributes the signed HAP files. 56 57## Deployment 58The application market on the cloud distributes the applications to application market clients. These applications can contain one or more HAP files. After the user selects an application to download, the application market downloads all the HAP files contained in this application. 59 60## Installation on a Device 61After the download is complete, the application market client calls the installation API of the bundle manager service in the system to install the downloaded HAP files. The bundle manager service deploys HAP files by application in the specified directory to complete the application installation. 62