1# JS API Changes of the Bundle Management Framework 2 3The table below lists the APIs changes of the bundle management framework in OpenHarmony 3.1 Release over OpenHarmony 3.0 LTS. 4 5## API Changes 6 7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type| 8|---|---|---|---| 9| shortcutInfo | ShortcutInfo | readonly labelId: number; | Added| 10| shortcutInfo | ShortcutInfo | readonly iconId: number; | Added| 11| launcherAbilityInfo | LauncherAbilityInfo | readonly installTime : number; | Added| 12| launcherAbilityInfo | LauncherAbilityInfo | readonly userId: number; | Added| 13| launcherAbilityInfo | LauncherAbilityInfo | readonly iconId: number; | Added| 14| launcherAbilityInfo | LauncherAbilityInfo | readonly labelId: number; | Added| 15| launcherAbilityInfo | LauncherAbilityInfo | readonly elementName : ElementName; | Added| 16| launcherAbilityInfo | LauncherAbilityInfo | readonly applicationInfo: ApplicationInfo; | Added| 17| bundleInfo | BundleInfo | readonly reqPermissionStates: Array\<number>; | Added| 18| bundleInfo | BundleInfo | readonly hapModuleInfos: Array\<HapModuleInfo>; | Added| 19| bundleInfo | BundleInfo | readonly abilityInfos: Array\<AbilityInfo>; | Added| 20| abilityInfo | AbilityInfo | readonly enabled: boolean; | Added| 21| abilityInfo | AbilityInfo | readonly metaData: Array\<CustomizeData>; | Added| 22| ohos.zlib | zlib | unzipFile(inFile:string, outFile:string, options: Options): Promise\<void>; | Added| 23| ohos.zlib | zlib | zipFile(inFile:string, outFile:string, options: Options): Promise\<void>; | Added| 24| ohos.zlib | Options | strategy?: CompressStrategy; | Added| 25| ohos.zlib | Options | memLevel?: MemLevel; | Added| 26| ohos.zlib | Options | level?: CompressLevel; | Added| 27| ohos.zlib | MemLevel | MEM_LEVEL_DEFAULT = 8 | Added| 28| ohos.zlib | MemLevel | MEM_LEVEL_MAX = 9 | Added| 29| ohos.zlib | MemLevel | MEM_LEVEL_MIN = 1 | Added| 30| ohos.zlib | CompressStrategy | COMPRESS_STRATEGY_FIXED = 4 | Added| 31| ohos.zlib | CompressStrategy | COMPRESS_STRATEGY_RLE = 3 | Added| 32| ohos.zlib | CompressStrategy | COMPRESS_STRATEGY_HUFFMAN_ONLY = 2 | Added| 33| ohos.zlib | CompressStrategy | COMPRESS_STRATEGY_FILTERED = 1 | Added| 34| ohos.zlib | CompressStrategy | COMPRESS_STRATEGY_DEFAULT_STRATEGY = 0 | Added| 35| ohos.zlib | CompressLevel | COMPRESS_LEVEL_DEFAULT_COMPRESSION = -1 | Added| 36| ohos.zlib | CompressLevel | COMPRESS_LEVEL_BEST_COMPRESSION = 9 | Added| 37| ohos.zlib | CompressLevel | COMPRESS_LEVEL_BEST_SPEED = 1 | Added| 38| ohos.zlib | CompressLevel | COMPRESS_LEVEL_NO_COMPRESSION = 0 | Added| 39| ohos.zlib | ErrorCode | ERROR_CODE_ERRNO = -1 | Added| 40| ohos.zlib | ErrorCode | ERROR_CODE_OK = 0 | Added| 41| ohos.bundle | bundle | isApplicationEnabled(bundleName: string, callback: AsyncCallback\<boolean>): void;<br>isApplicationEnabled(bundleName: string): Promise\<boolean>; | Added| 42| ohos.bundle | bundle | isAbilityEnabled(info: AbilityInfo, callback: AsyncCallback\<boolean>): void;<br>isAbilityEnabled(info: AbilityInfo): Promise\<boolean>; | Added| 43| ohos.bundle | bundle | getAbilityIcon(bundleName: string, abilityName: string, callback: AsyncCallback\<image.PixelMap>): void;<br>getAbilityIcon(bundleName: string, abilityName: string): Promise\<image.PixelMap>; | Added| 44| ohos.bundle | bundle | getAbilityLabel(bundleName: string, abilityName: string, callback: AsyncCallback\<string>): void;<br>getAbilityLabel(bundleName: string, abilityName: string): Promise\<string>; | Added| 45| ohos.bundle | bundle | getNameForUid(uid: number, callback: AsyncCallback\<string>) : void<br>getNameForUid(uid: number) : Promise\<string>; | Added| 46| ohos.bundle | bundle | getAbilityInfo(bundleName: string, abilityName: string, callback: AsyncCallback\<AbilityInfo>): void;<br>getAbilityInfo(bundleName: string, abilityName: string): Promise\<AbilityInfo>; | Added| 47| ohos.bundle | InstallErrorCode | STATUS_UNINSTALL_PERMISSION_DENIED = 0x45 | Added| 48| ohos.bundle | InstallErrorCode | STATUS_INSTALL_PERMISSION_DENIED = 0x44 | Added| 49| ohos.bundle | InstallErrorCode | STATUS_GRANT_REQUEST_PERMISSIONS_FAILED = 0x43 | Added| 50| ohos.bundle | InstallErrorCode | STATUS_FAILED_NO_SPACE_LEFT = 0x42 | Added| 51| ohos.bundle | InstallErrorCode | STATUS_RECOVER_FAILURE_INVALID = 0x0D | Added| 52| ohos.bundle | BundleOptions | userId?: number; | Added| 53| ohos.bundle | ColorMode | LIGHT_MODE = 1 | Added| 54| ohos.bundle | ColorMode | DARK_MODE = 0 | Added| 55| ohos.bundle | ColorMode | AUTO_MODE = -1 | Added| 56| ohos.bundle | BundleFlag | GET_APPLICATION_INFO_WITH_DISABLE = 0x00000200 | Added| 57| ohos.bundle | BundleFlag | GET_ABILITY_INFO_WITH_DISABLE = 0x00000100 | Added| 58| ohos.bundle | BundleFlag | GET_ABILITY_INFO_SYSTEMAPP_ONLY = 0x00000080 | Added| 59| ohos.bundle | BundleFlag | GET_APPLICATION_INFO_WITH_METADATA = 0x00000040 | Added| 60| ohos.bundle | BundleFlag | GET_ABILITY_INFO_WITH_METADATA = 0x00000020 | Added| 61| ohos.bundle | BundleFlag | GET_ALL_APPLICATION_INFO = 0xFFFF0000 | Added| 62| ohos.bundle | BundleFlag | GET_BUNDLE_WITH_REQUESTED_PERMISSION = 0x00000010 | Added| 63| ohos.bundle | BundleFlag | GET_ABILITY_INFO_WITH_APPLICATION = 0x00000004 | Added| 64| ohos.bundle | BundleFlag | GET_ABILITY_INFO_WITH_PERMISSION = 0x00000002 | Added| 65