1# Bundle Manager 2 3Bundle Manager (bm) is a tool for installing, uninstalling, updating, and querying bundles. It provides basic capabilities for debugging application installation packages. 4 5## Environment Setup 6 7Before using this tool, you must obtain <!--Del-->[<!--DelEnd-->hdc<!--Del-->](../../device-dev/subsystems/subsys-toolchain-hdc-guide.md)<!--DelEnd--> and run the hdc shell command. 8 9 10## bm Commands 11 12| Name| Description| 13| -------- | -------- | 14| help | Displays the commands supported by the bm tool.| 15| install | Installs a bundle.| 16| uninstall | Uninstalls a bundle.| 17| dump | Displays bundle information.| 18| clean | Clears the cache and data of a bundle. This command is available in the root version. It is also available in the user version with developer mode enabled. It is unavailable in other cases.| 19| <!--DelRow-->enable | Enables a bundle. A bundle can be used after being enabled. This command is available in the root version but not in the user version.| 20| <!--DelRow-->disable | Disables a bundle. A bundle cannot be used after being disabled. This command is available in the root version but not in the user version.| 21| get | Obtains the UDID of a device.| 22| quickfix | Performs patch-related operations, such as installing or querying a patch.| 23| compile | Executes the AOT compilation on a bundle.| 24| copy-ap | Copies the .ap file of a bundle to the **/data/local/pgo** directory for the shell user to read the file.| 25| dump-dependencies | Displays the information about the modules on which the bundle depends.| 26| dump-shared | Displays the HSP information of a bundle.| 27| dump-overlay | Displays **overlayModuleInfo** of an overlay bundle.| 28| dump-target-overlay | Displays **overlayModuleInfo** of all overlay bundles associated with a target bundle.| 29 30 31## help 32 33```bash 34# Display the help information. 35bm help 36``` 37 38 39## install 40 41```bash 42bm install [-h] [-p filePath] [-r] [-w waitingTime] [-s hspDirPath] 43``` 44 45 **Parameters** 46 47 48| Parameter| Description| 49| -------- | -------- | 50| -h | Displays help information.| 51| -p | Installs an HAP in a specified path or multiple HAPs in a specified directory. This parameter is mandatory.| 52| -r | Installs an HAP in overwrite mode. This parameter is optional. By default, the HAP is installed in overwrite mode.| 53| -s | Installs an HSP. Each directory can have only one HSP with the same bundle name. This parameter is mandatory only for the HSP installation.| 54| -w | Waits for a specified time before installing a HAP. The minimum waiting time is 5s, and the maximum waiting time is 600s. The default waiting time is 5s. This parameter is optional.| 55 56 57Example 58```bash 59# Install an HAP. 60bm install -p /data/app/ohos.app.hap 61# Install an HAP in overwrite mode. 62bm install -p /data/app/ohos.app.hap -r 63# Install an HSP. 64bm install -s xxx.hsp 65# Install a HAP and its dependent HSP. 66bm install -p aaa.hap -s xxx.hsp yyy.hsp 67# Install an HAP. The waiting time is 10s. 68bm install -p /data/app/ohos.app.hap -w 10 69``` 70 71## uninstall 72 73```bash 74bm uninstall [-h] [-n bundleName] [-m moduleName] [-k] [-s] [-v versionCode] 75``` 76 77 **Parameters** 78 79| Parameter| Description| 80| -------- | -------- | 81| -h | Displays help information.| 82| -n | Uninstalls a bundle. This parameter is mandatory.| 83| -m | Uninstalls a module. This parameter is optional. By default, all modules are uninstalled.| 84| -k | Uninstalls a bundle with or without retaining the bundle data. This parameter is optional. By default, the bundle data is deleted along the uninstall.| 85| -s | Uninstalls an HSP. This parameter is mandatory only for the HSP installation.| 86| -v | Uninstalls an HSP of a given version number. This parameter is optional. By default, all shared bundles with the specified bundle name are uninstalled.| 87 88 89Example 90 91```bash 92# Uninstall a bundle. 93bm uninstall -n com.ohos.app 94# Uninstall a module of a bundle. 95bm uninstall -n com.ohos.app -m com.ohos.app.EntryAbility 96# Uninstall a shared bundle. 97bm uninstall -n com.ohos.example -s 98# Uninstall a shared bundle of the specified version. 99bm uninstall -n com.ohos.example -s -v 100001 100# Uninstall a bundle and retain user data. 101bm uninstall -n com.ohos.app -k 102``` 103 104 105## dump 106 107```bash 108bm dump [-h] [-a] [-g] [-n bundleName] [-s shortcutInfo] [-d deviceId] 109``` 110 111 **Parameters** 112 113| Parameter| Description| 114| -------- | -------- | 115| -h | Displays help information.| 116| -a | Displays all bundles installed in the system. This parameter is optional.| 117| -g | Displays the names of bundles whose signatures are of the debug type. This parameter is optional.| 118| -n | Displays the details of a bundle. This parameter is optional.| 119| -s | Displays the shortcut information of a bundle. This parameter is optional.| 120| -d | Displays the bundle information on a given device, which is the current device by default. This parameter is optional. | 121 122 123Example 124 125```bash 126# Display the names of all bundles installed in the system. 127bm dump -a 128# Display the names of bundles whose signatures are of the debug type in the system. 129bm dump -g 130# Display the details of a bundle. 131bm dump -n com.ohos.app 132# Display the shortcut information of a bundle. 133bm dump -s -n com.ohos.app 134# Display cross-device bundle information. 135bm dump -n com.ohos.app -d xxxxx 136``` 137 138## clean 139 140```bash 141bm clean [-h] [-c] [-n bundleName] [-d] [-i appIndex] 142``` 143**Parameters** 144 145| Parameter| Description| 146| -------- | --------- | 147| -h | Displays help information.| 148| -c -n | **-n** is mandatory, and **-c** is optional. Clears the cache data of a specified bundle.| 149| -d -n | **-n** is mandatory, and **-d** is optional. Clears the data directory of a specified bundle.| 150| -i | Clears the data directory of an application clone. This parameter is optional. The default value is 0.| 151 152 153Example 154 155```bash 156# Clear the cache data of a bundle. 157bm clean -c -n com.ohos.app 158# Clear the user data of a bundle. 159bm clean -d -n com.ohos.app 160# Execution result 161clean bundle data files successfully. 162``` 163 164<!--Del--> 165## enable 166 167```bash 168bm enable [-h] [-n bundleName] [-a abilityName] 169``` 170 171 172 **Parameters** 173 174| Parameter| Description| 175| -------- | -------- | 176| -h | Displays help information.| 177| -n | Enables a specified bundle. This parameter is mandatory.| 178| -a | Enables an ability with a specified bundle name. This parameter is optional.| 179 180 181Example 182 183```bash 184# Enable a bundle. 185bm enable -n com.ohos.app -a com.ohos.app.EntryAbility 186# Execution result 187enable bundle successfully. 188``` 189 190 191## disable 192 193```bash 194bm disable [-h] [-n bundleName] [-a abilityName] 195``` 196 197 198 **Parameters** 199 200| Parameter| Description| 201| -------- | -------- | 202| -h | Displays help information.| 203| -n | Disables a specified bundle. This parameter is mandatory.| 204| -a | Disables an ability with a specified bundle name. This parameter is optional.| 205 206 207Example 208 209```bash 210# Disable a bundle. 211bm disable -n com.ohos.app -a com.ohos.app.EntryAbility 212# Execution result 213disable bundle successfully. 214``` 215<!--DelEnd--> 216 217 218## get 219 220```bash 221bm get [-h] [-u] 222``` 223 224 **Parameters** 225 226| Parameter| Description| 227| -------- | -------- | 228| -h |Displays help information.| 229| -u | Obtains the UDID of a device. This parameter is mandatory.| 230 231 232Example 233 234```bash 235# Obtain the UDID of a device. 236bm get -u 237# Execution result 238udid of current device is: 23923CADE0C 240``` 241 242 243## quickfix 244 245```bash 246bm quickfix [-h] [-a -f filePath [-t targetPath] [-d] [-o]] [-q -b bundleName] [-r -b bundleName] 247``` 248 249Note: For details about how to create an .hqf file, see [HQF Packing Command](packing-tool.md#hqf-packing-command). 250 251 **Parameters** 252| Parameter | Description| 253| -------- | -------- | 254| -h | Displays help information.| 255| -a -f | **-a** is optional, and **-f** is mandatory when **-a** is specified. Executes the quick fix patch installation command. **file-path** corresponds to an .hqf file. You can pass in one or more .hqf files or the directory where the .hqf file is located.| 256| -q -b | **-q** is optional, and **-b** is mandatory when **-q** is specified. Displays the patch information based on the bundle name.| 257| -r -b | **-r** is optional, and **-b** is mandatory when **-r** is specified. Uninstalls a disabled patch based on the bundle name.| 258| -t | Fixes a bundle to a specified path. This parameter is optional.| 259| -d | Selects the debug mode for quick fix. This parameter is optional.| 260| -o | Selects the overwrite mode for quick fix. In this mode, the .so file is decompressed and overwritten in the .so directory of the bundle. This parameter is optional.| 261 262 263 264Example 265 266```bash 267# Display patch package information by the bundle name. 268bm quickfix -q -b com.ohos.app 269# Execution result 270# Information as follows: 271# ApplicationQuickFixInfo: 272# bundle name: com.ohos.app 273# bundle version code: xxx 274# bundle version name: xxx 275# patch version code: x 276# patch version name: 277# cpu abi: 278# native library path: 279# type: 280 281# Install a quick fix patch. 282bm quickfix -a -f /data/app/ 283# Execution result 284apply quickfix succeed. 285# Uninstall a quick fix patch. 286bm quickfix -r -b com.ohos.app 287# Execution result 288delete quick fix successfully 289``` 290 291## dump-shared 292 293```bash 294bm dump-shared [-h] [-a] [-n bundleName] [-m moduleName] 295``` 296 297 **Parameters** 298 299| Parameter| Description| 300| -------- | -------- | 301| -h | Displays help information.| 302| -a | Displays all HSPs in the system. This parameter is optional.| 303| -n | Displays detailed information about the shared library with a specified bundle name. This parameter is optional.| 304| -m | Displays detailed information about the shared library with a specified bundle name and module name. This parameter is optional.| 305 306 307Example 308 309```bash 310# Display the bundle names of all shared libraries installed in the system. 311bm dump-shared -a 312# Display the details about the specified shared library. 313bm dump-shared -n com.ohos.lib 314# Display information about the shared library on which a specified module of a bundle depends. 315bm dump-dependencies -n com.ohos.app -m entry 316``` 317 318## dump-dependencies 319 320```bash 321bm dump-dependencies [-h] [-n bundleName] [-m moduleName] 322``` 323 324**Parameters** 325| Parameter| Description| 326| -------- | -------- | 327| -h | Displays help information.| 328| -n | Displays information about the shared library on which a specified bundle depends. This parameter is mandatory.| 329| -m | Displays information about the shared library on which a specified module of a bundle depends. This parameter is optional.| 330 331Example 332```Bash 333# Display information about the shared library on which a specified module of a bundle depends. 334bm dump-dependencies -n com.ohos.app -m entry 335``` 336 337 338## compile 339 340```bash 341bm compile [-h] [-m mode] [-r bundleName] 342``` 343**Parameters** 344 345| Parameter| Description| 346| -------- | -------- | 347| -h | Displays help information.| 348| -a | Compiles all bundles. This parameter is optional.| 349| -m | Compiles a bundle based on the bundle name. The value can be **partial** or **full**. This parameter is optional.| 350| -r | Checks whether a bundle is removed. This parameter is optional.| 351 352Example 353 354```bash 355# Compile a bundle based on the bundle name. 356bm compile -m partial com.example.myapplication 357``` 358 359## copy-ap 360 361Copies an .ap file to the **/data/local/pgo** directory of a specified bundle. 362 363```bash 364bm copy-ap [-h] [-a] [-n bundleName] 365``` 366 367**Parameters** 368 369| Parameter| Description| 370| -------- | -------- | 371| -h | Displays help information.| 372| -a | Copies the .ap files related to all bundles. By default, .ap files related to all bundles are copied. This parameter is optional.| 373| -n | Copies the .ap file related to a specified bundle, which is the current bundle by default. This parameter is optional.| 374 375Example 376 377```bash 378# Copy the .ap file related to a specified bundle. 379bm copy-ap -n com.example.myapplication 380``` 381 382## dump-overlay 383 384```bash 385bm dump-overlay [-h] [-b bundleName] [-m moduleName] 386``` 387 388**Parameters** 389| Parameter| Description| 390| -------- | -------- | 391| -h | Displays help information.| 392| -b | Displays all **OverlayModuleInfo** about a specified overlay bundle. This parameter is mandatory.| 393| -m | By default, the name of the main module of the current overlay bundle is used. This parameter is optional. Displays **OverlayModuleInfo** about a specified overlay bundle based on the bundle name and module name.| 394 395Example 396 397```bash 398# Display OverlayModuleInfo of an overlay bundle named com.ohos.app. 399bm dump-overlay -b com.ohos.app 400 401# Display OverlayModuleInfo of the overlay module named entry in an overlay bundle named com.ohos.app. 402bm dump-overlay -b com.ohos.app -m entry 403 404# Display OverlayModuleInfo of the overlay module named feature in an overlay bundle named com.ohos.app. 405bm dump-overlay -b com.ohos.app -m feature 406``` 407 408## dump-target-overlay 409 410Displays **overlayModuleInfo** of all overlay bundles associated with a target bundle. 411 412```bash 413bm dump-target-overlay [-h] [-b bundleName] [-m moduleName] 414``` 415 416**Parameters** 417| Parameter| Description| 418| -------- | -------- | 419| -h | Displays help information.| 420| -b | Displays all **OverlayBundleInfo** about a specified bundle. This parameter is mandatory.| 421| -m | Displays **OverlayModuleInfo** based on a specified bundle name and module name. By default, **OverlayModuleInfo** of the main module of the current bundle is displayed. This parameter is optional.| 422 423Example 424 425```bash 426# Display OverlayBundleInfo of an overlay bundle named com.ohos.app. 427bm dump-target-overlay-b com.ohos.app 428 429# Display OverlayModuleInfo of the overlay module named entry in an overlay bundle named com.ohos.app. 430bm dump-target-overlay -b com.ohos.app -m entry 431``` 432 433## Error Codes 434 435### 9568320 The Signature File Does Not Exist 436**Error Message** 437 438Failed to install bundle, no signature file. 439 440 441 442**Symptom** 443 444A user attempts to install an unsigned HAP file. 445 446**Possible Causes** 447 448The HAP file is not signed. 449 450**Solution** 451 4521. Use [automatic signing](https://developer.huawei.com/consumer/en/doc/harmonyos-guides-V13/ide-signing-V13#section18815157237) to sign the HAP file. after the device is connected. 4532. Manually sign the HAP file. For details, see [Signing Your App/Atomic Service Manually](https://developer.huawei.com/consumer/en/doc/harmonyos-guides-V13/ide-signing-V13#section297715173233). 454<br></br> 455 456### 9568347 The Local .so File Fails to Be Parsed 457**Error Message** 458 459error: install parse native so failed. 460 461**Symptom** 462 463When you start debugging or running a C++ app/service, the error message "error: install parse native so failed" is displayed during HAP installation. 464 465**Possible Causes** 466 467The Application Binary Interface (ABI) supported by the device does not match that configured in the C++ project. 468 469> **NOTE** 470> 471> - If the project has a dependent HSP or HAR module, make sure that one of the ABI types configured for all modules that contain C++ code is supported by the device. 472> - If the project depends on a third-party library that includes .so files, make sure the appropriate ABI directory for your device, such as **arm64-v8a** or **x86_64**, is present in the **oh_modules/*third-party-library*/libs** directory. 473<!--RP1--><!--RP1End--> 474 475**Solution** 476 4771. Connect the device to DevEco Studio. 4782. Open the CLI and go to the **toolchains** directory in the SDK installation directory. 479 ``` 480 To check the OpenHarmony SDK installation directory, choose **File** > **Settings** > **SDK**. 481 ``` 4823. Run the following command to obtain the list of ABI types supported by the device, which include one or more of the following: default, armeabi-v7a, armeabi, arm64-v8a, x86, and x86_64. 483 ``` 484 hdc shell 485 param get const.product.cpu.abilist 486 ``` 4874. Based on the obtained list, modify the **abiFilters** settings in the [module-level build-profile.json5](https://developer.huawei.com/consumer/en/doc/harmonyos-guides-V13/ide-hvigor-compilation-options-customizing-sample-V13#section4322212200) file. The rules are as follows: 488 * If the list includes only **default**, run the following command to check whether the **lib64** folder exists: 489 ``` 490 cd /system/ 491 ls 492 ``` 493  494 * If the **lib64** folder exists, add the arm64-v8a type to **abiFilters**. 495 * If the **lib64** folder does not exist, add armeabi, armeabi-v7a, or both types to **abiFilters**. 496 * If the list includes one or more of the following, add at least one of them to **abiFilters**: armeabi-v7a, armeabi, arm64-v8a, x86, and x86_64. 497<br></br> 498 499 500### 9568344 The Configuration File Fails to Be Parsed 501**Error Message** 502 503error: install parse profile prop check error. 504 505 506 507**Symptom** 508 509When you start debugging or run an application, the error message "error: install parse profile prop check error" is displayed during the installation of the HAP. 510 511**Possible Causes** 512 5131. The **bundleName** in the [app.json5 configuration file](../quick-start/app-configuration-file.md#tags-in-the-configuration-file) and **name** in the [module.json5 configuration file](../quick-start/module-configuration-file.md#tags-in-the-configuration-file) are invalid. 514 515<!--Del--> 5162. The **type** field in [extensionAbilities](../quick-start/module-configuration-file.md#extensionabilities) is set to **service** or **dataShare**. 517<!--DelEnd--> 518 519 520**Solution** 5211. Modify the **bundleName** field in the app.json5 configuration file and the **name** field in the module.json5 file based on the naming rule. 522<!--Del--> 5232. If the **type** field in **extensionAbilities** is set to **service** or **dataShare**, set [allowAppUsePrivilegeExtension](../../device-dev/subsystems/subsys-app-privilege-config-guide.md) for the application as follows: 524 525 1. Obtain the new signature fingerprint. 526 527 a. In the project-level **build-profile.json5** file (in the root directory of the project), obtain the value of **profile** in the **signingConfigs** field, which is the storage path of the signature file. 528 529 b. Open the signature file (with the file name extension .p7b), search for **development-certificate** in the file, copy **-----BEGIN CERTIFICATE-----**, **-----END CERTIFICATE-----**, and the information between them to a new text file, delete the newline characters, and save the file as a new .cer file. 530 531 The format of the new .cer file is shown below. (The file content is an example.) 532 533  534 535 c. Use the keytool (available in the **jbr/bin** folder of the DevEco Studio installation directory) to obtain the SHA-256 value of the certificate fingerprint from the .cer file: 536 ``` 537 keytool -printcert -file xxx.cer 538 ``` 539 d. Remove colons (:\) from the SHA-256 content in the certificate fingerprint. What you get is the signature fingerprint. 540 541 The following figure shows an example. 542  543 544 After colons are removed, the obtained signature fingerprint is **5753DDBC1A8EF88A62058A9FC4B6AFAFC1C5D8D1A1B86FB3532739B625F8F3DB**. 545 546 2. Obtain the **install_list_capability.json** file of the device. 547 548 a. Connect to the device and enter the shell. 549 ``` 550 hdc shell 551 ``` 552 b. Run the following command to view the **install_list_capability.json** file of the device: 553 ``` 554 // Locate the file on the device. 555 find /system -name install_list_capability.json 556 ``` 557 c. Run the following command to obtain the **install_list_capability.json** file: 558 ``` 559 hdc target mount 560 hdc file recv /system/etc/app/install_list_capability.json 561 ``` 562 563 3. Add the signature fingerprint obtained to **app_signature** in the **install_list_capability.json** file. Note that the signature fingerprint must be configured under the corresponding bundle name. 564  565 4. Push the modified **install_list_capability.json** file to the device and restart the device. 566 567 ``` 568 hdc target mount 569 hdc file send install_list_capability.json /system/etc/app/install_list_capability.json 570 hdc shell chmod 644 /system/etc/app/install_list_capability.json 571 hdc shell reboot 572 ``` 573 5. Reinstall the application.<!--DelEnd--> 574 575 576### 9568305 The Dependent Module Does Not Exist 577**Error Message** 578 579error: dependent module does not exist. 580 581 582 583**Symptom** 584 585When you start debugging or run an application, the error message "error: dependent module does not exist" is displayed during the installation of the HAP. 586 587**Possible Causes** 588 589The SharedLibrary module on which the application depends is not installed. 590 591**Solution** 592 5931. Install the dependent SharedLibrary module. On the **Run/Debug Configurations** page of DevEco Studio, select **Keep Application Data** on the **General** tab page, and click **OK** to save the configuration. Then run or debug the application again. 594 5952. On the **Run/Debug Configurations** page of DevEco Studio, click the **Deploy Multi Hap** tab, select **Deploy Multi Hap Packages**, select the dependent module SharedLibrary, and click **OK** to save the configuration. Then run or debug the application again. 596 5973. Choose **Run** > **Edit Configurations**. On the **General** tab page, select **Auto Dependencies**. Click **OK** to save the configuration, and then run or debug the project. 598 599 600### 9568259 Some Fields Are Missing in the Configuration File 601**Error Message** 602 603error: install parse profile missing prop. 604 605 606 607**Symptom** 608 609When you start debugging or run an application, the error message "error: install parse profile missing prop" is displayed during the installation of the HAP. 610 611**Possible Causes** 612 613Mandatory fields are missing in the **app.json5** and **module.json5** files. 614 615**Solution** 616 617* 1. Check and add mandatory fields by referring to the [app.json5 file](../quick-start/app-configuration-file.md) and [module.json5 file](../quick-start/module-configuration-file.md). 618* 2. Determine the missing fields based on the HiLog. 619 620 Run the following command to enable disk flushing: 621 ``` 622 hilog -w start 623 ``` 624 625 Disk location: **/data/log/hilog** 626 627 Open the log file and find **profile prop %{public}s is mission**. For example, **profile prop icon is mission** indicates that the **icon** field is missing. 628 629 630### 9568258 The Release Types of the New Application and Existing Application Are Different 631**Error Message** 632 633error: install releaseType target not same. 634 635 636 637**Symptom** 638 639When you start debugging or run an application, the error message "error: install releaseType target not same" is displayed during the installation of the HAP. 640 641**Possible Causes** 642 643* Scenario 1: The value of **releaseType** in the SDK used by the existing HAP is different from that used by the new HAP. 644* Scenario 2: When the application has multiple HAPs, the **releaseType** values in the SDK used by each HAP are different. 645 646**Solution** 647 648* Scenario 1: Uninstall the existing HAP on the device and then install a new HAP. 649* Scenario 2: Use the same SDK to repackage the HAPs to ensure that the **releaseType** values of multiple HAPs are the same. 650 651 652### 9568322 The Signature Verification Fails Because the Application Source Is Untrusted 653**Error Message** 654 655error: signature verification failed due to not trusted app source. 656 657 658 659**Symptom** 660 661When you start debugging or run an application, the error message "error: signature verification failed due to not trusted app source" is displayed during the installation of the HAP. 662 663**Possible Causes** 664 665* Scenario 1: The signature does not contain the UDID of the debugging device. 666 667* Scenario 2: The [release certificate and release profile](https://developer.huawei.com/consumer/en/doc/app/agc-help-releaseharmony-0000001933963166) is used during signature. However, an application signed by a release certificate cannot be debugged or run. 668 669**Solution** 670 671* Scenario 1: 672 1. Use [automatic signing](https://developer.huawei.com/consumer/en/doc/harmonyos-guides-V13/ide-signing-V13#section18815157237) to sign the HAP file. after the device is connected. 673 2. If manual signature is used, add the UDID of the device to the **UnsgnedDebugProfileTemplate.json** file. For details, see <!--RP2-->[hapsigner Guide](https://gitee.com/openharmony/docs/blob/master/en/application-dev/security/hapsigntool-guidelines.md)<!--RP2End-->. 674 675 1. Obtain the UDID of the device. 676 677 ``` 678 // Command for obtaining the UDID 679 hdc shell bm get -u 680 ``` 681 682 2. Go to the DevEco Studio installation path and open the **UnsgnedDebugProfileTemplate.json** configuration file in the SDK directory. 683 684 ``` 685 DevEco Studio installation path\sdk\version number or default\openharmony\toolchains\lib\ 686 687 Example: xxxx\Huawei\DevEco Studio\sdk\HarmonyOS-NEXT-DB1\openharmony\toolchains\lib\ 688 Example: xxxx\Huawei\DevEco Studio\sdk\default\openharmony\toolchains\lib\ 689 ``` 690 691 3. Add the UDID of the device to the **device-ids** field in the **UnsgnedDebugProfileTemplate.json** file. 692 693 3. Check whether the signature contains the UDID of the debugging device. You can use a text editor to open the signed HAP and search for **device-ids**. 694* Scenario 2: Use the [debug certificate and debug profile](https://developer.huawei.com/consumer/en/doc/app/agc-help-debug-app-0000001914423098) to re-sign the application. 695 696### 9568286 The Type of the Signing Certificate Profile of the New Application Is Different from That of the Existing Application 697**Error Message** 698 699error: install provision type not same. 700 701**Symptom** 702 703When an application or service is debugged or running, the HAP fails to be installed because the type of the [signing certificate profile](https://developer.huawei.com/consumer/en/doc/app/agc-help-add-releaseprofile-0000001914714796) of the new application is different from that of the existing application. 704 705**Possible Causes** 706 707The type in the signing certificate profile of the new application is different from that of the existing application. 708 709**Solution** 710 7111. Ensure that the type of the signing certificate profile of the new application is the same as that of the existing application, and install the new HAP. 7122. Uninstall the existing application and install the new HAP. 713 714### 9568289 The Installation Fails Because the Permission Request Fails 715**Error Message** 716 717error: install failed due to grant request permissions failed. 718 719 720 721**Symptom** 722 723When you start debugging or run an application, the error message "error: install failed due to grant request permissions failed" is displayed during the installation of the HAP. 724 725**Possible Causes** 726 727The application uses the default Ability Privilege Level (APL), which is normal, and requires the system_basic or system_core permission. 728 729**Solution** 730 7311. Go to the DevEco Studio installation path and open the **UnsgnedDebugProfileTemplate.json** configuration file in the SDK directory. 732``` 733DevEco Studio installation path\sdk\version number or default\openharmony\toolchains\lib\ 734 735Example: xxxx\Huawei\DevEco Studio\sdk\HarmonyOS-NEXT-DB1\openharmony\toolchains\lib\ 736Example: xxxx\Huawei\DevEco Studio\sdk\default\openharmony\toolchains\lib\ 737``` 7382. In the **UnsgnedDebugProfileTemplate.json** file, change the APL level to **system_core** and re-sign the package. 739 740 741### 9568297 The Installation Fails Because the SDK Version of the Device Is Too Early 742**Error Message** 743 744error: install failed due to older sdk version in the device. 745 746 747 748**Symptom** 749 750When you start debugging or run an application, the error message "error: install failed due to older sdk version in the device" is displayed during the installation of the HAP. 751 752**Possible Causes** 753 754The SDK version used for build and packing does not match the device image version. 755 756**Solution** 757 758* Scenario 1: The device image version is earlier than the SDK version for build and packing. Update the device image version. Run the following command to query the device image version: 759 ``` 760 hdc shell param get const.ohos.apiversion 761 ``` 762 If the API version provided by the image is 10 and the SDK version used for application build is also 10, the possible cause is that the image version is too early to be compatible with the SDK verification rules of the new version. In this case, update the image version to the latest version. 763 764* Scenario 2: For applications that need to run on OpenHarmony devices, ensure that runtimeOS has been changed to OpenHarmony. 765 766### 9568332 The Installation Fails Due to Inconsistent Signatures 767**Error Message** 768 769error: install sign info inconsistent. 770 771 772 773**Symptom** 774 775When you start debugging or run an application, the error message "error: install sign info inconsistent" is displayed during the installation of the HAP. 776 777**Possible Causes** 778 7791. The signatures of the existing application and new application are different, or the signatures of HAPs and HSPs are different. **Keep Application Data** is selected in **Edit Configurations** (the application installation is overwritten) and the application is re-signed. 7802. If an application is uninstalled but its data is kept, and a new application with the same bundle name is later installed, it is necessary to check whether the identity details match. If the signature information is inconsistent, this error is reported. 781 782 783**Solution** 784 7851. Uninstall the application, or deselect **Keep Application Data**. Then install the new application. 7862. If the signature inconsistency is caused by HSPs provided by different teams, use [integrated HSP](../quick-start/integrated-hsp.md). If there are multiple HAPs, ensure that their signatures are the same. 7873. If an application is uninstalled but its data is kept, a new application with the same bundle name but different signature information fails to be installed. To install the new application, you must first reinstall the uninstalled application and uninstall it without retaining the data. 788 789### 9568329 The Signature Information Fails to Be Verified 790**Error Message** 791 792error: verify signature failed. 793 794 795 796**Symptom** 797 798The **bundleName** in the signature information is different from that of the application. 799 800**Possible Causes** 801 802* Scenario 1: An HSP module provided by a third party is imported, and the HSP is neither an [integrated HSP](../quick-start/integrated-hsp.md) nor an HSP with the same bundle name, causing the bundle name inconsistency. 803 804* Scenario 2: An incorrect signature file (with the file name extension .p7b) is used for signature, causing the bundle name inconsistency. 805 806 807**Solution** 808 809* Scenario 1: Use an HSP only for the application with the same bundle name; use an integrated HSP for applications with different bundle names. Ask the third party to provide an integrated HSP or an HSP with the same bundle name. 810 811* Scenario 2: Check the signing process and signing certificate. For details, see [Signing Your App/Atomic Service](https://developer.huawei.com/consumer/en/doc/harmonyos-guides-V13/ide-signing-V13). 812 813 814### 9568266 The Installation Permission Is Denied 815**Error Message** 816 817error: install permission denied. 818 819 820 821**Symptom** 822 823When you run the **hdc install** command to install the HAP file, the error message "code:9568266 error: install permission denied" is displayed. 824 825**Possible Causes** 826 827The **hdc install** command cannot be used to install the enterprise application with a release signature. 828 829**Solution** 830 8311. Run the **hdc install** command to install and debug the enterprise application with a debug signature. 832 833 834### 9568337 The Installation Parsing Fails 835**Error Message** 836 837error: install parse unexpected. 838 839**Symptom** 840 841When an application is pushed to a device, an error message is displayed, indicating that the HAP file fails to be opened. 842 843**Possible Causes** 844 845* Scenario 1: The storage space of the system partition is full. As a result, when you run the **hdc file send** command, files on the device are damaged due to insufficient storage space. 846 847* Scenario 2: The HAP file is damaged when it is pushed to the device. 848 849**Solution** 850 851* 1. Check the storage space allocated to the system partition. If the storage space is full, clear the storage space to install the HAP file. 852 ```bash 853 hdc shell df -h /system 854 ``` 855 856* 2. Check the MD5 values of the local HAP file and the HAP file pushed to the device. If they are different, the HAP is damaged during the push. In this case, push the file again. 857 858 859### 9568316 The Permission of APL in ProxyData Is Low 860**Error Message** 861 862error: apl of required permission in proxy data is too low. 863 864**Symptom** 865 866**requiredReadPermission** and **requiredWritePermission** of the **proxyData** tag in the **module.json** file fail to be verified. 867 868**Possible Causes** 869 870**requiredReadPermission** and **requiredWritePermission** can be configured only when the application has the permission level of **system_basic** or **system_core**. 871 872**Solution** 873 8741. Check whether the **proxyData** content defined by the application meets the requirements. For details, see [proxyData](../quick-start/module-configuration-file.md#proxydata). 875 876 877### 9568315 The URI in Proxy Data Is Incorrect 878**Error Message** 879 880error: uri in proxy data is wrong. 881 882**Symptom** 883 884**uri** of the **proxyData** tag in the **module.json** file fails to be verified. 885 886**Possible Causes** 887 888The format of **uri** does not meet the requirement. 889 890**Solution** 891 8921. Check whether the **proxyData** content defined by the application meets the requirements. For details, see [proxyData](../quick-start/module-configuration-file.md#proxydata). 893 894 895### 9568336 The Debugging Type of the Application Is Different From That of the Installed Application 896**Error Message** 897 898error: install debug type not same. 899 900**Symptom** 901 902The debugging type (the **debug** field in the **app.json** file) of the application is different from that of the installed application. 903 904**Possible Causes** 905 906You have installed the application using the **Debug** button of DevEco Studio, and then you install the HAP file of the application by running the **hdc install** command. 907 908**Solution** 909 9101. Uninstall the existing application and install the new application. 911 912 913### 9568296 The Bundle Type Is Incorrect 914**Error Message** 915 916error: install failed due to error bundle type. 917 918**Symptom** 919 920The installation fails because the **bundleType** tag is incorrect. 921 922**Possible Causes** 923 924The **bundleType** of the application to be installed is different from that of an existing application with the same **bundleName**. 925 926**Solution** 927 928* Method 1. Uninstall the existing application and install the application again. 929 930* Method 2: Set the **bundleType** of the application to the same as that of the existing application. 931 932 933### 9568292 The User With UserID 0 Can Install Only the Singleton Application 934**Error Message** 935 936error: install failed due to zero user can only install singleton app. 937 938**Symptom** 939 940The user with **UserID 0** is only allowed to install the application with the **singleton** permission, and the application with the **singleton** permission is only allowed to be installed by the user with **UserID 0**. 941 942**Possible Causes** 943 944**UserID** is not set to **0** for the application with the **singleton** permission. 945 946**Solution** 947 9481. If the application has the **singleton** permission, set **UserID** to **0** during installation. 949 ```bash 950 # Set the user ID to 0. 951 hdc install -p <HAP file name>.hap -u 0 952 ``` 953 954 955### 9568263 The Installation Version Cannot Be Downgraded 956**Error Message** 957 958error: install version downgrade. 959 960**Symptom** 961 962The installation fails because **versionCode** of the application to be installed is earlier than that of the existing application. 963 964**Possible Causes** 965 966The **versionCode** of the application to be installed is earlier than that of the existing application. 967 968**Solution** 969 9701. Uninstall the existing application and install the new application. 971 972 973### 9568304 The Application Does Not Support the Current Device Type 974**Error Message** 975 976error: device type is not supported. 977 978**Symptom** 979 980The installation fails because the application does not support the current device type. 981 982**Possible Causes** 983 984The application does not support the current device type. 985 986**Solution** 987 9881. To adapt to the current device, add the current device type to the value of **deviceTypes** of the application. The value of **deviceTypes** can be any of the following: phone, tablet, 2in1, tv, wearable, and car. 989 990 991### 9568317 The Multi-Process Configuration of the Application Does Not Match the System Configuration 992**Error Message** 993 994error: isolationMode does not match the system. 995 996**Symptom** 997 998The installation fails because **isolationMode** of the application is not supported by the system. 999 1000**Possible Causes** 1001 1002* 1. The device supports the isolation mode (the value of **persist.bms.supportIsolationMode** is **true**), whereas the value of **isolationMode** in the HAP is **nonisolationOnly**. 1003 1004* 2. The device does not support the isolation mode (the value of **persist.bms.supportIsolationMode** is **false**), whereas the value of **isolationMode** in the HAP is **isolationOnly**. 1005 1006**Solution** 1007 10081. Set the value of **isolationMode** in the HAP configuration file based on the isolation mode of the device. 1009 ```bash 1010 # Query the value of persist.bms.supportIsolationMode. If errNum is:106 is returned, persist.bms.supportIsolationMode is not configured. 1011 hdc shell 1012 param get persist.bms.supportIsolationMode 1013 # Set persist.bms.supportIsolationMode. 1014 hdc shell 1015 param set persist.bms.supportIsolationMode [true|false] 1016 ``` 1017 1018 1019### 9568315 The URI Attribute of the Proxy Data Is Incorrect 1020**Error Message** 1021 1022error: uri in proxy data is wrong. 1023 1024**Symptom** 1025 1026**uri** of the **proxyData** tag in the **module.json** file fails to be verified. 1027 1028**Possible Causes** 1029 1030The format of **uri** does not meet the requirement. 1031 1032**Solution** 1033 10341. Ensure that the URI meets the format requirements. 1035 ```bash 1036 # URI format specifications. 1037 The URI of a data proxy must be unique and must be in the format of datashareproxy://bundleName/xxx. 1038 ``` 1039 1040 1041### 9568310 The Compatibility Policies Are Different 1042**Error Message** 1043 1044error: compatible policy not same. 1045 1046**Symptom** 1047 1048The compatibility policy of the new bundle is different from that of the existing bundle. 1049 1050**Possible Causes** 1051 10521. The shared library to be installed has the same bundle name as the existing bundle. 10532. The bundle to be installed has the same bundle name as the existing shared library. 1054 1055**Solution** 1056 10571. Uninstall the installed bundle or shared library, and install the new bundle. 1058 1059 1060### 9568391 The Bundle Manager Service Is Stopped 1061**Error Message** 1062 1063error: bundle manager service is died. 1064 1065**Symptom** 1066 1067The bundle manager service is stopped. 1068 1069**Possible Causes** 1070 1071An unknown system exception occurs. 1072 1073**Solution** 1074 10751. Restart the phone and try again. 1076 10772. If the installation still fails after the preceding steps are performed for three to five times, check whether a crash file containing **foundation** exists in the **/data/log/faultlog/faultlogger/** directory of the device. 1078``` 1079hdc shell 1080cd /data/log/faultlog/faultlogger/ 1081ls -ls 1082``` 10833. Export the crash file and log file and submit them to [online tickets](https://developer.huawei.com/consumer/en/support/feedback/#/) for help. 1084``` 1085hdc file recv /data/log/faultlog/faultlogger/ 1086hdc file recv /data/log/hilog/ 1087``` 1088 1089### 9568393 The Code Signature Fails to Be Verified 1090**Error Message** 1091 1092error: verify code signature failed. 1093 1094**Symptom** 1095 1096The code signature fails to be verified. 1097 1098**Possible Causes** 1099 1100The bundle does not contain code signature information. 1101 1102**Solution** 1103 11041. Install the latest version of DevEco Studio and sign the code again. 1105 1106<!--RP3--><!--RP3End--> 1107 1108### 9568401 The Bundle to Debug Can Run Only on Devices in Developer Mode 1109**Error Message** 1110 1111error: debug bundle can only be installed in developer mode. 1112 1113**Symptom** 1114 1115The bundle to debug can run only on devices in developer mode. 1116 1117**Possible Causes** 1118 1119Developer mode is not enabled on the device. 1120 1121**Solution** 1122 11231. Choose **Settings** > **System** and check whether **Developer options** is available. If not, go to **Settings** > **About** and touch the version number for seven consecutive times until the message "Enable developer mode?" is displayed. Touch **OK** and enter the PIN (if set). Then the device will automatically restart. 11242. Connect the device to the PC using a USB cable. Choose **Settings** > **System** > **Developer options** and enable USB debugging. In the displayed dialog box, touch **Allow**. 11253. Start debugging or run the application. 1126 1127### 9568386 The Bundle Cannot Be Found for Uninstallation 1128**Error Message** 1129 1130error: uninstall missing installed bundle. 1131 1132**Symptom** 1133 1134The bundle cannot be found for uninstallation. 1135 1136**Possible Causes** 1137 1138The bundle to be uninstalled is not installed. 1139 1140**Solution** 1141 11421. Check whether the bundle to be uninstalled has been installed. 1143 1144### 9568388 Bundle Uninstall Is Not Allowed by Enterprise Device Management 1145**Error Message** 1146 1147error: Failed to uninstall the HAP because the uninstall is forbidden by enterprise device management. 1148 1149**Symptom** 1150 1151The enterprise device management does not allow the uninstall of this bundle. 1152 1153**Possible Causes** 1154 1155The bundle is set not to be uninstalled. 1156 1157**Solution** 1158 11591. The enterprise device management cancels the uninstallation control of the bundle. 1160 1161### 9568284 The Installation Version Is Not Compatible 1162**Error Message** 1163 1164error: install version not compatible. 1165 1166**Symptom** 1167 1168The installation version is not compatible. 1169 1170**Possible Causes** 1171 1172The version of the installed HSP does not match that of the installed HAP. 1173When an HSP is installed, the following information is verified: 11741. bundleName 11752. Version 11763. Signature 1177 1178**Solution** 1179 11801. Uninstall the HAP whose version does not match and then install the HSP. 11812. Change the HSP version to be the same as that of the HAP and install the HSP again. 1182 1183### 9568287 The Number of Entry Modules in the Installation Package Is Invalid 1184**Error Message** 1185 1186error: install invalid number of entry HAP. 1187 1188**Symptom** 1189 1190The number of entry modules in the installation package is invalid. 1191 1192**Possible Causes** 1193 1194There are multiple entry modules in the installation package. An application can have only one entry module but multiple feature modules. 1195 1196**Solution** 1197 11981. Retain one entry module and change the other entry modules to feature modules (by modifying the **type** field in **module.json5**). 1199 1200 1201### 9568281 The vendor Field of the Installation Package Is Inconsistent 1202**Error Message** 1203 1204error: install vendor not same. 1205 1206**Symptom** 1207 1208The **vendor** field of the installation package is inconsistent. 1209 1210**Possible Causes** 1211 1212The **vendor** field of the application in the **app.json5** file is inconsistent. 1213 1214**Solution** 1215 12161. If only a HAP is involved, the **vendor** field of the HAP must be the same as that of the installed application. In this case, uninstall and reinstall the HAP. 12172. If an integrated HSP is included, the **vendor** field of the integrated HSP must be the same as that of the HAP. 1218 1219 1220### 9568274 An Error Occurs During Service Installation 1221**Error Message** 1222 1223error: install installd service error. 1224 1225**Symptom** 1226 1227An error occurs during service installation. 1228 1229**Possible Causes** 1230 1231An exception occurs during service installation. 1232 1233**Solution** 1234 12351. Clear the cache and restart the device. 1236 1237 1238### 9568314 The HSP Fails to Be Installed 1239**Error Message** 1240 1241error: Failed to install the HSP because installing a shared bundle specified by hapFilePaths is not allowed. 1242 1243**Symptom** 1244 1245The HSP fails to be installed. 1246 1247**Possible Causes** 1248 1249The HSP is installed by running the **hdc app install \***\** command. 1250 1251**Solution** 1252 12531. Run the **hdc install -s \***\** command to install the HSP. 1254 1255 1256### 9568359 The SELinux Fails to be Installed and Set 1257**Error Message** 1258 1259error: installd set selinux label failed. 1260 1261**Symptom** 1262 1263The SELinux fails to be installed and set. 1264 1265**Possible Causes** 1266 1267The **apl** field in the signature configuration file is incorrect. It can be **normal**, **system_basic**, and **system_core**. 1268 1269**Solution** 1270 12711. Check whether the **apl** field in the .p7b file is correct. 1272 1273  1274 12752. If the **apl** field is incorrect, modify the **apl** field in the **UnsgnedReleasedProfileTemplate.json** file and sign the file again. 1276 1277  1278 1279### 9568398 The Enterprise Bundle Is Not Allowed to Be Installed on Non-Enterprise Devices 1280**Error Message** 1281 1282error: Failed to install the HAP because an enterprise normal/MDM bundle can not be installed on non-enterprise device. 1283 1284**Symptom** 1285 1286A non-enterprise device fails to install a bundle whose distribution type is **enterprise_mdm** or **enterprise_normal**. 1287 1288**Possible Causes** 1289 1290The device is not an enterprise device. 1291 1292**Solution** 1293 12941. Install the enterprise bundle on the enterprise device. 1295 1296### 9568402 The release Bundle of the app_gallery Type Cannot Be Installed 1297**Error Message** 1298 1299error: Release bundle can not be installed. 1300 1301**Symptom** 1302 1303The bundle whose distribution type is **app_gallery** and signing certificate type is **release** cannot be installed by running the bm command. 1304 1305**Possible Causes** 1306 1307The bundle's distribution type is **app_gallery** and the signing certificate type is **release**. 1308 1309**Solution** 1310 13111. Use other certificates than those of the **app_gallery** type to re-sign the bundle. 13122. Use the **debug** certificate to re-sign the bundle. 1313 1314### 9568403 The Encryption Check Fails During the Installation 1315**Error Message** 1316 1317error: check encryption failed. 1318 1319**Symptom** 1320 1321The encryption check fails during the installation. 1322 1323**Possible Causes** 1324 1325The image version is too early or the **lib** directory of the HAP contain non-so files. 1326 1327**Solution** 1328 13291. Install a new image version. 13302. Delete non-so files in the **lib** directory of the HAP project and re-sign and package the files. 1331 1332### 9568407 Failed to Install the Native Software Package 1333**Error Message** 1334 1335error: Failed to install the HAP because installing the native package failed. 1336 1337**Symptom** 1338 1339The native software package fails to be installed during HAP installation. 1340 1341**Possible Causes** 1342 1343The native software package to be installed in the HAP is damaged. 1344 1345**Solution** 1346 13471. Check the native software package in the HAP, replace the native software package with the correct one, and re-sign and package the software package. For details, see [Native Software Package Development Guide](https://gitee.com/openharmony/startup_appspawn/tree/master/service/hnp). 1348 1349### 9568408 Failed to Uninstall the Native Software Package 1350**Error Message** 1351 1352error: Failed to uninstall the HAP because uninstalling the native package failed. 1353 1354**Symptom** 1355 1356The native software package fails to be uninstalled during HAP uninstall. 1357 1358**Possible Causes** 1359 1360The native software package to be uninstalled is occupied. 1361 1362**Solution** 1363 13641. Check whether any process occupies the native software package. If yes, stop the process and uninstall the native software package again. For details, see [Native Software Package Development Guide](https://gitee.com/openharmony/startup_appspawn/tree/master/service/hnp). 1365 1366### 9568409 Failed to Extract the Native Software Package 1367**Error Message** 1368 1369error: Failed to install the HAP because the extract of the native package failed. 1370 1371**Symptom** 1372 1373The native software package fails to be extracted during the HAP installation. 1374 1375**Possible Causes** 1376 1377The native software package configured in **module.json5** does not exist in the HAP. 1378 1379**Solution** 1380 13811. Check the native software package directory in the HAP, input the native software package to be installed again and sign the package, or delete the missing native software package configuration from the **module.json5** file. For details, see [Native Software Package Development Guide](https://gitee.com/openharmony/startup_appspawn/tree/master/service/hnp). 1382 1383### 9568410 Failed To Install the HAP Because the Device Is Under Control 1384**Error Message** 1385 1386error: Failed to install the HAP because the device has been controlled. 1387 1388**Symptom** 1389 1390The HAP fails to be installed because the device is under control. 1391 1392**Possible Causes** 1393 1394The device is activated through an unauthorized channel. 1395 1396**Solution** 1397 13981. Check whether the device is obtained from unauthorized channels. 13992. Activate the device through the normal process. 1400 1401### 9568415 The Encrypted Bundle Whose Signing Certificate Is Debug or Debug Is True in Configuration File Cannot Be Installed 1402**Error Message** 1403 1404error: Debug encrypted bundle is not allowed to install. 1405 1406**Symptom** 1407 1408The encrypted application whose signing certificate is of the **debug** type or whose **debug** attribute of the configuration file is **true** cannot be installed. 1409 1410**Possible Causes** 1411 14121. An encrypted bundle whose signing certificate is of the **debug** type has been installed. 14132. An encrypted bundle whose **debug** attribute value is **true** in the configuration file has been installed. 1414 1415**Solution** 1416 14171. Decrypt the encrypted bundle for installation and debugging. 1418 1419### 9568416 The Encrypted Bundle Cannot Be Installed 1420**Error Message** 1421 1422error: Encrypted bundle can not be installed. 1423 1424**Symptom** 1425 1426The encrypted bundle cannot be installed using the bm command. 1427 1428**Possible Causes** 1429 1430The installed bundle is encrypted. 1431 1432**Solution** 1433 14341. Use [automatic signing](https://developer.huawei.com/consumer/en/doc/harmonyos-guides-V13/ide-signing-V13#section18815157237) or [manual signing](https://developer.huawei.com/consumer/en/doc/harmonyos-guides-V13/ide-signing-V13#section297715173233) to re-sign the bundle for installation and debugging. 1435 1436### 9568417 Failed to Verify the Signature 1437**Error Message** 1438 1439error: bundle cannot be installed because the appId is not same with preinstalled bundle. 1440 1441**Symptom** 1442 1443The signature verification fails. 1444 1445**Possible Causes** 1446 1447The signature of the installed bundle is different from that of the pre-installed bundle with the same bundle name. 1448 1449**Solution** 1450 14511. Ensure that the signature of the bundle to be installed is the same as that of the pre-installed bundle. 1452 1453### 9568418 Failed to Uninstall an Application Configured with an Uninstallation Disposed Rule 1454**Error Message** 1455 1456error: Failed to uninstall the app because the app is locked. 1457 1458**Symptom** 1459 1460The application cannot be directly uninstalled because it is configured with an uninstallation disposed rule. 1461 1462**Possible Causes** 1463 1464The application to uninstall is configured with an uninstallation disposed rule. 1465 1466**Solution** 1467 14681. Check whether the application is configured with an uninstallation disposed rule. The entity that set the rule is responsible for canceling the rule. 1469 1470### 9568420 Do Not Use the bm Tool to Install Pre-installed Bundles of the Release Version 1471**Error Message** 1472 1473os_integration bundle is not allowed to install for shell. 1474 1475**Symptom** 1476 1477The pre-installed bundles of the release version cannot be installed. 1478 1479**Possible Causes** 1480 1481The bundles are installed using the bm tool. 1482 1483**Solution** 1484 14851. Check whether the bundle is a pre-installed bundle of the release version. 1486 1487### 9568278 Version Codes of Bundles Are Inconsistent 1488**Error Message** 1489 1490error: install version code not same. 1491 1492**Possible Causes** 14931. The version code of the new bundle is different from that of the existing bundle. 14942. The version codes of multiple bundles to be installed are inconsistent. 1495 1496**Solution** 14971. Change the version code of the new bundle to be the same as that of the existing bundle, or uninstall the existing bundle and install the new bundle. 14982. Ensure that the version codes of all new bundles are the same. 1499 1500### 9568421 The Application Fails to Be Installed on the Device Because the Type of the Signing Certificate Profile Is Not Supported 1501**Error Message** 1502 1503error: the app distribution type is not allowed install. 1504 1505**Possible Causes** 1506 1507The type of the [signing certificate profile](https://developer.huawei.com/consumer/en/doc/app/agc-help-add-releaseprofile-0000001914714796) of the application is not supported on the device. 1508 1509**Solution** 1510 1511Change the type of the signing certificate profile. 1512