• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @file
18 * @kit AbilityKit
19 */
20
21import { AsyncCallback } from './@ohos.base';
22
23/**
24 * Support install, upgrade, remove and recover bundles on the devices.
25 *
26 * @namespace installer
27 * @syscap SystemCapability.BundleManager.BundleFramework.Core
28 * @systemapi
29 * @since 9
30 */
31declare namespace installer {
32  /**
33   * Obtains the interface used to install bundle.
34   *
35   * @param { AsyncCallback<BundleInstaller> } callback - The callback of BundleInstaller object.
36   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
37   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types.
38   * @syscap SystemCapability.BundleManager.BundleFramework.Core
39   * @systemapi
40   * @since 9
41   */
42  function getBundleInstaller(callback: AsyncCallback<BundleInstaller>): void;
43
44  /**
45   * Obtains the interface used to install bundle.
46   *
47   * @returns { Promise<BundleInstaller> } BundleInstaller object.
48   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
49   * @syscap SystemCapability.BundleManager.BundleFramework.Core
50   * @systemapi
51   * @since 9
52   */
53  function getBundleInstaller(): Promise<BundleInstaller>;
54
55  /**
56   * Obtains the interface used to install bundle.
57   *
58   * @returns { BundleInstaller } BundleInstaller object.
59   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
60   * @syscap SystemCapability.BundleManager.BundleFramework.Core
61   * @systemapi
62   * @since 10
63   */
64  function getBundleInstallerSync(): BundleInstaller;
65
66  /**
67   * Bundle installer interface, include install uninstall recover.
68   *
69   * @interface BundleInstaller
70   * @syscap SystemCapability.BundleManager.BundleFramework.Core
71   * @systemapi
72   * @since 9
73   */
74  interface BundleInstaller {
75    /**
76     * Install haps for an application.
77     *
78     * @permission ohos.permission.INSTALL_BUNDLE
79     * @param { Array<string> } hapFilePaths - Indicates the path where the hap of the application is stored.
80     * @param { InstallParam } installParam - Indicates other parameters required for the installation.
81     * @param { AsyncCallback<void> } callback - The callback of installing haps result.
82     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'.
83     * @throws { BusinessError } 202 - Permission denied, non-system app called system api.
84     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
85     * @throws { BusinessError } 17700004 - The specified user ID is not found.
86     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
87     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
88     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
89     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
90     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
91     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
92     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
93     * @throws { BusinessError } 17700031 - Failed to install the HAP because the overlay check of the HAP is failed.
94     * @throws { BusinessError } 17700036 - Failed to install the HSP because lacks appropriate permissions.
95     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
96     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
97     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
98     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
99     *  (required APL: system_basic or system_core).
100     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
101     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
102     * @syscap SystemCapability.BundleManager.BundleFramework.Core
103     * @systemapi
104     * @since 9
105     */
106    /**
107     * Install HAPs for an application.
108     * To install a non-enterprise application, you must have the permission ohos.permission.INSTALL_BUNDLE.
109     * To install an enterprise application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_BUNDLE.
110     * To install an enterprise administrator application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE.
111     * To install an enterprise normal application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE.
112     *
113     * @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
114     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
115     * @param { InstallParam } installParam - Indicates other parameters required for the installation.
116     * @param { AsyncCallback<void> } callback - The callback of installing HAPs result.
117     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
118     * 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
119     * @throws { BusinessError } 202 - Permission denied, non-system app called system api.
120     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
121     * 2. Incorrect parameter types; 3. Parameter hapFiles is needed for code signature;
122     * 4. The size of specifiedDistributionType is greater than 128; 5. The size of additionalInfo is greater than 3000.
123     * @throws { BusinessError } 17700004 - The specified user ID is not found.
124     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
125     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
126     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
127     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
128     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
129     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
130     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
131     * @throws { BusinessError } 17700031 - Failed to install the HAP because the overlay check of the HAP is failed.
132     * @throws { BusinessError } 17700036 - Failed to install the HSP because lacks appropriate permissions.
133     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
134     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
135     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
136     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
137     *  (required APL: system_basic or system_core).
138     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
139     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
140     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
141     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
142     * @syscap SystemCapability.BundleManager.BundleFramework.Core
143     * @systemapi
144     * @since 10
145     */
146    /**
147     * Install HAPs for an application.
148     * To install a non-enterprise application, you must have the permission ohos.permission.INSTALL_BUNDLE.
149     * To install an enterprise application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_BUNDLE.
150     * To install an enterprise administrator application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE.
151     * To install an enterprise normal application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE.
152     *
153     * @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
154     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
155     * @param { InstallParam } installParam - Indicates other parameters required for the installation.
156     * @param { AsyncCallback<void> } callback - The callback of installing HAPs result.
157     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
158     * 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
159     * @throws { BusinessError } 202 - Permission denied, non-system app called system api.
160     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
161     * 2. Incorrect parameter types; 3. Parameter hapFiles is needed for code signature;
162     * 4. The size of specifiedDistributionType is greater than 128; 5. The size of additionalInfo is greater than 3000.
163     * @throws { BusinessError } 17700004 - The specified user ID is not found.
164     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
165     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
166     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
167     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
168     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
169     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
170     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
171     * @throws { BusinessError } 17700031 - Failed to install the HAP because the overlay check of the HAP is failed.
172     * @throws { BusinessError } 17700036 - Failed to install the HSP because lacks appropriate permissions.
173     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
174     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
175     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
176     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
177     *  (required APL: system_basic or system_core).
178     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
179     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
180     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
181     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
182     * @throws { BusinessError } 17700052 - Failed to install the HAP because debug bundle cannot be installed under non-developer mode.
183     * @throws { BusinessError } 17700054 - Failed to install the HAP because the HAP requests wrong permissions.
184     * @syscap SystemCapability.BundleManager.BundleFramework.Core
185     * @systemapi
186     * @since 11
187     */
188    /**
189     * Install HAPs for an application.
190     * To install a non-enterprise application, you must have the permission ohos.permission.INSTALL_BUNDLE.
191     * To install an enterprise application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_BUNDLE.
192     * To install an enterprise administrator application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE.
193     * To install an enterprise normal application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE.
194     *
195     * @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
196     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
197     * @param { InstallParam } installParam - Indicates other parameters required for the installation.
198     * @param { AsyncCallback<void> } callback - The callback of installing HAPs result.
199     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
200     * 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
201     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
202     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter hapFiles is needed for code signature; 4. The size of specifiedDistributionType is greater than 128; 5. The size of additionalInfo is greater than 3000.
203     * @throws { BusinessError } 17700004 - The specified user ID is not found.
204     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
205     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
206     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
207     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
208     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
209     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
210     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
211     * @throws { BusinessError } 17700031 - Failed to install the HAP because the overlay check of the HAP is failed.
212     * @throws { BusinessError } 17700036 - Failed to install the HSP because lacks appropriate permissions.
213     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
214     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
215     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
216     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
217     *  (required APL: system_basic or system_core).
218     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
219     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
220     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
221     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
222     * @throws { BusinessError } 17700052 - Failed to install the HAP because debug bundle cannot be installed under non-developer mode.
223     * @throws { BusinessError } 17700054 - Failed to install the HAP because the HAP requests wrong permissions.
224     * @throws { BusinessError } 17700058 - Failed to install the HAP because the device has been controlled.
225     * @throws { BusinessError } 17700066 - Failed to install the HAP because installing the native package failed.
226     * @syscap SystemCapability.BundleManager.BundleFramework.Core
227     * @systemapi
228     * @since 12
229     */
230    /**
231     * Install HAPs for an application.
232     * To install a non-enterprise application, you must have the permission ohos.permission.INSTALL_BUNDLE.
233     * To install an enterprise application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_BUNDLE.
234     * To install an enterprise administrator application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE.
235     * To install an enterprise normal application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE.
236     * To install an internal beta application, you must have the permission ohos.permission.INSTALL_INTERNALTESTING_BUNDLE.
237     *
238     * @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
239     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
240     * @param { InstallParam } installParam - Indicates other parameters required for the installation.
241     * @param { AsyncCallback<void> } callback - The callback of installing HAPs result.
242     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
243     * 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
244     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
245     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter hapFiles is needed for code signature; 4. The size of specifiedDistributionType is greater than 128; 5. The size of additionalInfo is greater than 3000.
246     * @throws { BusinessError } 17700004 - The specified user ID is not found.
247     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
248     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
249     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
250     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
251     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
252     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
253     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
254     * @throws { BusinessError } 17700031 - Failed to install the HAP because the overlay check of the HAP is failed.
255     * @throws { BusinessError } 17700036 - Failed to install the HSP because lacks appropriate permissions.
256     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
257     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
258     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
259     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
260     *  (required APL: system_basic or system_core).
261     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
262     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
263     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
264     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
265     * @throws { BusinessError } 17700052 - Failed to install the HAP because debug bundle cannot be installed under non-developer mode.
266     * @throws { BusinessError } 17700054 - Failed to install the HAP because the HAP requests wrong permissions.
267     * @throws { BusinessError } 17700058 - Failed to install the HAP because the device has been controlled.
268     * @throws { BusinessError } 17700066 - Failed to install the HAP because installing the native package failed.
269     * @throws { BusinessError } 17700073 - Failed to install the HAP because an application with the same
270     * <br>bundle name but different signature information exists on the device.
271     * @syscap SystemCapability.BundleManager.BundleFramework.Core
272     * @systemapi
273     * @since 13
274     */
275    install(hapFilePaths: Array<string>, installParam: InstallParam, callback: AsyncCallback<void>): void;
276
277    /**
278     * Install haps for an application.
279     *
280     * @permission ohos.permission.INSTALL_BUNDLE
281     * @param { Array<string> } hapFilePaths - Indicates the path where the hap of the application is stored.
282     * @param { AsyncCallback<void> } callback - The callback of installing haps result.
283     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'.
284     * @throws { BusinessError } 202 - Permission denied, non-system app called system api.
285     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
286     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
287     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
288     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
289     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
290     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
291     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
292     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
293     * @throws { BusinessError } 17700031 - Failed to install the HAP because the overlay check of the HAP is failed.
294     * @throws { BusinessError } 17700036 - Failed to install the HSP because lacks appropriate permissions.
295     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
296     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
297     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
298     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
299     *  (required APL: system_basic or system_core).
300     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
301     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
302     * @syscap SystemCapability.BundleManager.BundleFramework.Core
303     * @systemapi
304     * @since 9
305     */
306    /**
307     * Install HAPs for an application.
308     * To install a non-enterprise application, you must have the permission ohos.permission.INSTALL_BUNDLE.
309     * To install an enterprise application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_BUNDLE.
310     * To install an enterprise administrator application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE.
311     * To install an enterprise normal application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE.
312     *
313     * @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
314     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
315     * @param { AsyncCallback<void> } callback - The callback of installing HAPs result.
316     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
317     * 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
318     * @throws { BusinessError } 202 - Permission denied, non-system app called system api.
319     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
320     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
321     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
322     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
323     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
324     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
325     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
326     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
327     * @throws { BusinessError } 17700031 - Failed to install the HAP because the overlay check of the HAP is failed.
328     * @throws { BusinessError } 17700036 - Failed to install the HSP because lacks appropriate permissions.
329     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
330     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
331     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
332     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
333     *  (required APL: system_basic or system_core).
334     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
335     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
336     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
337     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
338     * @syscap SystemCapability.BundleManager.BundleFramework.Core
339     * @systemapi
340     * @since 10
341     */
342    /**
343     * Install HAPs for an application.
344     * To install a non-enterprise application, you must have the permission ohos.permission.INSTALL_BUNDLE.
345     * To install an enterprise application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_BUNDLE.
346     * To install an enterprise administrator application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE.
347     * To install an enterprise normal application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE.
348     *
349     * @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
350     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
351     * @param { AsyncCallback<void> } callback - The callback of installing HAPs result.
352     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
353     * 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
354     * @throws { BusinessError } 202 - Permission denied, non-system app called system api.
355     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
356     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
357     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
358     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
359     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
360     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
361     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
362     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
363     * @throws { BusinessError } 17700031 - Failed to install the HAP because the overlay check of the HAP is failed.
364     * @throws { BusinessError } 17700036 - Failed to install the HSP because lacks appropriate permissions.
365     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
366     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
367     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
368     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
369     *  (required APL: system_basic or system_core).
370     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
371     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
372     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
373     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
374     * @throws { BusinessError } 17700052 - Failed to install the HAP because debug bundle cannot be installed under non-developer mode.
375     * @throws { BusinessError } 17700054 - Failed to install the HAP because the HAP requests wrong permissions.
376     * @syscap SystemCapability.BundleManager.BundleFramework.Core
377     * @systemapi
378     * @since 11
379     */
380     /**
381     * Install HAPs for an application.
382     * To install a non-enterprise application, you must have the permission ohos.permission.INSTALL_BUNDLE.
383     * To install an enterprise application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_BUNDLE.
384     * To install an enterprise administrator application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE.
385     * To install an enterprise normal application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE.
386     *
387     * @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
388     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
389     * @param { AsyncCallback<void> } callback - The callback of installing HAPs result.
390     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
391     * 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
392     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
393     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
394     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
395     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
396     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
397     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
398     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
399     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
400     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
401     * @throws { BusinessError } 17700031 - Failed to install the HAP because the overlay check of the HAP is failed.
402     * @throws { BusinessError } 17700036 - Failed to install the HSP because lacks appropriate permissions.
403     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
404     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
405     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
406     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
407     *  (required APL: system_basic or system_core).
408     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
409     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
410     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
411     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
412     * @throws { BusinessError } 17700052 - Failed to install the HAP because debug bundle cannot be installed under non-developer mode.
413     * @throws { BusinessError } 17700054 - Failed to install the HAP because the HAP requests wrong permissions.
414     * @throws { BusinessError } 17700058 - Failed to install the HAP because the device has been controlled.
415     * @throws { BusinessError } 17700066 - Failed to install the HAP because installing the native package failed.
416     * @syscap SystemCapability.BundleManager.BundleFramework.Core
417     * @systemapi
418     * @since 12
419     */
420     /**
421     * Install HAPs for an application.
422     * To install a non-enterprise application, you must have the permission ohos.permission.INSTALL_BUNDLE.
423     * To install an enterprise application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_BUNDLE.
424     * To install an enterprise administrator application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE.
425     * To install an enterprise normal application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE.
426     * To install an internal beta application, you must have the permission ohos.permission.INSTALL_INTERNALTESTING_BUNDLE.
427     *
428     * @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
429     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
430     * @param { AsyncCallback<void> } callback - The callback of installing HAPs result.
431     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
432     * 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
433     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
434     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
435     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
436     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
437     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
438     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
439     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
440     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
441     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
442     * @throws { BusinessError } 17700031 - Failed to install the HAP because the overlay check of the HAP is failed.
443     * @throws { BusinessError } 17700036 - Failed to install the HSP because lacks appropriate permissions.
444     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
445     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
446     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
447     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
448     *  (required APL: system_basic or system_core).
449     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
450     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
451     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
452     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
453     * @throws { BusinessError } 17700052 - Failed to install the HAP because debug bundle cannot be installed under non-developer mode.
454     * @throws { BusinessError } 17700054 - Failed to install the HAP because the HAP requests wrong permissions.
455     * @throws { BusinessError } 17700058 - Failed to install the HAP because the device has been controlled.
456     * @throws { BusinessError } 17700066 - Failed to install the HAP because installing the native package failed.
457     * @throws { BusinessError } 17700073 - Failed to install the HAP because an application with the same
458     * <br>bundle name but different signature information exists on the device.
459     * @syscap SystemCapability.BundleManager.BundleFramework.Core
460     * @systemapi
461     * @since 13
462     */
463    install(hapFilePaths: Array<string>, callback: AsyncCallback<void>): void;
464
465    /**
466     * Install haps for an application.
467     *
468     * @permission ohos.permission.INSTALL_BUNDLE
469     * @param { Array<string> } hapFilePaths - Indicates the path where the hap of the application is stored.
470     * @param { InstallParam } installParam - Indicates other parameters required for the installation.
471     * @returns { Promise<void> }
472     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'.
473     * @throws { BusinessError } 202 - Permission denied, non-system app called system api.
474     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
475     * @throws { BusinessError } 17700004 - The specified user ID is not found.
476     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
477     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
478     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
479     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
480     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
481     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
482     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
483     * @throws { BusinessError } 17700031 - Failed to install the HAP because the overlay check of the HAP is failed.
484     * @throws { BusinessError } 17700036 - Failed to install the HSP because lacks appropriate permissions.
485     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
486     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
487     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
488     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
489     *  (required APL: system_basic or system_core).
490     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
491     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
492     * @syscap SystemCapability.BundleManager.BundleFramework.Core
493     * @systemapi
494     * @since 9
495     */
496    /**
497     * Install haps for an application.
498     * To install a non-enterprise application, you must have the permission ohos.permission.INSTALL_BUNDLE.
499     * To install an enterprise application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_BUNDLE.
500     * To install an enterprise administrator application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE.
501     * To install an enterprise normal application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE.
502     *
503     * @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
504     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
505     * @param { InstallParam } installParam - Indicates other parameters required for the installation.
506     * @returns { Promise<void> }
507     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
508     * 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
509     * @throws { BusinessError } 202 - Permission denied, non-system app called system api.
510     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
511     * 2. Incorrect parameter types; 3. Parameter hapFiles is needed for code signature;
512     * 4. The size of specifiedDistributionType is greater than 128; 5. The size of additionalInfo is greater than 3000.
513     * @throws { BusinessError } 17700004 - The specified user ID is not found.
514     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
515     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
516     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
517     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
518     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
519     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
520     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
521     * @throws { BusinessError } 17700031 - Failed to install the HAP because the overlay check of the HAP is failed.
522     * @throws { BusinessError } 17700036 - Failed to install the HSP because lacks appropriate permissions.
523     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
524     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
525     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
526     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
527     *  (required APL: system_basic or system_core).
528     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
529     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
530     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
531     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
532     * @syscap SystemCapability.BundleManager.BundleFramework.Core
533     * @systemapi
534     * @since 10
535     */
536    /**
537     * Install haps for an application.
538     * To install a non-enterprise application, you must have the permission ohos.permission.INSTALL_BUNDLE.
539     * To install an enterprise application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_BUNDLE.
540     * To install an enterprise administrator application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE.
541     * To install an enterprise normal application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE.
542     *
543     * @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
544     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
545     * @param { InstallParam } installParam - Indicates other parameters required for the installation.
546     * @returns { Promise<void> }
547     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
548     * 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
549     * @throws { BusinessError } 202 - Permission denied, non-system app called system api.
550     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
551     * 2. Incorrect parameter types; 3. Parameter hapFiles is needed for code signature;
552     * 4. The size of specifiedDistributionType is greater than 128; 5. The size of additionalInfo is greater than 3000.
553     * @throws { BusinessError } 17700004 - The specified user ID is not found.
554     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
555     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
556     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
557     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
558     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
559     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
560     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
561     * @throws { BusinessError } 17700031 - Failed to install the HAP because the overlay check of the HAP is failed.
562     * @throws { BusinessError } 17700036 - Failed to install the HSP because lacks appropriate permissions.
563     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
564     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
565     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
566     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
567     *  (required APL: system_basic or system_core).
568     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
569     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
570     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
571     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
572     * @throws { BusinessError } 17700052 - Failed to install the HAP because debug bundle cannot be installed under non-developer mode.
573     * @throws { BusinessError } 17700054 - Failed to install the HAP because the HAP requests wrong permissions.
574     * @syscap SystemCapability.BundleManager.BundleFramework.Core
575     * @systemapi
576     * @since 11
577     */
578    /**
579     * Install haps for an application.
580     * To install a non-enterprise application, you must have the permission ohos.permission.INSTALL_BUNDLE.
581     * To install an enterprise application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_BUNDLE.
582     * To install an enterprise administrator application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE.
583     * To install an enterprise normal application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE.
584     *
585     * @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
586     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
587     * @param { InstallParam } [installParam] - Indicates other parameters required for the installation.
588     * @returns { Promise<void> }
589     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
590     * 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
591     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
592     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter hapFiles is needed for code signature; 4. The size of specifiedDistributionType is greater than 128; 5. The size of additionalInfo is greater than 3000.
593     * @throws { BusinessError } 17700004 - The specified user ID is not found.
594     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
595     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
596     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
597     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
598     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
599     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
600     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
601     * @throws { BusinessError } 17700031 - Failed to install the HAP because the overlay check of the HAP is failed.
602     * @throws { BusinessError } 17700036 - Failed to install the HSP because lacks appropriate permissions.
603     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
604     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
605     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
606     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
607     *  (required APL: system_basic or system_core).
608     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
609     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
610     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
611     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
612     * @throws { BusinessError } 17700052 - Failed to install the HAP because debug bundle cannot be installed under non-developer mode.
613     * @throws { BusinessError } 17700054 - Failed to install the HAP because the HAP requests wrong permissions.
614     * @throws { BusinessError } 17700058 - Failed to install the HAP because the device has been controlled.
615     * @throws { BusinessError } 17700066 - Failed to install the HAP because installing the native package failed.
616     * @syscap SystemCapability.BundleManager.BundleFramework.Core
617     * @systemapi
618     * @since 12
619     */
620    /**
621     * Install haps for an application.
622     * To install a non-enterprise application, you must have the permission ohos.permission.INSTALL_BUNDLE.
623     * To install an enterprise application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_BUNDLE.
624     * To install an enterprise administrator application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE.
625     * To install an enterprise normal application, you must have the permission ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE.
626     * To install an internal beta application, you must have the permission ohos.permission.INSTALL_INTERNALTESTING_BUNDLE.
627     *
628     * @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
629     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
630     * @param { InstallParam } [installParam] - Indicates other parameters required for the installation.
631     * @returns { Promise<void> }
632     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
633     * 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
634     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
635     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter hapFiles is needed for code signature; 4. The size of specifiedDistributionType is greater than 128; 5. The size of additionalInfo is greater than 3000.
636     * @throws { BusinessError } 17700004 - The specified user ID is not found.
637     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
638     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
639     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
640     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
641     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
642     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
643     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
644     * @throws { BusinessError } 17700031 - Failed to install the HAP because the overlay check of the HAP is failed.
645     * @throws { BusinessError } 17700036 - Failed to install the HSP because lacks appropriate permissions.
646     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
647     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
648     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
649     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
650     *  (required APL: system_basic or system_core).
651     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
652     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
653     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
654     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
655     * @throws { BusinessError } 17700052 - Failed to install the HAP because debug bundle cannot be installed under non-developer mode.
656     * @throws { BusinessError } 17700054 - Failed to install the HAP because the HAP requests wrong permissions.
657     * @throws { BusinessError } 17700058 - Failed to install the HAP because the device has been controlled.
658     * @throws { BusinessError } 17700066 - Failed to install the HAP because installing the native package failed.
659     * @throws { BusinessError } 17700073 - Failed to install the HAP because an application with the same
660     * <br>bundle name but different signature information exists on the device.
661     * @syscap SystemCapability.BundleManager.BundleFramework.Core
662     * @systemapi
663     * @since 13
664     */
665    install(hapFilePaths: Array<string>, installParam?: InstallParam): Promise<void>;
666
667    /**
668     * Uninstall an application.
669     *
670     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
671     * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled.
672     * @param { InstallParam } installParam - Indicates other parameters required for the uninstall.
673     * @param { AsyncCallback<void> } callback - The callback of uninstalling application result.
674     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.UNINSTALL_BUNDLE'.
675     * @throws { BusinessError } 202 - Permission denied, non-system app called system api.
676     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
677     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
678     * @throws { BusinessError } 17700004 - The specified user ID is not found.
679     * @throws { BusinessError } 17700020 - The specified bundle is pre-installed bundle which cannot be uninstalled.
680     * @throws { BusinessError } 17700040 - The specified bundle is a shared bundle which cannot be uninstalled.
681     * @throws { BusinessError } 17700045 - Failed to uninstall because enterprise device management disallow uninstall.
682     * @syscap SystemCapability.BundleManager.BundleFramework.Core
683     * @systemapi
684     * @since 9
685     */
686    /**
687     * Uninstall an application.
688     *
689     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
690     * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled.
691     * @param { InstallParam } installParam - Indicates other parameters required for the uninstall.
692     * @param { AsyncCallback<void> } callback - The callback of uninstalling application result.
693     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
694     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
695     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
696     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
697     * @throws { BusinessError } 17700004 - The specified user ID is not found.
698     * @throws { BusinessError } 17700020 - The specified bundle is a pre-installed bundle and cannot be uninstalled.
699     * @throws { BusinessError } 17700040 - The specified bundle is a shared bundle and cannot be uninstalled.
700     * @throws { BusinessError } 17700045 - Failed to uninstall the HAP because uninstall is not allowed by the enterprise device management.
701     * @throws { BusinessError } 17700067 - Failed to uninstall the HAP because uninstalling the native package failed.
702     * @syscap SystemCapability.BundleManager.BundleFramework.Core
703     * @systemapi
704     * @since 12
705     */
706    /**
707     * Uninstall an application.
708     *
709     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
710     * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled.
711     * @param { InstallParam } installParam - Indicates other parameters required for the uninstall.
712     * @param { AsyncCallback<void> } callback - The callback of uninstalling application result.
713     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
714     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
715     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
716     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
717     * @throws { BusinessError } 17700004 - The specified user ID is not found.
718     * @throws { BusinessError } 17700020 - The specified bundle is a pre-installed bundle and cannot be uninstalled.
719     * @throws { BusinessError } 17700040 - The specified bundle is a shared bundle and cannot be uninstalled.
720     * @throws { BusinessError } 17700045 - Failed to uninstall the HAP because uninstall is not allowed by the enterprise device management.
721     * @throws { BusinessError } 17700060 - The specified application cannot be uninstalled.
722     * @throws { BusinessError } 17700067 - Failed to uninstall the HAP because uninstalling the native package failed.
723     * @syscap SystemCapability.BundleManager.BundleFramework.Core
724     * @systemapi
725     * @since 13
726     */
727    /**
728     * Uninstall an application.
729     *
730     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
731     * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled.
732     * @param { InstallParam } installParam - Indicates other parameters required for the uninstallation.
733     * @param { AsyncCallback<void> } callback - The callback of uninstalling application result.
734     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
735     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
736     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
737     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
738     * @throws { BusinessError } 17700004 - The specified user ID is not found.
739     * @throws { BusinessError } 17700020 - The specified bundle is a pre-installed bundle and cannot be uninstalled.
740     * @throws { BusinessError } 17700040 - The specified bundle is a shared bundle and cannot be uninstalled.
741     * @throws { BusinessError } 17700045 - Failed to uninstall the HAP because uninstall is not allowed by the enterprise device management.
742     * @throws { BusinessError } 17700060 - The specified application cannot be uninstalled.
743     * @throws { BusinessError } 17700062 - Failed to uninstall the app because the app is locked.
744     * @throws { BusinessError } 17700067 - Failed to uninstall the HAP because uninstalling the native package failed.
745     * @syscap SystemCapability.BundleManager.BundleFramework.Core
746     * @systemapi
747     * @since 15
748     */
749    uninstall(bundleName: string, installParam: InstallParam, callback: AsyncCallback<void>): void;
750
751    /**
752     * Uninstall an application.
753     *
754     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
755     * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled.
756     * @param { AsyncCallback<void> } callback - The callback of uninstalling application result.
757     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.UNINSTALL_BUNDLE'.
758     * @throws { BusinessError } 202 - Permission denied, non-system app called system api.
759     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
760     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
761     * @throws { BusinessError } 17700020 - The specified bundle is pre-installed bundle which cannot be uninstalled.
762     * @throws { BusinessError } 17700040 - The specified bundle is a shared bundle which cannot be uninstalled.
763     * @throws { BusinessError } 17700045 - Failed to uninstall because enterprise device management disallow uninstall.
764     * @syscap SystemCapability.BundleManager.BundleFramework.Core
765     * @systemapi
766     * @since 9
767     */
768    /**
769     * Uninstall an application.
770     *
771     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
772     * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled.
773     * @param { AsyncCallback<void> } callback - The callback of uninstalling application result.
774     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
775     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
776     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
777     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
778     * @throws { BusinessError } 17700020 - The specified bundle is a pre-installed bundle and cannot be uninstalled.
779     * @throws { BusinessError } 17700040 - The specified bundle is a shared bundle and cannot be uninstalled.
780     * @throws { BusinessError } 17700045 - Failed to uninstall the HAP because uninstall is not allowed by the enterprise device management.
781     * @throws { BusinessError } 17700067 - Failed to uninstall the HAP because uninstalling the native package failed.
782     * @syscap SystemCapability.BundleManager.BundleFramework.Core
783     * @systemapi
784     * @since 12
785     */
786    /**
787     * Uninstall an application.
788     *
789     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
790     * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled.
791     * @param { AsyncCallback<void> } callback - The callback of uninstalling application result.
792     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
793     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
794     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
795     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
796     * @throws { BusinessError } 17700020 - The specified bundle is a pre-installed bundle and cannot be uninstalled.
797     * @throws { BusinessError } 17700040 - The specified bundle is a shared bundle and cannot be uninstalled.
798     * @throws { BusinessError } 17700045 - Failed to uninstall the HAP because uninstall is not allowed by the enterprise device management.
799     * @throws { BusinessError } 17700060 - The specified application cannot be uninstalled.
800     * @throws { BusinessError } 17700067 - Failed to uninstall the HAP because uninstalling the native package failed.
801     * @syscap SystemCapability.BundleManager.BundleFramework.Core
802     * @systemapi
803     * @since 13
804     */
805    uninstall(bundleName: string, callback: AsyncCallback<void>): void;
806
807    /**
808     * Uninstall an application.
809     *
810     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
811     * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled.
812     * @param { InstallParam } installParam - Indicates other parameters required for the uninstall.
813     * @returns { Promise<void> }
814     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.UNINSTALL_BUNDLE'.
815     * @throws { BusinessError } 202 - Permission denied, non-system app called system api.
816     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
817     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
818     * @throws { BusinessError } 17700004 - The specified user ID is not found.
819     * @throws { BusinessError } 17700020 - The specified bundle is pre-installed bundle which cannot be uninstalled.
820     * @throws { BusinessError } 17700040 - The specified bundle is a shared bundle which cannot be uninstalled.
821     * @throws { BusinessError } 17700045 - Failed to uninstall because enterprise device management disallow uninstall.
822     * @syscap SystemCapability.BundleManager.BundleFramework.Core
823     * @systemapi
824     * @since 9
825     */
826     /**
827     * Uninstall an application.
828     *
829     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
830     * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled.
831     * @param { InstallParam } installParam - Indicates other parameters required for the uninstall.
832     * @returns { Promise<void> }
833     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
834     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
835     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
836     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
837     * @throws { BusinessError } 17700004 - The specified user ID is not found.
838     * @throws { BusinessError } 17700020 - The specified bundle is a pre-installed bundle and cannot be uninstalled.
839     * @throws { BusinessError } 17700040 - The specified bundle is a shared bundle and cannot be uninstalled.
840     * @throws { BusinessError } 17700045 - Failed to uninstall the HAP because uninstall is not allowed by the enterprise device management.
841     * @throws { BusinessError } 17700067 - Failed to uninstall the HAP because uninstalling the native package failed.
842     * @syscap SystemCapability.BundleManager.BundleFramework.Core
843     * @systemapi
844     * @since 12
845     */
846    /**
847     * Uninstall an application.
848     *
849     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
850     * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled.
851     * @param { InstallParam } installParam - Indicates other parameters required for the uninstall.
852     * @returns { Promise<void> }
853     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
854     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
855     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
856     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
857     * @throws { BusinessError } 17700004 - The specified user ID is not found.
858     * @throws { BusinessError } 17700020 - The specified bundle is a pre-installed bundle and cannot be uninstalled.
859     * @throws { BusinessError } 17700040 - The specified bundle is a shared bundle and cannot be uninstalled.
860     * @throws { BusinessError } 17700045 - Failed to uninstall the HAP because uninstall is not allowed by the enterprise device management.
861     * @throws { BusinessError } 17700060 - The specified application cannot be uninstalled.
862     * @throws { BusinessError } 17700067 - Failed to uninstall the HAP because uninstalling the native package failed.
863     * @syscap SystemCapability.BundleManager.BundleFramework.Core
864     * @systemapi
865     * @since 13
866     */
867    /**
868     * Uninstall an application.
869     *
870     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
871     * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled.
872     * @param { InstallParam } [installParam] - Indicates other parameters required for the uninstallation.
873     * @returns { Promise<void> }
874     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
875     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
876     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
877     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
878     * @throws { BusinessError } 17700004 - The specified user ID is not found.
879     * @throws { BusinessError } 17700020 - The specified bundle is a pre-installed bundle and cannot be uninstalled.
880     * @throws { BusinessError } 17700040 - The specified bundle is a shared bundle and cannot be uninstalled.
881     * @throws { BusinessError } 17700045 - Failed to uninstall the HAP because uninstall is not allowed by the enterprise device management.
882     * @throws { BusinessError } 17700060 - The specified application cannot be uninstalled.
883     * @throws { BusinessError } 17700062 - Failed to uninstall the app because the app is locked.
884     * @throws { BusinessError } 17700067 - Failed to uninstall the HAP because uninstalling the native package failed.
885     * @syscap SystemCapability.BundleManager.BundleFramework.Core
886     * @systemapi
887     * @since 15
888     */
889    uninstall(bundleName: string, installParam?: InstallParam): Promise<void>;
890
891    /**
892     * Recover an application.
893     *
894     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.RECOVER_BUNDLE
895     * @param { string } bundleName - Indicates the bundle name of the application to be recovered.
896     * @param { InstallParam } installParam - Indicates other parameters required for the recover.
897     * @param { AsyncCallback<void> } callback - The callback of recovering application result.
898     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.RECOVER_BUNDLE'.
899     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
900     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
901     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
902     * @throws { BusinessError } 17700004 - The specified user ID is not found.
903     * @syscap SystemCapability.BundleManager.BundleFramework.Core
904     * @systemapi
905     * @since 9
906     */
907    /**
908     * Recover an application.
909     *
910     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.RECOVER_BUNDLE
911     * @param { string } bundleName - Indicates the bundle name of the application to be recovered.
912     * @param { InstallParam } installParam - Indicates other parameters required for the recover.
913     * @param { AsyncCallback<void> } callback - The callback of recovering application result.
914     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.RECOVER_BUNDLE'.
915     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
916     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
917     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
918     * @throws { BusinessError } 17700004 - The specified user ID is not found.
919     * @throws { BusinessError } 17700073 - Failed to install the HAP because an application with the same
920     * <br>bundle name but different signature information exists on the device.
921     * @syscap SystemCapability.BundleManager.BundleFramework.Core
922     * @systemapi
923     * @since 13
924     */
925    /**
926     * Recover an application.
927     *
928     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.RECOVER_BUNDLE
929     * @param { string } bundleName - Indicates the bundle name of the application to be recovered.
930     * @param { InstallParam } installParam - Indicates other parameters required for the recover.
931     * @param { AsyncCallback<void> } callback - The callback of recovering application result.
932     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.RECOVER_BUNDLE'.
933     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
934     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
935     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
936     * @throws { BusinessError } 17700004 - The specified user ID is not found.
937     * @throws { BusinessError } 17700058 - Failed to install the HAP because this application is prohibited
938     * <br>from being installed on this device or by specified users.
939     * @throws { BusinessError } 17700073 - Failed to install the HAP because an application with the same
940     * <br>bundle name but different signature information exists on the device.
941     * @syscap SystemCapability.BundleManager.BundleFramework.Core
942     * @systemapi
943     * @since 14
944     */
945    recover(bundleName: string, installParam: InstallParam, callback: AsyncCallback<void>): void;
946
947    /**
948     * Recover an application.
949     *
950     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.RECOVER_BUNDLE
951     * @param { string } bundleName - Indicates the bundle name of the application to be recovered.
952     * @param { AsyncCallback<void> } callback - The callback of recovering application result.
953     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.RECOVER_BUNDLE'.
954     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
955     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
956     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
957     * @syscap SystemCapability.BundleManager.BundleFramework.Core
958     * @systemapi
959     * @since 9
960     */
961    /**
962     * Recover an application.
963     *
964     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.RECOVER_BUNDLE
965     * @param { string } bundleName - Indicates the bundle name of the application to be recovered.
966     * @param { AsyncCallback<void> } callback - The callback of recovering application result.
967     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.RECOVER_BUNDLE'.
968     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
969     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
970     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
971     * @throws { BusinessError } 17700073 - Failed to install the HAP because an application with the same
972     * <br>bundle name but different signature information exists on the device.
973     * @syscap SystemCapability.BundleManager.BundleFramework.Core
974     * @systemapi
975     * @since 13
976     */
977    /**
978     * Recover an application.
979     *
980     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.RECOVER_BUNDLE
981     * @param { string } bundleName - Indicates the bundle name of the application to be recovered.
982     * @param { AsyncCallback<void> } callback - The callback of recovering application result.
983     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.RECOVER_BUNDLE'.
984     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
985     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
986     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
987     * @throws { BusinessError } 17700058 - Failed to install the HAP because this application is prohibited
988     * <br>from being installed on this device or by specified users.
989     * @throws { BusinessError } 17700073 - Failed to install the HAP because an application with the same
990     * <br>bundle name but different signature information exists on the device.
991     * @syscap SystemCapability.BundleManager.BundleFramework.Core
992     * @systemapi
993     * @since 14
994     */
995    recover(bundleName: string, callback: AsyncCallback<void>): void;
996
997    /**
998     * Recover an application.
999     *
1000     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.RECOVER_BUNDLE
1001     * @param { string } bundleName - Indicates the bundle name of the application to be recovered.
1002     * @param { InstallParam } installParam - Indicates other parameters required for the recover.
1003     * @returns { Promise<void> }
1004     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.RECOVER_BUNDLE'.
1005     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1006     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
1007     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
1008     * @throws { BusinessError } 17700004 - The specified user ID is not found.
1009     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1010     * @systemapi
1011     * @since 9
1012     */
1013    /**
1014     * Recover an application.
1015     *
1016     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.RECOVER_BUNDLE
1017     * @param { string } bundleName - Indicates the bundle name of the application to be recovered.
1018     * @param { InstallParam } installParam - Indicates other parameters required for the recover.
1019     * @returns { Promise<void> }
1020     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.RECOVER_BUNDLE'.
1021     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1022     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
1023     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
1024     * @throws { BusinessError } 17700004 - The specified user ID is not found.
1025     * @throws { BusinessError } 17700073 - Failed to install the HAP because an application with the same
1026     * <br>bundle name but different signature information exists on the device.
1027     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1028     * @systemapi
1029     * @since 13
1030     */
1031    /**
1032     * Recover an application.
1033     *
1034     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.RECOVER_BUNDLE
1035     * @param { string } bundleName - Indicates the bundle name of the application to be recovered.
1036     * @param { InstallParam } installParam - Indicates other parameters required for the recover.
1037     * @returns { Promise<void> }
1038     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.RECOVER_BUNDLE'.
1039     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1040     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
1041     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
1042     * @throws { BusinessError } 17700004 - The specified user ID is not found.
1043     * @throws { BusinessError } 17700058 - Failed to install the HAP because this application is prohibited
1044     * <br>from being installed on this device or by specified users.
1045     * @throws { BusinessError } 17700073 - Failed to install the HAP because an application with the same
1046     * <br>bundle name but different signature information exists on the device.
1047     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1048     * @systemapi
1049     * @since 14
1050     */
1051    recover(bundleName: string, installParam?: InstallParam): Promise<void>;
1052
1053    /**
1054     * Uninstall a shared bundle.
1055     *
1056     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
1057     * @param { UninstallParam } uninstallParam - Indicates parameters required for the uninstall.
1058     * @param { AsyncCallback<void> } callback - The callback of uninstalling shared bundle result.
1059     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
1060     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1061     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
1062     * @throws { BusinessError } 17700020 - The specified bundle is a pre-installed bundle and cannot be uninstalled.
1063     * @throws { BusinessError } 17700037 - The version of shared bundle is dependent on other applications.
1064     * @throws { BusinessError } 17700038 - The specified shared bundle does not exist.
1065     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1066     * @systemapi
1067     * @since 10
1068     */
1069    uninstall(uninstallParam: UninstallParam, callback: AsyncCallback<void>): void;
1070
1071    /**
1072     * Uninstall a shared bundle.
1073     *
1074     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
1075     * @param { UninstallParam } uninstallParam - Indicates parameters required for the uninstall.
1076     * @returns { Promise<void> }
1077     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
1078     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1079     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
1080     * @throws { BusinessError } 17700020 - The specified bundle is a pre-installed bundle and cannot be uninstalled.
1081     * @throws { BusinessError } 17700037 - The version of shared bundle is dependent on other applications.
1082     * @throws { BusinessError } 17700038 - The specified shared bundle does not exist.
1083     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1084     * @systemapi
1085     * @since 10
1086     */
1087    uninstall(uninstallParam: UninstallParam): Promise<void>;
1088
1089    /**
1090     * Updates this enterprise application.
1091     *
1092     * @permission ohos.permission.INSTALL_SELF_BUNDLE
1093     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
1094     * @param { InstallParam } installParam - Indicates other parameters required for the installation.
1095     * @param { AsyncCallback<void> } callback - Indicates the callback used to return the HAP installation result.
1096     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_SELF_BUNDLE'.
1097     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1098     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
1099     * 2. Incorrect parameter types; 3. Parameter hapFiles is needed for code signature;
1100     * 4. The size of specifiedDistributionType is greater than 128; 5. The size of additionalInfo is greater than 3000.
1101     * @throws { BusinessError } 17700004 - The specified user ID is not found.
1102     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
1103     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
1104     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
1105     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
1106     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
1107     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
1108     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
1109     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
1110     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
1111     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
1112     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
1113     * (required APL: system_basic or system_core).
1114     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
1115     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
1116     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
1117     * @throws { BusinessError } 17700049 - Failed to install the HAP because the bundleName is different from the bundleName of the caller application.
1118     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
1119     * @throws { BusinessError } 17700051 - Failed to install the HAP because the distribution type of caller application is not enterprise_mdm.
1120     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1121     * @systemapi
1122     * @since 10
1123     */
1124    /**
1125     * Updates this enterprise application.
1126     *
1127     * @permission ohos.permission.INSTALL_SELF_BUNDLE
1128     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
1129     * @param { InstallParam } installParam - Indicates other parameters required for the installation.
1130     * @param { AsyncCallback<void> } callback - Indicates the callback used to return the HAP installation result.
1131     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_SELF_BUNDLE'.
1132     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1133     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
1134     * 2. Incorrect parameter types; 3. Parameter hapFiles is needed for code signature;
1135     * 4. The size of specifiedDistributionType is greater than 128; 5. The size of additionalInfo is greater than 3000.
1136     * @throws { BusinessError } 17700004 - The specified user ID is not found.
1137     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
1138     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
1139     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
1140     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
1141     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
1142     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
1143     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
1144     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
1145     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
1146     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
1147     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
1148     * (required APL: system_basic or system_core).
1149     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
1150     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
1151     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
1152     * @throws { BusinessError } 17700049 - Failed to install the HAP because the bundleName is different from the bundleName of the caller application.
1153     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
1154     * @throws { BusinessError } 17700051 - Failed to install the HAP because the distribution type of caller application is not enterprise_mdm.
1155     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1156     * @systemapi
1157     * @since 12
1158     */
1159    updateBundleForSelf(hapFilePaths: Array<string>, installParam: InstallParam, callback: AsyncCallback<void>): void;
1160
1161    /**
1162     * Updates this enterprise application.
1163     *
1164     * @permission ohos.permission.INSTALL_SELF_BUNDLE
1165     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
1166     * @param { AsyncCallback<void> } callback - Indicates the callback used to return the HAP installation result.
1167     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_SELF_BUNDLE'.
1168     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1169     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
1170     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
1171     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
1172     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
1173     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
1174     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
1175     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
1176     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
1177     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
1178     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
1179     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
1180     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
1181     * (required APL: system_basic or system_core).
1182     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
1183     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
1184     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
1185     * @throws { BusinessError } 17700049 - Failed to install the HAP because the bundleName is different from the bundleName of the caller application.
1186     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
1187     * @throws { BusinessError } 17700051 - Failed to install the HAP because the distribution type of caller application is not enterprise_mdm.
1188     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1189     * @systemapi
1190     * @since 10
1191     */
1192    /**
1193     * Updates this enterprise application.
1194     *
1195     * @permission ohos.permission.INSTALL_SELF_BUNDLE
1196     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
1197     * @param { AsyncCallback<void> } callback - Indicates the callback used to return the HAP installation result.
1198     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_SELF_BUNDLE'.
1199     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1200     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
1201     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
1202     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
1203     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
1204     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
1205     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
1206     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
1207     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
1208     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
1209     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
1210     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
1211     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
1212     * (required APL: system_basic or system_core).
1213     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
1214     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
1215     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
1216     * @throws { BusinessError } 17700049 - Failed to install the HAP because the bundleName is different from the bundleName of the caller application.
1217     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
1218     * @throws { BusinessError } 17700051 - Failed to install the HAP because the distribution type of caller application is not enterprise_mdm.
1219     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1220     * @systemapi
1221     * @since 12
1222     */
1223    updateBundleForSelf(hapFilePaths: Array<string>, callback: AsyncCallback<void>): void;
1224
1225    /**
1226     * Updates this enterprise application.
1227     *
1228     * @permission ohos.permission.INSTALL_SELF_BUNDLE
1229     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
1230     * @param { InstallParam } installParam - Indicates other parameters required for the installation.
1231     * @returns { Promise<void> }
1232     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_SELF_BUNDLE'.
1233     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1234     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
1235     * 2. Incorrect parameter types; 3. Parameter hapFiles is needed for code signature;
1236     * 4. The size of specifiedDistributionType is greater than 128; 5. The size of additionalInfo is greater than 3000.
1237     * @throws { BusinessError } 17700004 - The specified user ID is not found.
1238     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
1239     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
1240     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
1241     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
1242     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
1243     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
1244     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
1245     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
1246     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
1247     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
1248     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
1249     * (required APL: system_basic or system_core).
1250     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
1251     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
1252     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
1253     * @throws { BusinessError } 17700049 - Failed to install the HAP because the bundleName is different from the bundleName of the caller application.
1254     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
1255     * @throws { BusinessError } 17700051 - Failed to install the HAP because the distribution type of caller application is not enterprise_mdm.
1256     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1257     * @systemapi
1258     * @since 10
1259     */
1260    /**
1261     * Updates this enterprise application.
1262     *
1263     * @permission ohos.permission.INSTALL_SELF_BUNDLE
1264     * @param { Array<string> } hapFilePaths - Indicates the path where the HAP of the application is stored.
1265     * @param { InstallParam } installParam - Indicates other parameters required for the installation.
1266     * @returns { Promise<void> }
1267     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_SELF_BUNDLE'.
1268     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1269     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
1270     * 2. Incorrect parameter types; 3. Parameter hapFiles is needed for code signature;
1271     * 4. The size of specifiedDistributionType is greater than 128; 5. The size of additionalInfo is greater than 3000.
1272     * @throws { BusinessError } 17700004 - The specified user ID is not found.
1273     * @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
1274     * @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
1275     * @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
1276     * @throws { BusinessError } 17700015 - Failed to install the HAPs because they have different configuration information.
1277     * @throws { BusinessError } 17700016 - Failed to install the HAP because of insufficient system disk space.
1278     * @throws { BusinessError } 17700017 - Failed to install the HAP since the version of the HAP to install is too early.
1279     * @throws { BusinessError } 17700018 - Failed to install because the dependent module does not exist.
1280     * @throws { BusinessError } 17700039 - Failed to install because disallow install a shared bundle by hapFilePaths.
1281     * @throws { BusinessError } 17700041 - Failed to install because enterprise device management disallow install.
1282     * @throws { BusinessError } 17700042 - Failed to install the HAP because of incorrect URI in the data proxy.
1283     * @throws { BusinessError } 17700043 - Failed to install the HAP because of low APL in the non-system data proxy
1284     * (required APL: system_basic or system_core).
1285     * @throws { BusinessError } 17700044 - Failed to install the HAP because the isolationMode configured is not supported.
1286     * @throws { BusinessError } 17700047 - Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
1287     * @throws { BusinessError } 17700048 - Failed to install the HAP because the code signature verification is failed.
1288     * @throws { BusinessError } 17700049 - Failed to install the HAP because the bundleName is different from the bundleName of the caller application.
1289     * @throws { BusinessError } 17700050 - Failed to install the HAP because enterprise normal/MDM bundle cannot be installed on non-enterprise device.
1290     * @throws { BusinessError } 17700051 - Failed to install the HAP because the distribution type of caller application is not enterprise_mdm.
1291     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1292     * @systemapi
1293     * @since 12
1294     */
1295    updateBundleForSelf(hapFilePaths: Array<string>, installParam?: InstallParam): Promise<void>;
1296
1297    /**
1298     * Uninstall updates for a pre-installed application.
1299     *
1300     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
1301     * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled updates.
1302     * @param { InstallParam } installParam - Indicates other parameters required for the uninstall.
1303     * @returns { Promise<void> }
1304     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
1305     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1306     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
1307     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
1308     * @throws { BusinessError } 17700045 - Failed to uninstall because enterprise device management disallow uninstall.
1309     * @throws { BusinessError } 17700057 - Failed to uninstall updates because the HAP is not pre-installed.
1310     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1311     * @systemapi
1312     * @since 12
1313     */
1314    /**
1315     * Uninstall updates for a pre-installed application.
1316     *
1317     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
1318     * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled updates.
1319     * @param { InstallParam } installParam - Indicates other parameters required for the uninstall.
1320     * @returns { Promise<void> }
1321     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
1322     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1323     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
1324     * @throws { BusinessError } 17700001 - The specified bundle name is not found.
1325     * @throws { BusinessError } 17700045 - Failed to uninstall because enterprise device management disallow uninstall.
1326     * @throws { BusinessError } 17700057 - Failed to uninstall updates because the HAP is not pre-installed.
1327     * @throws { BusinessError } 17700060 - The specified application cannot be uninstalled.
1328     * @throws { BusinessError } 17700067 - Failed to uninstall the HAP because uninstalling the native package failed.
1329     * @throws { BusinessError } 17700073 - Failed to install the HAP because an application with the same
1330     * <br>bundle name but different signature information exists on the device.
1331     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1332     * @systemapi
1333     * @since 13
1334     */
1335    uninstallUpdates(bundleName: string, installParam?: InstallParam): Promise<void>;
1336
1337    /**
1338     * Add extend resources.
1339     *
1340     * @permission ohos.permission.INSTALL_BUNDLE
1341     * @param { string } bundleName - Indicates the bundleName.
1342     * @param { Array<string> } filePaths - Indicates the file path for extend resources.
1343     * @returns { Promise<void> } Returns addExtResource result.
1344     * @throws { BusinessError } 201 - Permission denied.
1345     * @throws { BusinessError } 202 - Permission denied, non-system app called system api.
1346     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
1347     * @throws { BusinessError } 17700001 - The specified bundleName is not found.
1348     * @throws { BusinessError } 17700301 - AddExtResource failed due to parse file failed.
1349     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1350     * @systemapi
1351     * @since 12
1352    */
1353    addExtResource(bundleName: string, filePaths: Array<string>): Promise<void>;
1354
1355    /**
1356     * Remove extend resources.
1357     *
1358     * @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
1359     * @param { string } bundleName - Indicates the bundleName.
1360     * @param { Array<string> } moduleNames - Indicates the moduleNames for extend resources.
1361     * @returns { Promise<void> } Returns removeExtResource result.
1362     * @throws { BusinessError } 201 - Permission denied.
1363     * @throws { BusinessError } 202 - Permission denied, non-system app called system api.
1364     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
1365     * @throws { BusinessError } 17700001 - The specified bundleName is not found.
1366     * @throws { BusinessError } 17700302 - RemoveExtResource failed due to module does not exist.
1367     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1368     * @systemapi
1369     * @since 12
1370     */
1371    removeExtResource(bundleName: string, moduleNames: Array<string>): Promise<void>;
1372
1373    /**
1374     * Create clone instance for an application.
1375     *
1376     * @permission ohos.permission.INSTALL_CLONE_BUNDLE
1377     * @param { string } bundleName - Indicates the path where the HAP of the application is stored.
1378     * @param { CreateAppCloneParam } [createAppCloneParam] Indicates the optional params of create clone app.
1379     * @returns { Promise<number> } Return the appIndex of the clone application.
1380     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_CLONE_BUNDLE'.
1381     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1382     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
1383     * @throws { BusinessError } 17700001 - The specified bundleName cannot be found or the bundle is not installed by the specified user.
1384     * @throws { BusinessError } 17700004 - The userId is invalid.
1385     * @throws { BusinessError } 17700061 - The appIndex is not in valid range or already exists.
1386     * @throws { BusinessError } 17700069 - The app does not support the creation of an appClone instance.
1387     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1388     * @systemapi
1389     * @since 12
1390     */
1391     createAppClone(bundleName: string, createAppCloneParam?: CreateAppCloneParam): Promise<number>;
1392
1393    /**
1394     * Destroy clone instance for an application.
1395     *
1396     * @permission ohos.permission.UNINSTALL_CLONE_BUNDLE
1397     * @param { string } bundleName - Indicates the path where the HAP of the application is stored.
1398     * @param { number } appIndex - Indicates the clone application's index.
1399     * @param { number } [userId] - userId Indicates the user ID.
1400     * @returns { Promise<void> }
1401     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.UNINSTALL_CLONE_BUNDLE'.
1402     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1403     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
1404     * @throws { BusinessError } 17700001 - The specified bundleName cannot be found or the bundle is not installed by the specified user.
1405     * @throws { BusinessError } 17700004 - The userId is invalid.
1406     * @throws { BusinessError } 17700061 - AppIndex not in valid range.
1407     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1408     * @systemapi
1409     * @since 12
1410     */
1411     destroyAppClone(bundleName: string, appIndex: number, userId?: number): Promise<void>;
1412
1413    /**
1414     * Destroy clone instance for an application.
1415     *
1416     * @permission ohos.permission.UNINSTALL_CLONE_BUNDLE
1417     * @param { string } bundleName - Indicates the bundleName of clone app.
1418     * @param { number } appIndex - Indicates the clone application's index.
1419     * @param { DestroyAppCloneParam } [destroyAppCloneParam] - Indicates other parameters required for the uninstallation.
1420     * @returns { Promise<void> }
1421     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.UNINSTALL_CLONE_BUNDLE'.
1422     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1423     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
1424     * @throws { BusinessError } 17700001 - The specified bundleName cannot be found or the bundle is not installed by the specified user.
1425     * @throws { BusinessError } 17700004 - The userId is invalid.
1426     * @throws { BusinessError } 17700061 - AppIndex not in valid range.
1427     * @throws { BusinessError } 17700062 - Failed to uninstall the app because the app is locked.
1428     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1429     * @systemapi
1430     * @since 15
1431     */
1432     destroyAppClone(bundleName: string, appIndex: number, destroyAppCloneParam?: DestroyAppCloneParam): Promise<void>;
1433
1434    /**
1435     * Install application by bundle name with specified user.
1436     *
1437     * @permission ohos.permission.INSTALL_BUNDLE
1438     * @param { string } bundleName - Indicates the bundle name of application.
1439     * @param { number } [userId] - userId Indicates the user ID.
1440     * @returns { Promise<void> }
1441     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'.
1442     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1443     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
1444     * @throws { BusinessError } 17700001 - The specified bundleName cannot be found or the bundle is not installed by the specified user.
1445     * @throws { BusinessError } 17700004 - The userId is invalid.
1446     * @throws { BusinessError } 17700071 - It is not allowed to install the enterprise bundle.
1447     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1448     * @systemapi
1449     * @since 12
1450     */
1451    /**
1452     * Install application by bundle name with specified user.
1453     *
1454     * @permission ohos.permission.INSTALL_BUNDLE
1455     * @param { string } bundleName - Indicates the bundle name of application.
1456     * @param { number } [userId] - userId Indicates the user ID.
1457     * @returns { Promise<void> }
1458     * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'.
1459     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
1460     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
1461     * @throws { BusinessError } 17700001 - The specified bundleName cannot be found or the bundle is not installed by the specified user.
1462     * @throws { BusinessError } 17700004 - The userId is invalid.
1463     * @throws { BusinessError } 17700071 - It is not allowed to install the enterprise bundle.
1464     * @throws { BusinessError } 17700058 - Failed to install the HAP because this application is prohibited
1465     * <br>from being installed on this device or by specified users.
1466     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1467     * @systemapi
1468     * @since 14
1469     */
1470     installPreexistingApp(bundleName: string, userId?: number): Promise<void>;
1471  }
1472
1473  /**
1474   * Provides parameters required for hashParam.
1475   *
1476   * @typedef HashParam
1477   * @syscap SystemCapability.BundleManager.BundleFramework.Core
1478   * @systemapi
1479   * @since 9
1480   */
1481  export interface HashParam {
1482    /**
1483     * Indicates the moduleName
1484     *
1485     * @type { string }
1486     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1487     * @systemapi
1488     * @since 9
1489     */
1490    moduleName: string;
1491
1492    /**
1493     * Indicates the hash value
1494     *
1495     * @type { string }
1496     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1497     * @systemapi
1498     * @since 9
1499     */
1500    hashValue: string;
1501  }
1502
1503  /**
1504   * Provides parameters required for VerifyCodeParam.
1505   *
1506   * @typedef VerifyCodeParam
1507   * @syscap SystemCapability.BundleManager.BundleFramework.Core
1508   * @systemapi
1509   * @since 10
1510   * @deprecated since 11
1511   */
1512  export interface VerifyCodeParam {
1513    /**
1514     * Indicates the moduleName which hopes to be processed with code signature.
1515     *
1516     * @type { string }
1517     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1518     * @systemapi
1519     * @since 10
1520     * @deprecated since 11
1521     */
1522    moduleName: string;
1523
1524    /**
1525     * Indicates the path where the code signature file of the corresponding HAP is stored.
1526     *
1527     * @type { string }
1528     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1529     * @systemapi
1530     * @since 10
1531     * @deprecated since 11
1532     */
1533    signatureFilePath: string;
1534  }
1535
1536  /**
1537   * Provides parameters required for PGOParam.
1538   *
1539   * @typedef PGOParam
1540   * @syscap SystemCapability.BundleManager.BundleFramework.Core
1541   * @systemapi
1542   * @since 11
1543   */
1544  export interface PGOParam {
1545    /**
1546     * Indicates the moduleName that need to store profile-guided optimization(PGO) file.
1547     *
1548     * @type { string }
1549     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1550     * @systemapi
1551     * @since 11
1552     */
1553    moduleName: string;
1554
1555    /**
1556     * Indicates the path where the profile-guided optimization(PGO) file is stored.
1557     *
1558     * @type { string }
1559     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1560     * @systemapi
1561     * @since 11
1562     */
1563    pgoFilePath: string;
1564  }
1565
1566  /**
1567   * Provides parameters required for Parameters.
1568   *
1569   * @typedef Parameters
1570   * @syscap SystemCapability.BundleManager.BundleFramework.Core
1571   * @systemapi
1572   * @since 15
1573   */
1574  export interface Parameters {
1575    /**
1576     * Indicates key.
1577     *
1578     * @type { string }
1579     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1580     * @systemapi
1581     * @since 15
1582     */
1583    key: string;
1584
1585    /**
1586     * Indicates value.
1587     *
1588     * @type { string }
1589     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1590     * @systemapi
1591     * @since 15
1592     */
1593    value: string;
1594  }
1595
1596  /**
1597   * Provides parameters required for installing or uninstalling an application.
1598   *
1599   * @typedef InstallParam
1600   * @syscap SystemCapability.BundleManager.BundleFramework.Core
1601   * @systemapi
1602   * @since 9
1603   */
1604  export interface InstallParam {
1605    /**
1606     * Indicates the user id
1607     *
1608     * @type { ?number }
1609     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1610     * @systemapi
1611     * @since 9
1612     */
1613    userId?: number;
1614
1615    /**
1616     * Indicates the installation type. The value 0x00 means normal installation, 0x01 means overwrite installation, and 0x10 means installation-free.
1617     *
1618     * @type { ?number }
1619     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1620     * @systemapi
1621     * @since 9
1622     */
1623    installFlag?: number;
1624
1625    /**
1626     * Indicates whether the param has data
1627     *
1628     * @type { ?boolean }
1629     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1630     * @systemapi
1631     * @since 9
1632     */
1633    isKeepData?: boolean;
1634
1635    /**
1636     * Indicates the hash params
1637     *
1638     * @type { ?Array<HashParam> }
1639     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1640     * @systemapi
1641     * @since 9
1642     */
1643    hashParams?: Array<HashParam>;
1644
1645    /**
1646     * Indicates the deadline of the crowdtesting bundle
1647     *
1648     * @type { ?number }
1649     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1650     * @systemapi
1651     * @since 9
1652     */
1653    crowdtestDeadline?: number;
1654
1655    /**
1656     * Indicates the shared bundle dir paths.
1657     *
1658     * @type { ?Array<String> }
1659     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1660     * @systemapi
1661     * @since 10
1662     */
1663    sharedBundleDirPaths?: Array<String>;
1664
1665    /**
1666     * Indicates the distribution type specified during bundle installation.
1667     *
1668     * @type { ?string }
1669     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1670     * @systemapi
1671     * @since 10
1672     */
1673    specifiedDistributionType?: string;
1674
1675    /**
1676     * Indicates the additional information during bundle installation.
1677     *
1678     * @type { ?string }
1679     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1680     * @systemapi
1681     * @since 10
1682     */
1683    additionalInfo?: string;
1684
1685    /**
1686     * Indicates the verification code param.
1687     *
1688     * @type { ?Array<VerifyCodeParam> }
1689     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1690     * @systemapi
1691     * @since 10
1692     * @deprecated since 11
1693     */
1694    verifyCodeParams?: Array<VerifyCodeParam>;
1695
1696    /**
1697     * Indicates the profile-guided optimization(PGO) params.
1698     *
1699     * @type { ?Array<PGOParam> }
1700     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1701     * @systemapi
1702     * @since 11
1703     */
1704    pgoParams?: Array<PGOParam>;
1705
1706    /**
1707     * Indicates parameters.
1708     *
1709     * @type { ?Array<Parameters> }
1710     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1711     * @systemapi
1712     * @since 15
1713     */
1714    parameters?: Array<Parameters>;
1715  }
1716
1717  /**
1718   * Provides parameters required for uninstalling shared bundle.
1719   *
1720   * @typedef UninstallParam
1721   * @syscap SystemCapability.BundleManager.BundleFramework.Core
1722   * @systemapi
1723   * @since 10
1724   */
1725  export interface UninstallParam {
1726    /**
1727     * Indicates the shared bundle name
1728     *
1729     * @type { string }
1730     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1731     * @systemapi
1732     * @since 10
1733     */
1734    bundleName: string;
1735
1736    /**
1737     * Indicates the shared version code. If default, indicates that all version sharing bundles are uninstalled
1738     *
1739     * @type { ?number }
1740     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1741     * @systemapi
1742     * @since 10
1743     */
1744    versionCode?: number;
1745  }
1746
1747  /**
1748   * Provides parameters required for creating clone app.
1749   *
1750   * @typedef CreateAppCloneParam
1751   * @syscap SystemCapability.BundleManager.BundleFramework.Core
1752   * @systemapi
1753   * @since 12
1754   */
1755   export interface CreateAppCloneParam {
1756    /**
1757     * Indicates the user id
1758     *
1759     * @type { ?number }
1760     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1761     * @systemapi
1762     * @since 12
1763     */
1764    userId?: number;
1765    /**
1766     * Indicates the appIndex of MultiApp
1767     *
1768     * @type { ?number }
1769     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1770     * @systemapi
1771     * @since 12
1772     */
1773    appIndex?: number;
1774  }
1775
1776/**
1777  * Provides parameters required for destroy clone app.
1778  *
1779  * @typedef DestroyAppCloneParam
1780  * @syscap SystemCapability.BundleManager.BundleFramework.Core
1781  * @systemapi
1782  * @since 15
1783  */
1784  export interface DestroyAppCloneParam {
1785    /**
1786     * Indicates the user id
1787     *
1788     * @type { ?number }
1789     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1790     * @systemapi
1791     * @since 15
1792     */
1793    userId?: number;
1794    /**
1795     * Indicates parameters.
1796     *
1797     * @type { ?Array<Parameters> }
1798     * @syscap SystemCapability.BundleManager.BundleFramework.Core
1799     * @systemapi
1800     * @since 15
1801     */
1802    parameters?: Array<Parameters>;
1803  }
1804}
1805
1806export default installer;
1807