Frage

I find that if I want to put some actions in intent-filter of my broadcast receiver, I need to add certain actions. For example, if I add android.provider.Telephony.SMS_RECEIVED to actions

<receiver android:name=".listener.SmsListener">
    <intent-filter>
        <action android:name="android.provider.Telephony.SMS_RECEIVED" />
    </intent-filter>
</receiver>

I need to add this permission:

<uses-permission android:name="android.permission.RECEIVE_SMS" />

I know there exists a mapping between API calls and permissions: http://pscout.csl.toronto.edu/. I'm writing to ask if there's any official or unofficial document to check such mapping between intent-filters and permissions.

Thanks a lot!

War es hilfreich?

Lösung 2

After few exploration I finally found the mapping. Please check here. Search your intent action string, and you will find the permission it requires.

Andere Tipps

I think there is no such documentation for Intent-filters and their permissions but here you check some of them take a look at here..

android permissions

Intent filters and intents

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top