O'Reilly logo

Android Application Security Essentials by Pragati Ogal Rai

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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" | ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required