1e41f4b71Sopenharmony_ci# Bundle Manager Subsystem Changelog 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci## cl.bundlemanager.1 Deleted getAbilityIcon 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ciThe **getAbilityIcon** API in [@ohos.bundle.bundleManager.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/@ohos.bundle.bundleManager.d.ts) is deleted. The **getMediaContent** API in [@ohos.resourceManager.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/@ohos.resourceManager.d.ts) can be used instead. 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ci**Change Impact**<br> 8e41f4b71Sopenharmony_ciThe **getAbilityIcon** API does not take effect. 9e41f4b71Sopenharmony_ci 10e41f4b71Sopenharmony_ci**Key API/Component Changes**<br> 11e41f4b71Sopenharmony_ciThe **getAbilityIcon** API is deleted from **@ohos.bundle.bundleManager.d.ts**. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 14e41f4b71Sopenharmony_ciIf your application uses **getAbilityIcon** in **@ohos.bundle.bundleManager.d.ts**, replace it with **getMediaContent** in **@ohos.resourceManager.d.ts**. You need to obtain the icon ID in advance. For details, see [Usage Guide](../../../application-dev/reference/apis/js-apis-resource-manager.md#getmediacontent9). 15e41f4b71Sopenharmony_ci 16e41f4b71Sopenharmony_ci## cl.bundlemanager.2 Bottom-Layer Capability Changed So That Only the System Resource HAP Supports Custom Permissions 17e41f4b71Sopenharmony_ci 18e41f4b71Sopenharmony_ciOnly the system resource HAP supports custom permissions. During HAP parsing, the bundle manager module parses the **definePermissions** field only in the configuration file of the resource HAP (bundle name: **ohos.global.systemres**), but not this field in other HAPs. This field is used to define permissions. 19e41f4b71Sopenharmony_ciIf an application requires custom permissions, add the permissions under the **definePermissions** field in the [configuration file](https://gitee.com/openharmony/utils_system_resources/blob/master/systemres/main/config.json) of the system resource HAP. For details about the permission format, see [Defining Permissions](../../../application-dev/quick-start/module-structure.md#internal-structure-of-the-definepermissions-attribute). 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci 22e41f4b71Sopenharmony_ci**Change Impact**<br> 23e41f4b71Sopenharmony_ciAfter an upgrade to the new version image, the custom permission of the application does not take effect, and the authorization fails. 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ci**Key API/Component Changes**<br> 26e41f4b71Sopenharmony_ciThe bottom-layer capability of the bundle manager module is changed. Only the system resource HAP supports custom permissions. 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 29e41f4b71Sopenharmony_ciIf an application requires custom permissions, add the permissions under the **definePermissions** field in the [configuration file](https://gitee.com/openharmony/utils_system_resources/blob/master/systemres/main/config.json) of the system resource HAP. For details about the permission format, see [Defining Permissions](../../../application-dev/quick-start/module-structure.md#internal-structure-of-the-definepermissions-attribute). 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci## cl.bundlemanager.3 Level-2 Module File Names Changed 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ciThe level-2 module file names of the bundle manager module are changed to their respective API names in the file, as listed below. 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ci| Original File Name|New File Name| 36e41f4b71Sopenharmony_ci|----|----| 37e41f4b71Sopenharmony_ci| bundleManager/abilityInfo.d.ts | bundleManager/AbilityInfo.d.ts | 38e41f4b71Sopenharmony_ci| bundleManager/applicationInfo.d.ts | bundleManager/ApplicationInfo.d.ts | 39e41f4b71Sopenharmony_ci| bundleManager/bundleInfo.d.ts | bundleManager/BundleInfo.d.ts | 40e41f4b71Sopenharmony_ci| bundleManager/dispatchInfo.d.ts | bundleManager/DispatchInfo.d.ts | 41e41f4b71Sopenharmony_ci| bundleManager/elementName.d.ts | bundleManager/ElementName.d.ts | 42e41f4b71Sopenharmony_ci| bundleManager/extensionAbilityInfo.d.ts | bundleManager/ExtensionAbilityInfo.d.ts | 43e41f4b71Sopenharmony_ci| bundleManager/hapModuleInfo.d.ts | bundleManager/HapModuleInfo.d.ts | 44e41f4b71Sopenharmony_ci| bundleManager/launcherAbilityInfo.d.ts | bundleManager/LauncherAbilityInfo.d.ts | 45e41f4b71Sopenharmony_ci| bundleManager/metadata.d.ts | bundleManager/Metadata.d.ts | 46e41f4b71Sopenharmony_ci| bundleManager/packInfo.d.ts | bundleManager/BundlePackInfo.d.ts | 47e41f4b71Sopenharmony_ci| bundleManager/permissionDef.d.ts | bundleManager/PermissionDef.d.ts | 48e41f4b71Sopenharmony_ci| bundleManager/remoteAbilityInfo.d.ts | bundleManager/RemoteAbilityInfo.d.ts | 49e41f4b71Sopenharmony_ci| bundleManager/shortcutInfo.d.ts | bundleManager/ShortcutInfo.d.ts | 50e41f4b71Sopenharmony_ci 51e41f4b71Sopenharmony_ciTo sum up, except **packInfo**, which is changed to **BundlePackInfo**, the other file names are changed to start with uppercase letters. 52e41f4b71Sopenharmony_ci 53e41f4b71Sopenharmony_ci**Change Impact**<br> 54e41f4b71Sopenharmony_ciThe change of the level-2 module file names does not affect the use of the level-1 module. If a level-2 module interface under **bundleManager** is directly imported to the .ts file and an error is reported during compilation on DevEco Studio, you must change the name of the imported file. 55e41f4b71Sopenharmony_ci 56e41f4b71Sopenharmony_ci**Key API/Component Changes**<br> 57e41f4b71Sopenharmony_ciThe .d.ts file names in the **bundleManager** folder are changed to their respective API names in the file. 58e41f4b71Sopenharmony_ci 59e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 60e41f4b71Sopenharmony_ciGenerally, no adaptation is required. If a file in the **bundleManager** folder is directly imported to the application, you must change the imported file name as follows: 61e41f4b71Sopenharmony_ci 62e41f4b71Sopenharmony_ci**Before change:** 63e41f4b71Sopenharmony_ci```ts 64e41f4b71Sopenharmony_ciimport {AbilityInfo} from 'bundleManger/abilityInfo'; 65e41f4b71Sopenharmony_ciimport {ExtensionAbilityInfo} from 'bundleManger/extensionAbilityInfo'; 66e41f4b71Sopenharmony_ciimport {BundlePackInfo} from 'bundleManger/packInfo'; 67e41f4b71Sopenharmony_ci``` 68e41f4b71Sopenharmony_ci**After change:** 69e41f4b71Sopenharmony_ci```ts 70e41f4b71Sopenharmony_ciimport {AbilityInfo} from 'bundleManger/AbilityInfo'; 71e41f4b71Sopenharmony_ciimport {ExtensionAbilityInfo} from 'bundleManger/ExtensionAbilityInfo'; 72e41f4b71Sopenharmony_ciimport {BundlePackInfo} from 'bundleManger/BundlePackInfo'; 73e41f4b71Sopenharmony_ci``` 74e41f4b71Sopenharmony_ci 75e41f4b71Sopenharmony_ci## cl.bundlemanager.4 LaunchType Enum Type Name Changed from STANDARD to MULTITON 76e41f4b71Sopenharmony_ci 77e41f4b71Sopenharmony_ciThe enum type name of [LaunchType](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/@ohos.bundle.bundleManager.d.ts) is changed from **STANDARD** to **MULTITON**. The enum value remains unchanged, indicating the multi-instance type. 78e41f4b71Sopenharmony_ci 79e41f4b71Sopenharmony_ci**Change Impact**<br> 80e41f4b71Sopenharmony_ciThe **LaunchType.STANDARD** type does not take effect. 81e41f4b71Sopenharmony_ci 82e41f4b71Sopenharmony_ci**Key API/Component Changes**<br> 83e41f4b71Sopenharmony_ciThe enum type name of **LaunchType** is changed from **STANDARD** to **MULTITON**. 84e41f4b71Sopenharmony_ci 85e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 86e41f4b71Sopenharmony_ciChange **LaunchType.STANDARD** to **LaunchType.MULTITON** for your application. 87e41f4b71Sopenharmony_ci 88e41f4b71Sopenharmony_ci## cl.bundlemanager.5 Changed the isVisible Field in the AbilityInfo Struct to exported 89e41f4b71Sopenharmony_ci 90e41f4b71Sopenharmony_ciThe **isVisible** field in the [AbilityInfo](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/bundleManager/AbilityInfo.d.ts) struct is changed to **exported**. The type remains unchanged, indicating whether the ability can be exported and used by other abilities. 91e41f4b71Sopenharmony_ci 92e41f4b71Sopenharmony_ci**Change Impact**<br> 93e41f4b71Sopenharmony_ciThe **isVisible** field does not take effect. 94e41f4b71Sopenharmony_ci 95e41f4b71Sopenharmony_ci**Key API/Component Changes**<br> 96e41f4b71Sopenharmony_ciThe **isVisible** field in the [AbilityInfo](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/bundleManager/AbilityInfo.d.ts) struct is changed to **exported**, and the type remains unchanged. 97e41f4b71Sopenharmony_ci 98e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 99e41f4b71Sopenharmony_ciChange **isVisible** to **exported** for your application. 100e41f4b71Sopenharmony_ci 101e41f4b71Sopenharmony_ci## cl.bundlemanager.6 Changed the isVisible Field in the ExtensionAbilityInfo Struct to exported 102e41f4b71Sopenharmony_ci 103e41f4b71Sopenharmony_ciThe **isVisible** field in the [ExtensionAbilityInfo](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/bundleManager/ExtensionAbilityInfo.d.ts) struct is changed to **exported**. The type remains unchanged, indicating whether the ability can be exported and used by other abilities. 104e41f4b71Sopenharmony_ci 105e41f4b71Sopenharmony_ci**Change Impact**<br> 106e41f4b71Sopenharmony_ciThe **isVisible** field does not take effect. 107e41f4b71Sopenharmony_ci 108e41f4b71Sopenharmony_ci**Key API/Component Changes**<br> 109e41f4b71Sopenharmony_ciThe **isVisible** field in the [ExtensionAbilityInfo](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/bundleManager/ExtensionAbilityInfo.d.ts) struct is changed to **exported**, and the type remains unchanged. 110e41f4b71Sopenharmony_ci 111e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 112e41f4b71Sopenharmony_ciChange **isVisible** to **exported** for your application. 113e41f4b71Sopenharmony_ci 114e41f4b71Sopenharmony_ci## cl.bundlemanager.7 Changed the visible Field in the ModuleAbilityInfo Struct to exported 115e41f4b71Sopenharmony_ci 116e41f4b71Sopenharmony_ciThe **visible** field in the [ModuleAbilityInfo](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/bundleManager/BundlePackInfo.d.ts) struct is changed to **exported**. The type remains unchanged, indicating whether the ability can be exported and used by other abilities. 117e41f4b71Sopenharmony_ci 118e41f4b71Sopenharmony_ci**Change Impact**<br> 119e41f4b71Sopenharmony_ciThe **visible** field does not take effect. 120e41f4b71Sopenharmony_ci 121e41f4b71Sopenharmony_ci**Key API/Component Changes**<br> 122e41f4b71Sopenharmony_ciThe **visible** field in the [ModuleAbilityInfo](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/bundleManager/BundlePackInfo.d.ts) struct is changed to **exported**, and the type remains unchanged. 123e41f4b71Sopenharmony_ci 124e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 125e41f4b71Sopenharmony_ciChange **visible** to **exported** for your application. 126e41f4b71Sopenharmony_ci 127e41f4b71Sopenharmony_ci## cl.bundlemanager.8 Deleted the distributedNotificationEnabled Tag from the app.json File 128e41f4b71Sopenharmony_ciThe [distributedNotificationEnabled](../../../application-dev/quick-start/app-configuration-file.md) tag is deleted from the **app.json** file. 129e41f4b71Sopenharmony_ci 130e41f4b71Sopenharmony_ci**Change Impact**<br> 131e41f4b71Sopenharmony_ciIf this tag is used, an error is reported during compilation on DevEco Studio. 132e41f4b71Sopenharmony_ci 133e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 134e41f4b71Sopenharmony_ciDelete this tag from the configuration file. 135e41f4b71Sopenharmony_ci 136e41f4b71Sopenharmony_ci## cl.bundlemanager.9 Deleted the entityType Tag from the app.json File 137e41f4b71Sopenharmony_ciThe [entityType](../../../application-dev/quick-start/app-configuration-file.md) tag is deleted from the **app.json** file. 138e41f4b71Sopenharmony_ci 139e41f4b71Sopenharmony_ci**Change Impact**<br> 140e41f4b71Sopenharmony_ciIf this tag is used, an error is reported during compilation on DevEco Studio. 141e41f4b71Sopenharmony_ci 142e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 143e41f4b71Sopenharmony_ciDelete this tag from the configuration file. 144e41f4b71Sopenharmony_ci 145e41f4b71Sopenharmony_ci## cl.bundlemanager.10 Deleted the keepAlive Tag from the app.json File 146e41f4b71Sopenharmony_ciThe [keepAlive](../../../application-dev/quick-start/app-configuration-file.md) tag is deleted from the **app.json** file. 147e41f4b71Sopenharmony_ci 148e41f4b71Sopenharmony_ci**Change Impact**<br> 149e41f4b71Sopenharmony_ciIf this tag is used, an error is reported during compilation on DevEco Studio. 150e41f4b71Sopenharmony_ci 151e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 152e41f4b71Sopenharmony_ciDelete this tag from the configuration file. 153e41f4b71Sopenharmony_ci 154e41f4b71Sopenharmony_ci## cl.bundlemanager.11 Deleted the removable Tag from the app.json File 155e41f4b71Sopenharmony_ciThe [removable](../../../application-dev/quick-start/app-configuration-file.md) tag is deleted from the **app.json** file. 156e41f4b71Sopenharmony_ci 157e41f4b71Sopenharmony_ci**Change Impact**<br> 158e41f4b71Sopenharmony_ciIf this tag is used, an error is reported during compilation on DevEco Studio. 159e41f4b71Sopenharmony_ci 160e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 161e41f4b71Sopenharmony_ciDelete this tag from the configuration file. 162e41f4b71Sopenharmony_ci 163e41f4b71Sopenharmony_ci## cl.bundlemanager.12 Deleted the singleton Tag from the app.json File 164e41f4b71Sopenharmony_ciThe [singleton](../../../application-dev/quick-start/app-configuration-file.md) tag is deleted from the **app.json** file. 165e41f4b71Sopenharmony_ci 166e41f4b71Sopenharmony_ci**Change Impact**<br> 167e41f4b71Sopenharmony_ciIf this tag is used, an error is reported during compilation on DevEco Studio. 168e41f4b71Sopenharmony_ci 169e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 170e41f4b71Sopenharmony_ciDelete this tag from the configuration file. 171e41f4b71Sopenharmony_ci 172e41f4b71Sopenharmony_ci## cl.bundlemanager.13 Deleted the userDataClearable Tag from the app.json File 173e41f4b71Sopenharmony_ciThe [userDataClearable](../../../application-dev/quick-start/app-configuration-file.md) tag is deleted from the **app.json** file. 174e41f4b71Sopenharmony_ci 175e41f4b71Sopenharmony_ci**Change Impact**<br> 176e41f4b71Sopenharmony_ciIf this tag is used, an error is reported during compilation on DevEco Studio. 177e41f4b71Sopenharmony_ci 178e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 179e41f4b71Sopenharmony_ciDelete this tag from the configuration file. 180e41f4b71Sopenharmony_ci 181e41f4b71Sopenharmony_ci## cl.bundlemanager.14 No Longer Chinese Characters for the name Tag under module in the module.json File 182e41f4b71Sopenharmony_ciThe value of [name](../../../application-dev/quick-start/module-configuration-file.md) under **module** in the **module.json** file does not support Chinese characters. 183e41f4b71Sopenharmony_ci 184e41f4b71Sopenharmony_ci**Change Impact**<br> 185e41f4b71Sopenharmony_ciIf the tag is set to Chinese, an error is reported during compilation on DevEco Studio. 186e41f4b71Sopenharmony_ci 187e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 188e41f4b71Sopenharmony_ciSet this tag to English. 189e41f4b71Sopenharmony_ci 190e41f4b71Sopenharmony_ci## cl.bundlemanager.15 No Longer Chinese Characters for the name Tag under ability in the module.json File 191e41f4b71Sopenharmony_ciThe value of [name](../../../application-dev/quick-start/module-configuration-file.md) under **ability** in the **module.json** file does not support Chinese characters. 192e41f4b71Sopenharmony_ci 193e41f4b71Sopenharmony_ci**Change Impact**<br> 194e41f4b71Sopenharmony_ciIf the tag is set to Chinese, an error is reported during compilation on DevEco Studio. 195e41f4b71Sopenharmony_ci 196e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 197e41f4b71Sopenharmony_ciSet this tag to English. 198e41f4b71Sopenharmony_ci 199e41f4b71Sopenharmony_ci## cl.bundlemanager.16 Deleted the uiSyntax Tag from the module.json File 200e41f4b71Sopenharmony_ciThe [uiSyntax](../../../application-dev/quick-start/module-configuration-file.md) tag is deleted from the **module.json** file. 201e41f4b71Sopenharmony_ci 202e41f4b71Sopenharmony_ci**Change Impact**<br> 203e41f4b71Sopenharmony_ciIf this tag is used, an error is reported during compilation on DevEco Studio. 204e41f4b71Sopenharmony_ci 205e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 206e41f4b71Sopenharmony_ciDelete this tag from the configuration file. 207e41f4b71Sopenharmony_ci 208e41f4b71Sopenharmony_ci## cl.bundlemanager.17 Changed srcEntrance to srcEntry in the module.json File 209e41f4b71Sopenharmony_ciThe [srcEntrance](../../../application-dev/quick-start/module-configuration-file.md) tag under **module** and **ability** in the **module.json** file is changed to **srcEntry**. 210e41f4b71Sopenharmony_ci 211e41f4b71Sopenharmony_ci**Change Impact**<br> 212e41f4b71Sopenharmony_ciIf the **srcEntrance** tag is used, an error is reported during compilation on DevEco Studio. 213e41f4b71Sopenharmony_ci 214e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 215e41f4b71Sopenharmony_ciReplace the **srcEntrance** tag with **srcEntry** in the configuration file. 216e41f4b71Sopenharmony_ci 217e41f4b71Sopenharmony_ci## cl.bundlemanager.18 Deleted the apiVersion Tag Under distroFilter from the module.json File 218e41f4b71Sopenharmony_ciThe **apiVersion** tag under [distroFilter](../../../application-dev/quick-start/module-configuration-file.md) is deleted from the **module.json** file. 219e41f4b71Sopenharmony_ci 220e41f4b71Sopenharmony_ci**Change Impact**<br> 221e41f4b71Sopenharmony_ciIf this tag is used, an error is reported during compilation on DevEco Studio. 222e41f4b71Sopenharmony_ci 223e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 224e41f4b71Sopenharmony_ciDelete this tag from the configuration file. 225e41f4b71Sopenharmony_ci 226e41f4b71Sopenharmony_ci## cl.bundlemanager.19 Changed standard of launchType to multiton in the module.json File 227e41f4b71Sopenharmony_ciThe **standard** mode of the [launchType](../../../application-dev/quick-start/module-configuration-file.md) tag in the **module.json** file is changed to **multiton**. 228e41f4b71Sopenharmony_ci 229e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 230e41f4b71Sopenharmony_ciReplace **standard** of **launchType** with **multiton** in the configuration file. 231e41f4b71Sopenharmony_ci 232e41f4b71Sopenharmony_ci## cl.bundlemanager.20 Changed visible of abilities to exported in the module.json File 233e41f4b71Sopenharmony_ciThe **visible** tag under [abilities](../../../application-dev/quick-start/module-configuration-file.md) in the [module.json] file is changed to **exported**, indicating whether the ability supports export and can be used by other ability. 234e41f4b71Sopenharmony_ci 235e41f4b71Sopenharmony_ci**Adaptation Guide**<br> 236e41f4b71Sopenharmony_ciReplace **visible** under **abilities** with **exported** in the configuration file. 237