Search code examples
androidbroadcastreceiverandroid-broadcast

Setting permission Android Receiver permission


I have a broadcast receiver in code which is a receiver for configuration changes

ACTION_CONFIGURATION_CHANGED

IntentFilter iff = new IntentFilter();
iff.addAction(Intent.ACTION_CONFIGURATION_CHANGED);
registerReceiver(my class, iff);

Do I need to set permissions for Android based ones like these? Is it a security threat at all? If I do need to, how do I set it? Thanks.


Solution

  • Do I need to set permissions for Android based ones like these?

    Not that one.

    Is it a security threat at all?

    Configuration changes, such as rotating the screen, are not usually considered to be a security threat.