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:
- 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. - Create the manifest file.
- Example
<aegis> <request> <!-- My first application from this binary package needs only Location credential --> <credential name="Location" /> <for path="/usr/bin/MyApp1 /> </request> <request> <!-- My second application from this binary package needs both Cellular and Location credentials --> <credential name="Cellular" /> <credential name="Location" /> <for path="/usr/bin/MyApp2" /> </request> </aegis>
- 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:
- With your project open in Qt Creator, switch to .
- On the target toolbar above Build Settings, select Harmattan > Run to configure Run settings.
- In the Run Settings, expand the Create Package line by clicking Details.
- On Adapt Debian file line, select manifest.aegis and click Edit.
- The manifest file opens in Edit mode.