161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 2022-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 AbilityKit 1961847f8eSopenharmony_ci */ 2061847f8eSopenharmony_ci 2161847f8eSopenharmony_ciimport { AsyncCallback } from './@ohos.base'; 2261847f8eSopenharmony_ciimport type { ApplicationInfo as _ApplicationInfo, ModuleMetadata as _ModuleMetadata, 2361847f8eSopenharmony_ci PreinstalledApplicationInfo as _PreinstalledApplicationInfo } from './bundleManager/ApplicationInfo'; 2461847f8eSopenharmony_ciimport { Metadata as _Metadata } from './bundleManager/Metadata'; 2561847f8eSopenharmony_ciimport { PermissionDef as _PermissionDef } from './bundleManager/PermissionDef'; 2661847f8eSopenharmony_ciimport { ElementName as _ElementName } from './bundleManager/ElementName'; 2761847f8eSopenharmony_ciimport { SharedBundleInfo as _SharedBundleInfo } from './bundleManager/SharedBundleInfo'; 2861847f8eSopenharmony_ciimport type { RecoverableApplicationInfo as _RecoverableApplicationInfo } from './bundleManager/RecoverableApplicationInfo'; 2961847f8eSopenharmony_ciimport Want from './@ohos.app.ability.Want'; 3061847f8eSopenharmony_ciimport * as _AbilityInfo from './bundleManager/AbilityInfo'; 3161847f8eSopenharmony_ciimport * as _AppProvisionInfo from './bundleManager/AppProvisionInfo'; 3261847f8eSopenharmony_ciimport * as _BundleInfo from './bundleManager/BundleInfo'; 3361847f8eSopenharmony_ciimport * as _HapModuleInfo from './bundleManager/HapModuleInfo'; 3461847f8eSopenharmony_ciimport * as _ExtensionAbilityInfo from './bundleManager/ExtensionAbilityInfo'; 3561847f8eSopenharmony_ciimport * as _Skill from './bundleManager/Skill'; 3661847f8eSopenharmony_ci/** 3761847f8eSopenharmony_ci * This module is used to obtain package information of various applications installed on the current device. 3861847f8eSopenharmony_ci * 3961847f8eSopenharmony_ci * @namespace bundleManager 4061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 4161847f8eSopenharmony_ci * @since 9 4261847f8eSopenharmony_ci */ 4361847f8eSopenharmony_ci/** 4461847f8eSopenharmony_ci * This module is used to obtain package information of various applications installed on the current device. 4561847f8eSopenharmony_ci * 4661847f8eSopenharmony_ci * @namespace bundleManager 4761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 4861847f8eSopenharmony_ci * @atomicservice 4961847f8eSopenharmony_ci * @since 11 5061847f8eSopenharmony_ci */ 5161847f8eSopenharmony_ci/** 5261847f8eSopenharmony_ci * This module is used to obtain package information of various applications installed on the current device. 5361847f8eSopenharmony_ci * 5461847f8eSopenharmony_ci * @namespace bundleManager 5561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 5661847f8eSopenharmony_ci * @crossplatform 5761847f8eSopenharmony_ci * @atomicservice 5861847f8eSopenharmony_ci * @since 12 5961847f8eSopenharmony_ci */ 6061847f8eSopenharmony_cideclare namespace bundleManager { 6161847f8eSopenharmony_ci /** 6261847f8eSopenharmony_ci * Used to query the enumeration value of bundleInfo. Multiple values can be passed in the form. 6361847f8eSopenharmony_ci * 6461847f8eSopenharmony_ci * @enum { number } 6561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 6661847f8eSopenharmony_ci * @since 9 6761847f8eSopenharmony_ci */ 6861847f8eSopenharmony_ci /** 6961847f8eSopenharmony_ci * Used to query the enumeration value of bundleInfo. Multiple values can be passed in the form. 7061847f8eSopenharmony_ci * 7161847f8eSopenharmony_ci * @enum { number } 7261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 7361847f8eSopenharmony_ci * @atomicservice 7461847f8eSopenharmony_ci * @since 11 7561847f8eSopenharmony_ci */ 7661847f8eSopenharmony_ci enum BundleFlag { 7761847f8eSopenharmony_ci /** 7861847f8eSopenharmony_ci * Used to obtain the default bundleInfo. The obtained bundleInfo does not contain information of 7961847f8eSopenharmony_ci * signatureInfo, applicationInfo, hapModuleInfo, ability, extensionAbility and permission. 8061847f8eSopenharmony_ci * 8161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 8261847f8eSopenharmony_ci * @since 9 8361847f8eSopenharmony_ci */ 8461847f8eSopenharmony_ci /** 8561847f8eSopenharmony_ci * Used to obtain the default bundleInfo. The obtained bundleInfo does not contain information of 8661847f8eSopenharmony_ci * signatureInfo, applicationInfo, hapModuleInfo, ability, extensionAbility and permission. 8761847f8eSopenharmony_ci * 8861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 8961847f8eSopenharmony_ci * @atomicservice 9061847f8eSopenharmony_ci * @since 11 9161847f8eSopenharmony_ci */ 9261847f8eSopenharmony_ci GET_BUNDLE_INFO_DEFAULT = 0x00000000, 9361847f8eSopenharmony_ci /** 9461847f8eSopenharmony_ci * Used to obtain the bundleInfo containing applicationInfo. The obtained bundleInfo does not 9561847f8eSopenharmony_ci * contain the information of signatureInfo, hapModuleInfo, ability, extensionAbility and permission. 9661847f8eSopenharmony_ci * 9761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 9861847f8eSopenharmony_ci * @since 9 9961847f8eSopenharmony_ci */ 10061847f8eSopenharmony_ci /** 10161847f8eSopenharmony_ci * Used to obtain the bundleInfo containing applicationInfo. The obtained bundleInfo does not 10261847f8eSopenharmony_ci * contain the information of signatureInfo, hapModuleInfo, ability, extensionAbility and permission. 10361847f8eSopenharmony_ci * 10461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 10561847f8eSopenharmony_ci * @atomicservice 10661847f8eSopenharmony_ci * @since 11 10761847f8eSopenharmony_ci */ 10861847f8eSopenharmony_ci GET_BUNDLE_INFO_WITH_APPLICATION = 0x00000001, 10961847f8eSopenharmony_ci /** 11061847f8eSopenharmony_ci * Used to obtain the bundleInfo containing hapModuleInfo. The obtained bundleInfo does not 11161847f8eSopenharmony_ci * contain the information of signatureInfo, applicationInfo, ability, extensionAbility and permission. 11261847f8eSopenharmony_ci * 11361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 11461847f8eSopenharmony_ci * @since 9 11561847f8eSopenharmony_ci */ 11661847f8eSopenharmony_ci /** 11761847f8eSopenharmony_ci * Used to obtain the bundleInfo containing hapModuleInfo. The obtained bundleInfo does not 11861847f8eSopenharmony_ci * contain the information of signatureInfo, applicationInfo, ability, extensionAbility and permission. 11961847f8eSopenharmony_ci * 12061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 12161847f8eSopenharmony_ci * @atomicservice 12261847f8eSopenharmony_ci * @since 11 12361847f8eSopenharmony_ci */ 12461847f8eSopenharmony_ci GET_BUNDLE_INFO_WITH_HAP_MODULE = 0x00000002, 12561847f8eSopenharmony_ci /** 12661847f8eSopenharmony_ci * Used to obtain the bundleInfo containing ability. The obtained bundleInfo does not 12761847f8eSopenharmony_ci * contain the information of signatureInfo, applicationInfo, extensionAbility and permission. 12861847f8eSopenharmony_ci * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_HAP_MODULE. 12961847f8eSopenharmony_ci * 13061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 13161847f8eSopenharmony_ci * @since 9 13261847f8eSopenharmony_ci */ 13361847f8eSopenharmony_ci /** 13461847f8eSopenharmony_ci * Used to obtain the bundleInfo containing ability. The obtained bundleInfo does not 13561847f8eSopenharmony_ci * contain the information of signatureInfo, applicationInfo, extensionAbility and permission. 13661847f8eSopenharmony_ci * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_HAP_MODULE. 13761847f8eSopenharmony_ci * 13861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 13961847f8eSopenharmony_ci * @atomicservice 14061847f8eSopenharmony_ci * @since 11 14161847f8eSopenharmony_ci */ 14261847f8eSopenharmony_ci GET_BUNDLE_INFO_WITH_ABILITY = 0x00000004, 14361847f8eSopenharmony_ci /** 14461847f8eSopenharmony_ci * Used to obtain the bundleInfo containing extensionAbility. The obtained bundleInfo does not 14561847f8eSopenharmony_ci * contain the information of signatureInfo, applicationInfo, ability and permission. 14661847f8eSopenharmony_ci * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_HAP_MODULE. 14761847f8eSopenharmony_ci * 14861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 14961847f8eSopenharmony_ci * @since 9 15061847f8eSopenharmony_ci */ 15161847f8eSopenharmony_ci /** 15261847f8eSopenharmony_ci * Used to obtain the bundleInfo containing extensionAbility. The obtained bundleInfo does not 15361847f8eSopenharmony_ci * contain the information of signatureInfo, applicationInfo, ability and permission. 15461847f8eSopenharmony_ci * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_HAP_MODULE. 15561847f8eSopenharmony_ci * 15661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 15761847f8eSopenharmony_ci * @atomicservice 15861847f8eSopenharmony_ci * @since 11 15961847f8eSopenharmony_ci */ 16061847f8eSopenharmony_ci GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY = 0x00000008, 16161847f8eSopenharmony_ci /** 16261847f8eSopenharmony_ci * Used to obtain the bundleInfo containing permission. The obtained bundleInfo does not 16361847f8eSopenharmony_ci * contain the information of signatureInfo, applicationInfo, hapModuleInfo, extensionAbility and ability. 16461847f8eSopenharmony_ci * 16561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 16661847f8eSopenharmony_ci * @since 9 16761847f8eSopenharmony_ci */ 16861847f8eSopenharmony_ci /** 16961847f8eSopenharmony_ci * Used to obtain the bundleInfo containing permission. The obtained bundleInfo does not 17061847f8eSopenharmony_ci * contain the information of signatureInfo, applicationInfo, hapModuleInfo, extensionAbility and ability. 17161847f8eSopenharmony_ci * 17261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 17361847f8eSopenharmony_ci * @atomicservice 17461847f8eSopenharmony_ci * @since 11 17561847f8eSopenharmony_ci */ 17661847f8eSopenharmony_ci GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION = 0x00000010, 17761847f8eSopenharmony_ci /** 17861847f8eSopenharmony_ci * Used to obtain the metadata contained in applicationInfo, moduleInfo and abilityInfo. 17961847f8eSopenharmony_ci * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_APPLICATION, 18061847f8eSopenharmony_ci * GET_BUNDLE_INFO_WITH_HAP_MODULE, GET_BUNDLE_INFO_WITH_ABILITIES, GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY. 18161847f8eSopenharmony_ci * 18261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 18361847f8eSopenharmony_ci * @since 9 18461847f8eSopenharmony_ci */ 18561847f8eSopenharmony_ci /** 18661847f8eSopenharmony_ci * Used to obtain the metadata contained in applicationInfo, moduleInfo and abilityInfo. 18761847f8eSopenharmony_ci * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_APPLICATION, 18861847f8eSopenharmony_ci * GET_BUNDLE_INFO_WITH_HAP_MODULE, GET_BUNDLE_INFO_WITH_ABILITIES, GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY. 18961847f8eSopenharmony_ci * 19061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 19161847f8eSopenharmony_ci * @atomicservice 19261847f8eSopenharmony_ci * @since 11 19361847f8eSopenharmony_ci */ 19461847f8eSopenharmony_ci GET_BUNDLE_INFO_WITH_METADATA = 0x00000020, 19561847f8eSopenharmony_ci /** 19661847f8eSopenharmony_ci * Used to obtain the default bundleInfo containing disabled application and ability. 19761847f8eSopenharmony_ci * The obtained bundleInfo does not contain information of signatureInfo, applicationInfo, 19861847f8eSopenharmony_ci * hapModuleInfo, ability, extensionAbility and permission. 19961847f8eSopenharmony_ci * 20061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 20161847f8eSopenharmony_ci * @since 9 20261847f8eSopenharmony_ci */ 20361847f8eSopenharmony_ci /** 20461847f8eSopenharmony_ci * Used to obtain the default bundleInfo containing disabled application and ability. 20561847f8eSopenharmony_ci * The obtained bundleInfo does not contain information of signatureInfo, applicationInfo, 20661847f8eSopenharmony_ci * hapModuleInfo, ability, extensionAbility and permission. 20761847f8eSopenharmony_ci * 20861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 20961847f8eSopenharmony_ci * @atomicservice 21061847f8eSopenharmony_ci * @since 11 21161847f8eSopenharmony_ci */ 21261847f8eSopenharmony_ci GET_BUNDLE_INFO_WITH_DISABLE = 0x00000040, 21361847f8eSopenharmony_ci /** 21461847f8eSopenharmony_ci * Used to obtain the bundleInfo containing signatureInfo. The obtained bundleInfo does not 21561847f8eSopenharmony_ci * contain the information of applicationInfo, hapModuleInfo, extensionAbility, ability and permission. 21661847f8eSopenharmony_ci * 21761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 21861847f8eSopenharmony_ci * @since 9 21961847f8eSopenharmony_ci */ 22061847f8eSopenharmony_ci /** 22161847f8eSopenharmony_ci * Used to obtain the bundleInfo containing signatureInfo. The obtained bundleInfo does not 22261847f8eSopenharmony_ci * contain the information of applicationInfo, hapModuleInfo, extensionAbility, ability and permission. 22361847f8eSopenharmony_ci * 22461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 22561847f8eSopenharmony_ci * @atomicservice 22661847f8eSopenharmony_ci * @since 11 22761847f8eSopenharmony_ci */ 22861847f8eSopenharmony_ci GET_BUNDLE_INFO_WITH_SIGNATURE_INFO = 0x00000080, 22961847f8eSopenharmony_ci /** 23061847f8eSopenharmony_ci * Used to obtain the bundleInfo containing menu configuration in hapModuleInfo. 23161847f8eSopenharmony_ci * The obtained bundleInfo does not contain the information of applicationInfo, extensionAbility, ability and permission. 23261847f8eSopenharmony_ci * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_HAP_MODULE. 23361847f8eSopenharmony_ci * 23461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 23561847f8eSopenharmony_ci * @atomicservice 23661847f8eSopenharmony_ci * @since 11 23761847f8eSopenharmony_ci */ 23861847f8eSopenharmony_ci GET_BUNDLE_INFO_WITH_MENU = 0x00000100, 23961847f8eSopenharmony_ci /** 24061847f8eSopenharmony_ci * Used to obtain the bundleInfo containing router map configuration in hapModuleInfo. 24161847f8eSopenharmony_ci * The obtained bundleInfo does not contain the information of applicationInfo, extensionAbility, ability and permission. 24261847f8eSopenharmony_ci * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_HAP_MODULE. 24361847f8eSopenharmony_ci * 24461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 24561847f8eSopenharmony_ci * @atomicservice 24661847f8eSopenharmony_ci * @since 12 24761847f8eSopenharmony_ci */ 24861847f8eSopenharmony_ci GET_BUNDLE_INFO_WITH_ROUTER_MAP = 0x00000200, 24961847f8eSopenharmony_ci /** 25061847f8eSopenharmony_ci * Used to obtain the skillInfo contained in abilityInfo and extensionInfo. 25161847f8eSopenharmony_ci * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_HAP_MODULE, 25261847f8eSopenharmony_ci * GET_BUNDLE_INFO_WITH_ABILITIES, GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY. 25361847f8eSopenharmony_ci * 25461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 25561847f8eSopenharmony_ci * @atomicservice 25661847f8eSopenharmony_ci * @since 12 25761847f8eSopenharmony_ci */ 25861847f8eSopenharmony_ci GET_BUNDLE_INFO_WITH_SKILL = 0x00000800, 25961847f8eSopenharmony_ci /** 26061847f8eSopenharmony_ci * Used to return only the applications that have an icon displayed on the homescreen. 26161847f8eSopenharmony_ci * Only effective on {@link getAllBundleInfo} 26261847f8eSopenharmony_ci * 26361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 26461847f8eSopenharmony_ci * @systemapi 26561847f8eSopenharmony_ci * @since 12 26661847f8eSopenharmony_ci */ 26761847f8eSopenharmony_ci GET_BUNDLE_INFO_ONLY_WITH_LAUNCHER_ABILITY = 0x00001000, 26861847f8eSopenharmony_ci /** 26961847f8eSopenharmony_ci * Used to obtain the bundleInfo only if any user installed 27061847f8eSopenharmony_ci * 27161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 27261847f8eSopenharmony_ci * @systemapi 27361847f8eSopenharmony_ci * @since 12 27461847f8eSopenharmony_ci */ 27561847f8eSopenharmony_ci GET_BUNDLE_INFO_OF_ANY_USER = 0x00002000, 27661847f8eSopenharmony_ci /** 27761847f8eSopenharmony_ci * Used to return all applications that exclude app clone information. 27861847f8eSopenharmony_ci * Only effective on {@link getAllBundleInfo} 27961847f8eSopenharmony_ci * 28061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 28161847f8eSopenharmony_ci * @systemapi 28261847f8eSopenharmony_ci * @since 12 28361847f8eSopenharmony_ci */ 28461847f8eSopenharmony_ci GET_BUNDLE_INFO_EXCLUDE_CLONE = 0x00004000, 28561847f8eSopenharmony_ci } 28661847f8eSopenharmony_ci 28761847f8eSopenharmony_ci /** 28861847f8eSopenharmony_ci * Used to query the enumeration value of applicationInfo. Multiple values can be passed in the form. 28961847f8eSopenharmony_ci * 29061847f8eSopenharmony_ci * @enum { number } 29161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 29261847f8eSopenharmony_ci * @systemapi 29361847f8eSopenharmony_ci * @since 9 29461847f8eSopenharmony_ci */ 29561847f8eSopenharmony_ci enum ApplicationFlag { 29661847f8eSopenharmony_ci /** 29761847f8eSopenharmony_ci * Used to obtain the default applicationInfo. The obtained applicationInfo does not contain the information of 29861847f8eSopenharmony_ci * permission and metadata. 29961847f8eSopenharmony_ci * 30061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 30161847f8eSopenharmony_ci * @systemapi 30261847f8eSopenharmony_ci * @since 9 30361847f8eSopenharmony_ci */ 30461847f8eSopenharmony_ci GET_APPLICATION_INFO_DEFAULT = 0x00000000, 30561847f8eSopenharmony_ci /** 30661847f8eSopenharmony_ci * Used to obtain the applicationInfo containing permission. 30761847f8eSopenharmony_ci * 30861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 30961847f8eSopenharmony_ci * @systemapi 31061847f8eSopenharmony_ci * @since 9 31161847f8eSopenharmony_ci */ 31261847f8eSopenharmony_ci GET_APPLICATION_INFO_WITH_PERMISSION = 0x00000001, 31361847f8eSopenharmony_ci /** 31461847f8eSopenharmony_ci * Used to obtain the applicationInfo containing metadata. 31561847f8eSopenharmony_ci * 31661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 31761847f8eSopenharmony_ci * @systemapi 31861847f8eSopenharmony_ci * @since 9 31961847f8eSopenharmony_ci */ 32061847f8eSopenharmony_ci GET_APPLICATION_INFO_WITH_METADATA = 0x00000002, 32161847f8eSopenharmony_ci /** 32261847f8eSopenharmony_ci * Used to obtain the applicationInfo containing disabled application. 32361847f8eSopenharmony_ci * 32461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 32561847f8eSopenharmony_ci * @systemapi 32661847f8eSopenharmony_ci * @since 9 32761847f8eSopenharmony_ci */ 32861847f8eSopenharmony_ci GET_APPLICATION_INFO_WITH_DISABLE = 0x00000004 32961847f8eSopenharmony_ci } 33061847f8eSopenharmony_ci 33161847f8eSopenharmony_ci /** 33261847f8eSopenharmony_ci * Used to query the enumeration value of abilityInfo. Multiple values can be passed in the form. 33361847f8eSopenharmony_ci * 33461847f8eSopenharmony_ci * @enum { number } 33561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 33661847f8eSopenharmony_ci * @systemapi 33761847f8eSopenharmony_ci * @since 9 33861847f8eSopenharmony_ci */ 33961847f8eSopenharmony_ci enum AbilityFlag { 34061847f8eSopenharmony_ci /** 34161847f8eSopenharmony_ci * Used to obtain the default abilityInfo. The obtained abilityInfo does not contain the information of 34261847f8eSopenharmony_ci * permission, metadata and disabled abilityInfo. 34361847f8eSopenharmony_ci * 34461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 34561847f8eSopenharmony_ci * @systemapi 34661847f8eSopenharmony_ci * @since 9 34761847f8eSopenharmony_ci */ 34861847f8eSopenharmony_ci GET_ABILITY_INFO_DEFAULT = 0x00000000, 34961847f8eSopenharmony_ci /** 35061847f8eSopenharmony_ci * Used to obtain the abilityInfo containing permission. 35161847f8eSopenharmony_ci * 35261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 35361847f8eSopenharmony_ci * @systemapi 35461847f8eSopenharmony_ci * @since 9 35561847f8eSopenharmony_ci */ 35661847f8eSopenharmony_ci GET_ABILITY_INFO_WITH_PERMISSION = 0x00000001, 35761847f8eSopenharmony_ci /** 35861847f8eSopenharmony_ci * Used to obtain the abilityInfo containing applicationInfo. 35961847f8eSopenharmony_ci * 36061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 36161847f8eSopenharmony_ci * @systemapi 36261847f8eSopenharmony_ci * @since 9 36361847f8eSopenharmony_ci */ 36461847f8eSopenharmony_ci GET_ABILITY_INFO_WITH_APPLICATION = 0x00000002, 36561847f8eSopenharmony_ci /** 36661847f8eSopenharmony_ci * Used to obtain the abilityInfo containing metadata. 36761847f8eSopenharmony_ci * 36861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 36961847f8eSopenharmony_ci * @systemapi 37061847f8eSopenharmony_ci * @since 9 37161847f8eSopenharmony_ci */ 37261847f8eSopenharmony_ci GET_ABILITY_INFO_WITH_METADATA = 0x00000004, 37361847f8eSopenharmony_ci /** 37461847f8eSopenharmony_ci * Used to obtain the abilityInfo containing disabled abilityInfo. 37561847f8eSopenharmony_ci * 37661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 37761847f8eSopenharmony_ci * @systemapi 37861847f8eSopenharmony_ci * @since 9 37961847f8eSopenharmony_ci */ 38061847f8eSopenharmony_ci GET_ABILITY_INFO_WITH_DISABLE = 0x00000008, 38161847f8eSopenharmony_ci /** 38261847f8eSopenharmony_ci * Used to obtain the abilityInfo only for system app. 38361847f8eSopenharmony_ci * 38461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 38561847f8eSopenharmony_ci * @systemapi 38661847f8eSopenharmony_ci * @since 9 38761847f8eSopenharmony_ci */ 38861847f8eSopenharmony_ci /** 38961847f8eSopenharmony_ci * Used to obtain the abilityInfo only for system app. 39061847f8eSopenharmony_ci * 39161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 39261847f8eSopenharmony_ci * @systemapi 39361847f8eSopenharmony_ci * @since 11 39461847f8eSopenharmony_ci */ 39561847f8eSopenharmony_ci GET_ABILITY_INFO_ONLY_SYSTEM_APP = 0x00000010, 39661847f8eSopenharmony_ci /** 39761847f8eSopenharmony_ci * Used to obtain the abilityInfo with domain verification. 39861847f8eSopenharmony_ci * 39961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 40061847f8eSopenharmony_ci * @systemapi 40161847f8eSopenharmony_ci * @since 12 40261847f8eSopenharmony_ci */ 40361847f8eSopenharmony_ci GET_ABILITY_INFO_WITH_APP_LINKING = 0x00000040, 40461847f8eSopenharmony_ci /** 40561847f8eSopenharmony_ci * Used to obtain the abilityInfo with Skill 40661847f8eSopenharmony_ci * 40761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 40861847f8eSopenharmony_ci * @systemapi 40961847f8eSopenharmony_ci * @since 12 41061847f8eSopenharmony_ci */ 41161847f8eSopenharmony_ci GET_ABILITY_INFO_WITH_SKILL = 0x00000080, 41261847f8eSopenharmony_ci } 41361847f8eSopenharmony_ci 41461847f8eSopenharmony_ci /** 41561847f8eSopenharmony_ci * Used to query the enumeration value of ExtensionAbilityInfo. Multiple values can be passed in the form. 41661847f8eSopenharmony_ci * 41761847f8eSopenharmony_ci * @enum { number } 41861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 41961847f8eSopenharmony_ci * @systemapi 42061847f8eSopenharmony_ci * @since 9 42161847f8eSopenharmony_ci */ 42261847f8eSopenharmony_ci enum ExtensionAbilityFlag { 42361847f8eSopenharmony_ci /** 42461847f8eSopenharmony_ci * Used to obtain the default extensionAbilityInfo. The obtained extensionAbilityInfo does not contain the information of 42561847f8eSopenharmony_ci * permission, metadata and disabled abilityInfo. 42661847f8eSopenharmony_ci * 42761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 42861847f8eSopenharmony_ci * @systemapi 42961847f8eSopenharmony_ci * @since 9 43061847f8eSopenharmony_ci */ 43161847f8eSopenharmony_ci GET_EXTENSION_ABILITY_INFO_DEFAULT = 0x00000000, 43261847f8eSopenharmony_ci /** 43361847f8eSopenharmony_ci * Used to obtain the extensionAbilityInfo containing permission. 43461847f8eSopenharmony_ci * 43561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 43661847f8eSopenharmony_ci * @systemapi 43761847f8eSopenharmony_ci * @since 9 43861847f8eSopenharmony_ci */ 43961847f8eSopenharmony_ci GET_EXTENSION_ABILITY_INFO_WITH_PERMISSION = 0x00000001, 44061847f8eSopenharmony_ci /** 44161847f8eSopenharmony_ci * Used to obtain the extensionAbilityInfo containing applicationInfo. 44261847f8eSopenharmony_ci * 44361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 44461847f8eSopenharmony_ci * @systemapi 44561847f8eSopenharmony_ci * @since 9 44661847f8eSopenharmony_ci */ 44761847f8eSopenharmony_ci GET_EXTENSION_ABILITY_INFO_WITH_APPLICATION = 0x00000002, 44861847f8eSopenharmony_ci /** 44961847f8eSopenharmony_ci * Used to obtain the extensionAbilityInfo containing metadata. 45061847f8eSopenharmony_ci * 45161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 45261847f8eSopenharmony_ci * @systemapi 45361847f8eSopenharmony_ci * @since 9 45461847f8eSopenharmony_ci */ 45561847f8eSopenharmony_ci GET_EXTENSION_ABILITY_INFO_WITH_METADATA = 0x00000004, 45661847f8eSopenharmony_ci /** 45761847f8eSopenharmony_ci * Used to obtain the extensionAbilityInfo with Skill 45861847f8eSopenharmony_ci * 45961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 46061847f8eSopenharmony_ci * @systemapi 46161847f8eSopenharmony_ci * @since 12 46261847f8eSopenharmony_ci */ 46361847f8eSopenharmony_ci GET_EXTENSION_ABILITY_INFO_WITH_SKILL = 0x00000010, 46461847f8eSopenharmony_ci } 46561847f8eSopenharmony_ci 46661847f8eSopenharmony_ci /** 46761847f8eSopenharmony_ci * This enumeration value is used to identify various types of extension ability 46861847f8eSopenharmony_ci * 46961847f8eSopenharmony_ci * @enum { number } 47061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 47161847f8eSopenharmony_ci * @since 9 47261847f8eSopenharmony_ci */ 47361847f8eSopenharmony_ci /** 47461847f8eSopenharmony_ci * This enumeration value is used to identify various types of extension ability 47561847f8eSopenharmony_ci * 47661847f8eSopenharmony_ci * @enum { number } 47761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 47861847f8eSopenharmony_ci * @atomicservice 47961847f8eSopenharmony_ci * @since 11 48061847f8eSopenharmony_ci */ 48161847f8eSopenharmony_ci export enum ExtensionAbilityType { 48261847f8eSopenharmony_ci /** 48361847f8eSopenharmony_ci * Indicates extension info with type of form 48461847f8eSopenharmony_ci * 48561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 48661847f8eSopenharmony_ci * @since 9 48761847f8eSopenharmony_ci */ 48861847f8eSopenharmony_ci /** 48961847f8eSopenharmony_ci * Indicates extension info with type of form 49061847f8eSopenharmony_ci * 49161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 49261847f8eSopenharmony_ci * @atomicservice 49361847f8eSopenharmony_ci * @since 11 49461847f8eSopenharmony_ci */ 49561847f8eSopenharmony_ci FORM = 0, 49661847f8eSopenharmony_ci 49761847f8eSopenharmony_ci /** 49861847f8eSopenharmony_ci * Indicates extension info with type of work schedule 49961847f8eSopenharmony_ci * 50061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 50161847f8eSopenharmony_ci * @since 9 50261847f8eSopenharmony_ci */ 50361847f8eSopenharmony_ci WORK_SCHEDULER = 1, 50461847f8eSopenharmony_ci 50561847f8eSopenharmony_ci /** 50661847f8eSopenharmony_ci * Indicates extension info with type of input method 50761847f8eSopenharmony_ci * 50861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 50961847f8eSopenharmony_ci * @since 9 51061847f8eSopenharmony_ci */ 51161847f8eSopenharmony_ci INPUT_METHOD = 2, 51261847f8eSopenharmony_ci 51361847f8eSopenharmony_ci /** 51461847f8eSopenharmony_ci * Indicates extension info with type of service 51561847f8eSopenharmony_ci * 51661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 51761847f8eSopenharmony_ci * @since 9 51861847f8eSopenharmony_ci */ 51961847f8eSopenharmony_ci SERVICE = 3, 52061847f8eSopenharmony_ci 52161847f8eSopenharmony_ci /** 52261847f8eSopenharmony_ci * Indicates extension info with type of accessibility 52361847f8eSopenharmony_ci * 52461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 52561847f8eSopenharmony_ci * @since 9 52661847f8eSopenharmony_ci */ 52761847f8eSopenharmony_ci ACCESSIBILITY = 4, 52861847f8eSopenharmony_ci 52961847f8eSopenharmony_ci /** 53061847f8eSopenharmony_ci * Indicates extension info with type of dataShare 53161847f8eSopenharmony_ci * 53261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 53361847f8eSopenharmony_ci * @since 9 53461847f8eSopenharmony_ci */ 53561847f8eSopenharmony_ci DATA_SHARE = 5, 53661847f8eSopenharmony_ci 53761847f8eSopenharmony_ci /** 53861847f8eSopenharmony_ci * Indicates extension info with type of filesShare 53961847f8eSopenharmony_ci * 54061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 54161847f8eSopenharmony_ci * @since 9 54261847f8eSopenharmony_ci */ 54361847f8eSopenharmony_ci FILE_SHARE = 6, 54461847f8eSopenharmony_ci 54561847f8eSopenharmony_ci /** 54661847f8eSopenharmony_ci * Indicates extension info with type of staticSubscriber 54761847f8eSopenharmony_ci * 54861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 54961847f8eSopenharmony_ci * @since 9 55061847f8eSopenharmony_ci */ 55161847f8eSopenharmony_ci STATIC_SUBSCRIBER = 7, 55261847f8eSopenharmony_ci 55361847f8eSopenharmony_ci /** 55461847f8eSopenharmony_ci * Indicates extension info with type of wallpaper 55561847f8eSopenharmony_ci * 55661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 55761847f8eSopenharmony_ci * @since 9 55861847f8eSopenharmony_ci */ 55961847f8eSopenharmony_ci WALLPAPER = 8, 56061847f8eSopenharmony_ci 56161847f8eSopenharmony_ci /** 56261847f8eSopenharmony_ci * Indicates extension info with type of backup 56361847f8eSopenharmony_ci * 56461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 56561847f8eSopenharmony_ci * @since 9 56661847f8eSopenharmony_ci */ 56761847f8eSopenharmony_ci BACKUP = 9, 56861847f8eSopenharmony_ci 56961847f8eSopenharmony_ci /** 57061847f8eSopenharmony_ci * Indicates extension info with type of window 57161847f8eSopenharmony_ci * 57261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 57361847f8eSopenharmony_ci * @since 9 57461847f8eSopenharmony_ci */ 57561847f8eSopenharmony_ci WINDOW = 10, 57661847f8eSopenharmony_ci 57761847f8eSopenharmony_ci /** 57861847f8eSopenharmony_ci * Indicates extension info with type of enterprise admin 57961847f8eSopenharmony_ci * 58061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 58161847f8eSopenharmony_ci * @since 9 58261847f8eSopenharmony_ci */ 58361847f8eSopenharmony_ci ENTERPRISE_ADMIN = 11, 58461847f8eSopenharmony_ci 58561847f8eSopenharmony_ci /** 58661847f8eSopenharmony_ci * Indicates extension info with type of thumbnail 58761847f8eSopenharmony_ci * 58861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 58961847f8eSopenharmony_ci * @since 9 59061847f8eSopenharmony_ci */ 59161847f8eSopenharmony_ci THUMBNAIL = 13, 59261847f8eSopenharmony_ci 59361847f8eSopenharmony_ci /** 59461847f8eSopenharmony_ci * Indicates extension info with type of preview 59561847f8eSopenharmony_ci * 59661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 59761847f8eSopenharmony_ci * @since 9 59861847f8eSopenharmony_ci */ 59961847f8eSopenharmony_ci PREVIEW = 14, 60061847f8eSopenharmony_ci 60161847f8eSopenharmony_ci /** 60261847f8eSopenharmony_ci * Indicates extension info with type of print 60361847f8eSopenharmony_ci * 60461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 60561847f8eSopenharmony_ci * @since 10 60661847f8eSopenharmony_ci */ 60761847f8eSopenharmony_ci PRINT = 15, 60861847f8eSopenharmony_ci 60961847f8eSopenharmony_ci /** 61061847f8eSopenharmony_ci * Indicates extension info with type of share 61161847f8eSopenharmony_ci * 61261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 61361847f8eSopenharmony_ci * @since 10 61461847f8eSopenharmony_ci */ 61561847f8eSopenharmony_ci SHARE = 16, 61661847f8eSopenharmony_ci 61761847f8eSopenharmony_ci /** 61861847f8eSopenharmony_ci * Indicates extension info with type of push 61961847f8eSopenharmony_ci * 62061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 62161847f8eSopenharmony_ci * @since 10 62261847f8eSopenharmony_ci */ 62361847f8eSopenharmony_ci PUSH = 17, 62461847f8eSopenharmony_ci 62561847f8eSopenharmony_ci /** 62661847f8eSopenharmony_ci * Indicates extension info with type of driver 62761847f8eSopenharmony_ci * 62861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 62961847f8eSopenharmony_ci * @since 10 63061847f8eSopenharmony_ci */ 63161847f8eSopenharmony_ci DRIVER = 18, 63261847f8eSopenharmony_ci 63361847f8eSopenharmony_ci /** 63461847f8eSopenharmony_ci * Indicates extension info with type of action 63561847f8eSopenharmony_ci * 63661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 63761847f8eSopenharmony_ci * @since 10 63861847f8eSopenharmony_ci */ 63961847f8eSopenharmony_ci ACTION = 19, 64061847f8eSopenharmony_ci 64161847f8eSopenharmony_ci /** 64261847f8eSopenharmony_ci * Indicates extension info with type of ads service 64361847f8eSopenharmony_ci * 64461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 64561847f8eSopenharmony_ci * @since 11 64661847f8eSopenharmony_ci */ 64761847f8eSopenharmony_ci ADS_SERVICE = 20, 64861847f8eSopenharmony_ci 64961847f8eSopenharmony_ci /** 65061847f8eSopenharmony_ci * Indicates extension info with type of embedded UI 65161847f8eSopenharmony_ci * 65261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 65361847f8eSopenharmony_ci * @since 12 65461847f8eSopenharmony_ci */ 65561847f8eSopenharmony_ci EMBEDDED_UI = 21, 65661847f8eSopenharmony_ci 65761847f8eSopenharmony_ci /** 65861847f8eSopenharmony_ci * Indicates extension info with type of insight intent UI 65961847f8eSopenharmony_ci * 66061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 66161847f8eSopenharmony_ci * @since 12 66261847f8eSopenharmony_ci */ 66361847f8eSopenharmony_ci INSIGHT_INTENT_UI = 22, 66461847f8eSopenharmony_ci 66561847f8eSopenharmony_ci /** 66661847f8eSopenharmony_ci * Indicates extension info with type of unspecified 66761847f8eSopenharmony_ci * 66861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 66961847f8eSopenharmony_ci * @since 9 67061847f8eSopenharmony_ci */ 67161847f8eSopenharmony_ci UNSPECIFIED = 255 67261847f8eSopenharmony_ci } 67361847f8eSopenharmony_ci 67461847f8eSopenharmony_ci /** 67561847f8eSopenharmony_ci * PermissionGrantState 67661847f8eSopenharmony_ci * 67761847f8eSopenharmony_ci * @enum { number } 67861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 67961847f8eSopenharmony_ci * @since 9 68061847f8eSopenharmony_ci */ 68161847f8eSopenharmony_ci /** 68261847f8eSopenharmony_ci * PermissionGrantState 68361847f8eSopenharmony_ci * 68461847f8eSopenharmony_ci * @enum { number } 68561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 68661847f8eSopenharmony_ci * @atomicservice 68761847f8eSopenharmony_ci * @since 11 68861847f8eSopenharmony_ci */ 68961847f8eSopenharmony_ci export enum PermissionGrantState { 69061847f8eSopenharmony_ci /** 69161847f8eSopenharmony_ci * PERMISSION_DENIED 69261847f8eSopenharmony_ci * 69361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 69461847f8eSopenharmony_ci * @since 9 69561847f8eSopenharmony_ci */ 69661847f8eSopenharmony_ci /** 69761847f8eSopenharmony_ci * PERMISSION_DENIED 69861847f8eSopenharmony_ci * 69961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 70061847f8eSopenharmony_ci * @atomicservice 70161847f8eSopenharmony_ci * @since 11 70261847f8eSopenharmony_ci */ 70361847f8eSopenharmony_ci PERMISSION_DENIED = -1, 70461847f8eSopenharmony_ci 70561847f8eSopenharmony_ci /** 70661847f8eSopenharmony_ci * PERMISSION_GRANTED 70761847f8eSopenharmony_ci * 70861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 70961847f8eSopenharmony_ci * @since 9 71061847f8eSopenharmony_ci */ 71161847f8eSopenharmony_ci /** 71261847f8eSopenharmony_ci * PERMISSION_GRANTED 71361847f8eSopenharmony_ci * 71461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 71561847f8eSopenharmony_ci * @atomicservice 71661847f8eSopenharmony_ci * @since 11 71761847f8eSopenharmony_ci */ 71861847f8eSopenharmony_ci PERMISSION_GRANTED = 0 71961847f8eSopenharmony_ci } 72061847f8eSopenharmony_ci 72161847f8eSopenharmony_ci /** 72261847f8eSopenharmony_ci * Support window mode 72361847f8eSopenharmony_ci * 72461847f8eSopenharmony_ci * @enum { number } 72561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 72661847f8eSopenharmony_ci * @since 9 72761847f8eSopenharmony_ci */ 72861847f8eSopenharmony_ci /** 72961847f8eSopenharmony_ci * Support window mode 73061847f8eSopenharmony_ci * 73161847f8eSopenharmony_ci * @enum { number } 73261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 73361847f8eSopenharmony_ci * @atomicservice 73461847f8eSopenharmony_ci * @since 11 73561847f8eSopenharmony_ci */ 73661847f8eSopenharmony_ci export enum SupportWindowMode { 73761847f8eSopenharmony_ci /** 73861847f8eSopenharmony_ci * Indicates supported window mode of full screen mode 73961847f8eSopenharmony_ci * 74061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 74161847f8eSopenharmony_ci * @since 9 74261847f8eSopenharmony_ci */ 74361847f8eSopenharmony_ci /** 74461847f8eSopenharmony_ci * Indicates supported window mode of full screen mode 74561847f8eSopenharmony_ci * 74661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 74761847f8eSopenharmony_ci * @atomicservice 74861847f8eSopenharmony_ci * @since 11 74961847f8eSopenharmony_ci */ 75061847f8eSopenharmony_ci FULL_SCREEN = 0, 75161847f8eSopenharmony_ci /** 75261847f8eSopenharmony_ci * Indicates supported window mode of split mode 75361847f8eSopenharmony_ci * 75461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 75561847f8eSopenharmony_ci * @since 9 75661847f8eSopenharmony_ci */ 75761847f8eSopenharmony_ci /** 75861847f8eSopenharmony_ci * Indicates supported window mode of split mode 75961847f8eSopenharmony_ci * 76061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 76161847f8eSopenharmony_ci * @atomicservice 76261847f8eSopenharmony_ci * @since 11 76361847f8eSopenharmony_ci */ 76461847f8eSopenharmony_ci SPLIT = 1, 76561847f8eSopenharmony_ci /** 76661847f8eSopenharmony_ci * Indicates supported window mode of floating mode 76761847f8eSopenharmony_ci * 76861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 76961847f8eSopenharmony_ci * @since 9 77061847f8eSopenharmony_ci */ 77161847f8eSopenharmony_ci /** 77261847f8eSopenharmony_ci * Indicates supported window mode of floating mode 77361847f8eSopenharmony_ci * 77461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 77561847f8eSopenharmony_ci * @atomicservice 77661847f8eSopenharmony_ci * @since 11 77761847f8eSopenharmony_ci */ 77861847f8eSopenharmony_ci FLOATING = 2 77961847f8eSopenharmony_ci } 78061847f8eSopenharmony_ci 78161847f8eSopenharmony_ci /** 78261847f8eSopenharmony_ci * Launch type 78361847f8eSopenharmony_ci * 78461847f8eSopenharmony_ci * @enum { number } 78561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 78661847f8eSopenharmony_ci * @since 9 78761847f8eSopenharmony_ci */ 78861847f8eSopenharmony_ci /** 78961847f8eSopenharmony_ci * Launch type 79061847f8eSopenharmony_ci * 79161847f8eSopenharmony_ci * @enum { number } 79261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 79361847f8eSopenharmony_ci * @crossplatform 79461847f8eSopenharmony_ci * @since 10 79561847f8eSopenharmony_ci */ 79661847f8eSopenharmony_ci /** 79761847f8eSopenharmony_ci * Launch type 79861847f8eSopenharmony_ci * 79961847f8eSopenharmony_ci * @enum { number } 80061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 80161847f8eSopenharmony_ci * @crossplatform 80261847f8eSopenharmony_ci * @atomicservice 80361847f8eSopenharmony_ci * @since 11 80461847f8eSopenharmony_ci */ 80561847f8eSopenharmony_ci export enum LaunchType { 80661847f8eSopenharmony_ci /** 80761847f8eSopenharmony_ci * Indicates that the ability has only one instance 80861847f8eSopenharmony_ci * 80961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 81061847f8eSopenharmony_ci * @since 9 81161847f8eSopenharmony_ci */ 81261847f8eSopenharmony_ci /** 81361847f8eSopenharmony_ci * Indicates that the ability has only one instance 81461847f8eSopenharmony_ci * 81561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 81661847f8eSopenharmony_ci * @crossplatform 81761847f8eSopenharmony_ci * @since 10 81861847f8eSopenharmony_ci */ 81961847f8eSopenharmony_ci /** 82061847f8eSopenharmony_ci * Indicates that the ability has only one instance 82161847f8eSopenharmony_ci * 82261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 82361847f8eSopenharmony_ci * @crossplatform 82461847f8eSopenharmony_ci * @atomicservice 82561847f8eSopenharmony_ci * @since 11 82661847f8eSopenharmony_ci */ 82761847f8eSopenharmony_ci SINGLETON = 0, 82861847f8eSopenharmony_ci 82961847f8eSopenharmony_ci /** 83061847f8eSopenharmony_ci * Indicates that the ability can have multiple instances 83161847f8eSopenharmony_ci * 83261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 83361847f8eSopenharmony_ci * @since 9 83461847f8eSopenharmony_ci */ 83561847f8eSopenharmony_ci /** 83661847f8eSopenharmony_ci * Indicates that the ability can have multiple instances 83761847f8eSopenharmony_ci * 83861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 83961847f8eSopenharmony_ci * @crossplatform 84061847f8eSopenharmony_ci * @since 10 84161847f8eSopenharmony_ci */ 84261847f8eSopenharmony_ci /** 84361847f8eSopenharmony_ci * Indicates that the ability can have multiple instances 84461847f8eSopenharmony_ci * 84561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 84661847f8eSopenharmony_ci * @crossplatform 84761847f8eSopenharmony_ci * @atomicservice 84861847f8eSopenharmony_ci * @since 11 84961847f8eSopenharmony_ci */ 85061847f8eSopenharmony_ci MULTITON = 1, 85161847f8eSopenharmony_ci 85261847f8eSopenharmony_ci /** 85361847f8eSopenharmony_ci * Indicates that the ability can have specified instances 85461847f8eSopenharmony_ci * 85561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 85661847f8eSopenharmony_ci * @since 9 85761847f8eSopenharmony_ci */ 85861847f8eSopenharmony_ci /** 85961847f8eSopenharmony_ci * Indicates that the ability can have specified instances 86061847f8eSopenharmony_ci * 86161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 86261847f8eSopenharmony_ci * @atomicservice 86361847f8eSopenharmony_ci * @since 11 86461847f8eSopenharmony_ci */ 86561847f8eSopenharmony_ci SPECIFIED = 2 86661847f8eSopenharmony_ci } 86761847f8eSopenharmony_ci 86861847f8eSopenharmony_ci /** 86961847f8eSopenharmony_ci * Indicates ability type 87061847f8eSopenharmony_ci * 87161847f8eSopenharmony_ci * @enum { number } 87261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 87361847f8eSopenharmony_ci * @FAModelOnly 87461847f8eSopenharmony_ci * @since 9 87561847f8eSopenharmony_ci */ 87661847f8eSopenharmony_ci export enum AbilityType { 87761847f8eSopenharmony_ci /** 87861847f8eSopenharmony_ci * Indicates that the ability has a UI 87961847f8eSopenharmony_ci * 88061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 88161847f8eSopenharmony_ci * @FAModelOnly 88261847f8eSopenharmony_ci * @since 9 88361847f8eSopenharmony_ci */ 88461847f8eSopenharmony_ci PAGE = 1, 88561847f8eSopenharmony_ci 88661847f8eSopenharmony_ci /** 88761847f8eSopenharmony_ci * Indicates that the ability does not have a UI 88861847f8eSopenharmony_ci * 88961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 89061847f8eSopenharmony_ci * @FAModelOnly 89161847f8eSopenharmony_ci * @since 9 89261847f8eSopenharmony_ci */ 89361847f8eSopenharmony_ci SERVICE = 2, 89461847f8eSopenharmony_ci 89561847f8eSopenharmony_ci /** 89661847f8eSopenharmony_ci * Indicates that the ability is used to provide data access services 89761847f8eSopenharmony_ci * 89861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 89961847f8eSopenharmony_ci * @FAModelOnly 90061847f8eSopenharmony_ci * @since 9 90161847f8eSopenharmony_ci */ 90261847f8eSopenharmony_ci DATA = 3 90361847f8eSopenharmony_ci } 90461847f8eSopenharmony_ci 90561847f8eSopenharmony_ci /** 90661847f8eSopenharmony_ci * Display orientation 90761847f8eSopenharmony_ci * 90861847f8eSopenharmony_ci * @enum { number } 90961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 91061847f8eSopenharmony_ci * @since 9 91161847f8eSopenharmony_ci */ 91261847f8eSopenharmony_ci /** 91361847f8eSopenharmony_ci * Display orientation 91461847f8eSopenharmony_ci * 91561847f8eSopenharmony_ci * @enum { number } 91661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 91761847f8eSopenharmony_ci * @atomicservice 91861847f8eSopenharmony_ci * @since 11 91961847f8eSopenharmony_ci */ 92061847f8eSopenharmony_ci export enum DisplayOrientation { 92161847f8eSopenharmony_ci /** 92261847f8eSopenharmony_ci * Indicates that the system automatically determines the display orientation 92361847f8eSopenharmony_ci * 92461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 92561847f8eSopenharmony_ci * @since 9 92661847f8eSopenharmony_ci */ 92761847f8eSopenharmony_ci /** 92861847f8eSopenharmony_ci * Indicates that the system automatically determines the display orientation 92961847f8eSopenharmony_ci * 93061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 93161847f8eSopenharmony_ci * @atomicservice 93261847f8eSopenharmony_ci * @since 11 93361847f8eSopenharmony_ci */ 93461847f8eSopenharmony_ci UNSPECIFIED, 93561847f8eSopenharmony_ci 93661847f8eSopenharmony_ci /** 93761847f8eSopenharmony_ci * Indicates the landscape orientation 93861847f8eSopenharmony_ci * 93961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 94061847f8eSopenharmony_ci * @since 9 94161847f8eSopenharmony_ci */ 94261847f8eSopenharmony_ci /** 94361847f8eSopenharmony_ci * Indicates the landscape orientation 94461847f8eSopenharmony_ci * 94561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 94661847f8eSopenharmony_ci * @atomicservice 94761847f8eSopenharmony_ci * @since 11 94861847f8eSopenharmony_ci */ 94961847f8eSopenharmony_ci LANDSCAPE, 95061847f8eSopenharmony_ci 95161847f8eSopenharmony_ci /** 95261847f8eSopenharmony_ci * Indicates the portrait orientation 95361847f8eSopenharmony_ci * 95461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 95561847f8eSopenharmony_ci * @since 9 95661847f8eSopenharmony_ci */ 95761847f8eSopenharmony_ci /** 95861847f8eSopenharmony_ci * Indicates the portrait orientation 95961847f8eSopenharmony_ci * 96061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 96161847f8eSopenharmony_ci * @atomicservice 96261847f8eSopenharmony_ci * @since 11 96361847f8eSopenharmony_ci */ 96461847f8eSopenharmony_ci PORTRAIT, 96561847f8eSopenharmony_ci 96661847f8eSopenharmony_ci /** 96761847f8eSopenharmony_ci * Indicates the page ability orientation is the same as that of the nearest ability in the stack 96861847f8eSopenharmony_ci * 96961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 97061847f8eSopenharmony_ci * @since 9 97161847f8eSopenharmony_ci */ 97261847f8eSopenharmony_ci /** 97361847f8eSopenharmony_ci * Indicates the page ability orientation is the same as that of the nearest ability in the stack 97461847f8eSopenharmony_ci * 97561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 97661847f8eSopenharmony_ci * @atomicservice 97761847f8eSopenharmony_ci * @since 11 97861847f8eSopenharmony_ci */ 97961847f8eSopenharmony_ci FOLLOW_RECENT, 98061847f8eSopenharmony_ci 98161847f8eSopenharmony_ci /** 98261847f8eSopenharmony_ci * Indicates the inverted landscape orientation 98361847f8eSopenharmony_ci * 98461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 98561847f8eSopenharmony_ci * @since 9 98661847f8eSopenharmony_ci */ 98761847f8eSopenharmony_ci /** 98861847f8eSopenharmony_ci * Indicates the inverted landscape orientation 98961847f8eSopenharmony_ci * 99061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 99161847f8eSopenharmony_ci * @atomicservice 99261847f8eSopenharmony_ci * @since 11 99361847f8eSopenharmony_ci */ 99461847f8eSopenharmony_ci LANDSCAPE_INVERTED, 99561847f8eSopenharmony_ci 99661847f8eSopenharmony_ci /** 99761847f8eSopenharmony_ci * Indicates the inverted portrait orientation 99861847f8eSopenharmony_ci * 99961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 100061847f8eSopenharmony_ci * @since 9 100161847f8eSopenharmony_ci */ 100261847f8eSopenharmony_ci /** 100361847f8eSopenharmony_ci * Indicates the inverted portrait orientation 100461847f8eSopenharmony_ci * 100561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 100661847f8eSopenharmony_ci * @atomicservice 100761847f8eSopenharmony_ci * @since 11 100861847f8eSopenharmony_ci */ 100961847f8eSopenharmony_ci PORTRAIT_INVERTED, 101061847f8eSopenharmony_ci 101161847f8eSopenharmony_ci /** 101261847f8eSopenharmony_ci * Indicates the orientation can be auto-rotated 101361847f8eSopenharmony_ci * 101461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 101561847f8eSopenharmony_ci * @since 9 101661847f8eSopenharmony_ci */ 101761847f8eSopenharmony_ci /** 101861847f8eSopenharmony_ci * Indicates the orientation can be auto-rotated 101961847f8eSopenharmony_ci * 102061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 102161847f8eSopenharmony_ci * @atomicservice 102261847f8eSopenharmony_ci * @since 11 102361847f8eSopenharmony_ci */ 102461847f8eSopenharmony_ci AUTO_ROTATION, 102561847f8eSopenharmony_ci 102661847f8eSopenharmony_ci /** 102761847f8eSopenharmony_ci * Indicates the landscape orientation rotated with sensor 102861847f8eSopenharmony_ci * 102961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 103061847f8eSopenharmony_ci * @since 9 103161847f8eSopenharmony_ci */ 103261847f8eSopenharmony_ci /** 103361847f8eSopenharmony_ci * Indicates the landscape orientation rotated with sensor 103461847f8eSopenharmony_ci * 103561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 103661847f8eSopenharmony_ci * @atomicservice 103761847f8eSopenharmony_ci * @since 11 103861847f8eSopenharmony_ci */ 103961847f8eSopenharmony_ci AUTO_ROTATION_LANDSCAPE, 104061847f8eSopenharmony_ci 104161847f8eSopenharmony_ci /** 104261847f8eSopenharmony_ci * Indicates the portrait orientation rotated with sensor 104361847f8eSopenharmony_ci * 104461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 104561847f8eSopenharmony_ci * @since 9 104661847f8eSopenharmony_ci */ 104761847f8eSopenharmony_ci /** 104861847f8eSopenharmony_ci * Indicates the portrait orientation rotated with sensor 104961847f8eSopenharmony_ci * 105061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 105161847f8eSopenharmony_ci * @atomicservice 105261847f8eSopenharmony_ci * @since 11 105361847f8eSopenharmony_ci */ 105461847f8eSopenharmony_ci AUTO_ROTATION_PORTRAIT, 105561847f8eSopenharmony_ci 105661847f8eSopenharmony_ci /** 105761847f8eSopenharmony_ci * Indicates the sensor restricted mode 105861847f8eSopenharmony_ci * 105961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 106061847f8eSopenharmony_ci * @since 9 106161847f8eSopenharmony_ci */ 106261847f8eSopenharmony_ci /** 106361847f8eSopenharmony_ci * Indicates the sensor restricted mode 106461847f8eSopenharmony_ci * 106561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 106661847f8eSopenharmony_ci * @atomicservice 106761847f8eSopenharmony_ci * @since 11 106861847f8eSopenharmony_ci */ 106961847f8eSopenharmony_ci AUTO_ROTATION_RESTRICTED, 107061847f8eSopenharmony_ci 107161847f8eSopenharmony_ci /** 107261847f8eSopenharmony_ci * Indicates the sensor landscape restricted mode 107361847f8eSopenharmony_ci * 107461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 107561847f8eSopenharmony_ci * @since 9 107661847f8eSopenharmony_ci */ 107761847f8eSopenharmony_ci /** 107861847f8eSopenharmony_ci * Indicates the sensor landscape restricted mode 107961847f8eSopenharmony_ci * 108061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 108161847f8eSopenharmony_ci * @atomicservice 108261847f8eSopenharmony_ci * @since 11 108361847f8eSopenharmony_ci */ 108461847f8eSopenharmony_ci AUTO_ROTATION_LANDSCAPE_RESTRICTED, 108561847f8eSopenharmony_ci 108661847f8eSopenharmony_ci /** 108761847f8eSopenharmony_ci * Indicates the sensor portrait restricted mode 108861847f8eSopenharmony_ci * 108961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 109061847f8eSopenharmony_ci * @since 9 109161847f8eSopenharmony_ci */ 109261847f8eSopenharmony_ci /** 109361847f8eSopenharmony_ci * Indicates the sensor portrait restricted mode 109461847f8eSopenharmony_ci * 109561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 109661847f8eSopenharmony_ci * @atomicservice 109761847f8eSopenharmony_ci * @since 11 109861847f8eSopenharmony_ci */ 109961847f8eSopenharmony_ci AUTO_ROTATION_PORTRAIT_RESTRICTED, 110061847f8eSopenharmony_ci 110161847f8eSopenharmony_ci /** 110261847f8eSopenharmony_ci * Indicates the locked orientation mode 110361847f8eSopenharmony_ci * 110461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 110561847f8eSopenharmony_ci * @since 9 110661847f8eSopenharmony_ci */ 110761847f8eSopenharmony_ci /** 110861847f8eSopenharmony_ci * Indicates the locked orientation mode 110961847f8eSopenharmony_ci * 111061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 111161847f8eSopenharmony_ci * @atomicservice 111261847f8eSopenharmony_ci * @since 11 111361847f8eSopenharmony_ci */ 111461847f8eSopenharmony_ci LOCKED, 111561847f8eSopenharmony_ci 111661847f8eSopenharmony_ci /** 111761847f8eSopenharmony_ci * Indicates the system automatically determines the sensor restricted mode 111861847f8eSopenharmony_ci * 111961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 112061847f8eSopenharmony_ci * @atomicservice 112161847f8eSopenharmony_ci * @since 12 112261847f8eSopenharmony_ci */ 112361847f8eSopenharmony_ci AUTO_ROTATION_UNSPECIFIED, 112461847f8eSopenharmony_ci 112561847f8eSopenharmony_ci /** 112661847f8eSopenharmony_ci * Indicates the orientation follow the desktop rotate mode 112761847f8eSopenharmony_ci * 112861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 112961847f8eSopenharmony_ci * @atomicservice 113061847f8eSopenharmony_ci * @since 12 113161847f8eSopenharmony_ci */ 113261847f8eSopenharmony_ci FOLLOW_DESKTOP 113361847f8eSopenharmony_ci } 113461847f8eSopenharmony_ci 113561847f8eSopenharmony_ci /** 113661847f8eSopenharmony_ci * Indicates module type 113761847f8eSopenharmony_ci * 113861847f8eSopenharmony_ci * @enum { number } 113961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 114061847f8eSopenharmony_ci * @since 9 114161847f8eSopenharmony_ci */ 114261847f8eSopenharmony_ci /** 114361847f8eSopenharmony_ci * Indicates module type 114461847f8eSopenharmony_ci * 114561847f8eSopenharmony_ci * @enum { number } 114661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 114761847f8eSopenharmony_ci * @atomicservice 114861847f8eSopenharmony_ci * @since 11 114961847f8eSopenharmony_ci */ 115061847f8eSopenharmony_ci export enum ModuleType { 115161847f8eSopenharmony_ci /** 115261847f8eSopenharmony_ci * Indicates entry type 115361847f8eSopenharmony_ci * 115461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 115561847f8eSopenharmony_ci * @since 9 115661847f8eSopenharmony_ci */ 115761847f8eSopenharmony_ci /** 115861847f8eSopenharmony_ci * Indicates entry type 115961847f8eSopenharmony_ci * 116061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 116161847f8eSopenharmony_ci * @atomicservice 116261847f8eSopenharmony_ci * @since 11 116361847f8eSopenharmony_ci */ 116461847f8eSopenharmony_ci ENTRY = 1, 116561847f8eSopenharmony_ci /** 116661847f8eSopenharmony_ci * Indicates feature type 116761847f8eSopenharmony_ci * 116861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 116961847f8eSopenharmony_ci * @since 9 117061847f8eSopenharmony_ci */ 117161847f8eSopenharmony_ci /** 117261847f8eSopenharmony_ci * Indicates feature type 117361847f8eSopenharmony_ci * 117461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 117561847f8eSopenharmony_ci * @atomicservice 117661847f8eSopenharmony_ci * @since 11 117761847f8eSopenharmony_ci */ 117861847f8eSopenharmony_ci FEATURE = 2, 117961847f8eSopenharmony_ci /** 118061847f8eSopenharmony_ci * Indicates shared type 118161847f8eSopenharmony_ci * 118261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 118361847f8eSopenharmony_ci * @since 9 118461847f8eSopenharmony_ci */ 118561847f8eSopenharmony_ci /** 118661847f8eSopenharmony_ci * Indicates shared type 118761847f8eSopenharmony_ci * 118861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 118961847f8eSopenharmony_ci * @atomicservice 119061847f8eSopenharmony_ci * @since 11 119161847f8eSopenharmony_ci */ 119261847f8eSopenharmony_ci SHARED = 3 119361847f8eSopenharmony_ci } 119461847f8eSopenharmony_ci 119561847f8eSopenharmony_ci /** 119661847f8eSopenharmony_ci * Indicates bundle type 119761847f8eSopenharmony_ci * 119861847f8eSopenharmony_ci * @enum { number } 119961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 120061847f8eSopenharmony_ci * @since 9 120161847f8eSopenharmony_ci */ 120261847f8eSopenharmony_ci /** 120361847f8eSopenharmony_ci * Indicates bundle type 120461847f8eSopenharmony_ci * 120561847f8eSopenharmony_ci * @enum { number } 120661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 120761847f8eSopenharmony_ci * @atomicservice 120861847f8eSopenharmony_ci * @since 11 120961847f8eSopenharmony_ci */ 121061847f8eSopenharmony_ci export enum BundleType { 121161847f8eSopenharmony_ci /** 121261847f8eSopenharmony_ci * Indicates app 121361847f8eSopenharmony_ci * 121461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 121561847f8eSopenharmony_ci * @since 9 121661847f8eSopenharmony_ci */ 121761847f8eSopenharmony_ci /** 121861847f8eSopenharmony_ci * Indicates app 121961847f8eSopenharmony_ci * 122061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 122161847f8eSopenharmony_ci * @atomicservice 122261847f8eSopenharmony_ci * @since 11 122361847f8eSopenharmony_ci */ 122461847f8eSopenharmony_ci APP = 0, 122561847f8eSopenharmony_ci /** 122661847f8eSopenharmony_ci * Indicates atomic service 122761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 122861847f8eSopenharmony_ci * @since 9 122961847f8eSopenharmony_ci */ 123061847f8eSopenharmony_ci /** 123161847f8eSopenharmony_ci * Indicates atomic service 123261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 123361847f8eSopenharmony_ci * @atomicservice 123461847f8eSopenharmony_ci * @since 11 123561847f8eSopenharmony_ci */ 123661847f8eSopenharmony_ci ATOMIC_SERVICE = 1 123761847f8eSopenharmony_ci } 123861847f8eSopenharmony_ci 123961847f8eSopenharmony_ci /** 124061847f8eSopenharmony_ci * Shared bundle compatible policy 124161847f8eSopenharmony_ci * 124261847f8eSopenharmony_ci * @enum { number } 124361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 124461847f8eSopenharmony_ci * @since 10 124561847f8eSopenharmony_ci */ 124661847f8eSopenharmony_ci /** 124761847f8eSopenharmony_ci * Shared bundle compatible policy 124861847f8eSopenharmony_ci * 124961847f8eSopenharmony_ci * @enum { number } 125061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 125161847f8eSopenharmony_ci * @atomicservice 125261847f8eSopenharmony_ci * @since 11 125361847f8eSopenharmony_ci */ 125461847f8eSopenharmony_ci export enum CompatiblePolicy { 125561847f8eSopenharmony_ci /** 125661847f8eSopenharmony_ci * Indicates that the app is a shared bundle and the shared bundle type is backward compatibility 125761847f8eSopenharmony_ci * 125861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 125961847f8eSopenharmony_ci * @since 10 126061847f8eSopenharmony_ci */ 126161847f8eSopenharmony_ci /** 126261847f8eSopenharmony_ci * Indicates that the app is a shared bundle and the shared bundle type is backward compatibility 126361847f8eSopenharmony_ci * 126461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 126561847f8eSopenharmony_ci * @atomicservice 126661847f8eSopenharmony_ci * @since 11 126761847f8eSopenharmony_ci */ 126861847f8eSopenharmony_ci BACKWARD_COMPATIBILITY = 1 126961847f8eSopenharmony_ci } 127061847f8eSopenharmony_ci 127161847f8eSopenharmony_ci /** 127261847f8eSopenharmony_ci * This enumeration value is used to identify various types of JSON profile. 127361847f8eSopenharmony_ci * 127461847f8eSopenharmony_ci * @enum { number } 127561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 127661847f8eSopenharmony_ci * @systemapi 127761847f8eSopenharmony_ci * @since 11 127861847f8eSopenharmony_ci */ 127961847f8eSopenharmony_ci export enum ProfileType { 128061847f8eSopenharmony_ci /** 128161847f8eSopenharmony_ci * Indicates JSON profile about intent framework. 128261847f8eSopenharmony_ci * 128361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 128461847f8eSopenharmony_ci * @systemapi 128561847f8eSopenharmony_ci * @since 11 128661847f8eSopenharmony_ci */ 128761847f8eSopenharmony_ci INTENT_PROFILE = 1 128861847f8eSopenharmony_ci } 128961847f8eSopenharmony_ci 129061847f8eSopenharmony_ci /** 129161847f8eSopenharmony_ci * This enumeration value is used to identify the distribution type of application. 129261847f8eSopenharmony_ci * 129361847f8eSopenharmony_ci * @enum { number } 129461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 129561847f8eSopenharmony_ci * @systemapi 129661847f8eSopenharmony_ci * @since 12 129761847f8eSopenharmony_ci */ 129861847f8eSopenharmony_ci export enum AppDistributionType { 129961847f8eSopenharmony_ci /** 130061847f8eSopenharmony_ci * Indicates the application is distributed by the App Gallery. 130161847f8eSopenharmony_ci * 130261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 130361847f8eSopenharmony_ci * @systemapi 130461847f8eSopenharmony_ci * @since 12 130561847f8eSopenharmony_ci */ 130661847f8eSopenharmony_ci APP_GALLERY = 1, 130761847f8eSopenharmony_ci 130861847f8eSopenharmony_ci /** 130961847f8eSopenharmony_ci * Indicates the enterprise application, which can be installed in personal devices. 131061847f8eSopenharmony_ci * 131161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 131261847f8eSopenharmony_ci * @systemapi 131361847f8eSopenharmony_ci * @since 12 131461847f8eSopenharmony_ci */ 131561847f8eSopenharmony_ci ENTERPRISE = 2, 131661847f8eSopenharmony_ci 131761847f8eSopenharmony_ci /** 131861847f8eSopenharmony_ci * Indicates the normal enterprise application. 131961847f8eSopenharmony_ci * This kind of application can only be installed on enterprise devices through the enterprise MDM application and does not require device management privileges. 132061847f8eSopenharmony_ci * 132161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 132261847f8eSopenharmony_ci * @systemapi 132361847f8eSopenharmony_ci * @since 12 132461847f8eSopenharmony_ci */ 132561847f8eSopenharmony_ci ENTERPRISE_NORMAL = 3, 132661847f8eSopenharmony_ci 132761847f8eSopenharmony_ci /** 132861847f8eSopenharmony_ci * Indicates the enterprise MDM application, which can only be installed on enterprise devices. 132961847f8eSopenharmony_ci * This kind of application requires device management privileges, such as remote locking, which can install normal enterprise applications, etc. 133061847f8eSopenharmony_ci * 133161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 133261847f8eSopenharmony_ci * @systemapi 133361847f8eSopenharmony_ci * @since 12 133461847f8eSopenharmony_ci */ 133561847f8eSopenharmony_ci ENTERPRISE_MDM = 4, 133661847f8eSopenharmony_ci 133761847f8eSopenharmony_ci /** 133861847f8eSopenharmony_ci * Indicates the system preinstalled application. 133961847f8eSopenharmony_ci * 134061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 134161847f8eSopenharmony_ci * @systemapi 134261847f8eSopenharmony_ci * @since 12 134361847f8eSopenharmony_ci */ 134461847f8eSopenharmony_ci OS_INTEGRATION = 5, 134561847f8eSopenharmony_ci 134661847f8eSopenharmony_ci /** 134761847f8eSopenharmony_ci * Indicates the crowdtesting application. 134861847f8eSopenharmony_ci * 134961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 135061847f8eSopenharmony_ci * @systemapi 135161847f8eSopenharmony_ci * @since 12 135261847f8eSopenharmony_ci */ 135361847f8eSopenharmony_ci CROWDTESTING = 6, 135461847f8eSopenharmony_ci 135561847f8eSopenharmony_ci /** 135661847f8eSopenharmony_ci * Indicates other types of application. 135761847f8eSopenharmony_ci * 135861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 135961847f8eSopenharmony_ci * @systemapi 136061847f8eSopenharmony_ci * @since 12 136161847f8eSopenharmony_ci */ 136261847f8eSopenharmony_ci NONE = 7 136361847f8eSopenharmony_ci } 136461847f8eSopenharmony_ci 136561847f8eSopenharmony_ci /** 136661847f8eSopenharmony_ci * This enumeration value is used to identify various types of extension ability 136761847f8eSopenharmony_ci * 136861847f8eSopenharmony_ci * @enum { number } 136961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 137061847f8eSopenharmony_ci * @since 12 137161847f8eSopenharmony_ci */ 137261847f8eSopenharmony_ci export enum MultiAppModeType { 137361847f8eSopenharmony_ci /** 137461847f8eSopenharmony_ci * Indicates multi app mode with type of unspecified 137561847f8eSopenharmony_ci * 137661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 137761847f8eSopenharmony_ci * @since 12 137861847f8eSopenharmony_ci */ 137961847f8eSopenharmony_ci UNSPECIFIED = 0, 138061847f8eSopenharmony_ci /** 138161847f8eSopenharmony_ci * Indicates multi app mode with type of multiInstance 138261847f8eSopenharmony_ci * 138361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 138461847f8eSopenharmony_ci * @since 12 138561847f8eSopenharmony_ci */ 138661847f8eSopenharmony_ci MULTI_INSTANCE = 1, 138761847f8eSopenharmony_ci /** 138861847f8eSopenharmony_ci * Indicates multi app mode with type of appClone 138961847f8eSopenharmony_ci * 139061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 139161847f8eSopenharmony_ci * @since 12 139261847f8eSopenharmony_ci */ 139361847f8eSopenharmony_ci APP_CLONE = 2, 139461847f8eSopenharmony_ci } 139561847f8eSopenharmony_ci 139661847f8eSopenharmony_ci /** 139761847f8eSopenharmony_ci * This enumeration value is used to identify various flags of application 139861847f8eSopenharmony_ci * 139961847f8eSopenharmony_ci * @enum { number } 140061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 140161847f8eSopenharmony_ci * @systemapi 140261847f8eSopenharmony_ci * @since 12 140361847f8eSopenharmony_ci */ 140461847f8eSopenharmony_ci export enum ApplicationInfoFlag { 140561847f8eSopenharmony_ci /** 140661847f8eSopenharmony_ci * Indicates The application is currently installed for the calling user. 140761847f8eSopenharmony_ci * 140861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 140961847f8eSopenharmony_ci * @systemapi 141061847f8eSopenharmony_ci * @since 12 141161847f8eSopenharmony_ci */ 141261847f8eSopenharmony_ci FLAG_INSTALLED = 0x00000001, 141361847f8eSopenharmony_ci } 141461847f8eSopenharmony_ci 141561847f8eSopenharmony_ci /** 141661847f8eSopenharmony_ci * Obtains own bundleInfo. 141761847f8eSopenharmony_ci * 141861847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. 141961847f8eSopenharmony_ci * @returns { Promise<BundleInfo> } The result of getting the bundle info. 142061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 142161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 142261847f8eSopenharmony_ci * @since 9 142361847f8eSopenharmony_ci */ 142461847f8eSopenharmony_ci /** 142561847f8eSopenharmony_ci * Obtains own bundleInfo. 142661847f8eSopenharmony_ci * 142761847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. 142861847f8eSopenharmony_ci * @returns { Promise<BundleInfo> } The result of getting the bundle info. 142961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 143061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 143161847f8eSopenharmony_ci * @atomicservice 143261847f8eSopenharmony_ci * @since 11 143361847f8eSopenharmony_ci */ 143461847f8eSopenharmony_ci function getBundleInfoForSelf(bundleFlags: number): Promise<BundleInfo>; 143561847f8eSopenharmony_ci 143661847f8eSopenharmony_ci /** 143761847f8eSopenharmony_ci * Obtains own bundleInfo. 143861847f8eSopenharmony_ci * 143961847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. 144061847f8eSopenharmony_ci * @param { AsyncCallback<BundleInfo> } callback - The callback of getting bundle info result. 144161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 144261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 144361847f8eSopenharmony_ci * @since 9 144461847f8eSopenharmony_ci */ 144561847f8eSopenharmony_ci /** 144661847f8eSopenharmony_ci * Obtains own bundleInfo. 144761847f8eSopenharmony_ci * 144861847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. 144961847f8eSopenharmony_ci * @param { AsyncCallback<BundleInfo> } callback - The callback of getting bundle info result. 145061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 145161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 145261847f8eSopenharmony_ci * @atomicservice 145361847f8eSopenharmony_ci * @since 11 145461847f8eSopenharmony_ci */ 145561847f8eSopenharmony_ci function getBundleInfoForSelf(bundleFlags: number, callback: AsyncCallback<BundleInfo>): void; 145661847f8eSopenharmony_ci 145761847f8eSopenharmony_ci /** 145861847f8eSopenharmony_ci * Obtains own bundleInfo. 145961847f8eSopenharmony_ci * 146061847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. 146161847f8eSopenharmony_ci * @returns { BundleInfo } The result of getting the bundle info. 146261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 146361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 146461847f8eSopenharmony_ci * @since 10 146561847f8eSopenharmony_ci */ 146661847f8eSopenharmony_ci /** 146761847f8eSopenharmony_ci * Obtains own bundleInfo. 146861847f8eSopenharmony_ci * 146961847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. 147061847f8eSopenharmony_ci * @returns { BundleInfo } The result of getting the bundle info. 147161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 147261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 147361847f8eSopenharmony_ci * @atomicservice 147461847f8eSopenharmony_ci * @since 11 147561847f8eSopenharmony_ci */ 147661847f8eSopenharmony_ci function getBundleInfoForSelfSync(bundleFlags: number): BundleInfo; 147761847f8eSopenharmony_ci 147861847f8eSopenharmony_ci /** 147961847f8eSopenharmony_ci * Obtains bundleInfo based on bundleName, bundleFlags. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 148061847f8eSopenharmony_ci * 148161847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 148261847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name to be queried. 148361847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. 148461847f8eSopenharmony_ci * @param { AsyncCallback<BundleInfo> } callback - The callback of getting bundle info result. 148561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 148661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 148761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 148861847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 148961847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 149061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 149161847f8eSopenharmony_ci * @systemapi 149261847f8eSopenharmony_ci * @since 9 149361847f8eSopenharmony_ci */ 149461847f8eSopenharmony_ci function getBundleInfo(bundleName: string, bundleFlags: number, callback: AsyncCallback<BundleInfo>): void; 149561847f8eSopenharmony_ci 149661847f8eSopenharmony_ci /** 149761847f8eSopenharmony_ci * Obtains bundleInfo based on bundleName, bundleFlags and userId. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 149861847f8eSopenharmony_ci * 149961847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 150061847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name to be queried. 150161847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. 150261847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID or do not pass user ID. 150361847f8eSopenharmony_ci * @param { AsyncCallback<BundleInfo> } callback - The callback of getting bundle info result. 150461847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 150561847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 150661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 150761847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 150861847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 150961847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 151061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 151161847f8eSopenharmony_ci * @systemapi 151261847f8eSopenharmony_ci * @since 9 151361847f8eSopenharmony_ci */ 151461847f8eSopenharmony_ci function getBundleInfo(bundleName: string, 151561847f8eSopenharmony_ci bundleFlags: number, userId: number, callback: AsyncCallback<BundleInfo>): void; 151661847f8eSopenharmony_ci 151761847f8eSopenharmony_ci /** 151861847f8eSopenharmony_ci * Obtains bundleInfo based on bundleName, bundleFlags and userId. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 151961847f8eSopenharmony_ci * 152061847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 152161847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name to be queried. 152261847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. 152361847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID or do not pass user ID. 152461847f8eSopenharmony_ci * @returns { Promise<BundleInfo> } The result of getting the bundle info. 152561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 152661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 152761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 152861847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 152961847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 153061847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 153161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 153261847f8eSopenharmony_ci * @systemapi 153361847f8eSopenharmony_ci * @since 9 153461847f8eSopenharmony_ci */ 153561847f8eSopenharmony_ci function getBundleInfo(bundleName: string, bundleFlags: number, userId?: number): Promise<BundleInfo>; 153661847f8eSopenharmony_ci 153761847f8eSopenharmony_ci /** 153861847f8eSopenharmony_ci * Obtains application info based on a given bundle name. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 153961847f8eSopenharmony_ci * 154061847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 154161847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name to be queried. 154261847f8eSopenharmony_ci * @param { number } appFlags - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. 154361847f8eSopenharmony_ci * @param { AsyncCallback<ApplicationInfo> } callback - The callback of getting application info result. 154461847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 154561847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 154661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 154761847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 154861847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 154961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 155061847f8eSopenharmony_ci * @systemapi 155161847f8eSopenharmony_ci * @since 9 155261847f8eSopenharmony_ci */ 155361847f8eSopenharmony_ci function getApplicationInfo(bundleName: string, appFlags: number, callback: AsyncCallback<ApplicationInfo>): void; 155461847f8eSopenharmony_ci 155561847f8eSopenharmony_ci /** 155661847f8eSopenharmony_ci * Obtains application info based on a given bundle name. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 155761847f8eSopenharmony_ci * 155861847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 155961847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name to be queried. 156061847f8eSopenharmony_ci * @param { number } appFlags - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. 156161847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID or do not pass user ID. 156261847f8eSopenharmony_ci * @param { AsyncCallback<ApplicationInfo> } callback - The callback of getting application info result. 156361847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 156461847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 156561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 156661847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 156761847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 156861847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 156961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 157061847f8eSopenharmony_ci * @systemapi 157161847f8eSopenharmony_ci * @since 9 157261847f8eSopenharmony_ci */ 157361847f8eSopenharmony_ci function getApplicationInfo(bundleName: string, 157461847f8eSopenharmony_ci appFlags: number, userId: number, callback: AsyncCallback<ApplicationInfo>): void; 157561847f8eSopenharmony_ci 157661847f8eSopenharmony_ci /** 157761847f8eSopenharmony_ci * Obtains application info based on a given bundle name. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 157861847f8eSopenharmony_ci * 157961847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 158061847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name to be queried. 158161847f8eSopenharmony_ci * @param { number } appFlags - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. 158261847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID or do not pass user ID. 158361847f8eSopenharmony_ci * @returns { Promise<ApplicationInfo> } The result of getting the application info. 158461847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 158561847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 158661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 158761847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 158861847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 158961847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 159061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 159161847f8eSopenharmony_ci * @systemapi 159261847f8eSopenharmony_ci * @since 9 159361847f8eSopenharmony_ci */ 159461847f8eSopenharmony_ci function getApplicationInfo(bundleName: string, appFlags: number, userId?: number): Promise<ApplicationInfo>; 159561847f8eSopenharmony_ci 159661847f8eSopenharmony_ci /** 159761847f8eSopenharmony_ci * Obtains BundleInfo of all bundles available in the system. 159861847f8eSopenharmony_ci * 159961847f8eSopenharmony_ci * @permission ohos.permission.GET_INSTALLED_BUNDLE_LIST 160061847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo that will be returned. 160161847f8eSopenharmony_ci * @param { AsyncCallback<Array<BundleInfo>> } callback - The callback of getting a list of BundleInfo objects. 160261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 160361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 160461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 160561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 160661847f8eSopenharmony_ci * @systemapi 160761847f8eSopenharmony_ci * @since 9 160861847f8eSopenharmony_ci */ 160961847f8eSopenharmony_ci function getAllBundleInfo(bundleFlags: number, callback: AsyncCallback<Array<BundleInfo>>): void; 161061847f8eSopenharmony_ci 161161847f8eSopenharmony_ci /** 161261847f8eSopenharmony_ci * Obtains BundleInfo of all bundles available in the system. 161361847f8eSopenharmony_ci * 161461847f8eSopenharmony_ci * @permission ohos.permission.GET_INSTALLED_BUNDLE_LIST 161561847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo that will be returned. 161661847f8eSopenharmony_ci * @param { number } userId - Indicates the user id. 161761847f8eSopenharmony_ci * @param { AsyncCallback<Array<BundleInfo>> } callback - The callback of getting a list of BundleInfo objects. 161861847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 161961847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 162061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 162161847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 162261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 162361847f8eSopenharmony_ci * @systemapi 162461847f8eSopenharmony_ci * @since 9 162561847f8eSopenharmony_ci */ 162661847f8eSopenharmony_ci function getAllBundleInfo(bundleFlags: number, userId: number, callback: AsyncCallback<Array<BundleInfo>>): void; 162761847f8eSopenharmony_ci 162861847f8eSopenharmony_ci /** 162961847f8eSopenharmony_ci * Obtains BundleInfo of all bundles available in the system. 163061847f8eSopenharmony_ci * 163161847f8eSopenharmony_ci * @permission ohos.permission.GET_INSTALLED_BUNDLE_LIST 163261847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo that will be returned. 163361847f8eSopenharmony_ci * @param { number } userId - Indicates the user id. 163461847f8eSopenharmony_ci * @returns { Promise<Array<BundleInfo>> } Returns a list of BundleInfo objects. 163561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 163661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 163761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 163861847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 163961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 164061847f8eSopenharmony_ci * @systemapi 164161847f8eSopenharmony_ci * @since 9 164261847f8eSopenharmony_ci */ 164361847f8eSopenharmony_ci function getAllBundleInfo(bundleFlags: number, userId?: number): Promise<Array<BundleInfo>>; 164461847f8eSopenharmony_ci 164561847f8eSopenharmony_ci /** 164661847f8eSopenharmony_ci * Obtains information about all installed applications of a specified user. 164761847f8eSopenharmony_ci * 164861847f8eSopenharmony_ci * @permission ohos.permission.GET_INSTALLED_BUNDLE_LIST 164961847f8eSopenharmony_ci * @param { number } appFlags - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. 165061847f8eSopenharmony_ci * @param { AsyncCallback<Array<ApplicationInfo>> } callback - The callback of getting a list of ApplicationInfo objects. 165161847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 165261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 165361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 165461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 165561847f8eSopenharmony_ci * @systemapi 165661847f8eSopenharmony_ci * @since 9 165761847f8eSopenharmony_ci */ 165861847f8eSopenharmony_ci function getAllApplicationInfo(appFlags: number, callback: AsyncCallback<Array<ApplicationInfo>>): void; 165961847f8eSopenharmony_ci 166061847f8eSopenharmony_ci /** 166161847f8eSopenharmony_ci * Obtains information about all installed applications of a specified user. 166261847f8eSopenharmony_ci * 166361847f8eSopenharmony_ci * @permission ohos.permission.GET_INSTALLED_BUNDLE_LIST 166461847f8eSopenharmony_ci * @param { number } appFlags - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. 166561847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID or do not pass user ID. 166661847f8eSopenharmony_ci * @param { AsyncCallback<Array<ApplicationInfo>> } callback - The callback of getting a list of ApplicationInfo objects. 166761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 166861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 166961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 167061847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 167161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 167261847f8eSopenharmony_ci * @systemapi 167361847f8eSopenharmony_ci * @since 9 167461847f8eSopenharmony_ci */ 167561847f8eSopenharmony_ci function getAllApplicationInfo(appFlags: number, 167661847f8eSopenharmony_ci userId: number, callback: AsyncCallback<Array<ApplicationInfo>>): void; 167761847f8eSopenharmony_ci 167861847f8eSopenharmony_ci /** 167961847f8eSopenharmony_ci * Obtains information about all installed applications of a specified user. 168061847f8eSopenharmony_ci * 168161847f8eSopenharmony_ci * @permission ohos.permission.GET_INSTALLED_BUNDLE_LIST 168261847f8eSopenharmony_ci * @param { number } appFlags - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. 168361847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID or do not pass user ID. 168461847f8eSopenharmony_ci * @returns { Promise<Array<ApplicationInfo>> } Returns a list of ApplicationInfo objects. 168561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 168661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 168761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 168861847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 168961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 169061847f8eSopenharmony_ci * @systemapi 169161847f8eSopenharmony_ci * @since 9 169261847f8eSopenharmony_ci */ 169361847f8eSopenharmony_ci function getAllApplicationInfo(appFlags: number, userId?: number): Promise<Array<ApplicationInfo>>; 169461847f8eSopenharmony_ci 169561847f8eSopenharmony_ci /** 169661847f8eSopenharmony_ci * Query the AbilityInfo by the given Want. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 169761847f8eSopenharmony_ci * 169861847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 169961847f8eSopenharmony_ci * @param { Want } want - Indicates the Want containing the application bundle name to be queried. 170061847f8eSopenharmony_ci * @param { number } abilityFlags - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. 170161847f8eSopenharmony_ci * @param { AsyncCallback<Array<AbilityInfo>> } callback - The callback of querying ability info result. 170261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 170361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 170461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 170561847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. At least one parameter(action, entity, uri or type) is required for implicit query. 170661847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 170761847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified ability is not found. 170861847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 170961847f8eSopenharmony_ci * @throws { BusinessError } 17700029 - The specified ability is disabled. 171061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 171161847f8eSopenharmony_ci * @systemapi 171261847f8eSopenharmony_ci * @since 9 171361847f8eSopenharmony_ci */ 171461847f8eSopenharmony_ci function queryAbilityInfo(want: Want, abilityFlags: number, callback: AsyncCallback<Array<AbilityInfo>>): void; 171561847f8eSopenharmony_ci 171661847f8eSopenharmony_ci /** 171761847f8eSopenharmony_ci * Query the AbilityInfo by the given Want. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 171861847f8eSopenharmony_ci * 171961847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 172061847f8eSopenharmony_ci * @param { Want } want - Indicates the Want containing the application bundle name to be queried. 172161847f8eSopenharmony_ci * @param { number } abilityFlags - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. 172261847f8eSopenharmony_ci * @param { number } userId - userId Indicates the user ID. 172361847f8eSopenharmony_ci * @param { AsyncCallback<Array<AbilityInfo>> } callback - The callback of querying ability info result. 172461847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 172561847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 172661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 172761847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. At least one parameter(action, entity, uri or type) is required for implicit query. 172861847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 172961847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified ability is not found. 173061847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified userId is invalid. 173161847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 173261847f8eSopenharmony_ci * @throws { BusinessError } 17700029 - The specified ability is disabled. 173361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 173461847f8eSopenharmony_ci * @systemapi 173561847f8eSopenharmony_ci * @since 9 173661847f8eSopenharmony_ci */ 173761847f8eSopenharmony_ci function queryAbilityInfo(want: Want, 173861847f8eSopenharmony_ci abilityFlags: number, userId: number, callback: AsyncCallback<Array<AbilityInfo>>): void; 173961847f8eSopenharmony_ci 174061847f8eSopenharmony_ci /** 174161847f8eSopenharmony_ci * Query the AbilityInfo by the given Want. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 174261847f8eSopenharmony_ci * 174361847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 174461847f8eSopenharmony_ci * @param { Want } want - Indicates the Want containing the application bundle name to be queried. 174561847f8eSopenharmony_ci * @param { number } abilityFlags - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. 174661847f8eSopenharmony_ci * @param { number } userId - userId Indicates the user ID. 174761847f8eSopenharmony_ci * @returns { Promise<Array<AbilityInfo>> } Returns a list of AbilityInfo objects. 174861847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 174961847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 175061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 175161847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. At least one parameter(action, entity, uri or type) is required for implicit query. 175261847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 175361847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified ability is not found. 175461847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified userId is invalid. 175561847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 175661847f8eSopenharmony_ci * @throws { BusinessError } 17700029 - The specified ability is disabled. 175761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 175861847f8eSopenharmony_ci * @systemapi 175961847f8eSopenharmony_ci * @since 9 176061847f8eSopenharmony_ci */ 176161847f8eSopenharmony_ci function queryAbilityInfo(want: Want, abilityFlags: number, userId?: number): Promise<Array<AbilityInfo>>; 176261847f8eSopenharmony_ci 176361847f8eSopenharmony_ci /** 176461847f8eSopenharmony_ci * Query the AbilityInfo by the given Want Array. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 176561847f8eSopenharmony_ci * 176661847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 176761847f8eSopenharmony_ci * @param { Array<Want> } wants - Indicates the Want Array containing the application bundle name to be queried. 176861847f8eSopenharmony_ci * @param { number } abilityFlags - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. 176961847f8eSopenharmony_ci * @param { number } [userId] - userId Indicates the user ID. 177061847f8eSopenharmony_ci * @returns { Promise<Array<AbilityInfo>> } Returns a list of AbilityInfo objects. 177161847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 177261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 177361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 177461847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. At least one parameter(action, entity, uri or type) is required for implicit query. 177561847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 177661847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified ability is not found. 177761847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified userId is invalid. 177861847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 177961847f8eSopenharmony_ci * @throws { BusinessError } 17700029 - The specified ability is disabled. 178061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 178161847f8eSopenharmony_ci * @systemapi 178261847f8eSopenharmony_ci * @since 12 178361847f8eSopenharmony_ci */ 178461847f8eSopenharmony_ci function queryAbilityInfo(wants: Array<Want>, abilityFlags: number, userId?: number): Promise<Array<AbilityInfo>>; 178561847f8eSopenharmony_ci 178661847f8eSopenharmony_ci /** 178761847f8eSopenharmony_ci * Query the AbilityInfo by the given Want. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 178861847f8eSopenharmony_ci * 178961847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 179061847f8eSopenharmony_ci * @param { Want } want - Indicates the Want containing the application bundle name to be queried. 179161847f8eSopenharmony_ci * @param { number } abilityFlags - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. 179261847f8eSopenharmony_ci * @param { number } userId - userId Indicates the user ID. 179361847f8eSopenharmony_ci * @returns { Array<AbilityInfo> } Returns a list of AbilityInfo objects. 179461847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 179561847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 179661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 179761847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. At least one parameter(action, entity, uri or type) is required for implicit query. 179861847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 179961847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified ability is not found. 180061847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified userId is invalid. 180161847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 180261847f8eSopenharmony_ci * @throws { BusinessError } 17700029 - The specified ability is disabled. 180361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 180461847f8eSopenharmony_ci * @systemapi 180561847f8eSopenharmony_ci * @since 10 180661847f8eSopenharmony_ci */ 180761847f8eSopenharmony_ci function queryAbilityInfoSync(want: Want, abilityFlags: number, userId?: number): Array<AbilityInfo>; 180861847f8eSopenharmony_ci 180961847f8eSopenharmony_ci /** 181061847f8eSopenharmony_ci * Query extension info of by utilizing a Want. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 181161847f8eSopenharmony_ci * 181261847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 181361847f8eSopenharmony_ci * @param { Want } want - Indicates the Want containing the application bundle name to be queried. 181461847f8eSopenharmony_ci * @param { ExtensionAbilityType } extensionAbilityType - Indicates ExtensionAbilityType. 181561847f8eSopenharmony_ci * @param { number } extensionAbilityFlags - Indicates the flag used to specify information contained in the 181661847f8eSopenharmony_ci * ExtensionAbilityInfo objects that will be returned. 181761847f8eSopenharmony_ci * @param { AsyncCallback<Array<ExtensionAbilityInfo>> } callback - The callback of querying extension ability info result. 181861847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 181961847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 182061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 182161847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. At least one parameter(action, entity, uri or type) is required for implicit query. 182261847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 182361847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified extensionAbility is not found. 182461847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 182561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 182661847f8eSopenharmony_ci * @systemapi 182761847f8eSopenharmony_ci * @since 9 182861847f8eSopenharmony_ci */ 182961847f8eSopenharmony_ci function queryExtensionAbilityInfo(want: Want, extensionAbilityType: ExtensionAbilityType, 183061847f8eSopenharmony_ci extensionAbilityFlags: number, callback: AsyncCallback<Array<ExtensionAbilityInfo>>): void; 183161847f8eSopenharmony_ci 183261847f8eSopenharmony_ci /** 183361847f8eSopenharmony_ci * Query extension info of by utilizing a Want. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 183461847f8eSopenharmony_ci * 183561847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 183661847f8eSopenharmony_ci * @param { Want } want - Indicates the Want containing the application bundle name to be queried. 183761847f8eSopenharmony_ci * @param { ExtensionAbilityType } extensionAbilityType - Indicates ExtensionAbilityType. 183861847f8eSopenharmony_ci * @param { number } extensionAbilityFlags - Indicates the flag used to specify information contained in the 183961847f8eSopenharmony_ci * ExtensionAbilityInfo objects that will be returned. 184061847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID. 184161847f8eSopenharmony_ci * @param { AsyncCallback<Array<ExtensionAbilityInfo>> } callback - The callback of querying extension ability info result. 184261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 184361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 184461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 184561847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. At least one parameter(action, entity, uri or type) is required for implicit query. 184661847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 184761847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified extensionAbility is not found. 184861847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified userId is invalid. 184961847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 185061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 185161847f8eSopenharmony_ci * @systemapi 185261847f8eSopenharmony_ci * @since 9 185361847f8eSopenharmony_ci */ 185461847f8eSopenharmony_ci function queryExtensionAbilityInfo(want: Want, extensionAbilityType: ExtensionAbilityType, 185561847f8eSopenharmony_ci extensionAbilityFlags: number, userId: number, callback: AsyncCallback<Array<ExtensionAbilityInfo>>): void; 185661847f8eSopenharmony_ci 185761847f8eSopenharmony_ci /** 185861847f8eSopenharmony_ci * Query the ExtensionAbilityInfo by the given Want. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 185961847f8eSopenharmony_ci * 186061847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 186161847f8eSopenharmony_ci * @param { Want } want - Indicates the Want containing the application bundle name to be queried. 186261847f8eSopenharmony_ci * @param { ExtensionAbilityType } extensionAbilityType - Indicates ExtensionAbilityType. 186361847f8eSopenharmony_ci * @param { number } extensionAbilityFlags - Indicates the flag used to specify information contained in the 186461847f8eSopenharmony_ci * ExtensionAbilityInfo objects that will be returned. 186561847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID. 186661847f8eSopenharmony_ci * @returns { Promise<Array<ExtensionAbilityInfo>> } Returns a list of ExtensionAbilityInfo objects. 186761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 186861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 186961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 187061847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. At least one parameter(action, entity, uri or type) is required for implicit query. 187161847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 187261847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified extensionAbility is not found. 187361847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified userId is invalid. 187461847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 187561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 187661847f8eSopenharmony_ci * @systemapi 187761847f8eSopenharmony_ci * @since 9 187861847f8eSopenharmony_ci */ 187961847f8eSopenharmony_ci function queryExtensionAbilityInfo(want: Want, extensionAbilityType: ExtensionAbilityType, 188061847f8eSopenharmony_ci extensionAbilityFlags: number, userId?: number): Promise<Array<ExtensionAbilityInfo>>; 188161847f8eSopenharmony_ci 188261847f8eSopenharmony_ci /** 188361847f8eSopenharmony_ci * Query the ExtensionAbilityInfo by the given Want. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 188461847f8eSopenharmony_ci * 188561847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 188661847f8eSopenharmony_ci * @param { Want } want - Indicates the Want containing the application bundle name to be queried. 188761847f8eSopenharmony_ci * @param { ExtensionAbilityType } extensionAbilityType - Indicates ExtensionAbilityType. 188861847f8eSopenharmony_ci * @param { number } extensionAbilityFlags - Indicates the flag used to specify information contained in the 188961847f8eSopenharmony_ci * ExtensionAbilityInfo objects that will be returned. 189061847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID. 189161847f8eSopenharmony_ci * @returns { Array<ExtensionAbilityInfo> } Returns a list of ExtensionAbilityInfo objects. 189261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 189361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 189461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 189561847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. At least one parameter(action, entity, uri or type) is required for implicit query. 189661847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 189761847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified extensionAbility is not found. 189861847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified userId is invalid. 189961847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 190061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 190161847f8eSopenharmony_ci * @systemapi 190261847f8eSopenharmony_ci * @since 10 190361847f8eSopenharmony_ci */ 190461847f8eSopenharmony_ci function queryExtensionAbilityInfoSync(want: Want, extensionAbilityType: ExtensionAbilityType, 190561847f8eSopenharmony_ci extensionAbilityFlags: number, userId?: number): Array<ExtensionAbilityInfo>; 190661847f8eSopenharmony_ci 190761847f8eSopenharmony_ci /** 190861847f8eSopenharmony_ci * Query the ExtensionAbilityInfo by the given Want. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 190961847f8eSopenharmony_ci * 191061847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 191161847f8eSopenharmony_ci * @param { Want } want - Indicates the Want containing the application bundle name to be queried. 191261847f8eSopenharmony_ci * @param { string } extensionAbilityType - Indicates extensionAbilityType. 191361847f8eSopenharmony_ci * @param { number } extensionAbilityFlags - Indicates the flag used to specify information contained in the 191461847f8eSopenharmony_ci * ExtensionAbilityInfo objects that will be returned. 191561847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID. 191661847f8eSopenharmony_ci * @returns { Array<ExtensionAbilityInfo> } Returns a list of ExtensionAbilityInfo objects. 191761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 191861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 191961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 192061847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. At least one parameter(action, entity, uri or type) is required for implicit query. 192161847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 192261847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified extensionAbility is not found. 192361847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified userId is invalid. 192461847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 192561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 192661847f8eSopenharmony_ci * @systemapi 192761847f8eSopenharmony_ci * @since 11 192861847f8eSopenharmony_ci */ 192961847f8eSopenharmony_ci function queryExtensionAbilityInfoSync(want: Want, extensionAbilityType: string, 193061847f8eSopenharmony_ci extensionAbilityFlags: number, userId?: number): Array<ExtensionAbilityInfo>; 193161847f8eSopenharmony_ci 193261847f8eSopenharmony_ci /** 193361847f8eSopenharmony_ci * Query the ExtensionAbilityInfo by extension ability type. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. 193461847f8eSopenharmony_ci * 193561847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 193661847f8eSopenharmony_ci * @param { string } extensionAbilityType - Indicates ExtensionAbilityType. 193761847f8eSopenharmony_ci * @param { number } extensionAbilityFlags - Indicates the flag used to specify information contained in the 193861847f8eSopenharmony_ci * ExtensionAbilityInfo objects that will be returned. 193961847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID. 194061847f8eSopenharmony_ci * @returns { Array<ExtensionAbilityInfo> } Returns a list of ExtensionAbilityInfo objects. 194161847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 194261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 194361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 194461847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. Parameter extensionAbilityType is empty. 194561847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified extensionAbility is not found. 194661847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified userId is invalid. 194761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 194861847f8eSopenharmony_ci * @systemapi 194961847f8eSopenharmony_ci * @since 11 195061847f8eSopenharmony_ci */ 195161847f8eSopenharmony_ci function queryExtensionAbilityInfoSync(extensionAbilityType: string, extensionAbilityFlags: number, 195261847f8eSopenharmony_ci userId?: number): Array<ExtensionAbilityInfo>; 195361847f8eSopenharmony_ci 195461847f8eSopenharmony_ci /** 195561847f8eSopenharmony_ci * Obtains bundle name by the given uid. 195661847f8eSopenharmony_ci * 195761847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 195861847f8eSopenharmony_ci * @param { number } uid - Indicates the UID of an application. 195961847f8eSopenharmony_ci * @param { AsyncCallback<string> } callback - The callback of getting bundle name. 196061847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 196161847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 196261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 196361847f8eSopenharmony_ci * @throws { BusinessError } 17700021 - The uid is not found. 196461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 196561847f8eSopenharmony_ci * @systemapi 196661847f8eSopenharmony_ci * @since 9 196761847f8eSopenharmony_ci */ 196861847f8eSopenharmony_ci function getBundleNameByUid(uid: number, callback: AsyncCallback<string>): void; 196961847f8eSopenharmony_ci 197061847f8eSopenharmony_ci /** 197161847f8eSopenharmony_ci * Obtains bundle name by the given uid. 197261847f8eSopenharmony_ci * 197361847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 197461847f8eSopenharmony_ci * @param { number } uid - Indicates the UID of an application. 197561847f8eSopenharmony_ci * @returns { Promise<string> } Returns the bundle name. 197661847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 197761847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 197861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 197961847f8eSopenharmony_ci * @throws { BusinessError } 17700021 - The uid is not found. 198061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 198161847f8eSopenharmony_ci * @systemapi 198261847f8eSopenharmony_ci * @since 9 198361847f8eSopenharmony_ci */ 198461847f8eSopenharmony_ci function getBundleNameByUid(uid: number): Promise<string>; 198561847f8eSopenharmony_ci 198661847f8eSopenharmony_ci /** 198761847f8eSopenharmony_ci * Obtains bundle name by the given uid. 198861847f8eSopenharmony_ci * 198961847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 199061847f8eSopenharmony_ci * @param { number } uid - Indicates the UID of an application. 199161847f8eSopenharmony_ci * @returns { string } Returns the bundle name. 199261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 199361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 199461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 199561847f8eSopenharmony_ci * @throws { BusinessError } 17700021 - The uid is not found. 199661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 199761847f8eSopenharmony_ci * @systemapi 199861847f8eSopenharmony_ci * @since 10 199961847f8eSopenharmony_ci */ 200061847f8eSopenharmony_ci function getBundleNameByUidSync(uid: number): string; 200161847f8eSopenharmony_ci 200261847f8eSopenharmony_ci /** 200361847f8eSopenharmony_ci * Obtains information about an application bundle contained in an ohos Ability Package (HAP). 200461847f8eSopenharmony_ci * 200561847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 200661847f8eSopenharmony_ci * @param { string } hapFilePath - Indicates the path storing the HAP. 200761847f8eSopenharmony_ci * The path should be the relative path to the data directory of the current application. 200861847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo object to be returned. 200961847f8eSopenharmony_ci * @param { AsyncCallback<BundleInfo> } callback - The callback of getting bundle archive info result. 201061847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 201161847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 201261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 201361847f8eSopenharmony_ci * @throws { BusinessError } 17700022 - The hapFilePath is invalid. 201461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 201561847f8eSopenharmony_ci * @systemapi 201661847f8eSopenharmony_ci * @since 9 201761847f8eSopenharmony_ci */ 201861847f8eSopenharmony_ci function getBundleArchiveInfo(hapFilePath: string, bundleFlags: number, callback: AsyncCallback<BundleInfo>): void; 201961847f8eSopenharmony_ci 202061847f8eSopenharmony_ci /** 202161847f8eSopenharmony_ci * Obtains information about an application bundle contained in an ohos Ability Package (HAP). 202261847f8eSopenharmony_ci * 202361847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 202461847f8eSopenharmony_ci * @param { string } hapFilePath - Indicates the path storing the HAP. 202561847f8eSopenharmony_ci * The path should be the relative path to the data directory of the current application. 202661847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo object to be returned. 202761847f8eSopenharmony_ci * @returns { Promise<BundleInfo> } Returns the BundleInfo object. 202861847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 202961847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 203061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 203161847f8eSopenharmony_ci * @throws { BusinessError } 17700022 - The hapFilePath is invalid. 203261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 203361847f8eSopenharmony_ci * @systemapi 203461847f8eSopenharmony_ci * @since 9 203561847f8eSopenharmony_ci */ 203661847f8eSopenharmony_ci function getBundleArchiveInfo(hapFilePath: string, bundleFlags: number): Promise<BundleInfo>; 203761847f8eSopenharmony_ci 203861847f8eSopenharmony_ci /** 203961847f8eSopenharmony_ci * Obtains information about an application bundle contained in an ohos Ability Package (HAP). 204061847f8eSopenharmony_ci * 204161847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 204261847f8eSopenharmony_ci * @param { string } hapFilePath - Indicates the path storing the HAP. 204361847f8eSopenharmony_ci * The path should be the relative path to the data directory of the current application. 204461847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo object to be returned. 204561847f8eSopenharmony_ci * @returns { BundleInfo } Returns the BundleInfo object. 204661847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 204761847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 204861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 204961847f8eSopenharmony_ci * @throws { BusinessError } 17700022 - The hapFilePath is invalid. 205061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 205161847f8eSopenharmony_ci * @systemapi 205261847f8eSopenharmony_ci * @since 10 205361847f8eSopenharmony_ci */ 205461847f8eSopenharmony_ci function getBundleArchiveInfoSync(hapFilePath: string, bundleFlags: number): BundleInfo; 205561847f8eSopenharmony_ci 205661847f8eSopenharmony_ci /** 205761847f8eSopenharmony_ci * Clears cache data of a specified application. 205861847f8eSopenharmony_ci * 205961847f8eSopenharmony_ci * @permission ohos.permission.REMOVE_CACHE_FILES 206061847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application whose cache data is to be cleaned. 206161847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of cleaning bundle cache files result. 206261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 206361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 206461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 206561847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 206661847f8eSopenharmony_ci * @throws { BusinessError } 17700030 - The specified bundle does not support clearing of cache files. 206761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 206861847f8eSopenharmony_ci * @systemapi 206961847f8eSopenharmony_ci * @since 9 207061847f8eSopenharmony_ci */ 207161847f8eSopenharmony_ci function cleanBundleCacheFiles(bundleName: string, callback: AsyncCallback<void>): void; 207261847f8eSopenharmony_ci 207361847f8eSopenharmony_ci /** 207461847f8eSopenharmony_ci * Clears cache data of a specified application. 207561847f8eSopenharmony_ci * 207661847f8eSopenharmony_ci * @permission ohos.permission.REMOVE_CACHE_FILES 207761847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application whose cache data is to be cleaned. 207861847f8eSopenharmony_ci * @returns { Promise<void> } Clean bundle cache files result 207961847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 208061847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 208161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 208261847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 208361847f8eSopenharmony_ci * @throws { BusinessError } 17700030 - The specified bundle does not support clearing of cache files. 208461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 208561847f8eSopenharmony_ci * @systemapi 208661847f8eSopenharmony_ci * @since 9 208761847f8eSopenharmony_ci */ 208861847f8eSopenharmony_ci function cleanBundleCacheFiles(bundleName: string): Promise<void>; 208961847f8eSopenharmony_ci 209061847f8eSopenharmony_ci /** 209161847f8eSopenharmony_ci * Sets whether to enable a specified application. 209261847f8eSopenharmony_ci * 209361847f8eSopenharmony_ci * @permission ohos.permission.CHANGE_ABILITY_ENABLED_STATE 209461847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application. 209561847f8eSopenharmony_ci * @param { number } appIndex - Indicates the index of clone app. 209661847f8eSopenharmony_ci * @param { boolean } isEnabled - The value true means to enable it, and the value false means to disable it. 209761847f8eSopenharmony_ci * @returns { Promise<void> } set app enabled result. 209861847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 209961847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 210061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 210161847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 210261847f8eSopenharmony_ci * @throws { BusinessError } 17700061 - AppIndex not in valid range. 210361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 210461847f8eSopenharmony_ci * @systemapi 210561847f8eSopenharmony_ci * @since 12 210661847f8eSopenharmony_ci */ 210761847f8eSopenharmony_ci function setApplicationEnabled(bundleName: string, appIndex: number, isEnabled: boolean): Promise<void>; 210861847f8eSopenharmony_ci 210961847f8eSopenharmony_ci /** 211061847f8eSopenharmony_ci * Sets whether to enable a specified application. 211161847f8eSopenharmony_ci * 211261847f8eSopenharmony_ci * @permission ohos.permission.CHANGE_ABILITY_ENABLED_STATE 211361847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application. 211461847f8eSopenharmony_ci * @param { boolean } isEnabled - The value true means to enable it, and the value false means to disable it. 211561847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of setting app enabled result. 211661847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 211761847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 211861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 211961847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 212061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 212161847f8eSopenharmony_ci * @systemapi 212261847f8eSopenharmony_ci * @since 9 212361847f8eSopenharmony_ci */ 212461847f8eSopenharmony_ci function setApplicationEnabled(bundleName: string, isEnabled: boolean, callback: AsyncCallback<void>): void; 212561847f8eSopenharmony_ci 212661847f8eSopenharmony_ci /** 212761847f8eSopenharmony_ci * Sets whether to enable a specified application. 212861847f8eSopenharmony_ci * 212961847f8eSopenharmony_ci * @permission ohos.permission.CHANGE_ABILITY_ENABLED_STATE 213061847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application. 213161847f8eSopenharmony_ci * @param { boolean } isEnabled - The value true means to enable it, and the value false means to disable it. 213261847f8eSopenharmony_ci * @returns { Promise<void> } set app enabled result. 213361847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 213461847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 213561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 213661847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 213761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 213861847f8eSopenharmony_ci * @systemapi 213961847f8eSopenharmony_ci * @since 9 214061847f8eSopenharmony_ci */ 214161847f8eSopenharmony_ci function setApplicationEnabled(bundleName: string, isEnabled: boolean): Promise<void>; 214261847f8eSopenharmony_ci 214361847f8eSopenharmony_ci /** 214461847f8eSopenharmony_ci * Sets whether to enable a specified application. 214561847f8eSopenharmony_ci * 214661847f8eSopenharmony_ci * @permission ohos.permission.CHANGE_ABILITY_ENABLED_STATE 214761847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application. 214861847f8eSopenharmony_ci * @param { boolean } isEnabled - The value true means to enable it, and the value false means to disable it. 214961847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 215061847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 215161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 215261847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 215361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 215461847f8eSopenharmony_ci * @systemapi 215561847f8eSopenharmony_ci * @since 10 215661847f8eSopenharmony_ci */ 215761847f8eSopenharmony_ci function setApplicationEnabledSync(bundleName: string, isEnabled: boolean): void; 215861847f8eSopenharmony_ci 215961847f8eSopenharmony_ci /** 216061847f8eSopenharmony_ci * Sets whether to enable a specified ability. 216161847f8eSopenharmony_ci * 216261847f8eSopenharmony_ci * @permission ohos.permission.CHANGE_ABILITY_ENABLED_STATE 216361847f8eSopenharmony_ci * @param { AbilityInfo } info - Indicates information about the ability to set. 216461847f8eSopenharmony_ci * @param { number } appIndex - Indicates the index of clone app. 216561847f8eSopenharmony_ci * @param { boolean } isEnabled - The value true means to enable it, and the value false means to disable it. 216661847f8eSopenharmony_ci * @returns { Promise<void> } set ability enabled result. 216761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 216861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 216961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 217061847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 217161847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityInfo is not found. 217261847f8eSopenharmony_ci * @throws { BusinessError } 17700061 - AppIndex not in valid range. 217361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 217461847f8eSopenharmony_ci * @systemapi 217561847f8eSopenharmony_ci * @since 12 217661847f8eSopenharmony_ci */ 217761847f8eSopenharmony_ci function setAbilityEnabled(info: AbilityInfo, appIndex: number, isEnabled: boolean): Promise<void>; 217861847f8eSopenharmony_ci 217961847f8eSopenharmony_ci /** 218061847f8eSopenharmony_ci * Sets whether to enable a specified ability. 218161847f8eSopenharmony_ci * 218261847f8eSopenharmony_ci * @permission ohos.permission.CHANGE_ABILITY_ENABLED_STATE 218361847f8eSopenharmony_ci * @param { AbilityInfo } info - Indicates information about the ability to set. 218461847f8eSopenharmony_ci * @param { boolean } isEnabled - The value true means to enable it, and the value false means to disable it. 218561847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of setting ability enabled result. 218661847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 218761847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 218861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 218961847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 219061847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityInfo is not found. 219161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 219261847f8eSopenharmony_ci * @systemapi 219361847f8eSopenharmony_ci * @since 9 219461847f8eSopenharmony_ci */ 219561847f8eSopenharmony_ci function setAbilityEnabled(info: AbilityInfo, isEnabled: boolean, callback: AsyncCallback<void>): void; 219661847f8eSopenharmony_ci 219761847f8eSopenharmony_ci /** 219861847f8eSopenharmony_ci * Sets whether to enable a specified ability. 219961847f8eSopenharmony_ci * 220061847f8eSopenharmony_ci * @permission ohos.permission.CHANGE_ABILITY_ENABLED_STATE 220161847f8eSopenharmony_ci * @param { AbilityInfo } info - Indicates information about the ability to set. 220261847f8eSopenharmony_ci * @param { boolean } isEnabled - The value true means to enable it, and the value false means to disable it. 220361847f8eSopenharmony_ci * @returns { Promise<void> } set ability enabled result. 220461847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 220561847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 220661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 220761847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 220861847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityInfo is not found. 220961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 221061847f8eSopenharmony_ci * @systemapi 221161847f8eSopenharmony_ci * @since 9 221261847f8eSopenharmony_ci */ 221361847f8eSopenharmony_ci function setAbilityEnabled(info: AbilityInfo, isEnabled: boolean): Promise<void>; 221461847f8eSopenharmony_ci 221561847f8eSopenharmony_ci /** 221661847f8eSopenharmony_ci * Sets whether to enable a specified ability. 221761847f8eSopenharmony_ci * 221861847f8eSopenharmony_ci * @permission ohos.permission.CHANGE_ABILITY_ENABLED_STATE 221961847f8eSopenharmony_ci * @param { AbilityInfo } info - Indicates information about the ability to set. 222061847f8eSopenharmony_ci * @param { boolean } isEnabled - The value true means to enable it, and the value false means to disable it. 222161847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 222261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 222361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 222461847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 222561847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityInfo is not found. 222661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 222761847f8eSopenharmony_ci * @systemapi 222861847f8eSopenharmony_ci * @since 10 222961847f8eSopenharmony_ci */ 223061847f8eSopenharmony_ci function setAbilityEnabledSync(info: AbilityInfo, isEnabled: boolean): void; 223161847f8eSopenharmony_ci 223261847f8eSopenharmony_ci /** 223361847f8eSopenharmony_ci * Checks whether a specified application is enabled. 223461847f8eSopenharmony_ci * 223561847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application. 223661847f8eSopenharmony_ci * @param { number } appIndex - Indicates the index of clone app. 223761847f8eSopenharmony_ci * @returns { Promise<boolean> } Returns true if the application is enabled; returns false otherwise. 223861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 223961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 224061847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 224161847f8eSopenharmony_ci * @throws { BusinessError } 17700061 - AppIndex not in valid range. 224261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 224361847f8eSopenharmony_ci * @systemapi 224461847f8eSopenharmony_ci * @since 12 224561847f8eSopenharmony_ci */ 224661847f8eSopenharmony_ci function isApplicationEnabled(bundleName: string, appIndex: number): Promise<boolean>; 224761847f8eSopenharmony_ci 224861847f8eSopenharmony_ci /** 224961847f8eSopenharmony_ci * Checks whether a specified application is enabled. 225061847f8eSopenharmony_ci * 225161847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application. 225261847f8eSopenharmony_ci * @param { AsyncCallback<boolean> } callback - The callback of checking application enabled result. The result is true if enabled, false otherwise. 225361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 225461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 225561847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 225661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 225761847f8eSopenharmony_ci * @systemapi 225861847f8eSopenharmony_ci * @since 9 225961847f8eSopenharmony_ci */ 226061847f8eSopenharmony_ci function isApplicationEnabled(bundleName: string, callback: AsyncCallback<boolean>): void; 226161847f8eSopenharmony_ci 226261847f8eSopenharmony_ci /** 226361847f8eSopenharmony_ci * Checks whether a specified application is enabled. 226461847f8eSopenharmony_ci * 226561847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application. 226661847f8eSopenharmony_ci * @returns { Promise<boolean> } Returns true if the application is enabled; returns false otherwise. 226761847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 226861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 226961847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 227061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 227161847f8eSopenharmony_ci * @systemapi 227261847f8eSopenharmony_ci * @since 9 227361847f8eSopenharmony_ci */ 227461847f8eSopenharmony_ci function isApplicationEnabled(bundleName: string): Promise<boolean>; 227561847f8eSopenharmony_ci 227661847f8eSopenharmony_ci /** 227761847f8eSopenharmony_ci * Checks whether a specified application is enabled. 227861847f8eSopenharmony_ci * 227961847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application. 228061847f8eSopenharmony_ci * @returns { boolean } Returns true if the application is enabled; returns false otherwise. 228161847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 228261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 228361847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 228461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 228561847f8eSopenharmony_ci * @systemapi 228661847f8eSopenharmony_ci * @since 10 228761847f8eSopenharmony_ci */ 228861847f8eSopenharmony_ci function isApplicationEnabledSync(bundleName: string): boolean; 228961847f8eSopenharmony_ci 229061847f8eSopenharmony_ci /** 229161847f8eSopenharmony_ci * Checks whether a specified ability is enabled. 229261847f8eSopenharmony_ci * 229361847f8eSopenharmony_ci * @param { AbilityInfo } info - Indicates information about the ability to check. 229461847f8eSopenharmony_ci * @param { number } appIndex - Indicates the index of clone app. 229561847f8eSopenharmony_ci * @returns { Promise<boolean> } Returns true if the ability is enabled; returns false otherwise. 229661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 229761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 229861847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 229961847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityName is not found. 230061847f8eSopenharmony_ci * @throws { BusinessError } 17700061 - AppIndex not in valid range. 230161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 230261847f8eSopenharmony_ci * @systemapi 230361847f8eSopenharmony_ci * @since 12 230461847f8eSopenharmony_ci */ 230561847f8eSopenharmony_ci function isAbilityEnabled(info: AbilityInfo, appIndex: number): Promise<boolean>; 230661847f8eSopenharmony_ci 230761847f8eSopenharmony_ci /** 230861847f8eSopenharmony_ci * Checks whether a specified ability is enabled. 230961847f8eSopenharmony_ci * 231061847f8eSopenharmony_ci * @param { AbilityInfo } info - Indicates information about the ability to check. 231161847f8eSopenharmony_ci * @param { AsyncCallback<boolean> } callback - The callback of checking ability enabled result. The result is true if enabled, false otherwise. 231261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 231361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 231461847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 231561847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityName is not found. 231661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 231761847f8eSopenharmony_ci * @systemapi 231861847f8eSopenharmony_ci * @since 9 231961847f8eSopenharmony_ci */ 232061847f8eSopenharmony_ci function isAbilityEnabled(info: AbilityInfo, callback: AsyncCallback<boolean>): void; 232161847f8eSopenharmony_ci 232261847f8eSopenharmony_ci /** 232361847f8eSopenharmony_ci * Checks whether a specified ability is enabled. 232461847f8eSopenharmony_ci * 232561847f8eSopenharmony_ci * @param { AbilityInfo } info - Indicates information about the ability to check. 232661847f8eSopenharmony_ci * @returns { Promise<boolean> } Returns true if the ability is enabled; returns false otherwise. 232761847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 232861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 232961847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 233061847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityName is not found. 233161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 233261847f8eSopenharmony_ci * @systemapi 233361847f8eSopenharmony_ci * @since 9 233461847f8eSopenharmony_ci */ 233561847f8eSopenharmony_ci function isAbilityEnabled(info: AbilityInfo): Promise<boolean>; 233661847f8eSopenharmony_ci 233761847f8eSopenharmony_ci /** 233861847f8eSopenharmony_ci * Checks whether a specified ability is enabled. 233961847f8eSopenharmony_ci * 234061847f8eSopenharmony_ci * @param { AbilityInfo } info - Indicates information about the ability to check. 234161847f8eSopenharmony_ci * @returns { boolean } Returns true if the ability is enabled; returns false otherwise. 234261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 234361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 234461847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 234561847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityName is not found. 234661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 234761847f8eSopenharmony_ci * @systemapi 234861847f8eSopenharmony_ci * @since 10 234961847f8eSopenharmony_ci */ 235061847f8eSopenharmony_ci function isAbilityEnabledSync(info: AbilityInfo): boolean; 235161847f8eSopenharmony_ci 235261847f8eSopenharmony_ci /** 235361847f8eSopenharmony_ci * Obtains the Want for starting the main ability of an application based on the 235461847f8eSopenharmony_ci * given bundle name. The main ability of an application is the ability that has the 235561847f8eSopenharmony_ci * #ACTION_HOME and #ENTITY_HOME Want filters set in the application's <b>config.json</b> or <b>module.json</b> file. 235661847f8eSopenharmony_ci * 235761847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 235861847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application. 235961847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID or do not pass user ID. 236061847f8eSopenharmony_ci * @param { AsyncCallback<Want> } callback - The callback for starting the application's main ability. 236161847f8eSopenharmony_ci * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.GET_BUNDLE_INFO_PRIVILEGED'. 236261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 236361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 236461847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 236561847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 236661847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 236761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 236861847f8eSopenharmony_ci * @systemapi 236961847f8eSopenharmony_ci * @since 9 237061847f8eSopenharmony_ci */ 237161847f8eSopenharmony_ci function getLaunchWantForBundle(bundleName: string, userId: number, callback: AsyncCallback<Want>): void; 237261847f8eSopenharmony_ci 237361847f8eSopenharmony_ci /** 237461847f8eSopenharmony_ci * Obtains the Want for starting the main ability of an application based on the 237561847f8eSopenharmony_ci * given bundle name. The main ability of an application is the ability that has the 237661847f8eSopenharmony_ci * #ACTION_HOME and #ENTITY_HOME Want filters set in the application's <b>config.json</b> or <b>module.json</b> file. 237761847f8eSopenharmony_ci * 237861847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 237961847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application. 238061847f8eSopenharmony_ci * @param { AsyncCallback<Want> } callback - The callback for starting the application's main ability. 238161847f8eSopenharmony_ci * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.GET_BUNDLE_INFO_PRIVILEGED'. 238261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 238361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 238461847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 238561847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 238661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 238761847f8eSopenharmony_ci * @systemapi 238861847f8eSopenharmony_ci * @since 9 238961847f8eSopenharmony_ci */ 239061847f8eSopenharmony_ci function getLaunchWantForBundle(bundleName: string, callback: AsyncCallback<Want>): void; 239161847f8eSopenharmony_ci 239261847f8eSopenharmony_ci /** 239361847f8eSopenharmony_ci * Obtains the Want for starting the main ability of an application based on the 239461847f8eSopenharmony_ci * given bundle name. The main ability of an application is the ability that has the 239561847f8eSopenharmony_ci * #ACTION_HOME and #ENTITY_HOME Want filters set in the application's <b>config.json</b> or <b>module.json</b> file. 239661847f8eSopenharmony_ci * 239761847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 239861847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application. 239961847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID or do not pass user ID. 240061847f8eSopenharmony_ci * @returns { Promise<Want> } the Want for starting the application's main ability. 240161847f8eSopenharmony_ci * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.GET_BUNDLE_INFO_PRIVILEGED'. 240261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 240361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 240461847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 240561847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 240661847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 240761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 240861847f8eSopenharmony_ci * @systemapi 240961847f8eSopenharmony_ci * @since 9 241061847f8eSopenharmony_ci */ 241161847f8eSopenharmony_ci function getLaunchWantForBundle(bundleName: string, userId?: number): Promise<Want>; 241261847f8eSopenharmony_ci 241361847f8eSopenharmony_ci /** 241461847f8eSopenharmony_ci * Obtains the Want for starting the main ability of an application based on the 241561847f8eSopenharmony_ci * given bundle name. The main ability of an application is the ability that has the 241661847f8eSopenharmony_ci * #ACTION_HOME and #ENTITY_HOME Want filters set in the application's <b>config.json</b> or <b>module.json</b> file. 241761847f8eSopenharmony_ci * 241861847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 241961847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application. 242061847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID or do not pass user ID. 242161847f8eSopenharmony_ci * @returns { Want } the Want for starting the application's main ability. 242261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.GET_BUNDLE_INFO_PRIVILEGED'. 242361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 242461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 242561847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 242661847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 242761847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 242861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 242961847f8eSopenharmony_ci * @systemapi 243061847f8eSopenharmony_ci * @since 10 243161847f8eSopenharmony_ci */ 243261847f8eSopenharmony_ci function getLaunchWantForBundleSync(bundleName: string, userId?: number): Want; 243361847f8eSopenharmony_ci 243461847f8eSopenharmony_ci /** 243561847f8eSopenharmony_ci * Obtains the Want for starting the main ability of own application. 243661847f8eSopenharmony_ci * The main ability of an application is the ability that has the 243761847f8eSopenharmony_ci * #ACTION_HOME and #ENTITY_HOME Want filters set in the application's <b>config.json</b> or <b>module.json</b> file. 243861847f8eSopenharmony_ci * 243961847f8eSopenharmony_ci * @returns { Want } the Want for starting the application's main ability. 244061847f8eSopenharmony_ci * @throws { BusinessError } 17700072 - The launch want is not found. 244161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 244261847f8eSopenharmony_ci * @atomicservice 244361847f8eSopenharmony_ci * @since 13 244461847f8eSopenharmony_ci */ 244561847f8eSopenharmony_ci function getLaunchWant(): Want; 244661847f8eSopenharmony_ci 244761847f8eSopenharmony_ci /** 244861847f8eSopenharmony_ci * Obtains the profile designated by metadata name, abilityName and moduleName from the current application. 244961847f8eSopenharmony_ci * 245061847f8eSopenharmony_ci * @param { string } moduleName - Indicates the moduleName of the application. 245161847f8eSopenharmony_ci * @param { string } abilityName - Indicates the abilityName of the application. 245261847f8eSopenharmony_ci * @param { string } metadataName - Indicates the name of metadata in ability. 245361847f8eSopenharmony_ci * @param { AsyncCallback<Array<string>> } callback - The callback of returning string in json-format of the corresponding config file. 245461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 245561847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not existed. 245661847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityName is not existed. 245761847f8eSopenharmony_ci * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. 245861847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 245961847f8eSopenharmony_ci * @throws { BusinessError } 17700029 - The specified ability is disabled. 246061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 246161847f8eSopenharmony_ci * @since 9 246261847f8eSopenharmony_ci */ 246361847f8eSopenharmony_ci /** 246461847f8eSopenharmony_ci * Obtains the profile designated by metadata name, abilityName and moduleName from the current application. 246561847f8eSopenharmony_ci * 246661847f8eSopenharmony_ci * @param { string } moduleName - Indicates the moduleName of the application. 246761847f8eSopenharmony_ci * @param { string } abilityName - Indicates the abilityName of the application. 246861847f8eSopenharmony_ci * @param { string } metadataName - Indicates the name of metadata in ability. 246961847f8eSopenharmony_ci * @param { AsyncCallback<Array<string>> } callback - The callback of returning string in json-format of the corresponding config file. 247061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 247161847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not existed. 247261847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityName is not existed. 247361847f8eSopenharmony_ci * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. 247461847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 247561847f8eSopenharmony_ci * @throws { BusinessError } 17700029 - The specified ability is disabled. 247661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 247761847f8eSopenharmony_ci * @atomicservice 247861847f8eSopenharmony_ci * @since 11 247961847f8eSopenharmony_ci */ 248061847f8eSopenharmony_ci function getProfileByAbility(moduleName: string, abilityName: string, metadataName: string, callback: AsyncCallback<Array<string>>): void; 248161847f8eSopenharmony_ci 248261847f8eSopenharmony_ci /** 248361847f8eSopenharmony_ci * Obtains the profile designated by metadata name, abilityName and moduleName from the current application. 248461847f8eSopenharmony_ci * 248561847f8eSopenharmony_ci * @param { string } moduleName - Indicates the moduleName of the application. 248661847f8eSopenharmony_ci * @param { string } abilityName - Indicates the abilityName of the application. 248761847f8eSopenharmony_ci * @param { string } metadataName - Indicates the name of metadata in ability. 248861847f8eSopenharmony_ci * @returns { Promise<Array<string>> } Returns string in json-format of the corresponding config file. 248961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 249061847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not existed. 249161847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityName is not existed. 249261847f8eSopenharmony_ci * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. 249361847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 249461847f8eSopenharmony_ci * @throws { BusinessError } 17700029 - The specified ability is disabled. 249561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 249661847f8eSopenharmony_ci * @since 9 249761847f8eSopenharmony_ci */ 249861847f8eSopenharmony_ci /** 249961847f8eSopenharmony_ci * Obtains the profile designated by metadata name, abilityName and moduleName from the current application. 250061847f8eSopenharmony_ci * 250161847f8eSopenharmony_ci * @param { string } moduleName - Indicates the moduleName of the application. 250261847f8eSopenharmony_ci * @param { string } abilityName - Indicates the abilityName of the application. 250361847f8eSopenharmony_ci * @param { string } metadataName - Indicates the name of metadata in ability. 250461847f8eSopenharmony_ci * @returns { Promise<Array<string>> } Returns string in json-format of the corresponding config file. 250561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 250661847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not existed. 250761847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityName is not existed. 250861847f8eSopenharmony_ci * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. 250961847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 251061847f8eSopenharmony_ci * @throws { BusinessError } 17700029 - The specified ability is disabled. 251161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 251261847f8eSopenharmony_ci * @atomicservice 251361847f8eSopenharmony_ci * @since 11 251461847f8eSopenharmony_ci */ 251561847f8eSopenharmony_ci function getProfileByAbility(moduleName: string, abilityName: string, metadataName?: string): Promise<Array<string>>; 251661847f8eSopenharmony_ci 251761847f8eSopenharmony_ci /** 251861847f8eSopenharmony_ci * Obtains the profile designated by metadata name, abilityName and moduleName from the current application. 251961847f8eSopenharmony_ci * 252061847f8eSopenharmony_ci * @param { string } moduleName - Indicates the moduleName of the application. 252161847f8eSopenharmony_ci * @param { string } abilityName - Indicates the abilityName of the application. 252261847f8eSopenharmony_ci * @param { string } metadataName - Indicates the name of metadata in ability. 252361847f8eSopenharmony_ci * @returns { Array<string> } Returns string in json-format of the corresponding config file. 252461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 252561847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not existed. 252661847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityName is not existed. 252761847f8eSopenharmony_ci * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. 252861847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 252961847f8eSopenharmony_ci * @throws { BusinessError } 17700029 - The specified ability is disabled. 253061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 253161847f8eSopenharmony_ci * @since 10 253261847f8eSopenharmony_ci */ 253361847f8eSopenharmony_ci /** 253461847f8eSopenharmony_ci * Obtains the profile designated by metadata name, abilityName and moduleName from the current application. 253561847f8eSopenharmony_ci * 253661847f8eSopenharmony_ci * @param { string } moduleName - Indicates the moduleName of the application. 253761847f8eSopenharmony_ci * @param { string } abilityName - Indicates the abilityName of the application. 253861847f8eSopenharmony_ci * @param { string } metadataName - Indicates the name of metadata in ability. 253961847f8eSopenharmony_ci * @returns { Array<string> } Returns string in json-format of the corresponding config file. 254061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 254161847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not existed. 254261847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityName is not existed. 254361847f8eSopenharmony_ci * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. 254461847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 254561847f8eSopenharmony_ci * @throws { BusinessError } 17700029 - The specified ability is disabled. 254661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 254761847f8eSopenharmony_ci * @atomicservice 254861847f8eSopenharmony_ci * @since 11 254961847f8eSopenharmony_ci */ 255061847f8eSopenharmony_ci function getProfileByAbilitySync(moduleName: string, abilityName: string, metadataName?: string): Array<string>; 255161847f8eSopenharmony_ci 255261847f8eSopenharmony_ci /** 255361847f8eSopenharmony_ci * Obtains the profile designated by metadata name, extensionAbilityName and moduleName from the current application. 255461847f8eSopenharmony_ci * 255561847f8eSopenharmony_ci * @param { string } moduleName - Indicates the moduleName of the application. 255661847f8eSopenharmony_ci * @param { string } extensionAbilityName - Indicates the extensionAbilityName of the application. 255761847f8eSopenharmony_ci * @param { string } metadataName - Indicates the name of metadata in ability. 255861847f8eSopenharmony_ci * @param { AsyncCallback<Array<string>> } callback - The callback of returning string in json-format of the corresponding config file. 255961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 256061847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not existed. 256161847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified extensionAbilityName not existed. 256261847f8eSopenharmony_ci * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. 256361847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 256461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 256561847f8eSopenharmony_ci * @since 9 256661847f8eSopenharmony_ci */ 256761847f8eSopenharmony_ci /** 256861847f8eSopenharmony_ci * Obtains the profile designated by metadata name, extensionAbilityName and moduleName from the current application. 256961847f8eSopenharmony_ci * 257061847f8eSopenharmony_ci * @param { string } moduleName - Indicates the moduleName of the application. 257161847f8eSopenharmony_ci * @param { string } extensionAbilityName - Indicates the extensionAbilityName of the application. 257261847f8eSopenharmony_ci * @param { string } metadataName - Indicates the name of metadata in ability. 257361847f8eSopenharmony_ci * @param { AsyncCallback<Array<string>> } callback - The callback of returning string in json-format of the corresponding config file. 257461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 257561847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not existed. 257661847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified extensionAbilityName not existed. 257761847f8eSopenharmony_ci * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. 257861847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 257961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 258061847f8eSopenharmony_ci * @atomicservice 258161847f8eSopenharmony_ci * @since 11 258261847f8eSopenharmony_ci */ 258361847f8eSopenharmony_ci function getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, metadataName: string, callback: AsyncCallback<Array<string>>): void; 258461847f8eSopenharmony_ci 258561847f8eSopenharmony_ci /** 258661847f8eSopenharmony_ci * Obtains the profile designated by metadata name, extensionAbilityName and moduleName from the current application. 258761847f8eSopenharmony_ci * 258861847f8eSopenharmony_ci * @param { string } moduleName - Indicates the moduleName of the application. 258961847f8eSopenharmony_ci * @param { string } extensionAbilityName - Indicates the extensionAbilityName of the application. 259061847f8eSopenharmony_ci * @param { string } metadataName - Indicates the name of metadata in ability. 259161847f8eSopenharmony_ci * @returns { Promise<Array<string>> } Returns string in json-format of the corresponding config file. 259261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 259361847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not existed. 259461847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified extensionAbilityName not existed. 259561847f8eSopenharmony_ci * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. 259661847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 259761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 259861847f8eSopenharmony_ci * @since 9 259961847f8eSopenharmony_ci */ 260061847f8eSopenharmony_ci /** 260161847f8eSopenharmony_ci * Obtains the profile designated by metadata name, extensionAbilityName and moduleName from the current application. 260261847f8eSopenharmony_ci * 260361847f8eSopenharmony_ci * @param { string } moduleName - Indicates the moduleName of the application. 260461847f8eSopenharmony_ci * @param { string } extensionAbilityName - Indicates the extensionAbilityName of the application. 260561847f8eSopenharmony_ci * @param { string } metadataName - Indicates the name of metadata in ability. 260661847f8eSopenharmony_ci * @returns { Promise<Array<string>> } Returns string in json-format of the corresponding config file. 260761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 260861847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not existed. 260961847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified extensionAbilityName not existed. 261061847f8eSopenharmony_ci * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. 261161847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 261261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 261361847f8eSopenharmony_ci * @atomicservice 261461847f8eSopenharmony_ci * @since 11 261561847f8eSopenharmony_ci */ 261661847f8eSopenharmony_ci function getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, metadataName?: string): Promise<Array<string>>; 261761847f8eSopenharmony_ci 261861847f8eSopenharmony_ci /** 261961847f8eSopenharmony_ci * Obtains the profile designated by metadata name, extensionAbilityName and moduleName from the current application. 262061847f8eSopenharmony_ci * 262161847f8eSopenharmony_ci * @param { string } moduleName - Indicates the moduleName of the application. 262261847f8eSopenharmony_ci * @param { string } extensionAbilityName - Indicates the extensionAbilityName of the application. 262361847f8eSopenharmony_ci * @param { string } metadataName - Indicates the name of metadata in ability. 262461847f8eSopenharmony_ci * @returns { Array<string> } Returns string in json-format of the corresponding config file. 262561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 262661847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not existed. 262761847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified extensionAbilityName not existed. 262861847f8eSopenharmony_ci * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. 262961847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 263061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 263161847f8eSopenharmony_ci * @since 10 263261847f8eSopenharmony_ci */ 263361847f8eSopenharmony_ci /** 263461847f8eSopenharmony_ci * Obtains the profile designated by metadata name, extensionAbilityName and moduleName from the current application. 263561847f8eSopenharmony_ci * 263661847f8eSopenharmony_ci * @param { string } moduleName - Indicates the moduleName of the application. 263761847f8eSopenharmony_ci * @param { string } extensionAbilityName - Indicates the extensionAbilityName of the application. 263861847f8eSopenharmony_ci * @param { string } metadataName - Indicates the name of metadata in ability. 263961847f8eSopenharmony_ci * @returns { Array<string> } Returns string in json-format of the corresponding config file. 264061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 264161847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not existed. 264261847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified extensionAbilityName not existed. 264361847f8eSopenharmony_ci * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. 264461847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 264561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 264661847f8eSopenharmony_ci * @atomicservice 264761847f8eSopenharmony_ci * @since 11 264861847f8eSopenharmony_ci */ 264961847f8eSopenharmony_ci function getProfileByExtensionAbilitySync(moduleName: string, extensionAbilityName: string, metadataName?: string): Array<string>; 265061847f8eSopenharmony_ci 265161847f8eSopenharmony_ci /** 265261847f8eSopenharmony_ci * Get the permission details by permission name. 265361847f8eSopenharmony_ci * 265461847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 265561847f8eSopenharmony_ci * @param { string } permissionName - Indicates permission name. 265661847f8eSopenharmony_ci * @param { AsyncCallback<PermissionDef> } callback - The callback of get permissionDef object result. 265761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 265861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 265961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 266061847f8eSopenharmony_ci * @throws { BusinessError } 17700006 - The specified permission is not found. 266161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 266261847f8eSopenharmony_ci * @systemapi 266361847f8eSopenharmony_ci * @since 9 266461847f8eSopenharmony_ci */ 266561847f8eSopenharmony_ci function getPermissionDef(permissionName: string, callback: AsyncCallback<PermissionDef>): void; 266661847f8eSopenharmony_ci 266761847f8eSopenharmony_ci /** 266861847f8eSopenharmony_ci * Get the permission details by permission name. 266961847f8eSopenharmony_ci * 267061847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 267161847f8eSopenharmony_ci * @param { string } permissionName - Indicates permission name. 267261847f8eSopenharmony_ci * @returns { Promise<PermissionDef> } Returns permissionDef object. 267361847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 267461847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 267561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 267661847f8eSopenharmony_ci * @throws { BusinessError } 17700006 - The specified permission is not found. 267761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 267861847f8eSopenharmony_ci * @systemapi 267961847f8eSopenharmony_ci * @since 9 268061847f8eSopenharmony_ci */ 268161847f8eSopenharmony_ci function getPermissionDef(permissionName: string): Promise<PermissionDef>; 268261847f8eSopenharmony_ci 268361847f8eSopenharmony_ci /** 268461847f8eSopenharmony_ci * Get the permission details by permission name. 268561847f8eSopenharmony_ci * 268661847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 268761847f8eSopenharmony_ci * @param { string } permissionName - Indicates permission name. 268861847f8eSopenharmony_ci * @returns { PermissionDef } Returns permissionDef object. 268961847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 269061847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 269161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 269261847f8eSopenharmony_ci * @throws { BusinessError } 17700006 - The specified permission is not found. 269361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 269461847f8eSopenharmony_ci * @systemapi 269561847f8eSopenharmony_ci * @since 10 269661847f8eSopenharmony_ci */ 269761847f8eSopenharmony_ci function getPermissionDefSync(permissionName: string): PermissionDef; 269861847f8eSopenharmony_ci 269961847f8eSopenharmony_ci /** 270061847f8eSopenharmony_ci * Obtains the label of a specified ability. 270161847f8eSopenharmony_ci * 270261847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 270361847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application to which the ability belongs. 270461847f8eSopenharmony_ci * @param { string } moduleName - Indicates the module name. 270561847f8eSopenharmony_ci * @param { string } abilityName - Indicates the ability name. 270661847f8eSopenharmony_ci * @param { AsyncCallback<string> } callback - The callback of getting ability label result. 270761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 270861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 270961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 271061847f8eSopenharmony_ci * @throws { BusinessError } 801 - Capability not supported. 271161847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 271261847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not found. 271361847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityName is not found. 271461847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 271561847f8eSopenharmony_ci * @throws { BusinessError } 17700029 - The specified ability is disabled. 271661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Resource 271761847f8eSopenharmony_ci * @systemapi 271861847f8eSopenharmony_ci * @since 9 271961847f8eSopenharmony_ci */ 272061847f8eSopenharmony_ci function getAbilityLabel(bundleName: string, moduleName: string, abilityName: string, callback: AsyncCallback<string>): void; 272161847f8eSopenharmony_ci 272261847f8eSopenharmony_ci /** 272361847f8eSopenharmony_ci * Obtains the label of a specified ability. 272461847f8eSopenharmony_ci * 272561847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 272661847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application to which the ability belongs. 272761847f8eSopenharmony_ci * @param { string } moduleName - Indicates the module name. 272861847f8eSopenharmony_ci * @param { string } abilityName - Indicates the ability name. 272961847f8eSopenharmony_ci * @returns { Promise<string> } Returns the label representing the label of the specified ability. 273061847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 273161847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 273261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 273361847f8eSopenharmony_ci * @throws { BusinessError } 801 - Capability not supported. 273461847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 273561847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not found. 273661847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityName is not found. 273761847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 273861847f8eSopenharmony_ci * @throws { BusinessError } 17700029 - The specified ability is disabled. 273961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Resource 274061847f8eSopenharmony_ci * @systemapi 274161847f8eSopenharmony_ci * @since 9 274261847f8eSopenharmony_ci */ 274361847f8eSopenharmony_ci function getAbilityLabel(bundleName: string, moduleName: string, abilityName: string): Promise<string>; 274461847f8eSopenharmony_ci 274561847f8eSopenharmony_ci /** 274661847f8eSopenharmony_ci * Obtains the label of a specified ability. 274761847f8eSopenharmony_ci * 274861847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 274961847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application to which the ability belongs. 275061847f8eSopenharmony_ci * @param { string } moduleName - Indicates the module name. 275161847f8eSopenharmony_ci * @param { string } abilityName - Indicates the ability name. 275261847f8eSopenharmony_ci * @returns { string } Returns the label representing the label of the specified ability. 275361847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 275461847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 275561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 275661847f8eSopenharmony_ci * @throws { BusinessError } 801 - Capability not supported. 275761847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 275861847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not found. 275961847f8eSopenharmony_ci * @throws { BusinessError } 17700003 - The specified abilityName is not found. 276061847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 276161847f8eSopenharmony_ci * @throws { BusinessError } 17700029 - The specified ability is disabled. 276261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Resource 276361847f8eSopenharmony_ci * @systemapi 276461847f8eSopenharmony_ci * @since 10 276561847f8eSopenharmony_ci */ 276661847f8eSopenharmony_ci function getAbilityLabelSync(bundleName: string, moduleName: string, abilityName: string): string; 276761847f8eSopenharmony_ci 276861847f8eSopenharmony_ci /** 276961847f8eSopenharmony_ci * Obtains applicationInfo based on a given bundleName and bundleFlags. 277061847f8eSopenharmony_ci * 277161847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 277261847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name to be queried. 277361847f8eSopenharmony_ci * @param { number } applicationFlags - Indicates the flag used to specify information contained in the ApplicationInfo object that will be returned. 277461847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID or do not pass user ID. 277561847f8eSopenharmony_ci * @returns { ApplicationInfo } - Returns the ApplicationInfo object. 277661847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 277761847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 277861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 277961847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 278061847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 278161847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 278261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 278361847f8eSopenharmony_ci * @systemapi 278461847f8eSopenharmony_ci * @since 9 278561847f8eSopenharmony_ci */ 278661847f8eSopenharmony_ci function getApplicationInfoSync(bundleName: string, applicationFlags: number, userId: number): ApplicationInfo; 278761847f8eSopenharmony_ci 278861847f8eSopenharmony_ci /** 278961847f8eSopenharmony_ci * Obtains applicationInfo based on a given bundleName and bundleFlags. 279061847f8eSopenharmony_ci * 279161847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 279261847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name to be queried. 279361847f8eSopenharmony_ci * @param { number } applicationFlags - Indicates the flag used to specify information contained in the ApplicationInfo object that will be returned. 279461847f8eSopenharmony_ci * @returns { ApplicationInfo } - Returns the ApplicationInfo object. 279561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 279661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 279761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 279861847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 279961847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 280061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 280161847f8eSopenharmony_ci * @systemapi 280261847f8eSopenharmony_ci * @since 9 280361847f8eSopenharmony_ci */ 280461847f8eSopenharmony_ci function getApplicationInfoSync(bundleName: string, applicationFlags: number): ApplicationInfo; 280561847f8eSopenharmony_ci 280661847f8eSopenharmony_ci /** 280761847f8eSopenharmony_ci * Obtains bundleInfo based on bundleName, bundleFlags and userId. 280861847f8eSopenharmony_ci * 280961847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 281061847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name to be queried. 281161847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo object that will be returned. 281261847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID or do not pass user ID. 281361847f8eSopenharmony_ci * @returns { BundleInfo } - Returns the BundleInfo object. 281461847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 281561847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 281661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 281761847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 281861847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 281961847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 282061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 282161847f8eSopenharmony_ci * @systemapi 282261847f8eSopenharmony_ci * @since 9 282361847f8eSopenharmony_ci */ 282461847f8eSopenharmony_ci function getBundleInfoSync(bundleName: string, bundleFlags: number, userId: number): BundleInfo; 282561847f8eSopenharmony_ci 282661847f8eSopenharmony_ci /** 282761847f8eSopenharmony_ci * Obtains bundleInfo based on bundleName, bundleFlags. 282861847f8eSopenharmony_ci * 282961847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 283061847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name to be queried. 283161847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo object that will be returned. 283261847f8eSopenharmony_ci * @returns { BundleInfo } - Returns the BundleInfo object. 283361847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 283461847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 283561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 283661847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 283761847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 283861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 283961847f8eSopenharmony_ci * @systemapi 284061847f8eSopenharmony_ci * @since 9 284161847f8eSopenharmony_ci */ 284261847f8eSopenharmony_ci function getBundleInfoSync(bundleName: string, bundleFlags: number): BundleInfo; 284361847f8eSopenharmony_ci 284461847f8eSopenharmony_ci /** 284561847f8eSopenharmony_ci * Obtains SharedBundleInfo of all shared bundle available in the system. 284661847f8eSopenharmony_ci * 284761847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 284861847f8eSopenharmony_ci * @param { AsyncCallback<Array<SharedBundleInfo>> } callback - The callback of getting a list of SharedBundleInfo objects. 284961847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 285061847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 285161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 285261847f8eSopenharmony_ci * @systemapi 285361847f8eSopenharmony_ci * @since 10 285461847f8eSopenharmony_ci */ 285561847f8eSopenharmony_ci function getAllSharedBundleInfo(callback: AsyncCallback<Array<SharedBundleInfo>>): void; 285661847f8eSopenharmony_ci 285761847f8eSopenharmony_ci /** 285861847f8eSopenharmony_ci * Obtains SharedBundleInfo of all shared bundle available in the system. 285961847f8eSopenharmony_ci * 286061847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 286161847f8eSopenharmony_ci * @returns { Promise<Array<SharedBundleInfo>> } Returns a list of SharedBundleInfo objects. 286261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 286361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 286461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 286561847f8eSopenharmony_ci * @systemapi 286661847f8eSopenharmony_ci * @since 10 286761847f8eSopenharmony_ci */ 286861847f8eSopenharmony_ci function getAllSharedBundleInfo(): Promise<Array<SharedBundleInfo>>; 286961847f8eSopenharmony_ci 287061847f8eSopenharmony_ci /** 287161847f8eSopenharmony_ci * Obtains SharedBundleInfo of shared bundle by bundle name and module name. 287261847f8eSopenharmony_ci * 287361847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 287461847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundleName of the application. 287561847f8eSopenharmony_ci * @param { string } moduleName - Indicates the moduleName of the application. 287661847f8eSopenharmony_ci * @param { AsyncCallback<Array<SharedBundleInfo>> } callback - The callback of getting a list of SharedBundleInfo objects. 287761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 287861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 287961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 288061847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 288161847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not found. 288261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 288361847f8eSopenharmony_ci * @systemapi 288461847f8eSopenharmony_ci * @since 10 288561847f8eSopenharmony_ci */ 288661847f8eSopenharmony_ci function getSharedBundleInfo(bundleName: string, moduleName: string, callback: AsyncCallback<Array<SharedBundleInfo>>): void; 288761847f8eSopenharmony_ci 288861847f8eSopenharmony_ci /** 288961847f8eSopenharmony_ci * Obtains SharedBundleInfo of shared bundle by bundle name and module name. 289061847f8eSopenharmony_ci * 289161847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 289261847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundleName of the application. 289361847f8eSopenharmony_ci * @param { string } moduleName - Indicates the moduleName of the application. 289461847f8eSopenharmony_ci * @returns { Promise<Array<SharedBundleInfo>> } Returns a list of SharedBundleInfo objects. 289561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 289661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 289761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 289861847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 289961847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not found. 290061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 290161847f8eSopenharmony_ci * @systemapi 290261847f8eSopenharmony_ci * @since 10 290361847f8eSopenharmony_ci */ 290461847f8eSopenharmony_ci function getSharedBundleInfo(bundleName: string, moduleName: string): Promise<Array<SharedBundleInfo>>; 290561847f8eSopenharmony_ci 290661847f8eSopenharmony_ci /** 290761847f8eSopenharmony_ci * Obtains the profile file information of a specified bundle. 290861847f8eSopenharmony_ci * 290961847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 291061847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application to which the ability belongs. 291161847f8eSopenharmony_ci * @param { AsyncCallback<AppProvisionInfo> } callback - Indicates the callback of getting AppProvisionInfo result. 291261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 291361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 291461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 291561847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. Parameter bundleName is empty. 291661847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 291761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 291861847f8eSopenharmony_ci * @systemapi 291961847f8eSopenharmony_ci * @since 10 292061847f8eSopenharmony_ci */ 292161847f8eSopenharmony_ci function getAppProvisionInfo(bundleName: string, callback: AsyncCallback<AppProvisionInfo>): void; 292261847f8eSopenharmony_ci 292361847f8eSopenharmony_ci /** 292461847f8eSopenharmony_ci * Obtains the profile file information of a specified bundle. 292561847f8eSopenharmony_ci * 292661847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 292761847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application to which the ability belongs. 292861847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID or do not pass user ID. 292961847f8eSopenharmony_ci * @param { AsyncCallback<AppProvisionInfo> } callback - Indicates the callback of getting AppProvisionInfo result. 293061847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 293161847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 293261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 293361847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. Parameter bundleName is empty. 293461847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 293561847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 293661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 293761847f8eSopenharmony_ci * @systemapi 293861847f8eSopenharmony_ci * @since 10 293961847f8eSopenharmony_ci */ 294061847f8eSopenharmony_ci function getAppProvisionInfo(bundleName: string, userId: number, callback: AsyncCallback<AppProvisionInfo>): void; 294161847f8eSopenharmony_ci 294261847f8eSopenharmony_ci /** 294361847f8eSopenharmony_ci * Obtains the profile file information of a specified bundle. 294461847f8eSopenharmony_ci * 294561847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 294661847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application to which the ability belongs. 294761847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID or do not pass user ID. 294861847f8eSopenharmony_ci * @returns { Promise<AppProvisionInfo> } Returns the AppProvisionInfo object. 294961847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 295061847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 295161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 295261847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. Parameter bundleName is empty. 295361847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 295461847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 295561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 295661847f8eSopenharmony_ci * @systemapi 295761847f8eSopenharmony_ci * @since 10 295861847f8eSopenharmony_ci */ 295961847f8eSopenharmony_ci function getAppProvisionInfo(bundleName: string, userId?: number): Promise<AppProvisionInfo>; 296061847f8eSopenharmony_ci 296161847f8eSopenharmony_ci /** 296261847f8eSopenharmony_ci * Obtains the profile file information of a specified bundle. 296361847f8eSopenharmony_ci * 296461847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 296561847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application to which the ability belongs. 296661847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID or do not pass user ID. 296761847f8eSopenharmony_ci * @returns { AppProvisionInfo } Returns the AppProvisionInfo object. 296861847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 296961847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 297061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 297161847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. Parameter bundleName is empty. 297261847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 297361847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 297461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 297561847f8eSopenharmony_ci * @systemapi 297661847f8eSopenharmony_ci * @since 10 297761847f8eSopenharmony_ci */ 297861847f8eSopenharmony_ci function getAppProvisionInfoSync(bundleName: string, userId?: number): AppProvisionInfo; 297961847f8eSopenharmony_ci 298061847f8eSopenharmony_ci /** 298161847f8eSopenharmony_ci * Obtains the distribution type specified during bundle installation. 298261847f8eSopenharmony_ci * 298361847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 298461847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name to be queried. 298561847f8eSopenharmony_ci * @returns { string } The specified distribution type. 298661847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 298761847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 298861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 298961847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 299061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 299161847f8eSopenharmony_ci * @systemapi 299261847f8eSopenharmony_ci * @since 10 299361847f8eSopenharmony_ci */ 299461847f8eSopenharmony_ci function getSpecifiedDistributionType(bundleName: string): string; 299561847f8eSopenharmony_ci 299661847f8eSopenharmony_ci /** 299761847f8eSopenharmony_ci * Obtains the additional information during bundle installation. 299861847f8eSopenharmony_ci * 299961847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 300061847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name to be queried. 300161847f8eSopenharmony_ci * @returns { string } The additional information. 300261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 300361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 300461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 300561847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. Parameter bundleName is empty. 300661847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 300761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 300861847f8eSopenharmony_ci * @systemapi 300961847f8eSopenharmony_ci * @since 10 301061847f8eSopenharmony_ci */ 301161847f8eSopenharmony_ci function getAdditionalInfo(bundleName: string): string; 301261847f8eSopenharmony_ci 301361847f8eSopenharmony_ci /** 301461847f8eSopenharmony_ci * Obtains the JSON profile designated by profileType, bundleName and moduleName. 301561847f8eSopenharmony_ci * 301661847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 301761847f8eSopenharmony_ci * @param { ProfileType } profileType - Indicates the type of profile to be obtained. 301861847f8eSopenharmony_ci * @param { string } bundleName - Indicates the name of the bundle to which the profile belongs. 301961847f8eSopenharmony_ci * @param { string } moduleName - Indicates the name of the module to which the profile belongs. 302061847f8eSopenharmony_ci * @returns { string } Returns string in json-format of the designated profile. 302161847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 302261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 302361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 302461847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 302561847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not found. 302661847f8eSopenharmony_ci * @throws { BusinessError } 17700024 - Failed to get the profile because the specified profile is not found in the HAP. 302761847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 302861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 302961847f8eSopenharmony_ci * @systemapi 303061847f8eSopenharmony_ci * @since 11 303161847f8eSopenharmony_ci */ 303261847f8eSopenharmony_ci /** 303361847f8eSopenharmony_ci * Obtains the JSON profile designated by profileType, bundleName, moduleName and userId. 303461847f8eSopenharmony_ci * 303561847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 303661847f8eSopenharmony_ci * @param { ProfileType } profileType - Indicates the type of profile to be obtained. 303761847f8eSopenharmony_ci * @param { string } bundleName - Indicates the name of the bundle to which the profile belongs. 303861847f8eSopenharmony_ci * @param { string } moduleName - Indicates the name of the module to which the profile belongs. 303961847f8eSopenharmony_ci * @param { number } userId - Indicates the user ID or do not pass user ID. 304061847f8eSopenharmony_ci * @returns { string } Returns string in json-format of the designated profile. 304161847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 304261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 304361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 304461847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 304561847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not found. 304661847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 304761847f8eSopenharmony_ci * @throws { BusinessError } 17700024 - Failed to get the profile because the specified profile is not found in the HAP. 304861847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 304961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 305061847f8eSopenharmony_ci * @systemapi 305161847f8eSopenharmony_ci * @since 12 305261847f8eSopenharmony_ci */ 305361847f8eSopenharmony_ci function getJsonProfile(profileType: ProfileType, bundleName: string, moduleName?: string, userId?: number): string; 305461847f8eSopenharmony_ci 305561847f8eSopenharmony_ci /** 305661847f8eSopenharmony_ci * Get extend resources. 305761847f8eSopenharmony_ci * 305861847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 305961847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundleName. 306061847f8eSopenharmony_ci * @returns { Promise<Array<string>> } Returns getExtResource result. 306161847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 306261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 306361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 306461847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 306561847f8eSopenharmony_ci * @throws { BusinessError } 17700303 - Failed to obtain extended resources. 306661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 306761847f8eSopenharmony_ci * @systemapi 306861847f8eSopenharmony_ci * @since 12 306961847f8eSopenharmony_ci */ 307061847f8eSopenharmony_ci function getExtResource(bundleName: string): Promise<Array<string>>; 307161847f8eSopenharmony_ci 307261847f8eSopenharmony_ci /** 307361847f8eSopenharmony_ci * Enable dynamic icon. 307461847f8eSopenharmony_ci * 307561847f8eSopenharmony_ci * @permission ohos.permission.ACCESS_DYNAMIC_ICON 307661847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundleName. 307761847f8eSopenharmony_ci * @param { string } moduleName - Indicates the moduleName for extend resource. 307861847f8eSopenharmony_ci * @returns { Promise<void> } Returns enableDynamicIcon result. 307961847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 308061847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 308161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 308261847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 308361847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified moduleName is not found. 308461847f8eSopenharmony_ci * @throws { BusinessError } 17700304 - Failed to enable the dynamic icon. 308561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 308661847f8eSopenharmony_ci * @systemapi 308761847f8eSopenharmony_ci * @since 12 308861847f8eSopenharmony_ci */ 308961847f8eSopenharmony_ci function enableDynamicIcon(bundleName: string, moduleName: string): Promise<void>; 309061847f8eSopenharmony_ci 309161847f8eSopenharmony_ci /** 309261847f8eSopenharmony_ci * Disable dynamic icon. 309361847f8eSopenharmony_ci * 309461847f8eSopenharmony_ci * @permission ohos.permission.ACCESS_DYNAMIC_ICON 309561847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundleName. 309661847f8eSopenharmony_ci * @returns { Promise<void> } Returns disableDynamicIcon result. 309761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 309861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 309961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 310061847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 310161847f8eSopenharmony_ci * @throws { BusinessError } 17700305 - Failed to disable the dynamic icon. 310261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 310361847f8eSopenharmony_ci * @systemapi 310461847f8eSopenharmony_ci * @since 12 310561847f8eSopenharmony_ci */ 310661847f8eSopenharmony_ci function disableDynamicIcon(bundleName: string): Promise<void>; 310761847f8eSopenharmony_ci 310861847f8eSopenharmony_ci /** 310961847f8eSopenharmony_ci * Get dynamic icon. 311061847f8eSopenharmony_ci * 311161847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO 311261847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundleName. 311361847f8eSopenharmony_ci * @returns { Promise<string> } Returns dynamic icon key. 311461847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 311561847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 311661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 311761847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 311861847f8eSopenharmony_ci * @throws { BusinessError } 17700306 - Failed to obtain the dynamic icon. 311961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 312061847f8eSopenharmony_ci * @systemapi 312161847f8eSopenharmony_ci * @since 12 312261847f8eSopenharmony_ci */ 312361847f8eSopenharmony_ci function getDynamicIcon(bundleName: string): Promise<string>; 312461847f8eSopenharmony_ci 312561847f8eSopenharmony_ci /** 312661847f8eSopenharmony_ci * Verifies the validity of .abc files. Only .abc files passed the verification can run on the restricted VM. 312761847f8eSopenharmony_ci * 312861847f8eSopenharmony_ci * @permission ohos.permission.RUN_DYN_CODE 312961847f8eSopenharmony_ci * @param { Array<string> } abcPaths - The abc path. 313061847f8eSopenharmony_ci * @param { boolean } deleteOriginalFiles - Used to decide whether to delete the original files. 313161847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Indicates the callback of verifyAbc result. 313261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 313361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 313461847f8eSopenharmony_ci * @throws { BusinessError } 17700201 - Failed to verify the abc file. 313561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 313661847f8eSopenharmony_ci * @since 11 313761847f8eSopenharmony_ci */ 313861847f8eSopenharmony_ci /** 313961847f8eSopenharmony_ci * Verifies the validity of .abc files. Only .abc files passed the verification can run on the restricted VM. 314061847f8eSopenharmony_ci * 314161847f8eSopenharmony_ci * @permission ohos.permission.RUN_DYN_CODE 314261847f8eSopenharmony_ci * @param { Array<string> } abcPaths - The abc path. 314361847f8eSopenharmony_ci * @param { boolean } deleteOriginalFiles - Used to decide whether to delete the original files. 314461847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Indicates the callback of verifyAbc result. 314561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 314661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 314761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 314861847f8eSopenharmony_ci * @throws { BusinessError } 17700201 - Failed to verify the abc file. 314961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 315061847f8eSopenharmony_ci * @systemapi 315161847f8eSopenharmony_ci * @since 12 315261847f8eSopenharmony_ci */ 315361847f8eSopenharmony_ci function verifyAbc(abcPaths: Array<string>, deleteOriginalFiles: boolean, callback: AsyncCallback<void>): void; 315461847f8eSopenharmony_ci 315561847f8eSopenharmony_ci /** 315661847f8eSopenharmony_ci * Verifies the validity of .abc files. Only .abc files passed the verification can run on the restricted VM. 315761847f8eSopenharmony_ci * 315861847f8eSopenharmony_ci * @permission ohos.permission.RUN_DYN_CODE 315961847f8eSopenharmony_ci * @param { Array<string> } abcPaths - The abc path. 316061847f8eSopenharmony_ci * @param { boolean } deleteOriginalFiles - Used to decide whether to delete the original files. 316161847f8eSopenharmony_ci * @returns { Promise<void> } Returns verifyAbc result. 316261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 316361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 316461847f8eSopenharmony_ci * @throws { BusinessError } 17700201 - Failed to verify the abc file. 316561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 316661847f8eSopenharmony_ci * @since 11 316761847f8eSopenharmony_ci */ 316861847f8eSopenharmony_ci /** 316961847f8eSopenharmony_ci * Verifies the validity of .abc files. Only .abc files passed the verification can run on the restricted VM. 317061847f8eSopenharmony_ci * 317161847f8eSopenharmony_ci * @permission ohos.permission.RUN_DYN_CODE 317261847f8eSopenharmony_ci * @param { Array<string> } abcPaths - The abc path. 317361847f8eSopenharmony_ci * @param { boolean } deleteOriginalFiles - Used to decide whether to delete the original files. 317461847f8eSopenharmony_ci * @returns { Promise<void> } Returns verifyAbc result. 317561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 317661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 317761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 317861847f8eSopenharmony_ci * @throws { BusinessError } 17700201 - Failed to verify the abc file. 317961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 318061847f8eSopenharmony_ci * @systemapi 318161847f8eSopenharmony_ci * @since 12 318261847f8eSopenharmony_ci */ 318361847f8eSopenharmony_ci function verifyAbc(abcPaths: Array<string>, deleteOriginalFiles: boolean): Promise<void>; 318461847f8eSopenharmony_ci 318561847f8eSopenharmony_ci /** 318661847f8eSopenharmony_ci * Obtains recoverable preinstalled applications. 318761847f8eSopenharmony_ci * 318861847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 318961847f8eSopenharmony_ci * @param { AsyncCallback<Array<RecoverableApplicationInfo>> } callback - The callback of getting a list of RecoverableApplicationInfo objects. 319061847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 319161847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 319261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 319361847f8eSopenharmony_ci * @systemapi 319461847f8eSopenharmony_ci * @since 11 319561847f8eSopenharmony_ci */ 319661847f8eSopenharmony_ci function getRecoverableApplicationInfo(callback: AsyncCallback<Array<RecoverableApplicationInfo>>): void; 319761847f8eSopenharmony_ci 319861847f8eSopenharmony_ci /** 319961847f8eSopenharmony_ci * Obtains recoverable preinstalled applications. 320061847f8eSopenharmony_ci * 320161847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 320261847f8eSopenharmony_ci * @returns { Promise<Array<RecoverableApplicationInfo>> } Returns a list of RecoverableApplicationInfo objects. 320361847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 320461847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 320561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 320661847f8eSopenharmony_ci * @systemapi 320761847f8eSopenharmony_ci * @since 11 320861847f8eSopenharmony_ci */ 320961847f8eSopenharmony_ci function getRecoverableApplicationInfo(): Promise<Array<RecoverableApplicationInfo>>; 321061847f8eSopenharmony_ci 321161847f8eSopenharmony_ci /** 321261847f8eSopenharmony_ci * Set additional information to the specified application. 321361847f8eSopenharmony_ci * 321461847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 321561847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application. 321661847f8eSopenharmony_ci * @param { string } additionalInfo - The additional information. 321761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 321861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 321961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 322061847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. Parameter bundleName is empty. 322161847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 322261847f8eSopenharmony_ci * @throws { BusinessError } 17700053 - The caller is not AppGallery. 322361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 322461847f8eSopenharmony_ci * @systemapi 322561847f8eSopenharmony_ci * @since 11 322661847f8eSopenharmony_ci */ 322761847f8eSopenharmony_ci function setAdditionalInfo(bundleName: string, additionalInfo: string): void; 322861847f8eSopenharmony_ci 322961847f8eSopenharmony_ci /** 323061847f8eSopenharmony_ci * Delete the verified .abc file. 323161847f8eSopenharmony_ci * 323261847f8eSopenharmony_ci * @permission ohos.permission.RUN_DYN_CODE 323361847f8eSopenharmony_ci * @param { string } abcPath - The abc path. 323461847f8eSopenharmony_ci * @returns { Promise<void> } Returns deleteAbc result. 323561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 323661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 323761847f8eSopenharmony_ci * @throws { BusinessError } 17700202 - Failed to delete the abc file. 323861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 323961847f8eSopenharmony_ci * @since 11 324061847f8eSopenharmony_ci */ 324161847f8eSopenharmony_ci /** 324261847f8eSopenharmony_ci * Delete the verified .abc file. 324361847f8eSopenharmony_ci * 324461847f8eSopenharmony_ci * @permission ohos.permission.RUN_DYN_CODE 324561847f8eSopenharmony_ci * @param { string } abcPath - The abc path. 324661847f8eSopenharmony_ci * @returns { Promise<void> } Returns deleteAbc result. 324761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 324861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 324961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 325061847f8eSopenharmony_ci * @throws { BusinessError } 17700202 - Failed to delete the abc file. 325161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 325261847f8eSopenharmony_ci * @systemapi 325361847f8eSopenharmony_ci * @since 12 325461847f8eSopenharmony_ci */ 325561847f8eSopenharmony_ci function deleteAbc(abcPath: string): Promise<void>; 325661847f8eSopenharmony_ci 325761847f8eSopenharmony_ci /** 325861847f8eSopenharmony_ci * Check whether the link can be opened. 325961847f8eSopenharmony_ci * 326061847f8eSopenharmony_ci * @param { string } link - Indicates the link to be opened. 326161847f8eSopenharmony_ci * @returns { boolean } Returns true if the link can be opened; returns false otherwise. 326261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 326361847f8eSopenharmony_ci * @throws { BusinessError } 17700055 - The specified link is invalid. 326461847f8eSopenharmony_ci * @throws { BusinessError } 17700056 - The scheme of the specified link is not in the querySchemes. 326561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 326661847f8eSopenharmony_ci * @atomicservice 326761847f8eSopenharmony_ci * @since 12 326861847f8eSopenharmony_ci */ 326961847f8eSopenharmony_ci function canOpenLink(link: string): boolean; 327061847f8eSopenharmony_ci 327161847f8eSopenharmony_ci /** 327261847f8eSopenharmony_ci * Obtains PreinstalledApplicationInfo of all applications preinstalled in the system. 327361847f8eSopenharmony_ci * 327461847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 327561847f8eSopenharmony_ci * @returns { Promise<Array<PreinstalledApplicationInfo>> } Returns a list of PreinstalledApplicationInfo objects. 327661847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 327761847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 327861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 327961847f8eSopenharmony_ci * @systemapi 328061847f8eSopenharmony_ci * @since 12 328161847f8eSopenharmony_ci */ 328261847f8eSopenharmony_ci function getAllPreinstalledApplicationInfo(): Promise<Array<PreinstalledApplicationInfo>>; 328361847f8eSopenharmony_ci 328461847f8eSopenharmony_ci /** 328561847f8eSopenharmony_ci * Get a list of BundleInfo objects by developerId. 328661847f8eSopenharmony_ci * 328761847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 328861847f8eSopenharmony_ci * @param { string } developerId - Indicates the developerId of the application. 328961847f8eSopenharmony_ci * @returns { Array<BundleInfo> } Returns a list of BundleInfo objects. 329061847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 329161847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 329261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 329361847f8eSopenharmony_ci * 2. Incorrect parameter types; 3. Parameter developerId is empty. 329461847f8eSopenharmony_ci * @throws { BusinessError } 17700059 - The specified developerId is invalid. 329561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 329661847f8eSopenharmony_ci * @systemapi 329761847f8eSopenharmony_ci * @since 12 329861847f8eSopenharmony_ci */ 329961847f8eSopenharmony_ci function getAllBundleInfoByDeveloperId(developerId: string): Array<BundleInfo>; 330061847f8eSopenharmony_ci 330161847f8eSopenharmony_ci /** 330261847f8eSopenharmony_ci * Get a list of developedId by distribution type. 330361847f8eSopenharmony_ci * 330461847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 330561847f8eSopenharmony_ci * @param { number } appDistributionType - Indicates the distribution type of the application, and if not passed in, it gets all the developerId. 330661847f8eSopenharmony_ci * @returns { Array<String> } Returns a list of developerId. 330761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 330861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 330961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 331061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 331161847f8eSopenharmony_ci * @systemapi 331261847f8eSopenharmony_ci * @since 12 331361847f8eSopenharmony_ci */ 331461847f8eSopenharmony_ci function getDeveloperIds(appDistributionType?: number): Array<String>; 331561847f8eSopenharmony_ci 331661847f8eSopenharmony_ci /** 331761847f8eSopenharmony_ci * Switch uninstall state of a specified application. 331861847f8eSopenharmony_ci * 331961847f8eSopenharmony_ci * @permission ohos.permission.CHANGE_BUNDLE_UNINSTALL_STATE 332061847f8eSopenharmony_ci * @param { string } bundleName - Indicates the bundle name of the application. 332161847f8eSopenharmony_ci * @param { boolean } state - Indicates whether the specified application can be uninstalled. 332261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 332361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 332461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 332561847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 332661847f8eSopenharmony_ci * @throws { BusinessError } 17700060 - The specified application cannot be uninstalled. 332761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 332861847f8eSopenharmony_ci * @systemapi 332961847f8eSopenharmony_ci * @since 12 333061847f8eSopenharmony_ci */ 333161847f8eSopenharmony_ci function switchUninstallState(bundleName: string, state: boolean): void; 333261847f8eSopenharmony_ci 333361847f8eSopenharmony_ci /** 333461847f8eSopenharmony_ci * Get the BundleInfo of the specified MultiIsolation App. 333561847f8eSopenharmony_ci * 333661847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 333761847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name to be queried. 333861847f8eSopenharmony_ci * @param { number } appIndex - Indicates the index of clone app. 333961847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. 334061847f8eSopenharmony_ci * @param { number } [userId] - Indicates the user ID, If the user id is not specified, the current user id is used by default. 334161847f8eSopenharmony_ci * @returns { Promise<BundleInfo> } Returns A BundleInfo Of MultiApp Mode. 334261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 334361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 334461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 334561847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 334661847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 334761847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle is disabled. 334861847f8eSopenharmony_ci * @throws { BusinessError } 17700061 - AppIndex not in valid range. 334961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 335061847f8eSopenharmony_ci * @systemapi 335161847f8eSopenharmony_ci * @since 12 335261847f8eSopenharmony_ci */ 335361847f8eSopenharmony_ci function getAppCloneBundleInfo(bundleName: string, appIndex: number, bundleFlags: number, userId?: number): Promise<BundleInfo>; 335461847f8eSopenharmony_ci 335561847f8eSopenharmony_ci /** 335661847f8eSopenharmony_ci * Get all BundleInfo of clone app. 335761847f8eSopenharmony_ci * 335861847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 335961847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name to be queried. 336061847f8eSopenharmony_ci * @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. 336161847f8eSopenharmony_ci * @param { number } [userId] - Indicates the user ID, If the user id is not specified, the current user id is used by default. 336261847f8eSopenharmony_ci * @returns { Promise<Array<BundleInfo>> } Returns BundleInfo Arrays Of MultiApp Mode. 336361847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 336461847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 336561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 336661847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 336761847f8eSopenharmony_ci * @throws { BusinessError } 17700004 - The specified user ID is not found. 336861847f8eSopenharmony_ci * @throws { BusinessError } 17700026 - The specified bundle and clone apps are all disabled. 336961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 337061847f8eSopenharmony_ci * @systemapi 337161847f8eSopenharmony_ci * @since 12 337261847f8eSopenharmony_ci */ 337361847f8eSopenharmony_ci function getAllAppCloneBundleInfo(bundleName: string, bundleFlags: number, userId?: number): Promise<Array<BundleInfo>>; 337461847f8eSopenharmony_ci 337561847f8eSopenharmony_ci /** 337661847f8eSopenharmony_ci * Obtains AppCloneIdentity contains bundleName and appIndex by the given uid. 337761847f8eSopenharmony_ci * 337861847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 337961847f8eSopenharmony_ci * @param { number } uid - Indicates the UID of an application. 338061847f8eSopenharmony_ci * @returns { Promise<AppCloneIdentity> } Returns the clone Identity contains bundleName and appIndex. 338161847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 338261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 338361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 338461847f8eSopenharmony_ci * @throws { BusinessError } 17700021 - The uid is not found. 338561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 338661847f8eSopenharmony_ci * @systemapi 338761847f8eSopenharmony_ci * @since 12 338861847f8eSopenharmony_ci */ 338961847f8eSopenharmony_ci function getAppCloneIdentity(uid: number): Promise<AppCloneIdentity>; 339061847f8eSopenharmony_ci 339161847f8eSopenharmony_ci /** 339261847f8eSopenharmony_ci * Obtains configuration information about an application. 339361847f8eSopenharmony_ci * 339461847f8eSopenharmony_ci * @typedef { _ApplicationInfo } 339561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 339661847f8eSopenharmony_ci * @since 9 339761847f8eSopenharmony_ci */ 339861847f8eSopenharmony_ci /** 339961847f8eSopenharmony_ci * Obtains configuration information about an application. 340061847f8eSopenharmony_ci * 340161847f8eSopenharmony_ci * @typedef { _ApplicationInfo } 340261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 340361847f8eSopenharmony_ci * @atomicservice 340461847f8eSopenharmony_ci * @since 11 340561847f8eSopenharmony_ci */ 340661847f8eSopenharmony_ci export type ApplicationInfo = _ApplicationInfo; 340761847f8eSopenharmony_ci 340861847f8eSopenharmony_ci /** 340961847f8eSopenharmony_ci * Indicates the metadata information about a module. 341061847f8eSopenharmony_ci * 341161847f8eSopenharmony_ci * @typedef { _ModuleMetadata } 341261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 341361847f8eSopenharmony_ci * @since 10 341461847f8eSopenharmony_ci */ 341561847f8eSopenharmony_ci /** 341661847f8eSopenharmony_ci * Indicates the metadata information about a module. 341761847f8eSopenharmony_ci * 341861847f8eSopenharmony_ci * @typedef { _ModuleMetadata } 341961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 342061847f8eSopenharmony_ci * @atomicservice 342161847f8eSopenharmony_ci * @since 11 342261847f8eSopenharmony_ci */ 342361847f8eSopenharmony_ci export type ModuleMetadata = _ModuleMetadata; 342461847f8eSopenharmony_ci 342561847f8eSopenharmony_ci /** 342661847f8eSopenharmony_ci * Indicates the Metadata. 342761847f8eSopenharmony_ci * 342861847f8eSopenharmony_ci * @typedef { _Metadata } 342961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 343061847f8eSopenharmony_ci * @since 9 343161847f8eSopenharmony_ci */ 343261847f8eSopenharmony_ci /** 343361847f8eSopenharmony_ci * Indicates the Metadata. 343461847f8eSopenharmony_ci * 343561847f8eSopenharmony_ci * @typedef { _Metadata } 343661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 343761847f8eSopenharmony_ci * @atomicservice 343861847f8eSopenharmony_ci * @since 11 343961847f8eSopenharmony_ci */ 344061847f8eSopenharmony_ci export type Metadata = _Metadata; 344161847f8eSopenharmony_ci 344261847f8eSopenharmony_ci /** 344361847f8eSopenharmony_ci * Obtains configuration information about a bundle. 344461847f8eSopenharmony_ci * 344561847f8eSopenharmony_ci * @typedef { _BundleInfo.BundleInfo } 344661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 344761847f8eSopenharmony_ci * @since 9 344861847f8eSopenharmony_ci */ 344961847f8eSopenharmony_ci /** 345061847f8eSopenharmony_ci * Obtains configuration information about a bundle. 345161847f8eSopenharmony_ci * 345261847f8eSopenharmony_ci * @typedef { _BundleInfo.BundleInfo } 345361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 345461847f8eSopenharmony_ci * @atomicservice 345561847f8eSopenharmony_ci * @since 11 345661847f8eSopenharmony_ci */ 345761847f8eSopenharmony_ci export type BundleInfo = _BundleInfo.BundleInfo; 345861847f8eSopenharmony_ci 345961847f8eSopenharmony_ci /** 346061847f8eSopenharmony_ci * The scene which is used. 346161847f8eSopenharmony_ci * 346261847f8eSopenharmony_ci * @typedef { _BundleInfo.UsedScene } 346361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 346461847f8eSopenharmony_ci * @since 9 346561847f8eSopenharmony_ci */ 346661847f8eSopenharmony_ci /** 346761847f8eSopenharmony_ci * The scene which is used. 346861847f8eSopenharmony_ci * 346961847f8eSopenharmony_ci * @typedef { _BundleInfo.UsedScene } 347061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 347161847f8eSopenharmony_ci * @atomicservice 347261847f8eSopenharmony_ci * @since 11 347361847f8eSopenharmony_ci */ 347461847f8eSopenharmony_ci export type UsedScene = _BundleInfo.UsedScene; 347561847f8eSopenharmony_ci 347661847f8eSopenharmony_ci /** 347761847f8eSopenharmony_ci * Indicates the required permissions details defined in file config.json. 347861847f8eSopenharmony_ci * 347961847f8eSopenharmony_ci * @typedef { _BundleInfo.ReqPermissionDetail } 348061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 348161847f8eSopenharmony_ci * @since 9 348261847f8eSopenharmony_ci */ 348361847f8eSopenharmony_ci /** 348461847f8eSopenharmony_ci * Indicates the required permissions details defined in file config.json. 348561847f8eSopenharmony_ci * 348661847f8eSopenharmony_ci * @typedef { _BundleInfo.ReqPermissionDetail } 348761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 348861847f8eSopenharmony_ci * @atomicservice 348961847f8eSopenharmony_ci * @since 11 349061847f8eSopenharmony_ci */ 349161847f8eSopenharmony_ci export type ReqPermissionDetail = _BundleInfo.ReqPermissionDetail; 349261847f8eSopenharmony_ci 349361847f8eSopenharmony_ci /** 349461847f8eSopenharmony_ci * Indicates the SignatureInfo. 349561847f8eSopenharmony_ci * 349661847f8eSopenharmony_ci * @typedef { _BundleInfo.SignatureInfo } 349761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 349861847f8eSopenharmony_ci * @since 9 349961847f8eSopenharmony_ci */ 350061847f8eSopenharmony_ci /** 350161847f8eSopenharmony_ci * Indicates the SignatureInfo. 350261847f8eSopenharmony_ci * 350361847f8eSopenharmony_ci * @typedef { _BundleInfo.SignatureInfo } 350461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 350561847f8eSopenharmony_ci * @atomicservice 350661847f8eSopenharmony_ci * @since 11 350761847f8eSopenharmony_ci */ 350861847f8eSopenharmony_ci export type SignatureInfo = _BundleInfo.SignatureInfo; 350961847f8eSopenharmony_ci 351061847f8eSopenharmony_ci /** 351161847f8eSopenharmony_ci * AppCloneIdentity Contain BundleName and appIndex. 351261847f8eSopenharmony_ci * 351361847f8eSopenharmony_ci * @typedef { _BundleInfo.AppCloneIdentity } 351461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 351561847f8eSopenharmony_ci * @systemapi 351661847f8eSopenharmony_ci * @since 12 351761847f8eSopenharmony_ci */ 351861847f8eSopenharmony_ci export type AppCloneIdentity = _BundleInfo.AppCloneIdentity; 351961847f8eSopenharmony_ci 352061847f8eSopenharmony_ci /** 352161847f8eSopenharmony_ci * Obtains configuration information about a module. 352261847f8eSopenharmony_ci * 352361847f8eSopenharmony_ci * @typedef { _HapModuleInfo.HapModuleInfo } 352461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 352561847f8eSopenharmony_ci * @since 9 352661847f8eSopenharmony_ci */ 352761847f8eSopenharmony_ci /** 352861847f8eSopenharmony_ci * Obtains configuration information about a module. 352961847f8eSopenharmony_ci * 353061847f8eSopenharmony_ci * @typedef { _HapModuleInfo.HapModuleInfo } 353161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 353261847f8eSopenharmony_ci * @atomicservice 353361847f8eSopenharmony_ci * @since 11 353461847f8eSopenharmony_ci */ 353561847f8eSopenharmony_ci export type HapModuleInfo = _HapModuleInfo.HapModuleInfo; 353661847f8eSopenharmony_ci 353761847f8eSopenharmony_ci /** 353861847f8eSopenharmony_ci * Obtains preload information about a module. 353961847f8eSopenharmony_ci * 354061847f8eSopenharmony_ci * @typedef { _HapModuleInfo.PreloadItem } 354161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 354261847f8eSopenharmony_ci * @since 9 354361847f8eSopenharmony_ci */ 354461847f8eSopenharmony_ci /** 354561847f8eSopenharmony_ci * Obtains preload information about a module. 354661847f8eSopenharmony_ci * 354761847f8eSopenharmony_ci * @typedef { _HapModuleInfo.PreloadItem } 354861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 354961847f8eSopenharmony_ci * @atomicservice 355061847f8eSopenharmony_ci * @since 11 355161847f8eSopenharmony_ci */ 355261847f8eSopenharmony_ci export type PreloadItem = _HapModuleInfo.PreloadItem; 355361847f8eSopenharmony_ci 355461847f8eSopenharmony_ci /** 355561847f8eSopenharmony_ci * Obtains dependency information about a module. 355661847f8eSopenharmony_ci * 355761847f8eSopenharmony_ci * @typedef { _HapModuleInfo.Dependency } 355861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 355961847f8eSopenharmony_ci * @since 9 356061847f8eSopenharmony_ci */ 356161847f8eSopenharmony_ci /** 356261847f8eSopenharmony_ci * Obtains dependency information about a module. 356361847f8eSopenharmony_ci * 356461847f8eSopenharmony_ci * @typedef { _HapModuleInfo.Dependency } 356561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 356661847f8eSopenharmony_ci * @atomicservice 356761847f8eSopenharmony_ci * @since 11 356861847f8eSopenharmony_ci */ 356961847f8eSopenharmony_ci export type Dependency = _HapModuleInfo.Dependency; 357061847f8eSopenharmony_ci 357161847f8eSopenharmony_ci /** 357261847f8eSopenharmony_ci * Obtains the router item about a module. 357361847f8eSopenharmony_ci * 357461847f8eSopenharmony_ci * @typedef { _HapModuleInfo.RouterItem} 357561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 357661847f8eSopenharmony_ci * @atomicservice 357761847f8eSopenharmony_ci * @since 12 357861847f8eSopenharmony_ci */ 357961847f8eSopenharmony_ci export type RouterItem = _HapModuleInfo.RouterItem; 358061847f8eSopenharmony_ci 358161847f8eSopenharmony_ci /** 358261847f8eSopenharmony_ci * Obtains the data item within router item. 358361847f8eSopenharmony_ci * 358461847f8eSopenharmony_ci * @typedef { _HapModuleInfo.DataItem } 358561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 358661847f8eSopenharmony_ci * @atomicservice 358761847f8eSopenharmony_ci * @since 12 358861847f8eSopenharmony_ci */ 358961847f8eSopenharmony_ci export type DataItem = _HapModuleInfo.DataItem; 359061847f8eSopenharmony_ci 359161847f8eSopenharmony_ci /** 359261847f8eSopenharmony_ci * Obtains configuration information about an ability. 359361847f8eSopenharmony_ci * 359461847f8eSopenharmony_ci * @typedef { _AbilityInfo.AbilityInfo } 359561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 359661847f8eSopenharmony_ci * @since 9 359761847f8eSopenharmony_ci */ 359861847f8eSopenharmony_ci /** 359961847f8eSopenharmony_ci * Obtains configuration information about an ability. 360061847f8eSopenharmony_ci * 360161847f8eSopenharmony_ci * @typedef { _AbilityInfo.AbilityInfo } 360261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 360361847f8eSopenharmony_ci * @atomicservice 360461847f8eSopenharmony_ci * @since 11 360561847f8eSopenharmony_ci */ 360661847f8eSopenharmony_ci export type AbilityInfo = _AbilityInfo.AbilityInfo; 360761847f8eSopenharmony_ci 360861847f8eSopenharmony_ci /** 360961847f8eSopenharmony_ci * Contains basic Ability information. Indicates the window size.. 361061847f8eSopenharmony_ci * 361161847f8eSopenharmony_ci * @typedef { _AbilityInfo.WindowSize } 361261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 361361847f8eSopenharmony_ci * @since 9 361461847f8eSopenharmony_ci */ 361561847f8eSopenharmony_ci /** 361661847f8eSopenharmony_ci * Contains basic Ability information. Indicates the window size.. 361761847f8eSopenharmony_ci * 361861847f8eSopenharmony_ci * @typedef { _AbilityInfo.WindowSize } 361961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 362061847f8eSopenharmony_ci * @atomicservice 362161847f8eSopenharmony_ci * @since 11 362261847f8eSopenharmony_ci */ 362361847f8eSopenharmony_ci export type WindowSize = _AbilityInfo.WindowSize; 362461847f8eSopenharmony_ci 362561847f8eSopenharmony_ci /** 362661847f8eSopenharmony_ci * Obtains extension information about a bundle. 362761847f8eSopenharmony_ci * 362861847f8eSopenharmony_ci * @typedef { _ExtensionAbilityInfo.ExtensionAbilityInfo } 362961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 363061847f8eSopenharmony_ci * @since 9 363161847f8eSopenharmony_ci */ 363261847f8eSopenharmony_ci /** 363361847f8eSopenharmony_ci * Obtains extension information about a bundle. 363461847f8eSopenharmony_ci * 363561847f8eSopenharmony_ci * @typedef { _ExtensionAbilityInfo.ExtensionAbilityInfo } 363661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 363761847f8eSopenharmony_ci * @atomicservice 363861847f8eSopenharmony_ci * @since 11 363961847f8eSopenharmony_ci */ 364061847f8eSopenharmony_ci export type ExtensionAbilityInfo = _ExtensionAbilityInfo.ExtensionAbilityInfo; 364161847f8eSopenharmony_ci 364261847f8eSopenharmony_ci /** 364361847f8eSopenharmony_ci * Indicates the defined permission details in file config.json. 364461847f8eSopenharmony_ci * 364561847f8eSopenharmony_ci * @typedef { _PermissionDef } 364661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 364761847f8eSopenharmony_ci * @systemapi 364861847f8eSopenharmony_ci * @since 9 364961847f8eSopenharmony_ci */ 365061847f8eSopenharmony_ci export type PermissionDef = _PermissionDef; 365161847f8eSopenharmony_ci 365261847f8eSopenharmony_ci /** 365361847f8eSopenharmony_ci * Contains basic Ability information, which uniquely identifies an ability. 365461847f8eSopenharmony_ci * 365561847f8eSopenharmony_ci * @typedef { _ElementName } 365661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 365761847f8eSopenharmony_ci * @since 9 365861847f8eSopenharmony_ci */ 365961847f8eSopenharmony_ci /** 366061847f8eSopenharmony_ci * Contains basic Ability information, which uniquely identifies an ability. 366161847f8eSopenharmony_ci * 366261847f8eSopenharmony_ci * @typedef { _ElementName } 366361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 366461847f8eSopenharmony_ci * @atomicservice 366561847f8eSopenharmony_ci * @since 11 366661847f8eSopenharmony_ci */ 366761847f8eSopenharmony_ci export type ElementName = _ElementName; 366861847f8eSopenharmony_ci 366961847f8eSopenharmony_ci /** 367061847f8eSopenharmony_ci * Contains shared bundle info. 367161847f8eSopenharmony_ci * 367261847f8eSopenharmony_ci * @typedef { _SharedBundleInfo } 367361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 367461847f8eSopenharmony_ci * @systemapi 367561847f8eSopenharmony_ci * @since 10 367661847f8eSopenharmony_ci */ 367761847f8eSopenharmony_ci export type SharedBundleInfo = _SharedBundleInfo; 367861847f8eSopenharmony_ci 367961847f8eSopenharmony_ci /** 368061847f8eSopenharmony_ci * Obtains profile file information about a bundle. 368161847f8eSopenharmony_ci * 368261847f8eSopenharmony_ci * @typedef { _AppProvisionInfo.AppProvisionInfo } 368361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 368461847f8eSopenharmony_ci * @systemapi 368561847f8eSopenharmony_ci * @since 10 368661847f8eSopenharmony_ci */ 368761847f8eSopenharmony_ci export type AppProvisionInfo = _AppProvisionInfo.AppProvisionInfo; 368861847f8eSopenharmony_ci 368961847f8eSopenharmony_ci /** 369061847f8eSopenharmony_ci * Obtains profile file validity about a bundle. 369161847f8eSopenharmony_ci * 369261847f8eSopenharmony_ci * @typedef { _AppProvisionInfo.Validity } 369361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 369461847f8eSopenharmony_ci * @systemapi 369561847f8eSopenharmony_ci * @since 10 369661847f8eSopenharmony_ci */ 369761847f8eSopenharmony_ci export type Validity = _AppProvisionInfo.Validity; 369861847f8eSopenharmony_ci 369961847f8eSopenharmony_ci /** 370061847f8eSopenharmony_ci * Obtains information about a recoverable preinstalled application. 370161847f8eSopenharmony_ci * 370261847f8eSopenharmony_ci * @typedef { _RecoverableApplicationInfo } 370361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 370461847f8eSopenharmony_ci * @systemapi 370561847f8eSopenharmony_ci * @since 11 370661847f8eSopenharmony_ci */ 370761847f8eSopenharmony_ci export type RecoverableApplicationInfo = _RecoverableApplicationInfo; 370861847f8eSopenharmony_ci 370961847f8eSopenharmony_ci /** 371061847f8eSopenharmony_ci * Obtains configuration information about an skill 371161847f8eSopenharmony_ci * 371261847f8eSopenharmony_ci * @typedef { _Skill.Skill } 371361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 371461847f8eSopenharmony_ci * @atomicservice 371561847f8eSopenharmony_ci * @since 12 371661847f8eSopenharmony_ci */ 371761847f8eSopenharmony_ci export type Skill = _Skill.Skill; 371861847f8eSopenharmony_ci 371961847f8eSopenharmony_ci /** 372061847f8eSopenharmony_ci * Obtains configuration information about an skillUri 372161847f8eSopenharmony_ci * 372261847f8eSopenharmony_ci * @typedef { _Skill.SkillUri } 372361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 372461847f8eSopenharmony_ci * @atomicservice 372561847f8eSopenharmony_ci * @since 12 372661847f8eSopenharmony_ci */ 372761847f8eSopenharmony_ci export type SkillUrl = _Skill.SkillUri; 372861847f8eSopenharmony_ci 372961847f8eSopenharmony_ci /** 373061847f8eSopenharmony_ci * Indicates the information of preinstalled application. 373161847f8eSopenharmony_ci * 373261847f8eSopenharmony_ci * @typedef { _PreinstalledApplicationInfo } 373361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Core 373461847f8eSopenharmony_ci * @systemapi 373561847f8eSopenharmony_ci * @since 12 373661847f8eSopenharmony_ci */ 373761847f8eSopenharmony_ci export type PreinstalledApplicationInfo = _PreinstalledApplicationInfo; 373861847f8eSopenharmony_ci} 373961847f8eSopenharmony_ci 374061847f8eSopenharmony_ciexport default bundleManager; 3741