Consider the case of a BroadcastReceiver
that listens to Wifi events and is registered in AndroidManifest.xml
as follows :
<receiver android:name=".receiver.WifiBroadcastReceiver"
android:enabled="true" android:exported="true" android:permission="android.permission.BRICK">
<intent-filter android:priority="501">
<action android:name="android.net.wifi.WIFI_STATE_CHANGED"/>
<action android:name="android.net.wifi.STATE_CHANGE"/>
</intent-filter>
</receiver>
A rogue app may forge and broadcast such events thus affecting apps behavior.
Does requiring the android.permission.BRICK
permission for an exported BroadcastReceiver
mitigate all the security issues related to rogue apps that may be installed by an average user ?