Privilege Checker
The IDE provides the privilege checker tool to identify potential problems in the application code related to privilege usage.
You can enable the checks in the project properties during the build process or code editing. You can also perform the checks manually in the IDE by selecting Project > Check Privilege.
The Privilege Checker tool is based on the Content Assist Engine for Tizen IDE. It is used for codes that do not operate Content Assist and cannot perform checks. Therefore, the check results can possibly have missing (unsound) values.
The check results are displayed in the Problems view and vertical ruler. To resolve an alarm, click the annotation on the vertical ruler and select an entry from the proposal list. The required privilege is automatically added into config.xml file (for a quick fix, use the Ctrl+1 keyboard shortcut).
Alarm type | Description | Message format | Required actions |
---|---|---|---|
Undefined privilege alarm | The application uses a method whose privilege is not specified in the configuration file. | The [tizen:Privilege name] privilege is required. For example (in a mobile Web application): [http://tizen.org/privilege/application.launch] privilege is required. |
Assign the privilege in the configuration file in the IDE. Privilege violation is a strong reason for the rejection of an application in the certification process. |