• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Bundle Management Development
2
3## How do I obtain the version code and version name of an application?
4
5Applicable to: OpenHarmony SDK 3.2.3.5, stage model of API version 9
6
7Use **bundle.getBundleInfo()** to obtain the bundle information, which contains the version code and version name.
8
9Reference: [Bundle](../reference/apis/js-apis-Bundle.md#bundlegetbundleinfo)
10
11## How do I obtain the bundle name of an application?
12
13Applicable to: OpenHarmony SDK 3.2.3.5, stage model of API version 9
14
15Obtain the bundle name through **context.abilityInfo.bundleName**.
16
17Reference: [AbilityInfo](../reference/apis/js-apis-bundle-AbilityInfo.md)
18
19## How do I obtain an application icon?
20
21Applicable to: OpenHarmony SDK 3.2.3.5, stage model of API version 9
22
23Use **bundle.getAbilityIcon** to obtain the application icon. To use this API, you must configure the permission **ohos.permission.GET_BUNDLE_INFO**.
24
25Reference: [Bundle](../reference/apis/js-apis-Bundle.md#bundlegetbundleinfo)
26
27## How do I determine whether an application is a system application?
28
29Applicable to: OpenHarmony SDK 3.2.5.5, stage model of API version 9
30
31Use **bundle.getApplicationInfo** to obtain the application information, and then check the value of **systemApp** in the information. The application is a system application if the value is **true**.
32