Android permissions, signature and developer key

I am developing an application with multiple components, each component will be a separate Android application. The "Core" app will use content providers to access the database, and reading the Signature permissions documentation is the way I want to go.

I've defined a group for my permission, mainly so my permissions will display well against my own icon in the Permissions section of the App Info. with android:protectionLevel="normal"

they appear just fine. But when I use android:protectionLevel="signature"

, they disappear.

<permission-group
    android:name="com.example.permissions.GROUP"
    android:label="@string/lblGroup"
    android:description="@string/descGroup"
    android:icon="@drawable/ic_menu_permissions_group" />

<permission
    android:name="com.example.permission.CONFIG_READ"
    android:permissionGroup="com.example.permissions.GROUP"
    android:protectionLevel="signature"
    android:label="@string/lblConfigRead"
    android:description="@string/descConfigRead" />
<permission
    android:name="com.example.permission.CONFIG_WRITE"
    android:permissionGroup="com.example.permissions.GROUP"
    android:protectionLevel="signature"
    android:label="@string/lblConfigWrite"
    android:description="@string/descConfigWrite" />

      

Given that I am currently developing and therefore using the developer key, are there any other hoops I need to jump over to get the developer signature level of protection?

As always, thanks a lot for your help.

Steve

+3


source to share


1 answer


But when I use android: protectionLevel = "signature" they disappear.

This is because the user does not need to approve them. Signature-level permissions are automatically granted and denied based on application signatures.



Are there any other hoops I need to jump over to get the developer signature level of protection?

It already works for your own applications. If the "developers" are third parties, you cannot use signing level permissions, as they will sign with their own signing keys.

+3


source







All Articles