Extending Android permissions
Developers can extend the permission system by adding their own permissions. These permissions will be displayed to the user during the time of downloading the app, so it is important that they are localized and labeled properly.
Adding a new permission
Developers may choose to add just a new permission or an entire tree of permissions. Declaring new permissions is done in the manifest file. To add a new permission, an application can declare it by using the <permission>
tag as shown in the following code snippet:
<permission android:name="string" android:description="string resource" android:icon="drawable resource" android:label="string resource" android:permissionGroup="string" android:protectionLevel=["normal" | "dangerous" | "signature" | "signatureOrSystem"] />
A description...