161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2023-2024 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
461847f8eSopenharmony_ci * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci * You may obtain a copy of the License at
661847f8eSopenharmony_ci *
761847f8eSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci *
961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci * limitations under the License.
1461847f8eSopenharmony_ci */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit MDMKit
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ciimport type { AsyncCallback } from './@ohos.base';
2261847f8eSopenharmony_ciimport type Want from './@ohos.app.ability.Want';
2361847f8eSopenharmony_ci
2461847f8eSopenharmony_ci/**
2561847f8eSopenharmony_ci * This module provides the capability to manage the bundles of the enterprise devices.
2661847f8eSopenharmony_ci *
2761847f8eSopenharmony_ci * @namespace bundleManager
2861847f8eSopenharmony_ci * @syscap SystemCapability.Customization.EnterpriseDeviceManager
2961847f8eSopenharmony_ci * @since 10
3061847f8eSopenharmony_ci */
3161847f8eSopenharmony_cideclare namespace bundleManager {
3261847f8eSopenharmony_ci  /**
3361847f8eSopenharmony_ci   * Provides parameters required for installing an application.
3461847f8eSopenharmony_ci   *
3561847f8eSopenharmony_ci   * @typedef InstallParam
3661847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
3761847f8eSopenharmony_ci   * @StageModelOnly
3861847f8eSopenharmony_ci   * @since 12
3961847f8eSopenharmony_ci   */
4061847f8eSopenharmony_ci  interface InstallParam {
4161847f8eSopenharmony_ci    /**
4261847f8eSopenharmony_ci     * Indicates the user id
4361847f8eSopenharmony_ci     *
4461847f8eSopenharmony_ci     * @type { ?number }
4561847f8eSopenharmony_ci     * @syscap SystemCapability.Customization.EnterpriseDeviceManager
4661847f8eSopenharmony_ci     * @StageModelOnly
4761847f8eSopenharmony_ci     * @since 12
4861847f8eSopenharmony_ci     */
4961847f8eSopenharmony_ci    userId?: number;
5061847f8eSopenharmony_ci
5161847f8eSopenharmony_ci    /**
5261847f8eSopenharmony_ci     * Indicates the install flag, which 0 for first install, 1 for cover install
5361847f8eSopenharmony_ci     *
5461847f8eSopenharmony_ci     * @type { ?number }
5561847f8eSopenharmony_ci     * @syscap SystemCapability.Customization.EnterpriseDeviceManager
5661847f8eSopenharmony_ci     * @StageModelOnly
5761847f8eSopenharmony_ci     * @since 12
5861847f8eSopenharmony_ci     */
5961847f8eSopenharmony_ci    installFlag?: number;
6061847f8eSopenharmony_ci  }
6161847f8eSopenharmony_ci
6261847f8eSopenharmony_ci  /**
6361847f8eSopenharmony_ci   * Add appid list of bundles that can be installed in the device.
6461847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
6561847f8eSopenharmony_ci   *
6661847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
6761847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
6861847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
6961847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can be installed. The size of the array after
7061847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
7161847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of addAllowedInstallBundles.
7261847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
7361847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
7461847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
7561847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
7661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
7761847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
7861847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
7961847f8eSopenharmony_ci   * @systemapi
8061847f8eSopenharmony_ci   * @StageModelOnly
8161847f8eSopenharmony_ci   * @since 10
8261847f8eSopenharmony_ci   */
8361847f8eSopenharmony_ci  function addAllowedInstallBundles(admin: Want, appIds: Array<string>, callback: AsyncCallback<void>): void;
8461847f8eSopenharmony_ci
8561847f8eSopenharmony_ci  /**
8661847f8eSopenharmony_ci   * Add appid list of bundles that can be installed in the device.
8761847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
8861847f8eSopenharmony_ci   *
8961847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
9061847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
9161847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
9261847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can be installed. The size of the array after
9361847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
9461847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID.
9561847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of addAllowedInstallBundles.
9661847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
9761847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
9861847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
9961847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
10061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
10161847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
10261847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
10361847f8eSopenharmony_ci   * @systemapi
10461847f8eSopenharmony_ci   * @StageModelOnly
10561847f8eSopenharmony_ci   * @since 10
10661847f8eSopenharmony_ci   */
10761847f8eSopenharmony_ci  function addAllowedInstallBundles(admin: Want, appIds: Array<string>, userId: number, callback: AsyncCallback<void>): void;
10861847f8eSopenharmony_ci
10961847f8eSopenharmony_ci  /**
11061847f8eSopenharmony_ci   * Add appid list of bundles that can be installed in the device.
11161847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
11261847f8eSopenharmony_ci   *
11361847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
11461847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
11561847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
11661847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can be installed. The size of the array after
11761847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
11861847f8eSopenharmony_ci   * @param { number } [userId] - userId indicates the user ID or do not pass user ID.
11961847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the addAllowedInstallBundles.
12061847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
12161847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
12261847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
12361847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
12461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
12561847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
12661847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
12761847f8eSopenharmony_ci   * @systemapi
12861847f8eSopenharmony_ci   * @StageModelOnly
12961847f8eSopenharmony_ci   * @since 10
13061847f8eSopenharmony_ci   */
13161847f8eSopenharmony_ci  function addAllowedInstallBundles(admin: Want, appIds: Array<string>, userId?: number): Promise<void>;
13261847f8eSopenharmony_ci
13361847f8eSopenharmony_ci  /**
13461847f8eSopenharmony_ci   * Add appid list of bundles that can be installed in the device.
13561847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
13661847f8eSopenharmony_ci   *
13761847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
13861847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
13961847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
14061847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can be installed. The size of the array after
14161847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
14261847f8eSopenharmony_ci   * @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
14361847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
14461847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
14561847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
14661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
14761847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
14861847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
14961847f8eSopenharmony_ci   * @StageModelOnly
15061847f8eSopenharmony_ci   * @since 12
15161847f8eSopenharmony_ci   */
15261847f8eSopenharmony_ci  function addAllowedInstallBundlesSync(admin: Want, appIds: Array<string>, accountId?: number): void;
15361847f8eSopenharmony_ci
15461847f8eSopenharmony_ci  /**
15561847f8eSopenharmony_ci   * Remove appid list of bundles that can be installed in the device.
15661847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
15761847f8eSopenharmony_ci   *
15861847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
15961847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
16061847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
16161847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can be installed. The size of the array after
16261847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
16361847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of removeAllowedInstallBundles.
16461847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
16561847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
16661847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
16761847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
16861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
16961847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
17061847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
17161847f8eSopenharmony_ci   * @systemapi
17261847f8eSopenharmony_ci   * @StageModelOnly
17361847f8eSopenharmony_ci   * @since 10
17461847f8eSopenharmony_ci   */
17561847f8eSopenharmony_ci  function removeAllowedInstallBundles(admin: Want, appIds: Array<string>, callback: AsyncCallback<void>): void;
17661847f8eSopenharmony_ci
17761847f8eSopenharmony_ci  /**
17861847f8eSopenharmony_ci   * Remove appid list of bundles that can be installed in the device.
17961847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
18061847f8eSopenharmony_ci   *
18161847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
18261847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
18361847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
18461847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can be installed. The size of the array after
18561847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
18661847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID.
18761847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of removeAllowedInstallBundles.
18861847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
18961847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
19061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
19161847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
19261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
19361847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
19461847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
19561847f8eSopenharmony_ci   * @systemapi
19661847f8eSopenharmony_ci   * @StageModelOnly
19761847f8eSopenharmony_ci   * @since 10
19861847f8eSopenharmony_ci   */
19961847f8eSopenharmony_ci  function removeAllowedInstallBundles(admin: Want, appIds: Array<string>, userId: number, callback: AsyncCallback<void>): void;
20061847f8eSopenharmony_ci
20161847f8eSopenharmony_ci  /**
20261847f8eSopenharmony_ci   * Remove appid list of bundles that can be installed in the device.
20361847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
20461847f8eSopenharmony_ci   *
20561847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
20661847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
20761847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
20861847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can be installed. The size of the array after
20961847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
21061847f8eSopenharmony_ci   * @param { number } [userId] - userId indicates the user ID or do not pass user ID.
21161847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the removeAllowedInstallBundles.
21261847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
21361847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
21461847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
21561847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
21661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
21761847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
21861847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
21961847f8eSopenharmony_ci   * @systemapi
22061847f8eSopenharmony_ci   * @StageModelOnly
22161847f8eSopenharmony_ci   * @since 10
22261847f8eSopenharmony_ci   */
22361847f8eSopenharmony_ci  function removeAllowedInstallBundles(admin: Want, appIds: Array<string>, userId?: number): Promise<void>;
22461847f8eSopenharmony_ci
22561847f8eSopenharmony_ci  /**
22661847f8eSopenharmony_ci   * Remove appid list of bundles that can be installed in the device.
22761847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
22861847f8eSopenharmony_ci   *
22961847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
23061847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
23161847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
23261847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can be installed. The size of the array after
23361847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
23461847f8eSopenharmony_ci   * @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
23561847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
23661847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
23761847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
23861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
23961847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
24061847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
24161847f8eSopenharmony_ci   * @StageModelOnly
24261847f8eSopenharmony_ci   * @since 12
24361847f8eSopenharmony_ci   */
24461847f8eSopenharmony_ci  function removeAllowedInstallBundlesSync(admin: Want, appIds: Array<string>, accountId?: number): void;
24561847f8eSopenharmony_ci
24661847f8eSopenharmony_ci  /**
24761847f8eSopenharmony_ci   * Get the appid list of bundles that can be installed in the device.
24861847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
24961847f8eSopenharmony_ci   *
25061847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
25161847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
25261847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
25361847f8eSopenharmony_ci   * @param { AsyncCallback<Array<string>> } callback - the callback that contains the appid list.
25461847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
25561847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
25661847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
25761847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
25861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
25961847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
26061847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
26161847f8eSopenharmony_ci   * @systemapi
26261847f8eSopenharmony_ci   * @StageModelOnly
26361847f8eSopenharmony_ci   * @since 10
26461847f8eSopenharmony_ci   */
26561847f8eSopenharmony_ci  function getAllowedInstallBundles(admin: Want, callback: AsyncCallback<Array<string>>): void;
26661847f8eSopenharmony_ci
26761847f8eSopenharmony_ci  /**
26861847f8eSopenharmony_ci   * Get the appid list of bundles that can be installed in the device.
26961847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
27061847f8eSopenharmony_ci   *
27161847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
27261847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
27361847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
27461847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID.
27561847f8eSopenharmony_ci   * @param { AsyncCallback<Array<string>> } callback - the callback that contains the appid list.
27661847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
27761847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
27861847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
27961847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
28061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
28161847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
28261847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
28361847f8eSopenharmony_ci   * @systemapi
28461847f8eSopenharmony_ci   * @StageModelOnly
28561847f8eSopenharmony_ci   * @since 10
28661847f8eSopenharmony_ci   */
28761847f8eSopenharmony_ci  function getAllowedInstallBundles(admin: Want, userId: number, callback: AsyncCallback<Array<string>>): void;
28861847f8eSopenharmony_ci
28961847f8eSopenharmony_ci  /**
29061847f8eSopenharmony_ci   * Get appid list of bundles that can be installed in the device.
29161847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
29261847f8eSopenharmony_ci   *
29361847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
29461847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
29561847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
29661847f8eSopenharmony_ci   * @param { number } [userId] - userId indicates the user ID or do not pass user ID.
29761847f8eSopenharmony_ci   * @returns { Promise<Array<string>> } the promise that contains the appid list.
29861847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
29961847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
30061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
30161847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
30261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
30361847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
30461847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
30561847f8eSopenharmony_ci   * @systemapi
30661847f8eSopenharmony_ci   * @StageModelOnly
30761847f8eSopenharmony_ci   * @since 10
30861847f8eSopenharmony_ci   */
30961847f8eSopenharmony_ci  function getAllowedInstallBundles(admin: Want, userId?: number): Promise<Array<string>>;
31061847f8eSopenharmony_ci
31161847f8eSopenharmony_ci  /**
31261847f8eSopenharmony_ci   * Get appid list of bundles that can be installed in the device.
31361847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
31461847f8eSopenharmony_ci   *
31561847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
31661847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
31761847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
31861847f8eSopenharmony_ci   * @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
31961847f8eSopenharmony_ci   * @returns { Array<string> } ids of the bundle that can be installed.
32061847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
32161847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
32261847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
32361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
32461847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
32561847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
32661847f8eSopenharmony_ci   * @StageModelOnly
32761847f8eSopenharmony_ci   * @since 12
32861847f8eSopenharmony_ci   */
32961847f8eSopenharmony_ci  function getAllowedInstallBundlesSync(admin: Want, accountId?: number): Array<string>;
33061847f8eSopenharmony_ci
33161847f8eSopenharmony_ci  /**
33261847f8eSopenharmony_ci   * Add appid list of bundles that can not be installed in the device.
33361847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
33461847f8eSopenharmony_ci   *
33561847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
33661847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
33761847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
33861847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can not be installed. The size of the array after
33961847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
34061847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of addDisallowedInstallBundles.
34161847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
34261847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
34361847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
34461847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
34561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
34661847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
34761847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
34861847f8eSopenharmony_ci   * @systemapi
34961847f8eSopenharmony_ci   * @StageModelOnly
35061847f8eSopenharmony_ci   * @since 10
35161847f8eSopenharmony_ci   */
35261847f8eSopenharmony_ci  function addDisallowedInstallBundles(admin: Want, appIds: Array<string>, callback: AsyncCallback<void>): void;
35361847f8eSopenharmony_ci
35461847f8eSopenharmony_ci  /**
35561847f8eSopenharmony_ci   * Add appid list of bundles that can not be installed in the device.
35661847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
35761847f8eSopenharmony_ci   *
35861847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
35961847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
36061847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
36161847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can not be installed. The size of the array after
36261847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
36361847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID.
36461847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of addDisallowedInstallBundles.
36561847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
36661847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
36761847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
36861847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
36961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
37061847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
37161847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
37261847f8eSopenharmony_ci   * @systemapi
37361847f8eSopenharmony_ci   * @StageModelOnly
37461847f8eSopenharmony_ci   * @since 10
37561847f8eSopenharmony_ci   */
37661847f8eSopenharmony_ci  function addDisallowedInstallBundles(admin: Want, appIds: Array<string>, userId: number, callback: AsyncCallback<void>): void;
37761847f8eSopenharmony_ci
37861847f8eSopenharmony_ci  /**
37961847f8eSopenharmony_ci   * Add appid list of bundles that can not be installed in the device.
38061847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
38161847f8eSopenharmony_ci   *
38261847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
38361847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
38461847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
38561847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can not be installed. The size of the array after
38661847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
38761847f8eSopenharmony_ci   * @param { number } [userId] - userId indicates the user ID or do not pass user ID.
38861847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the addDisallowedInstallBundles.
38961847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
39061847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
39161847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
39261847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
39361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
39461847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
39561847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
39661847f8eSopenharmony_ci   * @systemapi
39761847f8eSopenharmony_ci   * @StageModelOnly
39861847f8eSopenharmony_ci   * @since 10
39961847f8eSopenharmony_ci   */
40061847f8eSopenharmony_ci  function addDisallowedInstallBundles(admin: Want, appIds: Array<string>, userId?: number): Promise<void>;
40161847f8eSopenharmony_ci
40261847f8eSopenharmony_ci  /**
40361847f8eSopenharmony_ci   * Add appid list of bundles that can not be installed in the device.
40461847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
40561847f8eSopenharmony_ci   *
40661847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
40761847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
40861847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
40961847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can not be installed. The size of the array after
41061847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
41161847f8eSopenharmony_ci   * @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
41261847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
41361847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
41461847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
41561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
41661847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
41761847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
41861847f8eSopenharmony_ci   * @StageModelOnly
41961847f8eSopenharmony_ci   * @since 12
42061847f8eSopenharmony_ci   */
42161847f8eSopenharmony_ci  function addDisallowedInstallBundlesSync(admin: Want, appIds: Array<string>, accountId?: number): void;
42261847f8eSopenharmony_ci
42361847f8eSopenharmony_ci  /**
42461847f8eSopenharmony_ci   * Remove appid list of bundles that can not be installed in the device.
42561847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
42661847f8eSopenharmony_ci   *
42761847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
42861847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
42961847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
43061847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can not be installed. The size of the array after
43161847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
43261847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of removeDisallowedInstallBundles.
43361847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
43461847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
43561847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
43661847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
43761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
43861847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
43961847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
44061847f8eSopenharmony_ci   * @systemapi
44161847f8eSopenharmony_ci   * @StageModelOnly
44261847f8eSopenharmony_ci   * @since 10
44361847f8eSopenharmony_ci   */
44461847f8eSopenharmony_ci  function removeDisallowedInstallBundles(admin: Want, appIds: Array<string>, callback: AsyncCallback<void>): void;
44561847f8eSopenharmony_ci
44661847f8eSopenharmony_ci  /**
44761847f8eSopenharmony_ci   * Remove appid list of bundles that can not be installed in the device.
44861847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
44961847f8eSopenharmony_ci   *
45061847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
45161847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
45261847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
45361847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can not be installed. The size of the array after
45461847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
45561847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID.
45661847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of removeDisallowedInstallBundles.
45761847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
45861847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
45961847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
46061847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
46161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
46261847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
46361847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
46461847f8eSopenharmony_ci   * @systemapi
46561847f8eSopenharmony_ci   * @StageModelOnly
46661847f8eSopenharmony_ci   * @since 10
46761847f8eSopenharmony_ci   */
46861847f8eSopenharmony_ci  function removeDisallowedInstallBundles(admin: Want, appIds: Array<string>, userId: number, callback: AsyncCallback<void>): void;
46961847f8eSopenharmony_ci
47061847f8eSopenharmony_ci  /**
47161847f8eSopenharmony_ci   * Remove appid list of bundles that can not be installed in the device.
47261847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
47361847f8eSopenharmony_ci   *
47461847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
47561847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
47661847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
47761847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can not be installed. The size of the array after
47861847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
47961847f8eSopenharmony_ci   * @param { number } [userId] - userId indicates the user ID or do not pass user ID.
48061847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the removeDisallowedInstallBundles.
48161847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
48261847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
48361847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
48461847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
48561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
48661847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
48761847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
48861847f8eSopenharmony_ci   * @systemapi
48961847f8eSopenharmony_ci   * @StageModelOnly
49061847f8eSopenharmony_ci   * @since 10
49161847f8eSopenharmony_ci   */
49261847f8eSopenharmony_ci  function removeDisallowedInstallBundles(admin: Want, appIds: Array<string>, userId?: number): Promise<void>;
49361847f8eSopenharmony_ci
49461847f8eSopenharmony_ci  /**
49561847f8eSopenharmony_ci   * Remove appid list of bundles that can not be installed in the device.
49661847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
49761847f8eSopenharmony_ci   *
49861847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
49961847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
50061847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
50161847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can not be installed. The size of the array after
50261847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
50361847f8eSopenharmony_ci   * @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
50461847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
50561847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
50661847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
50761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
50861847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
50961847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
51061847f8eSopenharmony_ci   * @StageModelOnly
51161847f8eSopenharmony_ci   * @since 12
51261847f8eSopenharmony_ci   */
51361847f8eSopenharmony_ci  function removeDisallowedInstallBundlesSync(admin: Want, appIds: Array<string>, accountId?: number): void;
51461847f8eSopenharmony_ci
51561847f8eSopenharmony_ci  /**
51661847f8eSopenharmony_ci   * Get the appid list of bundles that can not be installed in the device.
51761847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
51861847f8eSopenharmony_ci   *
51961847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
52061847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
52161847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
52261847f8eSopenharmony_ci   * @param { AsyncCallback<Array<string>> } callback - the callback that contains the appid list.
52361847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
52461847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
52561847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
52661847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
52761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
52861847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
52961847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
53061847f8eSopenharmony_ci   * @systemapi
53161847f8eSopenharmony_ci   * @StageModelOnly
53261847f8eSopenharmony_ci   * @since 10
53361847f8eSopenharmony_ci   */
53461847f8eSopenharmony_ci  function getDisallowedInstallBundles(admin: Want, callback: AsyncCallback<Array<string>>): void;
53561847f8eSopenharmony_ci
53661847f8eSopenharmony_ci  /**
53761847f8eSopenharmony_ci   * Get the appid list of bundles that can not be installed in the device.
53861847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
53961847f8eSopenharmony_ci   *
54061847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
54161847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
54261847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
54361847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID.
54461847f8eSopenharmony_ci   * @param { AsyncCallback<Array<string>> } callback - the callback that contains the appid list.
54561847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
54661847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
54761847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
54861847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
54961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
55061847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
55161847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
55261847f8eSopenharmony_ci   * @systemapi
55361847f8eSopenharmony_ci   * @StageModelOnly
55461847f8eSopenharmony_ci   * @since 10
55561847f8eSopenharmony_ci   */
55661847f8eSopenharmony_ci  function getDisallowedInstallBundles(admin: Want, userId: number, callback: AsyncCallback<Array<string>>): void;
55761847f8eSopenharmony_ci
55861847f8eSopenharmony_ci  /**
55961847f8eSopenharmony_ci   * Get appid list of bundles that can not be installed in the device.
56061847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
56161847f8eSopenharmony_ci   *
56261847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
56361847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
56461847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
56561847f8eSopenharmony_ci   * @param { number } [userId] - userId indicates the user ID or do not pass user ID.
56661847f8eSopenharmony_ci   * @returns { Promise<Array<string>> } the promise that contains the appid list.
56761847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
56861847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
56961847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
57061847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
57161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
57261847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
57361847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
57461847f8eSopenharmony_ci   * @systemapi
57561847f8eSopenharmony_ci   * @StageModelOnly
57661847f8eSopenharmony_ci   * @since 10
57761847f8eSopenharmony_ci   */
57861847f8eSopenharmony_ci  function getDisallowedInstallBundles(admin: Want, userId?: number): Promise<Array<string>>;
57961847f8eSopenharmony_ci
58061847f8eSopenharmony_ci  /**
58161847f8eSopenharmony_ci   * Get appid list of bundles that can not be installed in the device.
58261847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
58361847f8eSopenharmony_ci   *
58461847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
58561847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
58661847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
58761847f8eSopenharmony_ci   * @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
58861847f8eSopenharmony_ci   * @returns { Array<string> } ids of the bundle that can not be installed.
58961847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
59061847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
59161847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
59261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
59361847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
59461847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
59561847f8eSopenharmony_ci   * @StageModelOnly
59661847f8eSopenharmony_ci   * @since 12
59761847f8eSopenharmony_ci   */
59861847f8eSopenharmony_ci  function getDisallowedInstallBundlesSync(admin: Want, accountId?: number): Array<string>;
59961847f8eSopenharmony_ci
60061847f8eSopenharmony_ci  /**
60161847f8eSopenharmony_ci   * Add appid list of bundles that can not be uninstalled in the device.
60261847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
60361847f8eSopenharmony_ci   *
60461847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
60561847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
60661847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
60761847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can not be uninstalled. The size of the array after
60861847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
60961847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of addDisallowedUninstallBundles.
61061847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
61161847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
61261847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
61361847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
61461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
61561847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
61661847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
61761847f8eSopenharmony_ci   * @systemapi
61861847f8eSopenharmony_ci   * @StageModelOnly
61961847f8eSopenharmony_ci   * @since 10
62061847f8eSopenharmony_ci   */
62161847f8eSopenharmony_ci  function addDisallowedUninstallBundles(admin: Want, appIds: Array<string>, callback: AsyncCallback<void>): void;
62261847f8eSopenharmony_ci
62361847f8eSopenharmony_ci  /**
62461847f8eSopenharmony_ci   * Add appid list of bundles that can not be uninstalled in the device.
62561847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
62661847f8eSopenharmony_ci   *
62761847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
62861847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
62961847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
63061847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can not be uninstalled. The size of the array after
63161847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
63261847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID.
63361847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of addDisallowedUninstallBundles.
63461847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
63561847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
63661847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
63761847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
63861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
63961847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
64061847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
64161847f8eSopenharmony_ci   * @systemapi
64261847f8eSopenharmony_ci   * @StageModelOnly
64361847f8eSopenharmony_ci   * @since 10
64461847f8eSopenharmony_ci   */
64561847f8eSopenharmony_ci  function addDisallowedUninstallBundles(admin: Want, appIds: Array<string>, userId: number, callback: AsyncCallback<void>): void;
64661847f8eSopenharmony_ci
64761847f8eSopenharmony_ci  /**
64861847f8eSopenharmony_ci   * Add appid list of bundles that can not be uninstalled in the device.
64961847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
65061847f8eSopenharmony_ci   *
65161847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
65261847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
65361847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
65461847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can not be uninstalled. The size of the array after
65561847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
65661847f8eSopenharmony_ci   * @param { number } [userId] - userId indicates the user ID or do not pass user ID.
65761847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the addDisallowedUninstallBundles.
65861847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
65961847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
66061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
66161847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
66261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
66361847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
66461847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
66561847f8eSopenharmony_ci   * @systemapi
66661847f8eSopenharmony_ci   * @StageModelOnly
66761847f8eSopenharmony_ci   * @since 10
66861847f8eSopenharmony_ci   */
66961847f8eSopenharmony_ci  function addDisallowedUninstallBundles(admin: Want, appIds: Array<string>, userId?: number): Promise<void>;
67061847f8eSopenharmony_ci
67161847f8eSopenharmony_ci  /**
67261847f8eSopenharmony_ci   * Add appid list of bundles that can not be uninstalled in the device.
67361847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
67461847f8eSopenharmony_ci   *
67561847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
67661847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
67761847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
67861847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can not be uninstalled. The size of the array after
67961847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
68061847f8eSopenharmony_ci   * @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
68161847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
68261847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
68361847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
68461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
68561847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
68661847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
68761847f8eSopenharmony_ci   * @StageModelOnly
68861847f8eSopenharmony_ci   * @since 12
68961847f8eSopenharmony_ci   */
69061847f8eSopenharmony_ci  function addDisallowedUninstallBundlesSync(admin: Want, appIds: Array<string>, accountId?: number): void;
69161847f8eSopenharmony_ci
69261847f8eSopenharmony_ci  /**
69361847f8eSopenharmony_ci   * Remove appid list of bundles that can not be uninstalled in the device.
69461847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
69561847f8eSopenharmony_ci   *
69661847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
69761847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
69861847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
69961847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can not be uninstalled. The size of the array after
70061847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
70161847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of removeDisallowedUninstallBundles.
70261847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
70361847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
70461847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
70561847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
70661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
70761847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
70861847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
70961847f8eSopenharmony_ci   * @systemapi
71061847f8eSopenharmony_ci   * @StageModelOnly
71161847f8eSopenharmony_ci   * @since 10
71261847f8eSopenharmony_ci   */
71361847f8eSopenharmony_ci  function removeDisallowedUninstallBundles(admin: Want, appIds: Array<string>, callback: AsyncCallback<void>): void;
71461847f8eSopenharmony_ci
71561847f8eSopenharmony_ci  /**
71661847f8eSopenharmony_ci   * Remove appid list of bundles that can not be uninstalled in the device.
71761847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
71861847f8eSopenharmony_ci   *
71961847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
72061847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
72161847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
72261847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can not be uninstalled. The size of the array after
72361847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
72461847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID.
72561847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of removeDisallowedUninstallBundles.
72661847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
72761847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
72861847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
72961847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
73061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
73161847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
73261847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
73361847f8eSopenharmony_ci   * @systemapi
73461847f8eSopenharmony_ci   * @StageModelOnly
73561847f8eSopenharmony_ci   * @since 10
73661847f8eSopenharmony_ci   */
73761847f8eSopenharmony_ci  function removeDisallowedUninstallBundles(admin: Want, appIds: Array<string>, userId: number, callback: AsyncCallback<void>): void;
73861847f8eSopenharmony_ci
73961847f8eSopenharmony_ci  /**
74061847f8eSopenharmony_ci   * Remove appid list of bundles that can not be uninstalled in the device.
74161847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
74261847f8eSopenharmony_ci   *
74361847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
74461847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
74561847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
74661847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can not be uninstalled. The size of the array after
74761847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
74861847f8eSopenharmony_ci   * @param { number } [userId] - userId indicates the user ID or do not pass user ID.
74961847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the removeDisallowedUninstallBundles.
75061847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
75161847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
75261847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
75361847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
75461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
75561847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
75661847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
75761847f8eSopenharmony_ci   * @systemapi
75861847f8eSopenharmony_ci   * @StageModelOnly
75961847f8eSopenharmony_ci   * @since 10
76061847f8eSopenharmony_ci   */
76161847f8eSopenharmony_ci  function removeDisallowedUninstallBundles(admin: Want, appIds: Array<string>, userId?: number): Promise<void>;
76261847f8eSopenharmony_ci
76361847f8eSopenharmony_ci  /**
76461847f8eSopenharmony_ci   * Remove appid list of bundles that can not be uninstalled in the device.
76561847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
76661847f8eSopenharmony_ci   *
76761847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
76861847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
76961847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
77061847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle that can not be uninstalled. The size of the array after
77161847f8eSopenharmony_ci   *                                   setting cannot be greater than 200.
77261847f8eSopenharmony_ci   * @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
77361847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
77461847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
77561847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
77661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
77761847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
77861847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
77961847f8eSopenharmony_ci   * @StageModelOnly
78061847f8eSopenharmony_ci   * @since 12
78161847f8eSopenharmony_ci   */
78261847f8eSopenharmony_ci  function removeDisallowedUninstallBundlesSync(admin: Want, appIds: Array<string>, accountId?: number): void;
78361847f8eSopenharmony_ci
78461847f8eSopenharmony_ci  /**
78561847f8eSopenharmony_ci   * Get the appid list of bundles that can not be uninstalled in the device.
78661847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
78761847f8eSopenharmony_ci   *
78861847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
78961847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
79061847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
79161847f8eSopenharmony_ci   * @param { AsyncCallback<Array<string>> } callback - the callback that contains the appid list.
79261847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
79361847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
79461847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
79561847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
79661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
79761847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
79861847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
79961847f8eSopenharmony_ci   * @systemapi
80061847f8eSopenharmony_ci   * @StageModelOnly
80161847f8eSopenharmony_ci   * @since 10
80261847f8eSopenharmony_ci   */
80361847f8eSopenharmony_ci  function getDisallowedUninstallBundles(admin: Want, callback: AsyncCallback<Array<string>>): void;
80461847f8eSopenharmony_ci
80561847f8eSopenharmony_ci  /**
80661847f8eSopenharmony_ci   * Get the appid list of bundles that can not be uninstalled in the device.
80761847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
80861847f8eSopenharmony_ci   *
80961847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
81061847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
81161847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
81261847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID.
81361847f8eSopenharmony_ci   * @param { AsyncCallback<Array<string>> } callback - the callback that contains the appid list.
81461847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
81561847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
81661847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
81761847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
81861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
81961847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
82061847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
82161847f8eSopenharmony_ci   * @systemapi
82261847f8eSopenharmony_ci   * @StageModelOnly
82361847f8eSopenharmony_ci   * @since 10
82461847f8eSopenharmony_ci   */
82561847f8eSopenharmony_ci  function getDisallowedUninstallBundles(admin: Want, userId: number, callback: AsyncCallback<Array<string>>): void;
82661847f8eSopenharmony_ci
82761847f8eSopenharmony_ci  /**
82861847f8eSopenharmony_ci   * Get appid list of bundles that can not be uninstalled in the device.
82961847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
83061847f8eSopenharmony_ci   *
83161847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
83261847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
83361847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
83461847f8eSopenharmony_ci   * @param { number } [userId] - userId indicates the user ID or do not pass user ID.
83561847f8eSopenharmony_ci   * @returns { Promise<Array<string>> } the promise that contains the appid list.
83661847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
83761847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
83861847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
83961847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
84061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
84161847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
84261847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
84361847f8eSopenharmony_ci   * @systemapi
84461847f8eSopenharmony_ci   * @StageModelOnly
84561847f8eSopenharmony_ci   * @since 10
84661847f8eSopenharmony_ci   */
84761847f8eSopenharmony_ci  function getDisallowedUninstallBundles(admin: Want, userId?: number): Promise<Array<string>>;
84861847f8eSopenharmony_ci
84961847f8eSopenharmony_ci  /**
85061847f8eSopenharmony_ci   * Get appid list of bundles that can not be uninstalled in the device.
85161847f8eSopenharmony_ci   * Only apps with the ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY permission can call this method.
85261847f8eSopenharmony_ci   *
85361847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
85461847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
85561847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
85661847f8eSopenharmony_ci   * @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
85761847f8eSopenharmony_ci   * @returns { Array<string> } ids of the bundle that can not be uninstalled.
85861847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
85961847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
86061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
86161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
86261847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
86361847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
86461847f8eSopenharmony_ci   * @StageModelOnly
86561847f8eSopenharmony_ci   * @since 12
86661847f8eSopenharmony_ci   */
86761847f8eSopenharmony_ci  function getDisallowedUninstallBundlesSync(admin: Want, accountId?: number): Array<string>;
86861847f8eSopenharmony_ci
86961847f8eSopenharmony_ci  /**
87061847f8eSopenharmony_ci   * Uninstall an application.
87161847f8eSopenharmony_ci   *
87261847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_INSTALL_BUNDLE
87361847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
87461847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
87561847f8eSopenharmony_ci   * @param { string } bundleName - indicates the bundle name of the application to be uninstalled.
87661847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of uninstalling application result.
87761847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
87861847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
87961847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
88061847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
88161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
88261847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
88361847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
88461847f8eSopenharmony_ci   * @systemapi
88561847f8eSopenharmony_ci   * @StageModelOnly
88661847f8eSopenharmony_ci   * @since 10
88761847f8eSopenharmony_ci   */
88861847f8eSopenharmony_ci  function uninstall(admin: Want, bundleName: string, callback: AsyncCallback<void>): void;
88961847f8eSopenharmony_ci
89061847f8eSopenharmony_ci  /**
89161847f8eSopenharmony_ci   * Uninstall an application.
89261847f8eSopenharmony_ci   *
89361847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_INSTALL_BUNDLE
89461847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
89561847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
89661847f8eSopenharmony_ci   * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled.
89761847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID or do not pass user ID.
89861847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of uninstalling application result.
89961847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
90061847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
90161847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
90261847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
90361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
90461847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
90561847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
90661847f8eSopenharmony_ci   * @systemapi
90761847f8eSopenharmony_ci   * @StageModelOnly
90861847f8eSopenharmony_ci   * @since 10
90961847f8eSopenharmony_ci   */
91061847f8eSopenharmony_ci  function uninstall(admin: Want, bundleName: string, userId: number, callback: AsyncCallback<void>): void;
91161847f8eSopenharmony_ci
91261847f8eSopenharmony_ci  /**
91361847f8eSopenharmony_ci   * Uninstall an application.
91461847f8eSopenharmony_ci   *
91561847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_INSTALL_BUNDLE
91661847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
91761847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
91861847f8eSopenharmony_ci   * @param { string } bundleName - Indicates the bundle name of the application to be uninstalled.
91961847f8eSopenharmony_ci   * @param { boolean } isKeepData - isKeepData indicates whether keep the data.
92061847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of uninstalling application result.
92161847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
92261847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
92361847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
92461847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
92561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
92661847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
92761847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
92861847f8eSopenharmony_ci   * @systemapi
92961847f8eSopenharmony_ci   * @StageModelOnly
93061847f8eSopenharmony_ci   * @since 10
93161847f8eSopenharmony_ci   */
93261847f8eSopenharmony_ci  function uninstall(admin: Want, bundleName: string, isKeepData: boolean, callback: AsyncCallback<void>): void;
93361847f8eSopenharmony_ci
93461847f8eSopenharmony_ci  /**
93561847f8eSopenharmony_ci   * Uninstall an application.
93661847f8eSopenharmony_ci   *
93761847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_INSTALL_BUNDLE
93861847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
93961847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
94061847f8eSopenharmony_ci   * @param { string } bundleName - indicates the bundle name of the application to be uninstalled.
94161847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID or do not pass user ID.
94261847f8eSopenharmony_ci   * @param { boolean } isKeepData - isKeepData indicates whether keep the data.
94361847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of uninstalling application result.
94461847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
94561847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
94661847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
94761847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
94861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
94961847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
95061847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
95161847f8eSopenharmony_ci   * @systemapi
95261847f8eSopenharmony_ci   * @StageModelOnly
95361847f8eSopenharmony_ci   * @since 10
95461847f8eSopenharmony_ci   */
95561847f8eSopenharmony_ci  function uninstall(admin: Want, bundleName: string, userId: number, isKeepData: boolean, callback: AsyncCallback<void>): void;
95661847f8eSopenharmony_ci
95761847f8eSopenharmony_ci  /**
95861847f8eSopenharmony_ci   * Uninstall an application.
95961847f8eSopenharmony_ci   *
96061847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_INSTALL_BUNDLE
96161847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
96261847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
96361847f8eSopenharmony_ci   * @param { string } bundleName - indicates the bundle name of the application to be uninstalled.
96461847f8eSopenharmony_ci   * @param { number } [userId] - userId indicates the user ID or do not pass user ID.
96561847f8eSopenharmony_ci   * @param { boolean } [isKeepData] - isKeepData indicates whether keep the data.
96661847f8eSopenharmony_ci   * @returns { Promise<void> } the promise of uninstalling application result.
96761847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
96861847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
96961847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
97061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
97161847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
97261847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
97361847f8eSopenharmony_ci   * @StageModelOnly
97461847f8eSopenharmony_ci   * @since 12
97561847f8eSopenharmony_ci   */
97661847f8eSopenharmony_ci  function uninstall(admin: Want, bundleName: string, userId?: number, isKeepData?: boolean): Promise<void>;
97761847f8eSopenharmony_ci
97861847f8eSopenharmony_ci  /**
97961847f8eSopenharmony_ci   * Install an application.
98061847f8eSopenharmony_ci   *
98161847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_INSTALL_BUNDLE
98261847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
98361847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
98461847f8eSopenharmony_ci   * @param { Array<string> } hapFilePaths - indicates the path of the application to be installed.
98561847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of installing application result.
98661847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
98761847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
98861847f8eSopenharmony_ci   * @throws { BusinessError } 9201002 - Failed to install the application.
98961847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
99061847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
99161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
99261847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
99361847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
99461847f8eSopenharmony_ci   * @systemapi
99561847f8eSopenharmony_ci   * @StageModelOnly
99661847f8eSopenharmony_ci   * @since 10
99761847f8eSopenharmony_ci   */
99861847f8eSopenharmony_ci  function install(admin: Want, hapFilePaths: Array<string>, callback: AsyncCallback<void>): void;
99961847f8eSopenharmony_ci
100061847f8eSopenharmony_ci  /**
100161847f8eSopenharmony_ci   * Install an application.
100261847f8eSopenharmony_ci   *
100361847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_INSTALL_BUNDLE
100461847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
100561847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
100661847f8eSopenharmony_ci   * @param { Array<string> } hapFilePaths - indicates the path of the application to be installed.
100761847f8eSopenharmony_ci   * @param { InstallParam } installParam - installParam indicates the installation parameters.
100861847f8eSopenharmony_ci   *                                        It may contain two fields: userId and installFlag.
100961847f8eSopenharmony_ci   *                                        The flag can only be one of correct flags.
101061847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of installing application result.
101161847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
101261847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
101361847f8eSopenharmony_ci   * @throws { BusinessError } 9201002 - Failed to install the application.
101461847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
101561847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
101661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
101761847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
101861847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
101961847f8eSopenharmony_ci   * @systemapi
102061847f8eSopenharmony_ci   * @StageModelOnly
102161847f8eSopenharmony_ci   * @since 10
102261847f8eSopenharmony_ci   */
102361847f8eSopenharmony_ci  function install(admin: Want, hapFilePaths: Array<string>, installParam: InstallParam, callback: AsyncCallback<void>): void;
102461847f8eSopenharmony_ci
102561847f8eSopenharmony_ci  /**
102661847f8eSopenharmony_ci   * Install an application.
102761847f8eSopenharmony_ci   *
102861847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_INSTALL_BUNDLE
102961847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
103061847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
103161847f8eSopenharmony_ci   * @param { Array<string> } hapFilePaths - indicates the path of the application to be installed.
103261847f8eSopenharmony_ci   * @param { InstallParam } [installParam] - installParam indicates the installation parameters.
103361847f8eSopenharmony_ci   *                                        It may contain two fields: userId and installFlag.
103461847f8eSopenharmony_ci   *                                        The flag can only be one of correct flags.
103561847f8eSopenharmony_ci   * @returns { Promise<void> } the promise of installing application result.
103661847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
103761847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
103861847f8eSopenharmony_ci   * @throws { BusinessError } 9201002 - Failed to install the application.
103961847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
104061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
104161847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
104261847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
104361847f8eSopenharmony_ci   * @StageModelOnly
104461847f8eSopenharmony_ci   * @since 12
104561847f8eSopenharmony_ci   */
104661847f8eSopenharmony_ci  function install(admin: Want, hapFilePaths: Array<string>, installParam?: InstallParam): Promise<void>;
104761847f8eSopenharmony_ci}
104861847f8eSopenharmony_ci
104961847f8eSopenharmony_ciexport default bundleManager;
1050