回退getBundleInfoForSelf接口跨平台适配

Signed-off-by: zhangzezhong <zhangzezhong8@huawei-partners.com>
This commit is contained in:
zhangzezhong 2025-03-03 20:29:54 +08:00
parent 62360a3e87
commit 891fff0e5c
5 changed files with 0 additions and 994 deletions

View File

@ -73,15 +73,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Used to query the enumeration value of bundleInfo. Multiple values can be passed in the form.
*
* @enum { number }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
enum BundleFlag {
/**
* Used to obtain the default bundleInfo. The obtained bundleInfo does not contain information of
@ -98,15 +89,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Used to obtain the default bundleInfo. The obtained bundleInfo does not contain information of
* signatureInfo, applicationInfo, hapModuleInfo, ability, extensionAbility and permission.
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
GET_BUNDLE_INFO_DEFAULT = 0x00000000,
/**
* Used to obtain the bundleInfo containing applicationInfo. The obtained bundleInfo does not
@ -123,15 +105,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Used to obtain the bundleInfo containing applicationInfo. The obtained bundleInfo does not
* contain the information of signatureInfo, hapModuleInfo, ability, extensionAbility and permission.
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
GET_BUNDLE_INFO_WITH_APPLICATION = 0x00000001,
/**
* Used to obtain the bundleInfo containing hapModuleInfo. The obtained bundleInfo does not
@ -148,15 +121,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Used to obtain the bundleInfo containing hapModuleInfo. The obtained bundleInfo does not
* contain the information of signatureInfo, applicationInfo, ability, extensionAbility and permission.
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
GET_BUNDLE_INFO_WITH_HAP_MODULE = 0x00000002,
/**
* Used to obtain the bundleInfo containing ability. The obtained bundleInfo does not
@ -175,16 +139,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Used to obtain the bundleInfo containing ability. The obtained bundleInfo does not
* contain the information of signatureInfo, applicationInfo, extensionAbility and permission.
* It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_HAP_MODULE.
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
GET_BUNDLE_INFO_WITH_ABILITY = 0x00000004,
/**
* Used to obtain the bundleInfo containing extensionAbility. The obtained bundleInfo does not
@ -219,15 +173,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Used to obtain the bundleInfo containing permission. The obtained bundleInfo does not
* contain the information of signatureInfo, applicationInfo, hapModuleInfo, extensionAbility and ability.
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION = 0x00000010,
/**
* Used to obtain the metadata contained in applicationInfo, moduleInfo and abilityInfo.
@ -246,16 +191,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Used to obtain the metadata contained in applicationInfo, moduleInfo and abilityInfo.
* It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_APPLICATION,
* GET_BUNDLE_INFO_WITH_HAP_MODULE, GET_BUNDLE_INFO_WITH_ABILITIES, GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY.
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
GET_BUNDLE_INFO_WITH_METADATA = 0x00000020,
/**
* Used to obtain the default bundleInfo containing disabled application and ability.
@ -274,16 +209,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Used to obtain the default bundleInfo containing disabled application and ability.
* The obtained bundleInfo does not contain information of signatureInfo, applicationInfo,
* hapModuleInfo, ability, extensionAbility and permission.
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
GET_BUNDLE_INFO_WITH_DISABLE = 0x00000040,
/**
* Used to obtain the bundleInfo containing signatureInfo. The obtained bundleInfo does not
@ -300,15 +225,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Used to obtain the bundleInfo containing signatureInfo. The obtained bundleInfo does not
* contain the information of applicationInfo, hapModuleInfo, extensionAbility, ability and permission.
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
GET_BUNDLE_INFO_WITH_SIGNATURE_INFO = 0x00000080,
/**
* Used to obtain the bundleInfo containing menu configuration in hapModuleInfo.
@ -778,15 +694,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* PermissionGrantState
*
* @enum { number }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export enum PermissionGrantState {
/**
* PERMISSION_DENIED
@ -801,14 +708,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* PERMISSION_DENIED
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
PERMISSION_DENIED = -1,
/**
@ -824,14 +723,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* PERMISSION_GRANTED
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
PERMISSION_GRANTED = 0
}
@ -850,15 +741,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Support window mode
*
* @enum { number }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export enum SupportWindowMode {
/**
* Indicates supported window mode of full screen mode
@ -873,14 +755,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates supported window mode of full screen mode
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
FULL_SCREEN = 0,
/**
* Indicates supported window mode of split mode
@ -895,14 +769,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates supported window mode of split mode
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
SPLIT = 1,
/**
* Indicates supported window mode of floating mode
@ -917,14 +783,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates supported window mode of floating mode
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
FLOATING = 2
}
@ -1012,14 +870,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates that the ability can have specified instances
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
SPECIFIED = 2
}
@ -1075,15 +925,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Display orientation
*
* @enum { number }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export enum DisplayOrientation {
/**
* Indicates that the system automatically determines the display orientation
@ -1098,14 +939,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates that the system automatically determines the display orientation
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
UNSPECIFIED,
/**
@ -1121,14 +954,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates the landscape orientation
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
LANDSCAPE,
/**
@ -1144,14 +969,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates the portrait orientation
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
PORTRAIT,
/**
@ -1167,14 +984,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates the page ability orientation is the same as that of the nearest ability in the stack
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
FOLLOW_RECENT,
/**
@ -1190,14 +999,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates the inverted landscape orientation
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
LANDSCAPE_INVERTED,
/**
@ -1213,14 +1014,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates the inverted portrait orientation
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
PORTRAIT_INVERTED,
/**
@ -1236,14 +1029,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates the orientation can be auto-rotated
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
AUTO_ROTATION,
/**
@ -1259,14 +1044,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates the landscape orientation rotated with sensor
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
AUTO_ROTATION_LANDSCAPE,
/**
@ -1282,14 +1059,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates the portrait orientation rotated with sensor
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
AUTO_ROTATION_PORTRAIT,
/**
@ -1305,14 +1074,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates the sensor restricted mode
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
AUTO_ROTATION_RESTRICTED,
/**
@ -1328,14 +1089,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates the sensor landscape restricted mode
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
AUTO_ROTATION_LANDSCAPE_RESTRICTED,
/**
@ -1351,14 +1104,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates the sensor portrait restricted mode
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
AUTO_ROTATION_PORTRAIT_RESTRICTED,
/**
@ -1374,14 +1119,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates the locked orientation mode
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
LOCKED,
/**
@ -1418,15 +1155,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates module type
*
* @enum { number }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export enum ModuleType {
/**
* Indicates entry type
@ -1441,14 +1169,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates entry type
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
ENTRY = 1,
/**
* Indicates feature type
@ -1463,14 +1183,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates feature type
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
FEATURE = 2,
/**
* Indicates shared type
@ -1485,14 +1197,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates shared type
*
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
SHARED = 3
}
@ -3795,15 +3499,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Obtains configuration information about an application.
*
* @typedef { _ApplicationInfo }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export type ApplicationInfo = _ApplicationInfo;
/**
@ -3821,15 +3516,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates the metadata information about a module.
*
* @typedef { _ModuleMetadata }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export type ModuleMetadata = _ModuleMetadata;
/**
@ -3847,15 +3533,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates the Metadata.
*
* @typedef { _Metadata }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export type Metadata = _Metadata;
/**
@ -3873,15 +3550,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Obtains configuration information about a bundle.
*
* @typedef { _BundleInfo.BundleInfo }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export type BundleInfo = _BundleInfo.BundleInfo;
/**
@ -3899,15 +3567,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* The scene which is used.
*
* @typedef { _BundleInfo.UsedScene }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export type UsedScene = _BundleInfo.UsedScene;
/**
@ -3925,15 +3584,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates the required permissions details defined in file config.json.
*
* @typedef { _BundleInfo.ReqPermissionDetail }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export type ReqPermissionDetail = _BundleInfo.ReqPermissionDetail;
/**
@ -3951,15 +3601,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Indicates the SignatureInfo.
*
* @typedef { _BundleInfo.SignatureInfo }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export type SignatureInfo = _BundleInfo.SignatureInfo;
/**
@ -3986,15 +3627,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Obtains configuration information about a module.
*
* @typedef { _HapModuleInfo.HapModuleInfo }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export type HapModuleInfo = _HapModuleInfo.HapModuleInfo;
/**
@ -4066,15 +3698,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Obtains configuration information about an ability.
*
* @typedef { _AbilityInfo.AbilityInfo }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export type AbilityInfo = _AbilityInfo.AbilityInfo;
/**
@ -4092,15 +3715,6 @@ declare namespace bundleManager {
* @atomicservice
* @since 11
*/
/**
* Contains basic Ability information. Indicates the window size..
*
* @typedef { _AbilityInfo.WindowSize }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export type WindowSize = _AbilityInfo.WindowSize;
/**

View File

@ -326,16 +326,6 @@ export interface AbilityInfo {
* @atomicservice
* @since 11
*/
/**
* Process of ability, if user do not set it, the value equal application process
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly process: string;
/**
@ -355,16 +345,6 @@ export interface AbilityInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates whether this ability can be called by other abilities
*
* @type { boolean }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly exported: boolean;
/**
@ -395,16 +375,6 @@ export interface AbilityInfo {
* @atomicservice
* @since 11
*/
/**
* Enumerates ability display orientations
*
* @type { bundleManager.DisplayOrientation }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly orientation: bundleManager.DisplayOrientation;
/**
@ -453,16 +423,6 @@ export interface AbilityInfo {
* @atomicservice
* @since 11
*/
/**
* The permissions that others need to launch this ability
*
* @type { Array<string> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly permissions: Array<string>;
/**
@ -515,16 +475,6 @@ export interface AbilityInfo {
* @atomicservice
* @since 11
*/
/**
* The device types that this ability can run on
*
* @type { Array<string> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly deviceTypes: Array<string>;
/**
@ -602,16 +552,6 @@ export interface AbilityInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates whether the ability is enabled
*
* @type { boolean }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly enabled: boolean;
/**
@ -631,16 +571,6 @@ export interface AbilityInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates which window mode is supported
*
* @type { Array<bundleManager.SupportWindowMode> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly supportWindowModes: Array<bundleManager.SupportWindowMode>;
/**
@ -660,16 +590,6 @@ export interface AbilityInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates window size
*
* @type { WindowSize }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly windowSize: WindowSize;
/**
@ -731,15 +651,6 @@ export interface AbilityInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the window size.
*
* @typedef WindowSize
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export interface WindowSize {
/**
* Indicates maximum ratio of width over height of window under free window status.
@ -758,16 +669,6 @@ export interface WindowSize {
* @atomicservice
* @since 11
*/
/**
* Indicates maximum ratio of width over height of window under free window status.
*
* @type { number }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly maxWindowRatio: number;
/**
@ -787,16 +688,6 @@ export interface WindowSize {
* @atomicservice
* @since 11
*/
/**
* Indicates minimum ratio of width over height of window under free window status.
*
* @type { number }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly minWindowRatio: number;
/**
@ -816,16 +707,6 @@ export interface WindowSize {
* @atomicservice
* @since 11
*/
/**
* Indicates maximum width of window under free window status.
*
* @type { number }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly maxWindowWidth: number;
/**
@ -845,16 +726,6 @@ export interface WindowSize {
* @atomicservice
* @since 11
*/
/**
* Indicates minimum width of window under free window status.
*
* @type { number }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly minWindowWidth: number;
/**
@ -874,16 +745,6 @@ export interface WindowSize {
* @atomicservice
* @since 11
*/
/**
* Indicates maximum height of window under free window status.
*
* @type { number }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly maxWindowHeight: number;
/**
@ -903,15 +764,5 @@ export interface WindowSize {
* @atomicservice
* @since 11
*/
/**
* Indicates minimum height of window under free window status.
*
* @type { number }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly minWindowHeight: number;
}

View File

@ -151,16 +151,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates whether or not this application may be instantiated
*
* @type { boolean }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly enabled: boolean;
/**
@ -296,16 +286,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 11
*/
/**
* Process of application, if user do not set it ,the value equal bundleName
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly process: string;
/**
@ -325,16 +305,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the permissions required for accessing the application.
*
* @type { Array<string> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly permissions: Array<string>;
/**
@ -395,16 +365,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the metadata of the application
*
* @type { Array<ModuleMetadata> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly metadataArray: Array<ModuleMetadata>;
/**
@ -424,16 +384,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates whether or not this application may be removable
*
* @type { boolean }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly removable: boolean;
/**
@ -453,16 +403,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the access token of the application
*
* @type { number }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly accessTokenId: number;
/**
@ -482,16 +422,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the uid of the application
*
* @type { number }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly uid: number;
/**
@ -511,16 +441,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates icon resource of the application
*
* @type { Resource }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly iconResource: Resource;
/**
@ -540,16 +460,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates label resource of the application
*
* @type { Resource }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly labelResource: Resource;
/**
@ -569,16 +479,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates description resource of the application
*
* @type { Resource }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly descriptionResource: Resource;
/**
@ -598,16 +498,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the appDistributionType of the application
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly appDistributionType: string;
/**
@ -627,16 +517,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the appProvisionType of the application
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly appProvisionType: string;
/**
@ -656,16 +536,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates whether the application is a system application
*
* @type { boolean }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly systemApp: boolean;
/**
@ -704,16 +574,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates whether the application is in debug mode.
*
* @type { boolean }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly debug: boolean;
/**
@ -725,16 +585,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates whether the application data is unclearable, that is, whether the application data cannot be cleared.
*
* @type { boolean }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly dataUnclearable: boolean;
/**
@ -745,15 +595,6 @@ export interface ApplicationInfo {
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @since 12
*/
/**
* Indicates native library path.
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @since 18
*/
readonly nativeLibraryPath: string;
/**
@ -796,16 +637,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 12
*/
/**
* Indicates the release type of the app
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly releaseType: string;
/**
@ -846,15 +677,6 @@ export interface ApplicationInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the ModuleMetadata
*
* @typedef ModuleMetadata
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export interface ModuleMetadata {
/**
* Indicates the name of this hap module
@ -873,16 +695,6 @@ export interface ModuleMetadata {
* @atomicservice
* @since 11
*/
/**
* Indicates the name of this hap module
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly moduleName: string;
/**
@ -902,16 +714,6 @@ export interface ModuleMetadata {
* @atomicservice
* @since 11
*/
/**
* Indicates the metadata of this hap module
*
* @type { Array<Metadata> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly metadata: Array<Metadata>;
}

View File

@ -37,15 +37,6 @@ import bundleManager from './../@ohos.bundle.bundleManager';
* @atomicservice
* @since 11
*/
/**
* Obtains configuration information about a bundle
*
* @typedef BundleInfo
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export interface BundleInfo {
/**
* Indicates the name of this bundle
@ -64,16 +55,6 @@ export interface BundleInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the name of this bundle
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly name: string;
/**
@ -93,16 +74,6 @@ export interface BundleInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the bundle vendor
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly vendor: string;
/**
@ -122,16 +93,6 @@ export interface BundleInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the version code of the bundle
*
* @type { number }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly versionCode: number;
/**
@ -151,16 +112,6 @@ export interface BundleInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the version name of the bundle
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly versionName: string;
/**
@ -180,16 +131,6 @@ export interface BundleInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the **minimum ** version compatible with the bundle
*
* @type { number }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly minCompatibleVersionCode: number;
/**
@ -209,16 +150,6 @@ export interface BundleInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the target version number of the bundle
*
* @type { number }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly targetVersion: number;
/**
@ -238,16 +169,6 @@ export interface BundleInfo {
* @atomicservice
* @since 11
*/
/**
* Obtains configuration information about an application
*
* @type { ApplicationInfo }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly appInfo: ApplicationInfo;
/**
@ -267,16 +188,6 @@ export interface BundleInfo {
* @atomicservice
* @since 11
*/
/**
* Obtains configuration information about a module
*
* @type { Array<HapModuleInfo> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly hapModulesInfo: Array<HapModuleInfo>;
/**
@ -296,16 +207,6 @@ export interface BundleInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the required permissions details defined in the bundle
*
* @type { Array<ReqPermissionDetail> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly reqPermissionDetails: Array<ReqPermissionDetail>;
/**
@ -325,16 +226,6 @@ export interface BundleInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the grant state of required permissions
*
* @type { Array<bundleManager.PermissionGrantState> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly permissionGrantStates: Array<bundleManager.PermissionGrantState>;
/**
@ -354,16 +245,6 @@ export interface BundleInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the SignatureInfo of the bundle
*
* @type { SignatureInfo }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly signatureInfo: SignatureInfo;
/**
@ -452,15 +333,6 @@ export interface BundleInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the required permissions details defined in configuration file
*
* @typedef ReqPermissionDetail
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export interface ReqPermissionDetail {
/**
* Indicates the name of this required permissions
@ -477,15 +349,6 @@ export interface ReqPermissionDetail {
* @atomicservice
* @since 11
*/
/**
* Indicates the name of this required permissions
*
* @type { string }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
name: string;
/**
@ -520,15 +383,6 @@ export interface ReqPermissionDetail {
* @atomicservice
* @since 11
*/
/**
* Indicates the reason of this required permissions
*
* @type { string }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
reason: string;
/**
@ -546,15 +400,6 @@ export interface ReqPermissionDetail {
* @atomicservice
* @since 11
*/
/**
* Indicates the reason id of this required permissions
*
* @type { number }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
reasonId: number;
/**
@ -572,15 +417,6 @@ export interface ReqPermissionDetail {
* @atomicservice
* @since 11
*/
/**
* Indicates the used scene of this required permissions
*
* @type { UsedScene }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
usedScene: UsedScene;
}
@ -599,15 +435,6 @@ export interface ReqPermissionDetail {
* @atomicservice
* @since 11
*/
/**
* The scene which is used
*
* @typedef UsedScene
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export interface UsedScene {
/**
* Indicates the abilities that need the permission
@ -624,15 +451,6 @@ export interface UsedScene {
* @atomicservice
* @since 11
*/
/**
* Indicates the abilities that need the permission
*
* @type { Array<string> }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
abilities: Array<string>;
/**
@ -650,15 +468,6 @@ export interface UsedScene {
* @atomicservice
* @since 11
*/
/**
* Indicates the time when the permission is used
*
* @type { string }
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
when: string;
}
@ -677,15 +486,6 @@ export interface UsedScene {
* @atomicservice
* @since 11
*/
/**
* Indicates SignatureInfo
*
* @typedef SignatureInfo
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
export interface SignatureInfo {
/**
* Indicates the ID of the application to which this bundle belongs
@ -706,17 +506,6 @@ export interface SignatureInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the ID of the application to which this bundle belongs
* The application ID uniquely identifies an application. It is determined by the bundle name and signature
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly appId: string;
/**
@ -736,16 +525,6 @@ export interface SignatureInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the fingerprint of the certificate
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly fingerprint: string;
/**

View File

@ -374,16 +374,6 @@ export interface HapModuleInfo {
* @atomicservice
* @since 11
*/
/**
* The device types that this hap module can run on
*
* @type { Array<string> }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly deviceTypes: Array<string>;
/**
@ -403,16 +393,6 @@ export interface HapModuleInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates whether free installation of the hap module is supported
*
* @type { boolean }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly installationFree: boolean;
/**
@ -432,16 +412,6 @@ export interface HapModuleInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the hash value of the hap module
*
* @type { string }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly hashValue: string;
/**
@ -461,16 +431,6 @@ export interface HapModuleInfo {
* @atomicservice
* @since 11
*/
/**
* Indicates the type of the module
*
* @type { bundleManager.ModuleType }
* @readonly
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @crossplatform
* @atomicservice
* @since 18
*/
readonly type: bundleManager.ModuleType;
/**