diff --git a/en/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md b/en/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md index 7c86528db55ea364316caaa927b29a90f88b253c..3dd7cf31bb1ed35e6983311a876d7860a4ef819b 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md +++ b/en/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md @@ -3,13 +3,8 @@ The **BundleInstaller** module provides APIs for installing, updating, and deleting bundles on devices. > **NOTE** -> > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. -## System Capability - -SystemCapability.BundleManager.BundleFramework - ## BundleInstaller.install install(bundleFilePaths: Array<string>, param: InstallParam, callback: AsyncCallback<InstallStatus>): void; @@ -24,6 +19,8 @@ ohos.permission.INSTALL_BUNDLE SystemCapability.BundleManager.BundleFramework +**System API**: This is a system API and cannot be called by third-party applications. + **Parameters** | Name | Type | Mandatory| Description | @@ -46,6 +43,8 @@ ohos.permission.INSTALL_BUNDLE SystemCapability.BundleManager.BundleFramework +**System API**: This is a system API and cannot be called by third-party applications. + **Parameters** | Name | Type | Mandatory| Description | @@ -54,7 +53,7 @@ SystemCapability.BundleManager.BundleFramework | param | [InstallParam](#installparam) | Yes | Parameters required for the installation or uninstall. | | callback | AsyncCallback<[InstallStatus](#installstatus)> | Yes | Callback used to return the installation status.| -## BundleInstaller.recover +## BundleInstaller.recover8+ recover(bundleName: string, param: InstallParam, callback: AsyncCallback<InstallStatus>): void; @@ -68,6 +67,8 @@ ohos.permission.INSTALL_BUNDLE SystemCapability.BundleManager.BundleFramework +**System API**: This is a system API and cannot be called by third-party applications. + **Parameters** | Name | Type | Mandatory| Description | @@ -76,17 +77,34 @@ SystemCapability.BundleManager.BundleFramework | param | [InstallParam](#installparam) | Yes | Parameters required for the installation or uninstall. | | callback | AsyncCallback<[InstallStatus](#installstatus)> | Yes | Callback used to return the installation status.| +## HashParam9+ + +Describes the parameters required for bundle installation or uninstall. + + **System capability**: SystemCapability.BundleManager.BundleFramework + + **System API**: This is a system API and cannot be called by third-party applications. + +| Name | Type | Description | +| ---------- | ------ | ---------------- | +| moduleName | string | Module name of the application.| +| hashValue | string | Hash value. | + ## InstallParam Describes the parameters required for bundle installation or uninstall. **System capability**: SystemCapability.BundleManager.BundleFramework -| Name | Type | Description | -| ----------- | ------- | ------------------ | -| userId | number | User ID. | -| installFlag | number | Installation flag. | -| isKeepData | boolean | Whether data is kept.| + **System API**: This is a system API and cannot be called by third-party applications. + +| Name | Type | Description | +| ------------------------------ | ------------------------------ | ------------------ | +| userId | number | User ID. | +| installFlag | number | Installation flag. | +| isKeepData | boolean | Whether data is kept.| +| hashParams9+ | Array<[HashParam](#hashparam)> | Hash parameters. | +| crowdtestDeadline9+ | number | Time when the test package is killed.| ## InstallStatus @@ -94,6 +112,8 @@ Describes the bundle installation status. **System capability**: SystemCapability.BundleManager.BundleFramework + **System API**: This is a system API and cannot be called by third-party applications. + | Name | Type | Readable| Writable| Description | | ------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------ | | status | bundle.[InstallErrorCode](js-apis-Bundle.md#installerrorcode) | Yes | No | Installation or uninstall error code. | diff --git a/en/application-dev/reference/apis/js-apis-bundle-PermissionDef.md b/en/application-dev/reference/apis/js-apis-bundle-PermissionDef.md index 4ebc8d40516c596de2977ea19583e019cce2ac1f..d93fcec0ec72c67b49fe921cb78bc1e7a52c4fb7 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-PermissionDef.md +++ b/en/application-dev/reference/apis/js-apis-bundle-PermissionDef.md @@ -10,10 +10,11 @@ The **PermissionDef** module provides permission details defined in the configur **System capability**: SystemCapability.BundleManager.BundleFramework +**System API**: This is a system API and cannot be called by third-party applications. + | Name | Type | Readable| Writable| Description | | -------------- | ------ | ---- | ---- | -------------- | | permissionName | string | Yes | No | Name of the permission. | | grantMode | number | Yes | No | Grant mode of the permission.| | labelId | number | Yes | No | Label ID of the permission. | | descriptionId | number | Yes | No | Description ID of the permission. | - diff --git a/en/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md b/en/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md index 8b2cf350047aa0d4c8e165b71b030f3816f6f75f..d45f34389b0cf049376e282fb2fdf2a2f3130075 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md +++ b/en/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md @@ -12,6 +12,8 @@ Describes the information about the target to which the shortcut points. **System capability**: SystemCapability.BundleManager.BundleFramework +**System API**: This is a system API and cannot be called by third-party applications. + | Name | Type | Readable| Writable| Description | | ------------------------- | ------ | ---- | ---- | -------------------- | | targetBundle | string | Yes | No | Target bundle of the shortcut.| diff --git a/en/application-dev/reference/apis/js-apis-bundle-remoteAbilityInfo.md b/en/application-dev/reference/apis/js-apis-bundle-remoteAbilityInfo.md index 4210ac52230c5e86855c8afacd7c442999efdea6..f44ea5c33a652e87193e1a976c0031dccd049e07 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-remoteAbilityInfo.md +++ b/en/application-dev/reference/apis/js-apis-bundle-remoteAbilityInfo.md @@ -8,7 +8,9 @@ The **RemoteAbilityInfo** module provides information about a remote ability. ## RemoteAbilityInfo -**System capability**: SystemCapability.BundleManager.BundleFramework +**System capability**: SystemCapability.BundleManager.DistributedBundleFramework + +**System API**: This is a system API and cannot be called by third-party applications. | Name | Type | Readable| Writable| Description | | ----------- | -------------------------------------------- | ---- | ---- | ----------------------- |