1e41f4b71Sopenharmony_ci# @ohos.bundle.innerBundleManager (innerBundleManager) (System API) 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ciThe **innerBundleManager** module provides APIs for the **Home Screen** application. 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci> **NOTE** 6e41f4b71Sopenharmony_ci> 7e41f4b71Sopenharmony_ci> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. 8e41f4b71Sopenharmony_ci> 9e41f4b71Sopenharmony_ci> This module is deprecated since API version 9. You are advised to use [launcherBundleManager](js-apis-launcherBundleManager-sys.md) and [bundleMonitor](js-apis-bundleMonitor-sys.md) instead. 10e41f4b71Sopenharmony_ci> 11e41f4b71Sopenharmony_ci> The APIs provided by this module are system APIs. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci## Modules to Import 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci```typescript 16e41f4b71Sopenharmony_ciimport innerBundleManager from '@ohos.bundle.innerBundleManager'; 17e41f4b71Sopenharmony_ci``` 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci## System Capability 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ciSystemCapability.BundleManager.BundleFramework 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ci 24e41f4b71Sopenharmony_ci## innerBundleManager.getLauncherAbilityInfos<sup>(deprecated)</sup> 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_cigetLauncherAbilityInfos(bundleName: string, userId: number, callback: AsyncCallback<Array<LauncherAbilityInfo>>) : void 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ciObtains the launcher ability information based on a given bundle name. This API uses an asynchronous callback to return the result. 29e41f4b71Sopenharmony_ci> This API is deprecated since API version 9. You are advised to use [launcherBundleManager.getLauncherAbilityInfo](js-apis-launcherBundleManager-sys.md#launcherbundlemanagergetlauncherabilityinfo9) instead. 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci**Required permissions** 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ciohos.permission.GET_BUNDLE_INFO_PRIVILEGED 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ci**System capability** 36e41f4b71Sopenharmony_ci 37e41f4b71Sopenharmony_ciSystemCapability.BundleManager.BundleFramework 38e41f4b71Sopenharmony_ci 39e41f4b71Sopenharmony_ci**System API** 40e41f4b71Sopenharmony_ci 41e41f4b71Sopenharmony_ciThis is a system API. 42e41f4b71Sopenharmony_ci 43e41f4b71Sopenharmony_ci**Parameters** 44e41f4b71Sopenharmony_ci 45e41f4b71Sopenharmony_ci| Name | Type | Mandatory| Description | 46e41f4b71Sopenharmony_ci| ---------- | ------------------------------------------------------------ | ---- | ------------------------------------------ | 47e41f4b71Sopenharmony_ci| bundleName | string | Yes | Bundle name. | 48e41f4b71Sopenharmony_ci| userId | number | Yes | User ID. The value must be greater than or equal to 0. | 49e41f4b71Sopenharmony_ci| callback | AsyncCallback\<Array<[LauncherAbilityInfo](js-apis-bundle-LauncherAbilityInfo-sys.md)>> | Yes | Callback used to return an array of the launcher ability information.| 50e41f4b71Sopenharmony_ci 51e41f4b71Sopenharmony_ci 52e41f4b71Sopenharmony_ci## innerBundleManager.getLauncherAbilityInfos<sup>(deprecated)</sup> 53e41f4b71Sopenharmony_ci 54e41f4b71Sopenharmony_cigetLauncherAbilityInfos(bundleName: string, userId: number) : Promise<Array<LauncherAbilityInfo>> 55e41f4b71Sopenharmony_ci 56e41f4b71Sopenharmony_ciObtains the launcher ability information based on a given bundle name. This API uses a promise to return the result. 57e41f4b71Sopenharmony_ci> This API is deprecated since API version 9. You are advised to use [launcherBundleManager.getLauncherAbilityInfo](js-apis-launcherBundleManager-sys.md#launcherbundlemanagergetlauncherabilityinfo9) instead. 58e41f4b71Sopenharmony_ci 59e41f4b71Sopenharmony_ci**Required permissions** 60e41f4b71Sopenharmony_ci 61e41f4b71Sopenharmony_ciohos.permission.GET_BUNDLE_INFO_PRIVILEGED 62e41f4b71Sopenharmony_ci 63e41f4b71Sopenharmony_ci**System capability** 64e41f4b71Sopenharmony_ci 65e41f4b71Sopenharmony_ciSystemCapability.BundleManager.BundleFramework 66e41f4b71Sopenharmony_ci 67e41f4b71Sopenharmony_ci**System API** 68e41f4b71Sopenharmony_ci 69e41f4b71Sopenharmony_ciThis is a system API. 70e41f4b71Sopenharmony_ci 71e41f4b71Sopenharmony_ci**Parameters** 72e41f4b71Sopenharmony_ci 73e41f4b71Sopenharmony_ci| Name | Type | Mandatory| Description | 74e41f4b71Sopenharmony_ci| ---------- | ------ | ---- | ----------------------------- | 75e41f4b71Sopenharmony_ci| bundleName | string | Yes | Bundle name. | 76e41f4b71Sopenharmony_ci| userId | number | Yes | User ID. The value must be greater than or equal to 0.| 77e41f4b71Sopenharmony_ci 78e41f4b71Sopenharmony_ci**Return value** 79e41f4b71Sopenharmony_ci 80e41f4b71Sopenharmony_ci| Type | Description | 81e41f4b71Sopenharmony_ci| ------------------------------------------------------------ | ------------------------- | 82e41f4b71Sopenharmony_ci| Promise\<Array<[LauncherAbilityInfo](js-apis-bundle-LauncherAbilityInfo-sys.md)>> | Promise used to return an array of the launcher ability information.| 83e41f4b71Sopenharmony_ci 84e41f4b71Sopenharmony_ci## innerBundleManager.on<sup>(deprecated)</sup> 85e41f4b71Sopenharmony_ci 86e41f4b71Sopenharmony_cion(type:"BundleStatusChange", bundleStatusCallback : BundleStatusCallback, callback: AsyncCallback<string>) : void 87e41f4b71Sopenharmony_ci 88e41f4b71Sopenharmony_ciRegisters a callback to receive bundle status changes. This API uses an asynchronous callback to return the result. 89e41f4b71Sopenharmony_ci> This API is deprecated since API version 9. You are advised to use [bundleMonitor.on](js-apis-bundleMonitor-sys.md#bundlemonitoron) instead. 90e41f4b71Sopenharmony_ci 91e41f4b71Sopenharmony_ci**Required permissions** 92e41f4b71Sopenharmony_ci 93e41f4b71Sopenharmony_ciohos.permission.LISTEN_BUNDLE_CHANGE 94e41f4b71Sopenharmony_ci 95e41f4b71Sopenharmony_ci**System capability** 96e41f4b71Sopenharmony_ci 97e41f4b71Sopenharmony_ciSystemCapability.BundleManager.BundleFramework 98e41f4b71Sopenharmony_ci 99e41f4b71Sopenharmony_ci**System API** 100e41f4b71Sopenharmony_ci 101e41f4b71Sopenharmony_ciThis is a system API. 102e41f4b71Sopenharmony_ci 103e41f4b71Sopenharmony_ci**Parameters** 104e41f4b71Sopenharmony_ci 105e41f4b71Sopenharmony_ci| Name | Type | Mandatory| Description | 106e41f4b71Sopenharmony_ci| -------------------- | --------------------- | ---- | ---------------------------------------------------- | 107e41f4b71Sopenharmony_ci| type | string | Yes | Event type. Only **BundleStatusChange** is supported. | 108e41f4b71Sopenharmony_ci| bundleStatusCallback | [BundleStatusCallback](js-apis-Bundle-BundleStatusCallback-sys.md) | Yes | Callback to register. | 109e41f4b71Sopenharmony_ci| callback | AsyncCallback\<string> | Yes | Callback used to return a successful result or error information.| 110e41f4b71Sopenharmony_ci 111e41f4b71Sopenharmony_ci## innerBundleManager.on<sup>(deprecated)</sup> 112e41f4b71Sopenharmony_ci 113e41f4b71Sopenharmony_cion(type:"BundleStatusChange", bundleStatusCallback : BundleStatusCallback) : Promise<string> 114e41f4b71Sopenharmony_ci 115e41f4b71Sopenharmony_ciRegisters a callback to receive bundle status changes. This API uses a promise to return the result. 116e41f4b71Sopenharmony_ci> This API is deprecated since API version 9. You are advised to use [bundleMonitor.on](js-apis-bundleMonitor-sys.md#bundlemonitoron) instead. 117e41f4b71Sopenharmony_ci 118e41f4b71Sopenharmony_ci**Required permissions** 119e41f4b71Sopenharmony_ci 120e41f4b71Sopenharmony_ciohos.permission.LISTEN_BUNDLE_CHANGE 121e41f4b71Sopenharmony_ci 122e41f4b71Sopenharmony_ci**System capability** 123e41f4b71Sopenharmony_ci 124e41f4b71Sopenharmony_ciSystemCapability.BundleManager.BundleFramework 125e41f4b71Sopenharmony_ci 126e41f4b71Sopenharmony_ci**System API** 127e41f4b71Sopenharmony_ci 128e41f4b71Sopenharmony_ciThis is a system API. 129e41f4b71Sopenharmony_ci 130e41f4b71Sopenharmony_ci**Parameters** 131e41f4b71Sopenharmony_ci 132e41f4b71Sopenharmony_ci| Name | Type | Mandatory| Description | 133e41f4b71Sopenharmony_ci| -------------------- | ------------------------------------------------------------ | ---- | ------------------------------------------ | 134e41f4b71Sopenharmony_ci| type | string | Yes | Event type. Only **BundleStatusChange** is supported.| 135e41f4b71Sopenharmony_ci| bundleStatusCallback | [BundleStatusCallback](js-apis-Bundle-BundleStatusCallback-sys.md) | Yes | Callback to register. | 136e41f4b71Sopenharmony_ci 137e41f4b71Sopenharmony_ci**Return value** 138e41f4b71Sopenharmony_ci 139e41f4b71Sopenharmony_ci| Type | Description | 140e41f4b71Sopenharmony_ci| --------------- | ----------------------------------- | 141e41f4b71Sopenharmony_ci| Promise\<string> | Promise used to return a successful result or error information.| 142e41f4b71Sopenharmony_ci 143e41f4b71Sopenharmony_ci## innerBundleManager.off<sup>(deprecated)</sup> 144e41f4b71Sopenharmony_ci 145e41f4b71Sopenharmony_cioff(type:"BundleStatusChange", callback: AsyncCallback<string>) : void 146e41f4b71Sopenharmony_ci 147e41f4b71Sopenharmony_ciDeregisters the callback that receives bundle status changes. This API uses an asynchronous callback to return the result. 148e41f4b71Sopenharmony_ci> This API is deprecated since API version 9. You are advised to use [bundleMonitor.off](js-apis-bundleMonitor-sys.md#bundlemonitoroff) instead. 149e41f4b71Sopenharmony_ci 150e41f4b71Sopenharmony_ci**Required permissions** 151e41f4b71Sopenharmony_ci 152e41f4b71Sopenharmony_ciohos.permission.LISTEN_BUNDLE_CHANGE 153e41f4b71Sopenharmony_ci 154e41f4b71Sopenharmony_ci**System capability** 155e41f4b71Sopenharmony_ci 156e41f4b71Sopenharmony_ciSystemCapability.BundleManager.BundleFramework 157e41f4b71Sopenharmony_ci 158e41f4b71Sopenharmony_ci**System API** 159e41f4b71Sopenharmony_ci 160e41f4b71Sopenharmony_ciThis is a system API. 161e41f4b71Sopenharmony_ci 162e41f4b71Sopenharmony_ci**Parameters** 163e41f4b71Sopenharmony_ci 164e41f4b71Sopenharmony_ci| Name | Type | Mandatory| Description | 165e41f4b71Sopenharmony_ci| -------- | --------------------- | ---- | ---------------------------------------------------- | 166e41f4b71Sopenharmony_ci| type | string | Yes | Event type. Only **BundleStatusChange** is supported. | 167e41f4b71Sopenharmony_ci| callback | AsyncCallback\<string> | Yes | Callback used to return a successful result or error information.| 168e41f4b71Sopenharmony_ci 169e41f4b71Sopenharmony_ci## innerBundleManager.off<sup>(deprecated)</sup> 170e41f4b71Sopenharmony_ci 171e41f4b71Sopenharmony_cioff(type:"BundleStatusChange") : Promise<string> 172e41f4b71Sopenharmony_ci 173e41f4b71Sopenharmony_ciDeregisters the callback that receives bundle status changes. This API uses a promise to return the result. 174e41f4b71Sopenharmony_ci> This API is deprecated since API version 9. You are advised to use [bundleMonitor.off](js-apis-bundleMonitor-sys.md#bundlemonitoroff) instead. 175e41f4b71Sopenharmony_ci 176e41f4b71Sopenharmony_ci**Required permissions** 177e41f4b71Sopenharmony_ci 178e41f4b71Sopenharmony_ciohos.permission.LISTEN_BUNDLE_CHANGE 179e41f4b71Sopenharmony_ci 180e41f4b71Sopenharmony_ci**System capability** 181e41f4b71Sopenharmony_ci 182e41f4b71Sopenharmony_ciSystemCapability.BundleManager.BundleFramework 183e41f4b71Sopenharmony_ci 184e41f4b71Sopenharmony_ci**System API** 185e41f4b71Sopenharmony_ci 186e41f4b71Sopenharmony_ciThis is a system API. 187e41f4b71Sopenharmony_ci 188e41f4b71Sopenharmony_ci**Parameters** 189e41f4b71Sopenharmony_ci 190e41f4b71Sopenharmony_ci| Name| Type | Mandatory| Description | 191e41f4b71Sopenharmony_ci| ------ | ------ | ---- | ------------------------------------------ | 192e41f4b71Sopenharmony_ci| type | string | Yes | Event type. Only **BundleStatusChange** is supported.| 193e41f4b71Sopenharmony_ci 194e41f4b71Sopenharmony_ci**Return value** 195e41f4b71Sopenharmony_ci 196e41f4b71Sopenharmony_ci| Type | Description | 197e41f4b71Sopenharmony_ci| --------------- | ----------------------------------- | 198e41f4b71Sopenharmony_ci| Promise\<string> | Promise used to return a successful result or error information.| 199e41f4b71Sopenharmony_ci 200e41f4b71Sopenharmony_ci## innerBundleManager.getAllLauncherAbilityInfos<sup>(deprecated)</sup> 201e41f4b71Sopenharmony_ci 202e41f4b71Sopenharmony_cigetAllLauncherAbilityInfos(userId: number, callback: AsyncCallback<Array<LauncherAbilityInfo>>) : void 203e41f4b71Sopenharmony_ci 204e41f4b71Sopenharmony_ciObtains the information about all launcher abilities. This API uses an asynchronous callback to return the result. 205e41f4b71Sopenharmony_ci> This API is deprecated since API version 9. You are advised to use [launcherBundleManager.getAllLauncherAbilityInfo](js-apis-launcherBundleManager-sys.md#launcherbundlemanagergetalllauncherabilityinfo9) instead. 206e41f4b71Sopenharmony_ci 207e41f4b71Sopenharmony_ci**Required permissions** 208e41f4b71Sopenharmony_ci 209e41f4b71Sopenharmony_ciohos.permission.GET_BUNDLE_INFO_PRIVILEGED 210e41f4b71Sopenharmony_ci 211e41f4b71Sopenharmony_ci**System capability** 212e41f4b71Sopenharmony_ci 213e41f4b71Sopenharmony_ciSystemCapability.BundleManager.BundleFramework 214e41f4b71Sopenharmony_ci 215e41f4b71Sopenharmony_ci**System API** 216e41f4b71Sopenharmony_ci 217e41f4b71Sopenharmony_ciThis is a system API. 218e41f4b71Sopenharmony_ci 219e41f4b71Sopenharmony_ci**Parameters** 220e41f4b71Sopenharmony_ci 221e41f4b71Sopenharmony_ci| Name | Type | Mandatory| Description | 222e41f4b71Sopenharmony_ci| -------- | ------------------------------------------------------------ | ---- | ----------------------------------------------------- | 223e41f4b71Sopenharmony_ci| userId | number | Yes | User ID. The value must be greater than or equal to 0.| 224e41f4b71Sopenharmony_ci| callback | AsyncCallback\<Array<[LauncherAbilityInfo](js-apis-bundle-LauncherAbilityInfo-sys.md)>> | Yes | Callback used to return an array of the launcher ability information. | 225e41f4b71Sopenharmony_ci 226e41f4b71Sopenharmony_ci## innerBundleManager.getAllLauncherAbilityInfos<sup>(deprecated)</sup> 227e41f4b71Sopenharmony_ci 228e41f4b71Sopenharmony_cigetAllLauncherAbilityInfos(userId: number) : Promise<Array<LauncherAbilityInfo>> 229e41f4b71Sopenharmony_ci 230e41f4b71Sopenharmony_ciObtains the information about all launcher abilities. This API uses a promise to return the result. 231e41f4b71Sopenharmony_ci> This API is deprecated since API version 9. You are advised to use [launcherBundleManager.getAllLauncherAbilityInfo](js-apis-launcherBundleManager-sys.md#launcherbundlemanagergetalllauncherabilityinfo9) instead. 232e41f4b71Sopenharmony_ci 233e41f4b71Sopenharmony_ci**Required permissions** 234e41f4b71Sopenharmony_ci 235e41f4b71Sopenharmony_ciohos.permission.GET_BUNDLE_INFO_PRIVILEGED 236e41f4b71Sopenharmony_ci 237e41f4b71Sopenharmony_ci**System capability** 238e41f4b71Sopenharmony_ci 239e41f4b71Sopenharmony_ciSystemCapability.BundleManager.BundleFramework 240e41f4b71Sopenharmony_ci 241e41f4b71Sopenharmony_ci**System API** 242e41f4b71Sopenharmony_ci 243e41f4b71Sopenharmony_ciThis is a system API. 244e41f4b71Sopenharmony_ci 245e41f4b71Sopenharmony_ci**Parameters** 246e41f4b71Sopenharmony_ci 247e41f4b71Sopenharmony_ci| Name| Type | Mandatory| Description | 248e41f4b71Sopenharmony_ci| ------ | ------ | ---- | ----------------------------------------------------- | 249e41f4b71Sopenharmony_ci| userId | number | Yes | User ID. The value must be greater than or equal to 0.| 250e41f4b71Sopenharmony_ci 251e41f4b71Sopenharmony_ci**Return value** 252e41f4b71Sopenharmony_ci 253e41f4b71Sopenharmony_ci| Type | Description | 254e41f4b71Sopenharmony_ci| ------------------------------------------------------------ | ------------------------- | 255e41f4b71Sopenharmony_ci| Promise\<Array<[LauncherAbilityInfo](js-apis-bundle-LauncherAbilityInfo-sys.md)>> | Promise used to return an array of the launcher ability information.| 256e41f4b71Sopenharmony_ci 257e41f4b71Sopenharmony_ci## innerBundleManager.getShortcutInfos<sup>(deprecated)</sup> 258e41f4b71Sopenharmony_ci 259e41f4b71Sopenharmony_cigetShortcutInfos(bundleName :string, callback: AsyncCallback<Array<ShortcutInfo>>) : void 260e41f4b71Sopenharmony_ci 261e41f4b71Sopenharmony_ciObtains the shortcut information based on a given bundle name. This API uses an asynchronous callback to return the result. 262e41f4b71Sopenharmony_ci> This API is deprecated since API version 9. You are advised to use [launcherBundleManager.getShortcutInfo](js-apis-launcherBundleManager-sys.md#launcherbundlemanagergetshortcutinfo9) instead. 263e41f4b71Sopenharmony_ci 264e41f4b71Sopenharmony_ci**Required permissions** 265e41f4b71Sopenharmony_ci 266e41f4b71Sopenharmony_ciohos.permission.GET_BUNDLE_INFO_PRIVILEGED 267e41f4b71Sopenharmony_ci 268e41f4b71Sopenharmony_ci**System capability** 269e41f4b71Sopenharmony_ci 270e41f4b71Sopenharmony_ciSystemCapability.BundleManager.BundleFramework 271e41f4b71Sopenharmony_ci 272e41f4b71Sopenharmony_ci**System API** 273e41f4b71Sopenharmony_ci 274e41f4b71Sopenharmony_ciThis is a system API. 275e41f4b71Sopenharmony_ci 276e41f4b71Sopenharmony_ci**Parameters** 277e41f4b71Sopenharmony_ci 278e41f4b71Sopenharmony_ci| Name | Type | Mandatory| Description | 279e41f4b71Sopenharmony_ci| ---------- | ------------------------------------------------------------ | ---- | ---------------------------------------------- | 280e41f4b71Sopenharmony_ci| bundleName | string | Yes | Bundle name. | 281e41f4b71Sopenharmony_ci| callback | AsyncCallback\<Array<[ShortcutInfo](js-apis-bundle-ShortcutInfo-sys.md)>> | Yes | Callback used to return an array of the shortcut information.| 282e41f4b71Sopenharmony_ci 283e41f4b71Sopenharmony_ci## innerBundleManager.getShortcutInfos<sup>(deprecated)</sup> 284e41f4b71Sopenharmony_ci 285e41f4b71Sopenharmony_cigetShortcutInfos(bundleName : string) : Promise<Array<ShortcutInfo>> 286e41f4b71Sopenharmony_ci 287e41f4b71Sopenharmony_ciObtains the shortcut information based on a given bundle name. This API uses a promise to return the result. 288e41f4b71Sopenharmony_ci> This API is deprecated since API version 9. You are advised to use [launcherBundleManager.getShortcutInfo](js-apis-launcherBundleManager-sys.md#launcherbundlemanagergetshortcutinfo9) instead. 289e41f4b71Sopenharmony_ci 290e41f4b71Sopenharmony_ci**Required permissions** 291e41f4b71Sopenharmony_ci 292e41f4b71Sopenharmony_ciohos.permission.GET_BUNDLE_INFO_PRIVILEGED 293e41f4b71Sopenharmony_ci 294e41f4b71Sopenharmony_ci**System capability** 295e41f4b71Sopenharmony_ci 296e41f4b71Sopenharmony_ciSystemCapability.BundleManager.BundleFramework 297e41f4b71Sopenharmony_ci 298e41f4b71Sopenharmony_ci**System API** 299e41f4b71Sopenharmony_ci 300e41f4b71Sopenharmony_ciThis is a system API. 301e41f4b71Sopenharmony_ci 302e41f4b71Sopenharmony_ci**Parameters** 303e41f4b71Sopenharmony_ci 304e41f4b71Sopenharmony_ci| Name | Type | Mandatory| Description | 305e41f4b71Sopenharmony_ci| ---------- | ------ | ---- | ------------------------ | 306e41f4b71Sopenharmony_ci| bundleName | string | Yes | Bundle name.| 307e41f4b71Sopenharmony_ci 308e41f4b71Sopenharmony_ci**Return value** 309e41f4b71Sopenharmony_ci 310e41f4b71Sopenharmony_ci| Type | Description | 311e41f4b71Sopenharmony_ci| -------------------------------------------------------- | ----------------------------- | 312e41f4b71Sopenharmony_ci| Promise\<Array<[ShortcutInfo](js-apis-bundle-ShortcutInfo-sys.md)>> | Promise used to return an array of the shortcut information.| 313