What happens if permission is declared in multiple manifests?

In a short period of time, I came across two cases when different components / applications declare the same permission, that is:

<permission android:name="com.company.A_PERMISSION" android:protectionLevel="signatureOrSystem" />

It is worth noting that in this case, the components are all system applications. I suggest that the reasoning in this case is that if one of the components is missing, at least the resolution is declared in the other.

Are there any side effects to declaring permissions in several places?

+4
source share
1 answer

I suggest that the reasoning in this case is that if one of the components is missing, at least the resolution is declared in the other.

. , , , , , SDK.

, Twitter SDK Android- . , , Vine SDK. , (Twitter, Vine Vine, Twitter). Vine, , , , SDK Twitter , , Twitter. Twitter Vine, Vine , <uses-permission>, ( android:protectionLevel).

- ?

, - , - , , .

+2

Source: https://habr.com/ru/post/1541294/


All Articles