mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 22:24:20 +00:00
IssueNo:#I7I6M9
Description:add api Sig:SIG_ApplicaitonFramework Feature or Bugfix:Feature Binary Source:No Signed-off-by: wangtiantian <wangtiantian19@huawei.com>
This commit is contained in:
parent
f093c3a494
commit
96e977be3b
135
api/@ohos.bundle.installer.d.ts
vendored
135
api/@ohos.bundle.installer.d.ts
vendored
@ -88,15 +88,18 @@ declare namespace installer {
|
||||
* @since 9
|
||||
*/
|
||||
/**
|
||||
* Install haps for an application.
|
||||
* Install HAPs for an application.
|
||||
* To install a non-enterprise application, you must have the permission ohos.permission.INSTALL_BUNDLE.
|
||||
* To install an enterprise application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_BUNDLE.
|
||||
* To install an enterprise administrator application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE.
|
||||
* To install an enterprise normal application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE.
|
||||
*
|
||||
* @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.INSTALL_ENTERPRISE_BUNDLE
|
||||
* @param { Array<string> } hapFilePaths - Indicates the path where the hap of the application is stored.
|
||||
* @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.INSTALL_ENTERPRISE_BUNDLE or ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE or ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE
|
||||
* @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
|
||||
* @param { InstallParam } installParam - Indicates other parameters required for the installation.
|
||||
* @param { AsyncCallback<void> } callback - The callback of installing haps result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE'.
|
||||
* @param { AsyncCallback<void> } callback - The callback of installing HAPs result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
|
||||
* 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
@ -153,14 +156,17 @@ declare namespace installer {
|
||||
* @since 9
|
||||
*/
|
||||
/**
|
||||
* Install haps for an application.
|
||||
* Install HAPs for an application.
|
||||
* To install a non-enterprise application, you must have the permission ohos.permission.INSTALL_BUNDLE.
|
||||
* To install an enterprise application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_BUNDLE.
|
||||
* To install an enterprise administrator application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE.
|
||||
* To install an enterprise normal application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE.
|
||||
*
|
||||
* @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.INSTALL_ENTERPRISE_BUNDLE
|
||||
* @param { Array<string> } hapFilePaths - Indicates the path where the hap of the application is stored.
|
||||
* @param { AsyncCallback<void> } callback - The callback of installing haps result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE'.
|
||||
* @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.INSTALL_ENTERPRISE_BUNDLE or ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE or ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE
|
||||
* @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
|
||||
* @param { AsyncCallback<void> } callback - The callback of installing HAPs result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
|
||||
* 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
|
||||
@ -221,13 +227,16 @@ declare namespace installer {
|
||||
* Install haps for an application.
|
||||
* To install a non-enterprise application, you must have the permission ohos.permission.INSTALL_BUNDLE.
|
||||
* To install an enterprise application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_BUNDLE.
|
||||
* To install an enterprise administrator application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE.
|
||||
* To install an enterprise normal application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE.
|
||||
*
|
||||
* @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.INSTALL_ENTERPRISE_BUNDLE
|
||||
* @param { Array<string> } hapFilePaths - Indicates the path where the hap of the application is stored.
|
||||
* @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.INSTALL_ENTERPRISE_BUNDLE or ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE or ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE
|
||||
* @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
|
||||
* @param { InstallParam } installParam - Indicates other parameters required for the installation.
|
||||
* @returns { Promise<void> }
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
|
||||
* 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
|
||||
@ -373,6 +382,7 @@ declare namespace installer {
|
||||
* @param { UninstallParam } uninstallParam - Indicates parameters required for the uninstall.
|
||||
* @param { AsyncCallback<void> } callback - The callback of uninstalling shared bundle result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 17700020 - The specified bundle is pre-installed bundle which cannot be uninstalled.
|
||||
* @throws { BusinessError } 17700037 - The version of shared bundle is dependent on other applications.
|
||||
@ -390,6 +400,7 @@ declare namespace installer {
|
||||
* @param { UninstallParam } uninstallParam - Indicates parameters required for the uninstall.
|
||||
* @returns { Promise<void> }
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 17700020 - The specified bundle is pre-installed bundle which cannot be uninstalled.
|
||||
* @throws { BusinessError } 17700037 - The version of shared bundle is dependent on other applications.
|
||||
@ -399,6 +410,100 @@ declare namespace installer {
|
||||
* @since 10
|
||||
*/
|
||||
uninstall(uninstallParam: UninstallParam): Promise<void>;
|
||||
|
||||
/**
|
||||
* Updates this enterprise application.
|
||||
*
|
||||
* @permission ohos.permission.INSTALL_SELF_BUNDLE
|
||||
* @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
|
||||
* @param { InstallParam } installParam - Indicates other parameters required for the installation.
|
||||
* @param { AsyncCallback<void> } callback - Indicates the callback used to return the HAP installation result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_SELF_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
|
||||
* @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
|
||||
* @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
|
||||
* @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
|
||||
* @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
|
||||
* @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
|
||||
* @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
|
||||
* @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
|
||||
* @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
|
||||
* @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
|
||||
* @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy (required APL: system_basic or system_core).
|
||||
* @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
|
||||
* @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
|
||||
* @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
|
||||
* @throws { BusinessError } 17700049 - Failed to install the HAP because the bundleName is different from the bundleName of the caller application.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
updateBundleForSelf(hapFilePaths: Array<string>, installParam: InstallParam, callback: AsyncCallback<void>): void;
|
||||
|
||||
/**
|
||||
* Updates this enterprise application.
|
||||
*
|
||||
* @permission ohos.permission.INSTALL_SELF_BUNDLE
|
||||
* @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
|
||||
* @param { AsyncCallback<void> } callback - Indicates the callback used to return the HAP installation result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_SELF_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
|
||||
* @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
|
||||
* @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
|
||||
* @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
|
||||
* @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
|
||||
* @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
|
||||
* @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
|
||||
* @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
|
||||
* @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
|
||||
* @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
|
||||
* @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy (required APL: system_basic or system_core).
|
||||
* @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
|
||||
* @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
|
||||
* @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
|
||||
* @throws { BusinessError } 17700049 - Failed to install the HAP because the bundleName is different from the bundleName of the caller application.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
updateBundleForSelf(hapFilePaths: Array<string>, callback: AsyncCallback<void>): void;
|
||||
|
||||
/**
|
||||
* Updates this enterprise application.
|
||||
*
|
||||
* @permission ohos.permission.INSTALL_SELF_BUNDLE
|
||||
* @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
|
||||
* @param { InstallParam } installParam - Indicates other parameters required for the installation.
|
||||
* @returns { Promise<void> }
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_SELF_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
|
||||
* @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
|
||||
* @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
|
||||
* @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
|
||||
* @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
|
||||
* @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
|
||||
* @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
|
||||
* @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
|
||||
* @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
|
||||
* @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
|
||||
* @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy (required APL: system_basic or system_core).
|
||||
* @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
|
||||
* @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
|
||||
* @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
|
||||
* @throws { BusinessError } 17700049 - Failed to install the HAP because the bundleName is different from the bundleName of the caller application.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
updateBundleForSelf(hapFilePaths: Array<string>, installParam?: InstallParam): Promise<void>;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -449,7 +554,7 @@ declare namespace installer {
|
||||
moduleName: string;
|
||||
|
||||
/**
|
||||
* Indicates the path where the code signature file of the corresponding hap is stored.
|
||||
* Indicates the path where the code signature file of the corresponding HAP is stored.
|
||||
*
|
||||
* @type { string }
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
|
@ -38282,6 +38282,7 @@ mdc
|
||||
mdf
|
||||
mdi
|
||||
mdl
|
||||
mdm
|
||||
mdn
|
||||
mdpi
|
||||
mdrawerlayout
|
||||
|
Loading…
Reference in New Issue
Block a user