1e41f4b71Sopenharmony_ci # AutoStartupInfo (System API)
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciThe **AutoStartupInfo** module defines information about the application component that automatically starts upon system boot.
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci> **NOTE**
6e41f4b71Sopenharmony_ci> 
7e41f4b71Sopenharmony_ci> The initial APIs of this module are supported since API version 11. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8e41f4b71Sopenharmony_ci>
9e41f4b71Sopenharmony_ci> The APIs of this module can be used only in the stage model.
10e41f4b71Sopenharmony_ci> The APIs provided by this module are system APIs.
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci## Properties
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**System API**: This is a system API.
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci**System capability**: SystemCapability.Ability.AbilityRuntime.Core
17e41f4b71Sopenharmony_ci
18e41f4b71Sopenharmony_ci| Name                     | Type  | Mandatory | Description      |
19e41f4b71Sopenharmony_ci| ------------------------- | ------ | ---- | --------- |
20e41f4b71Sopenharmony_ci| bundleName   | string | Yes | Bundle name. |
21e41f4b71Sopenharmony_ci| moduleName | string | No  | Module name. |
22e41f4b71Sopenharmony_ci| abilityName | string | Yes | Ability name. |
23e41f4b71Sopenharmony_ci| abilityTypeName | string | No | Ability type. |
24e41f4b71Sopenharmony_ci| appCloneIndex | number   | No  | Index of an application clone. |
25e41f4b71Sopenharmony_ci
26e41f4b71Sopenharmony_ci**Example**
27e41f4b71Sopenharmony_ci
28e41f4b71Sopenharmony_ci```ts
29e41f4b71Sopenharmony_ciimport { autoStartupManager, common } from '@kit.AbilityKit';
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ciautoStartupManager.setApplicationAutoStartup({
32e41f4b71Sopenharmony_ci  bundleName: 'com.example.autostartupapp',
33e41f4b71Sopenharmony_ci  moduleName: 'entry',
34e41f4b71Sopenharmony_ci  abilityName: 'EntryAbility',
35e41f4b71Sopenharmony_ci  abilityTypeName: 'ServiceExtension'
36e41f4b71Sopenharmony_ci} as common.AutoStartupInfo, (err, data) => {
37e41f4b71Sopenharmony_ci  console.info('====> err: ' + JSON.stringify(err) + ' data: ' + JSON.stringify(data));
38e41f4b71Sopenharmony_ci});
39e41f4b71Sopenharmony_ci```
40