MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

Creating a manifest file manually with Qt SDK

This section provides instructions on creating the Aegis manifest file manually. The file is usually created automatically by the SDK tools. For more information on the Aegis manifest file, see Security guide.

Generating an Aegis manifest file manually with Qt SDK

To create the manifest file manually:

  1. To determine which credentials your application needs, check the @credential tag in the header files you are using. If the @credential tag is not present, then the interface does not require any credential in order to be used.
  2. Create the manifest file.
                <!-- My first application from this binary package needs only Location credential -->
                <credential name="Location" />

                <for path="/usr/bin/MyApp1 />
                <!-- My second application from this binary package needs both Cellular and Location credentials -->

                <credential name="Cellular" />
                <credential name="Location" />

                <for path="/usr/bin/MyApp2" />
For more information, see Aegis manifest syntax. Note: If your application specificly needs to access the restricted X server interfaces, use the matching method <credential name="<credential">.
3. Add the manifest file in the qtc_packaging/debian_harmattan directory in the package source directory. When you package the application, Qt Creator copies the file to the /debian directory. The file is also stored to Debian package file (.deb) under the name _aegis.
4. To build the application package, click Run.

Editing a manifest file with Qt SDK

To edit a manifest file with Qt Creator:

  1. With your project open in Qt Creator, switch to Projects mode button.
  2. On the target toolbar above Build Settings, select Harmattan > Run to configure Run settings.
  3. In the Run Settings, expand the Create Package line by clicking Details.
  4. On Adapt Debian file line, select manifest.aegis and click Edit.
    The manifest file opens in Edit mode.