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 applications of the enterprise devices.
2661847f8eSopenharmony_ci *
2761847f8eSopenharmony_ci * @namespace applicationManager
2861847f8eSopenharmony_ci * @syscap SystemCapability.Customization.EnterpriseDeviceManager
2961847f8eSopenharmony_ci * @since 10
3061847f8eSopenharmony_ci */
3161847f8eSopenharmony_cideclare namespace applicationManager {
3261847f8eSopenharmony_ci  /**
3361847f8eSopenharmony_ci   * Add appid list of bundles that is disallowed to run in the device.
3461847f8eSopenharmony_ci   * This function can be called by a super administrator.
3561847f8eSopenharmony_ci   *
3661847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_MANAGE_SET_APP_RUNNING_POLICY
3761847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
3861847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
3961847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle are disallowed to run. The size of the array after setting
4061847f8eSopenharmony_ci   *                                   cannot be greater than 200.
4161847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of addDisallowedRunningBundles.
4261847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
4361847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
4461847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
4561847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
4661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
4761847f8eSopenharmony_ci   *                           2. Incorrect parameter types; 3. Parameter verification failed.
4861847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
4961847f8eSopenharmony_ci   * @systemapi
5061847f8eSopenharmony_ci   * @StageModelOnly
5161847f8eSopenharmony_ci   * @since 10
5261847f8eSopenharmony_ci   */
5361847f8eSopenharmony_ci  function addDisallowedRunningBundles(admin: Want, appIds: Array<string>, callback: AsyncCallback<void>): void;
5461847f8eSopenharmony_ci
5561847f8eSopenharmony_ci  /**
5661847f8eSopenharmony_ci   * Add appid list of bundles that is disallowed to run in the device.
5761847f8eSopenharmony_ci   * This function can be called by a super administrator.
5861847f8eSopenharmony_ci   *
5961847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_MANAGE_SET_APP_RUNNING_POLICY
6061847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
6161847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
6261847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle are disallowed to run. The size of the array after setting
6361847f8eSopenharmony_ci   *                                   cannot be greater than 200.
6461847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID.
6561847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of addDisallowedRunningBundles.
6661847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
6761847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
6861847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
6961847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
7061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
7161847f8eSopenharmony_ci   *                           2. Incorrect parameter types; 3. Parameter verification failed.
7261847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
7361847f8eSopenharmony_ci   * @systemapi
7461847f8eSopenharmony_ci   * @StageModelOnly
7561847f8eSopenharmony_ci   * @since 10
7661847f8eSopenharmony_ci   */
7761847f8eSopenharmony_ci  function addDisallowedRunningBundles(admin: Want, appIds: Array<string>, userId: number, callback: AsyncCallback<void>): void;
7861847f8eSopenharmony_ci
7961847f8eSopenharmony_ci  /**
8061847f8eSopenharmony_ci   * Add appid list of bundles that is disallowed to run in the device.
8161847f8eSopenharmony_ci   * This function can be called by a super administrator.
8261847f8eSopenharmony_ci   *
8361847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_MANAGE_SET_APP_RUNNING_POLICY
8461847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
8561847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
8661847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle are disallowed to run. The size of the array after setting
8761847f8eSopenharmony_ci   *                                   cannot be greater than 200.
8861847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID.
8961847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the addDisallowedRunningBundles.
9061847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
9161847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
9261847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
9361847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
9461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
9561847f8eSopenharmony_ci   *                           2. Incorrect parameter types; 3. Parameter verification failed.
9661847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
9761847f8eSopenharmony_ci   * @systemapi
9861847f8eSopenharmony_ci   * @StageModelOnly
9961847f8eSopenharmony_ci   * @since 10
10061847f8eSopenharmony_ci   */
10161847f8eSopenharmony_ci  function addDisallowedRunningBundles(admin: Want, appIds: Array<string>, userId?: number): Promise<void>;
10261847f8eSopenharmony_ci
10361847f8eSopenharmony_ci  /**
10461847f8eSopenharmony_ci   * Add appid list of bundles that is disallowed to run in the device.
10561847f8eSopenharmony_ci   * This function can be called by a super administrator.
10661847f8eSopenharmony_ci   *
10761847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_MANAGE_APPLICATION
10861847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
10961847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
11061847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle are disallowed to run. The size of the array after setting
11161847f8eSopenharmony_ci   *                                   cannot be greater than 200.
11261847f8eSopenharmony_ci   * @param { number } [accountId] - accountId indicates the account ID.
11361847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
11461847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
11561847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
11661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
11761847f8eSopenharmony_ci   *                           2. Incorrect parameter types; 3. Parameter verification failed.
11861847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
11961847f8eSopenharmony_ci   * @StageModelOnly
12061847f8eSopenharmony_ci   * @since 12
12161847f8eSopenharmony_ci   */
12261847f8eSopenharmony_ci  function addDisallowedRunningBundlesSync(admin: Want, appIds: Array<string>, accountId?: number): void;
12361847f8eSopenharmony_ci
12461847f8eSopenharmony_ci  /**
12561847f8eSopenharmony_ci   * Remove appid list of bundles that is disallowed to run in the device.
12661847f8eSopenharmony_ci   * This function can be called by a super administrator.
12761847f8eSopenharmony_ci   *
12861847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_MANAGE_SET_APP_RUNNING_POLICY
12961847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
13061847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
13161847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle are disallowed to run. The size of the array after setting
13261847f8eSopenharmony_ci   *                                   cannot be greater than 200.
13361847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of removeDisallowedRunningBundles.
13461847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
13561847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
13661847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
13761847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
13861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
13961847f8eSopenharmony_ci   *                           2. Incorrect parameter types; 3. Parameter verification failed.
14061847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
14161847f8eSopenharmony_ci   * @systemapi
14261847f8eSopenharmony_ci   * @StageModelOnly
14361847f8eSopenharmony_ci   * @since 10
14461847f8eSopenharmony_ci   */
14561847f8eSopenharmony_ci  function removeDisallowedRunningBundles(admin: Want, appIds: Array<string>, callback: AsyncCallback<void>): void;
14661847f8eSopenharmony_ci
14761847f8eSopenharmony_ci  /**
14861847f8eSopenharmony_ci   * Remove appid list of bundles that is disallowed to run in the device.
14961847f8eSopenharmony_ci   * This function can be called by a super administrator.
15061847f8eSopenharmony_ci   *
15161847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_MANAGE_SET_APP_RUNNING_POLICY
15261847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
15361847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
15461847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle are disallowed to run. The size of the array after setting
15561847f8eSopenharmony_ci   *                                   cannot be greater than 200.
15661847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID.
15761847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of removeDisallowedRunningBundles.
15861847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
15961847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
16061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
16161847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
16261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
16361847f8eSopenharmony_ci   *                           2. Incorrect parameter types; 3. Parameter verification failed.
16461847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
16561847f8eSopenharmony_ci   * @systemapi
16661847f8eSopenharmony_ci   * @StageModelOnly
16761847f8eSopenharmony_ci   * @since 10
16861847f8eSopenharmony_ci   */
16961847f8eSopenharmony_ci  function removeDisallowedRunningBundles(admin: Want, appIds: Array<string>, userId: number, callback: AsyncCallback<void>): void;
17061847f8eSopenharmony_ci
17161847f8eSopenharmony_ci  /**
17261847f8eSopenharmony_ci   * Remove appid list of bundles that is disallowed to run in the device.
17361847f8eSopenharmony_ci   * This function can be called by a super administrator.
17461847f8eSopenharmony_ci   *
17561847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_MANAGE_SET_APP_RUNNING_POLICY
17661847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
17761847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
17861847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle are disallowed to run. The size of the array after setting
17961847f8eSopenharmony_ci   *                                   cannot be greater than 200.
18061847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID.
18161847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the removeDisallowedRunningBundles.
18261847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
18361847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
18461847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
18561847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
18661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
18761847f8eSopenharmony_ci   *                           2. Incorrect parameter types; 3. Parameter verification failed.
18861847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
18961847f8eSopenharmony_ci   * @systemapi
19061847f8eSopenharmony_ci   * @StageModelOnly
19161847f8eSopenharmony_ci   * @since 10
19261847f8eSopenharmony_ci   */
19361847f8eSopenharmony_ci  function removeDisallowedRunningBundles(admin: Want, appIds: Array<string>, userId?: number): Promise<void>;
19461847f8eSopenharmony_ci
19561847f8eSopenharmony_ci  /**
19661847f8eSopenharmony_ci   * Remove appid list of bundles that is disallowed to run in the device.
19761847f8eSopenharmony_ci   * This function can be called by a super administrator.
19861847f8eSopenharmony_ci   *
19961847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_MANAGE_APPLICATION
20061847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
20161847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
20261847f8eSopenharmony_ci   * @param { Array<string> } appIds - ids of the bundle are disallowed to run. The size of the array after setting
20361847f8eSopenharmony_ci   *                                   cannot be greater than 200.
20461847f8eSopenharmony_ci   * @param { number } [accountId] - accountId indicates the user ID.
20561847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
20661847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
20761847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
20861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
20961847f8eSopenharmony_ci   *                           2. Incorrect parameter types; 3. Parameter verification failed.
21061847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
21161847f8eSopenharmony_ci   * @StageModelOnly
21261847f8eSopenharmony_ci   * @since 12
21361847f8eSopenharmony_ci   */
21461847f8eSopenharmony_ci  function removeDisallowedRunningBundlesSync(admin: Want, appIds: Array<string>, accountId?: number): void;
21561847f8eSopenharmony_ci
21661847f8eSopenharmony_ci  /**
21761847f8eSopenharmony_ci   * Get appid list of bundles that is disallowed to run in the device.
21861847f8eSopenharmony_ci   * This function can be called by a super administrator.
21961847f8eSopenharmony_ci   *
22061847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_MANAGE_SET_APP_RUNNING_POLICY
22161847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
22261847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
22361847f8eSopenharmony_ci   * @param { AsyncCallback<Array<string>> } callback - the callback of getDisallowedRunningBundles.
22461847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
22561847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
22661847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
22761847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
22861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
22961847f8eSopenharmony_ci   *                           2. Incorrect parameter types; 3. Parameter verification failed.
23061847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
23161847f8eSopenharmony_ci   * @systemapi
23261847f8eSopenharmony_ci   * @StageModelOnly
23361847f8eSopenharmony_ci   * @since 10
23461847f8eSopenharmony_ci   */
23561847f8eSopenharmony_ci  function getDisallowedRunningBundles(admin: Want, callback: AsyncCallback<Array<string>>): void;
23661847f8eSopenharmony_ci
23761847f8eSopenharmony_ci  /**
23861847f8eSopenharmony_ci   * Get appid list of bundles that is disallowed to run in the device.
23961847f8eSopenharmony_ci   * This function can be called by a super administrator.
24061847f8eSopenharmony_ci   *
24161847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_MANAGE_SET_APP_RUNNING_POLICY
24261847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
24361847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
24461847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID.
24561847f8eSopenharmony_ci   * @param { AsyncCallback<Array<string>> } callback - the callback of getDisallowedRunningBundles.
24661847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
24761847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
24861847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
24961847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
25061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
25161847f8eSopenharmony_ci   *                           2. Incorrect parameter types; 3. Parameter verification failed.
25261847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
25361847f8eSopenharmony_ci   * @systemapi
25461847f8eSopenharmony_ci   * @StageModelOnly
25561847f8eSopenharmony_ci   * @since 10
25661847f8eSopenharmony_ci   */
25761847f8eSopenharmony_ci  function getDisallowedRunningBundles(admin: Want, userId: number, callback: AsyncCallback<Array<string>>): void;
25861847f8eSopenharmony_ci
25961847f8eSopenharmony_ci  /**
26061847f8eSopenharmony_ci   * Get appid list of bundles that is disallowed to run in the device.
26161847f8eSopenharmony_ci   * This function can be called by a super administrator.
26261847f8eSopenharmony_ci   *
26361847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_MANAGE_SET_APP_RUNNING_POLICY
26461847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
26561847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
26661847f8eSopenharmony_ci   * @param { number } userId - userId indicates the user ID.
26761847f8eSopenharmony_ci   * @returns { Promise<Array<string>> } the promise returned by the getDisallowedRunningBundles.
26861847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
26961847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
27061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
27161847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
27261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
27361847f8eSopenharmony_ci   *                           2. Incorrect parameter types; 3. Parameter verification failed.
27461847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
27561847f8eSopenharmony_ci   * @systemapi
27661847f8eSopenharmony_ci   * @StageModelOnly
27761847f8eSopenharmony_ci   * @since 10
27861847f8eSopenharmony_ci   */
27961847f8eSopenharmony_ci  function getDisallowedRunningBundles(admin: Want, userId?: number): Promise<Array<string>>;
28061847f8eSopenharmony_ci
28161847f8eSopenharmony_ci  /**
28261847f8eSopenharmony_ci   * Get appid list of bundles that is disallowed to run in the device.
28361847f8eSopenharmony_ci   * This function can be called by a super administrator.
28461847f8eSopenharmony_ci   *
28561847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_MANAGE_APPLICATION
28661847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
28761847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
28861847f8eSopenharmony_ci   * @param { number } [accountId] - accountId indicates the user ID.
28961847f8eSopenharmony_ci   * @returns { Array<string> } ids of the bundle are disallowed to run.
29061847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
29161847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
29261847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
29361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
29461847f8eSopenharmony_ci   *                           2. Incorrect parameter types; 3. Parameter verification failed.
29561847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
29661847f8eSopenharmony_ci   * @StageModelOnly
29761847f8eSopenharmony_ci   * @since 12
29861847f8eSopenharmony_ci   */
29961847f8eSopenharmony_ci  function getDisallowedRunningBundlesSync(admin: Want, accountId?: number): Array<string>;
30061847f8eSopenharmony_ci
30161847f8eSopenharmony_ci  /**
30261847f8eSopenharmony_ci   * Adds auto start applications.
30361847f8eSopenharmony_ci   * This function can be called by a super administrator.
30461847f8eSopenharmony_ci   *
30561847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_MANAGE_APPLICATION
30661847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
30761847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
30861847f8eSopenharmony_ci   * @param { Array<Want> } autoStartApps - autoStartApps indicates the information of auto start app ability.
30961847f8eSopenharmony_ci   *                                        The bundleName and abilityName of the want cannot be non-exist.
31061847f8eSopenharmony_ci   *                                        The size of the array after setting cannot be greater than 10.
31161847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
31261847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
31361847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
31461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
31561847f8eSopenharmony_ci   *                           2. Incorrect parameter types; 3. Parameter verification failed.
31661847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
31761847f8eSopenharmony_ci   * @stagemodelonly
31861847f8eSopenharmony_ci   * @since 12
31961847f8eSopenharmony_ci   */
32061847f8eSopenharmony_ci  function addAutoStartApps(admin: Want, autoStartApps: Array<Want>): void;
32161847f8eSopenharmony_ci
32261847f8eSopenharmony_ci  /**
32361847f8eSopenharmony_ci   * Removes auto start applications.
32461847f8eSopenharmony_ci   * This function can be called by a super administrator.
32561847f8eSopenharmony_ci   *
32661847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_MANAGE_APPLICATION
32761847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
32861847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
32961847f8eSopenharmony_ci   * @param { Array<Want> } autoStartApps - autoStartApps indicates the information of auto start app ability.
33061847f8eSopenharmony_ci   *                                        The bundleName and abilityName of the want cannot be non-exist.
33161847f8eSopenharmony_ci   *                                        The size of the array after setting cannot be greater 10.
33261847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
33361847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
33461847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
33561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
33661847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
33761847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
33861847f8eSopenharmony_ci   * @stagemodelonly
33961847f8eSopenharmony_ci   * @since 12
34061847f8eSopenharmony_ci   */
34161847f8eSopenharmony_ci  function removeAutoStartApps(admin: Want, autoStartApps: Array<Want>): void;
34261847f8eSopenharmony_ci
34361847f8eSopenharmony_ci  /**
34461847f8eSopenharmony_ci   * Gets information of auto start applications.
34561847f8eSopenharmony_ci   * This function can be called by a super administrator.
34661847f8eSopenharmony_ci   *
34761847f8eSopenharmony_ci   * @permission ohos.permission.ENTERPRISE_MANAGE_APPLICATION
34861847f8eSopenharmony_ci   * @param { Want } admin - admin indicates the enterprise admin extension ability information.
34961847f8eSopenharmony_ci   *                         The admin must have the corresponding permission.
35061847f8eSopenharmony_ci   * @returns { Array<Want> } the information of auto start applications.
35161847f8eSopenharmony_ci   * @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
35261847f8eSopenharmony_ci   * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
35361847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
35461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
35561847f8eSopenharmony_ci   *                                 2. Incorrect parameter types; 3. Parameter verification failed.
35661847f8eSopenharmony_ci   * @syscap SystemCapability.Customization.EnterpriseDeviceManager
35761847f8eSopenharmony_ci   * @stagemodelonly
35861847f8eSopenharmony_ci   * @since 12
35961847f8eSopenharmony_ci   */
36061847f8eSopenharmony_ci  function getAutoStartApps(admin: Want): Array<Want>;
36161847f8eSopenharmony_ci}
36261847f8eSopenharmony_ci
36361847f8eSopenharmony_ciexport default applicationManager;