1e41f4b71Sopenharmony_ci# Bundle Management Subsystem Changelog
2e41f4b71Sopenharmony_ci## cl.bundlemanager.1 Bottom Layer Implementation of getAllBundleInfo in @ohos.bundle.d.ts Changed
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ciThe **getAllBundleInfo** API in the **@ohos.bundle.d.ts** file is marked as deprecated. On the image with **targetAPILevel** set to API 9 or later, the returned data list is empty.
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ci**Change Impact**
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ciAfter an update to the new image version, the calling of **getAllBundleInfo** in **@ohos.bundle.d.ts** is successful. However, the returned data list is empty. To obtain the bundle information, call **getAllBundleInfo** in the **@ohos.bundle.bundleManager.d.ts** file.
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ci**Key API/Component Changes**
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ciThe bottom-layer implementation is changed. The result value of **getAllBundleInfo** in **@ohos.bundle.d.ts** is empty.
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**Adaptation Guide**
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ciIf your application uses **getAllBundleInfo** in **@ohos.bundle.d.ts**, replace it with **getAllBundleInfo** in **@ohos.bundle.bundleManager.d.ts**. For details about how to use the new API, see [API Reference](../../../application-dev/reference/apis/js-apis-bundleManager.md#bundlemanagergetallbundleinfo).
17e41f4b71Sopenharmony_ci```ets
18e41f4b71Sopenharmony_ciimport bundleManager from '@ohos.bundle.bundleManager';
19e41f4b71Sopenharmony_ci```
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci## cl.bundlemanager.2 Bottom Layer Implementation of getAllApplicationInfo in @ohos.bundle.d.ts Changed
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ciThe **getAllApplicationInfo** API in the **@ohos.bundle.d.ts** file is marked as deprecated. On the image with **targetAPILevel** set to API 9 or later, the returned data list is empty.
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci**Change Impact**
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ciAfter an update to the new image version, the calling of **getAllApplicationInfo** in **@ohos.bundle.d.ts** is successful. However, the returned data list is empty. To obtain the application information, call **getAllApplicationInfo** in the **@ohos.bundle.bundleManager.d.ts** file.
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci**Key API/Component Changes**
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ciThe bottom-layer implementation is changed. The result value of **getAllApplicationInfo** in **@ohos.bundle.d.ts** is empty.
32e41f4b71Sopenharmony_ci
33e41f4b71Sopenharmony_ci**Adaptation Guide**
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_ciIf your application uses **getAllApplicationInfo** in **@ohos.bundle.d.ts**, replace it with **getAllApplicationInfo** in **@ohos.bundle.bundleManager.d.ts**. For details about how to use the new API, see [API Reference](../../../application-dev/reference/apis/js-apis-bundleManager.md#bundlemanagergetallapplicationinfo).
36e41f4b71Sopenharmony_ci```ets
37e41f4b71Sopenharmony_ciimport bundleManager from '@ohos.bundle.bundleManager';
38e41f4b71Sopenharmony_ci```
39e41f4b71Sopenharmony_ci
40e41f4b71Sopenharmony_ci## cl.bundlemanager.3 Permission on getAllBundleInfo in @ohos.bundle.bundleManager.d.ts Changed
41e41f4b71Sopenharmony_ci
42e41f4b71Sopenharmony_ciThe APIs for obtaining the application list require authorization from the end user.
43e41f4b71Sopenharmony_ciTherefore, the permission on **getAllBundleInfo** in **@ohos.bundle.bundleManager.d.ts** is changed to **ohos.permission.GET_INSTALLED_BUNDLE_LIST**.
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ci**Change Impact**
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ciAfter an update to the new image version, you must have the **ohos.permission.GET_INSTALLED_BUNDLE_LIST** permission when calling **getAllBundleInfo**. Otherwise, the call fails.
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_ci**Key API/Component Changes**
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ciThe permission on **getAllBundleInfo** in **@ohos.bundle.bundleManager.d.ts** is changed to **ohos.permission.GET_INSTALLED_BUNDLE_LIST**.
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ci**Adaptation Guide**
54e41f4b71Sopenharmony_ci
55e41f4b71Sopenharmony_ciAdd the **ohos.permission.GET_INSTALLED_BUNDLE_LIST** permission to the configuration file of the application. This permission is of the **user_grant** type and is not authorized by default during application installation. You must display a dialog box to ask the permission from the user or use pre-authorization. For details about how to display a dialog box to ask for permission, see [Requesting User Authorization](../../../application-dev/security/accesstoken-guidelines.md#requesting-user-authorization). For details about how to use pre-authorization, see [Pre-authorizing user_grant Permissions](../../../application-dev/security/accesstoken-guidelines.md#pre-authorizing-user_grant-permissions).
56e41f4b71Sopenharmony_ci
57e41f4b71Sopenharmony_ci## cl.bundlemanager.4 Permission on getAllApplicationInfo in @ohos.bundle.bundleManager.d.ts Changed
58e41f4b71Sopenharmony_ci
59e41f4b71Sopenharmony_ciThe APIs for obtaining the application list require authorization from the end user.
60e41f4b71Sopenharmony_ciTherefore, the permission on **getAllApplicationInfo** in **@ohos.bundle.bundleManager.d.ts** is changed to **ohos.permission.GET_INSTALLED_BUNDLE_LIST**.
61e41f4b71Sopenharmony_ci
62e41f4b71Sopenharmony_ci**Change Impact**
63e41f4b71Sopenharmony_ci
64e41f4b71Sopenharmony_ciAfter an update to the new image version, you must have the **ohos.permission.GET_INSTALLED_BUNDLE_LIST** permission when calling **getAllApplicationInfo**. Otherwise, the call fails.
65e41f4b71Sopenharmony_ci
66e41f4b71Sopenharmony_ci**Key API/Component Changes**
67e41f4b71Sopenharmony_ci
68e41f4b71Sopenharmony_ciThe permission on **getAllApplicationInfo** in **@ohos.bundle.bundleManager.d.ts** is changed to **ohos.permission.GET_INSTALLED_BUNDLE_LIST**.
69e41f4b71Sopenharmony_ci
70e41f4b71Sopenharmony_ci**Adaptation Guide**
71e41f4b71Sopenharmony_ci
72e41f4b71Sopenharmony_ciAdd the **ohos.permission.GET_INSTALLED_BUNDLE_LIST** permission to the configuration file of the application. This permission is of the **user_grant** type and is not authorized by default during application installation. You must display a dialog box to ask the permission from the user or use pre-authorization. For details about how to display a dialog box to ask for permission, see [Requesting User Authorization](../../../application-dev/security/accesstoken-guidelines.md#requesting-user-authorization). For details about how to use pre-authorization, see [Pre-authorizing user_grant Permissions](../../../application-dev/security/accesstoken-guidelines.md#pre-authorizing-user_grant-permissions).
73e41f4b71Sopenharmony_ci
74e41f4b71Sopenharmony_ci## cl.bundlemanager.5 getSpecifiedDistributionType Moved from @ohos.bundle.installer.d.ts to @ohos.bundle.bundleManager.d.ts
75e41f4b71Sopenharmony_ci
76e41f4b71Sopenharmony_ciThe **getSpecifiedDistributionType** API is moved from **@ohos.bundle.installer.d.ts** to **@ohos.bundle.bundleManager.d.ts**.
77e41f4b71Sopenharmony_ci
78e41f4b71Sopenharmony_ci**Change Impact**
79e41f4b71Sopenharmony_ci
80e41f4b71Sopenharmony_ciAfter an update to the new SDK version, the **getSpecifiedDistributionType** API in **@ohos.bundle.installer.d.ts** is moved to **@ohos.bundle.bundleManager.d.ts**.
81e41f4b71Sopenharmony_ci
82e41f4b71Sopenharmony_ci**Key API/Component Changes**
83e41f4b71Sopenharmony_ci
84e41f4b71Sopenharmony_ciThe **getSpecifiedDistributionType** API in **@ohos.bundle.installer.d.ts** is moved to **@ohos.bundle.bundleManager.d.ts**.
85e41f4b71Sopenharmony_ci
86e41f4b71Sopenharmony_ci**Adaptation Guide**
87e41f4b71Sopenharmony_ci
88e41f4b71Sopenharmony_ciTo use **getSpecifiedDistributionType**, import the **bundleManager** module.
89e41f4b71Sopenharmony_ci
90e41f4b71Sopenharmony_ci```ets
91e41f4b71Sopenharmony_ciimport bundleManager form '@ohos.bundle.bundleManager'
92e41f4b71Sopenharmony_ci```
93e41f4b71Sopenharmony_ci
94e41f4b71Sopenharmony_ci## cl.bundlemanager.6 getAdditionalInfo Moved from @ohos.bundle.installer.d.ts to @ohos.bundle.bundleManager.d.ts
95e41f4b71Sopenharmony_ci
96e41f4b71Sopenharmony_ciThe **getAdditionalInfo** API is moved from **@ohos.bundle.installer.d.ts** to **@ohos.bundle.bundleManager.d.ts**.
97e41f4b71Sopenharmony_ci
98e41f4b71Sopenharmony_ci**Change Impact**
99e41f4b71Sopenharmony_ci
100e41f4b71Sopenharmony_ciAfter an update to the new SDK version, the **getAdditionalInfo** API in **@ohos.bundle.installer.d.ts** is moved to **@ohos.bundle.bundleManager.d.ts**.
101e41f4b71Sopenharmony_ci
102e41f4b71Sopenharmony_ci**Key API/Component Changes**
103e41f4b71Sopenharmony_ci
104e41f4b71Sopenharmony_ciThe **getAdditionalInfo** API is moved from **@ohos.bundle.installer.d.ts** to **@ohos.bundle.bundleManager.d.ts**.
105e41f4b71Sopenharmony_ci
106e41f4b71Sopenharmony_ci**Adaptation Guide**
107e41f4b71Sopenharmony_ci
108e41f4b71Sopenharmony_ciTo use **getAdditionalInfo**, import the **bundleManager** module.
109e41f4b71Sopenharmony_ci
110e41f4b71Sopenharmony_ci```ets
111e41f4b71Sopenharmony_ciimport bundleManager form '@ohos.bundle.bundleManager'
112e41f4b71Sopenharmony_ci```
113e41f4b71Sopenharmony_ci
114e41f4b71Sopenharmony_ci## cl.bundlemanager.7 proxyDatas Renamed proxyData in the module.json5 File
115e41f4b71Sopenharmony_ci
116e41f4b71Sopenharmony_ci**proxyDatas** is renamed **proxyData**.
117e41f4b71Sopenharmony_ci
118e41f4b71Sopenharmony_ci**Change Impact**
119e41f4b71Sopenharmony_ci
120e41f4b71Sopenharmony_ciAfter an update to the new SDK version, **proxyDatas** is **renamed proxyData**. If your application is not adapted, the build will fail.
121e41f4b71Sopenharmony_ci
122e41f4b71Sopenharmony_ci**Key API/Component Changes**
123e41f4b71Sopenharmony_ci
124e41f4b71Sopenharmony_ci**proxyDatas** is renamed **proxyData**.
125e41f4b71Sopenharmony_ci
126e41f4b71Sopenharmony_ci**Adaptation Guide**
127e41f4b71Sopenharmony_ci
128e41f4b71Sopenharmony_ciReplace **proxyDatas** with **proxyData**. The content of **proxyDatas** does not need to be changed.
129e41f4b71Sopenharmony_ci
130