1e41f4b71Sopenharmony_ci# Bundle Manager Subsystem Changelog
2e41f4b71Sopenharmony_ci## cl.bundlemanager.1 Bottom-Layer Capability Changed So That Only the System Resource HAP Supports Custom Permissions
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_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.
5e41f4b71Sopenharmony_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).
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ci**Change Impact**<br>
9e41f4b71Sopenharmony_ciAfter an upgrade to the new version image, the custom permission of the application does not take effect, and the authorization fails.
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci**Key API/Component Changes**<br>
12e41f4b71Sopenharmony_ciThe bottom-layer capability of the bundle manager module is changed. Only the system resource HAP supports custom permissions.
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**Adaptation Guide**<br>
15e41f4b71Sopenharmony_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).
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci## cl.bundlemanager.2 Level-2 Module File Names Changed
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ciThe level-2 module file names of the bundle manager module are changed to their respective API names in the file, as listed below.
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci| Original File Name|New File Name|
22e41f4b71Sopenharmony_ci|----|----|
23e41f4b71Sopenharmony_ci| bundleManager/abilityInfo.d.ts |  bundleManager/AbilityInfo.d.ts |
24e41f4b71Sopenharmony_ci| bundleManager/applicationInfo.d.ts |  bundleManager/ApplicationInfo.d.ts |
25e41f4b71Sopenharmony_ci| bundleManager/bundleInfo.d.ts |  bundleManager/BundleInfo.d.ts |
26e41f4b71Sopenharmony_ci| bundleManager/dispatchInfo.d.ts |  bundleManager/DispatchInfo.d.ts |
27e41f4b71Sopenharmony_ci| bundleManager/elementName.d.ts |  bundleManager/ElementName.d.ts |
28e41f4b71Sopenharmony_ci| bundleManager/extensionAbilityInfo.d.ts |  bundleManager/ExtensionAbilityInfo.d.ts |
29e41f4b71Sopenharmony_ci| bundleManager/hapModuleInfo.d.ts |  bundleManager/HapModuleInfo.d.ts |
30e41f4b71Sopenharmony_ci| bundleManager/launcherAbilityInfo.d.ts |  bundleManager/LauncherAbilityInfo.d.ts |
31e41f4b71Sopenharmony_ci| bundleManager/metadata.d.ts |  bundleManager/Metadata.d.ts |
32e41f4b71Sopenharmony_ci| bundleManager/packInfo.d.ts |  bundleManager/BundlePackInfo.d.ts |
33e41f4b71Sopenharmony_ci| bundleManager/permissionDef.d.ts |  bundleManager/PermissionDef.d.ts |
34e41f4b71Sopenharmony_ci| bundleManager/remoteAbilityInfo.d.ts |  bundleManager/RemoteAbilityInfo.d.ts |
35e41f4b71Sopenharmony_ci| bundleManager/shortcutInfo.d.ts |  bundleManager/ShortcutInfo.d.ts |
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ciTo sum up, except **packInfo**, which is changed to **BundlePackInfo**, the other file names are changed to start with uppercase letters.
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ci**Change Impact**<br>
40e41f4b71Sopenharmony_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.
41e41f4b71Sopenharmony_ci
42e41f4b71Sopenharmony_ci**Key API/Component Changes**<br>
43e41f4b71Sopenharmony_ciThe .d.ts file names in the **bundleManager** folder are changed to their respective API names in the file.
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ci**Adaptation Guide**<br>
46e41f4b71Sopenharmony_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:
47e41f4b71Sopenharmony_ci
48e41f4b71Sopenharmony_ci**Before change:**
49e41f4b71Sopenharmony_ci```ts
50e41f4b71Sopenharmony_ciimport {AbilityInfo} from 'bundleManger/abilityInfo';
51e41f4b71Sopenharmony_ciimport {ExtensionAbilityInfo} from 'bundleManger/extensionAbilityInfo';
52e41f4b71Sopenharmony_ciimport {BundlePackInfo} from 'bundleManger/packInfo';
53e41f4b71Sopenharmony_ci```
54e41f4b71Sopenharmony_ci**After change:**
55e41f4b71Sopenharmony_ci```ts
56e41f4b71Sopenharmony_ciimport {AbilityInfo} from 'bundleManger/AbilityInfo';
57e41f4b71Sopenharmony_ciimport {ExtensionAbilityInfo} from 'bundleManger/ExtensionAbilityInfo';
58e41f4b71Sopenharmony_ciimport {BundlePackInfo} from 'bundleManger/BundlePackInfo';
59e41f4b71Sopenharmony_ci```
60e41f4b71Sopenharmony_ci
61e41f4b71Sopenharmony_ci## cl.bundlemanager.3 LaunchType Enum Type Name Changed from STANDARD to MULTITON
62e41f4b71Sopenharmony_ci
63e41f4b71Sopenharmony_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.
64e41f4b71Sopenharmony_ci
65e41f4b71Sopenharmony_ci**Change Impact**<br>
66e41f4b71Sopenharmony_ciThe **LaunchType.STANDARD** type does not take effect.
67e41f4b71Sopenharmony_ci
68e41f4b71Sopenharmony_ci**Key API/Component Changes**<br>
69e41f4b71Sopenharmony_ciThe enum type name of **LaunchType** is changed from **STANDARD** to **MULTITON**.
70e41f4b71Sopenharmony_ci
71e41f4b71Sopenharmony_ci**Adaptation Guide**<br>
72e41f4b71Sopenharmony_ciChange **LaunchType.STANDARD** to **LaunchType.MULTITON** for your application.
73e41f4b71Sopenharmony_ci
74e41f4b71Sopenharmony_ci## cl.bundlemanager.4 Changed the isVisible Field in the AbilityInfo Struct to exported
75e41f4b71Sopenharmony_ci
76e41f4b71Sopenharmony_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.
77e41f4b71Sopenharmony_ci
78e41f4b71Sopenharmony_ci**Change Impact**<br>
79e41f4b71Sopenharmony_ciThe **isVisible** field does not take effect.
80e41f4b71Sopenharmony_ci
81e41f4b71Sopenharmony_ci**Key API/Component Changes**<br>
82e41f4b71Sopenharmony_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.
83e41f4b71Sopenharmony_ci
84e41f4b71Sopenharmony_ci**Adaptation Guide**<br>
85e41f4b71Sopenharmony_ciChange **isVisible** to **exported** for your application.
86e41f4b71Sopenharmony_ci
87e41f4b71Sopenharmony_ci## cl.bundlemanager.5 Changed the isVisible Field in the ExtensionAbilityInfo Struct to exported
88e41f4b71Sopenharmony_ci
89e41f4b71Sopenharmony_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.
90e41f4b71Sopenharmony_ci
91e41f4b71Sopenharmony_ci**Change Impact**<br>
92e41f4b71Sopenharmony_ciThe **isVisible** field does not take effect.
93e41f4b71Sopenharmony_ci
94e41f4b71Sopenharmony_ci**Key API/Component Changes**<br>
95e41f4b71Sopenharmony_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.
96e41f4b71Sopenharmony_ci
97e41f4b71Sopenharmony_ci**Adaptation Guide**<br>
98e41f4b71Sopenharmony_ciChange **isVisible** to **exported** for your application.
99e41f4b71Sopenharmony_ci
100e41f4b71Sopenharmony_ci## cl.bundlemanager.6 Changed the visible Field in the ModuleAbilityInfo Struct to exported
101e41f4b71Sopenharmony_ci
102e41f4b71Sopenharmony_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.
103e41f4b71Sopenharmony_ci
104e41f4b71Sopenharmony_ci**Change Impact**<br>
105e41f4b71Sopenharmony_ciThe **visible** field does not take effect.
106e41f4b71Sopenharmony_ci
107e41f4b71Sopenharmony_ci**Key API/Component Changes**<br>
108e41f4b71Sopenharmony_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.
109e41f4b71Sopenharmony_ci
110e41f4b71Sopenharmony_ci**Adaptation Guide**<br>
111e41f4b71Sopenharmony_ciChange **visible** to **exported** for your application.
112