diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index 4f958a1c58f6c550c14ba3e09c99a067e3addab0..3dffa8b5c9db79ac92fdd870ca3d25ff184ed626 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -55,6 +55,10 @@ declare namespace bundle { * @since 9 */ GET_BUNDLE_WITH_EXTENSION_ABILITY = 0x00000020, + /** + * @since 9 + */ + GET_BUNDLE_WITH_HASH_VALUE = 0x00000030, /** * @since 8 */ diff --git a/api/bundle/bundleInstaller.d.ts b/api/bundle/bundleInstaller.d.ts index 671798824333ac80949166ca22e13b36df5794ac..bdebfff2186eab18f4c244924b61773ed95f8471 100644 --- a/api/bundle/bundleInstaller.d.ts +++ b/api/bundle/bundleInstaller.d.ts @@ -16,6 +16,29 @@ import { AsyncCallback } from './../basic'; import bundle from './../@ohos.bundle'; +/** + * @name Provides parameters required for hashParam. + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + * @permission NA + * @systemapi Hide this for inner system use + */ + export interface HashParam { + /** + * @default Indicates the moduleName + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + moduleName: string; + + /** + * @default Indicates the hash value + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + hashValue: string; +} + /** * @name Provides parameters required for installing or uninstalling an application. * @since 7 @@ -44,6 +67,13 @@ export interface InstallParam { * @syscap SystemCapability.BundleManager.BundleFramework */ isKeepData: boolean; + + /** + * @default Indicates the hash params + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + hashParams?: Array; } /** diff --git a/api/bundle/hapModuleInfo.d.ts b/api/bundle/hapModuleInfo.d.ts index 477ca86021fed8caf1c892dee53f3f2de6160065..fd3224e1a8395b0719281dc8914eb8ed3968ccc0 100644 --- a/api/bundle/hapModuleInfo.d.ts +++ b/api/bundle/hapModuleInfo.d.ts @@ -136,4 +136,10 @@ export interface HapModuleInfo { * */ readonly metadata: Array; + /** + * @default Indicates the hash value of the module + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly hashValue: string; } \ No newline at end of file