I have a broadcast receiver that is defined as follows:
<receiver android:name="stuff.BroadcastReceiver"> <intent-filter> <action android:name="android.intent.action.PHONE_STATE"/> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> <action android:name="android.intent.action.BOOT_COMPLETED"/> </intent-filter> </receiver>
When the application starts on M, even though the application has received permission from the Phone group, I very rarely see this in the logs when there is an incoming call or device is loading.
W/BroadcastQueue﹕ Permission Denial: receiving Intent { act=android.intent.action.PHONE_STATE flg=0x10 (has extras) } to stuff/stuff.BroadcastReceiver requires android.permission.READ_PRIVILEGED_PHONE_STATE due to sender android (uid 1000) 10-20 12:59:28.014 10946-10946/stuff V/BroadcastReceiver﹕ onReceive()
Although the receiver performs.
android android-6.0-marshmallow android-permissions
Gruntcakes
source share